enhance: close #1466

This commit is contained in:
NaBian committed 2023-10-01 22:09:05 +08:00
1 parent dda83ee36a
commit 50707d8952
6 files changed
+269 -1

No files matched your search

@@ -89,4 +89,11 @@ public class InfoElement : TitleElement
public static bool GetShowClearButton(DependencyObject element)
=> (bool) element.GetValue(ShowClearButtonProperty);
public static readonly DependencyProperty IsReadOnlyProperty = DependencyProperty.RegisterAttached(
"IsReadOnly", typeof(bool), typeof(InfoElement), new PropertyMetadata(ValueBoxes.FalseBox));
public static void SetIsReadOnly(DependencyObject element, bool value) => element.SetValue(IsReadOnlyProperty, ValueBoxes.BooleanBox(value));
public static bool GetIsReadOnly(DependencyObject element) => (bool) element.GetValue(IsReadOnlyProperty);
}