optimized performance

This commit is contained in:
NaBian committed 2020-06-23 20:11:42 +08:00
1 parent f9614d3b17
commit 635d8798d7
19 files changed
+32 -44

No files matched your search

@@ -145,7 +145,7 @@ namespace HandyControl.Controls
}
public static void SetShowCloseButton(DependencyObject element, bool value)
=> element.SetValue(ShowCloseButtonProperty, value);
=> element.SetValue(ShowCloseButtonProperty, ValueBoxes.BooleanBox(value));
public static bool GetShowCloseButton(DependencyObject element)
=> (bool)element.GetValue(ShowCloseButtonProperty);
@@ -177,7 +177,7 @@ namespace HandyControl.Controls
}
public static void SetShowContextMenu(DependencyObject element, bool value)
=> element.SetValue(ShowContextMenuProperty, value);
=> element.SetValue(ShowContextMenuProperty, ValueBoxes.BooleanBox(value));
public static bool GetShowContextMenu(DependencyObject element)
=> (bool)element.GetValue(ShowContextMenuProperty);