optimized performance

This commit is contained in:
NaBian committed 2020-06-28 22:39:27 +08:00
1 parent c407997a3c
commit 3162267795
65 files changed
+168 -168

No files matched your search

@@ -61,7 +61,7 @@ namespace HandyControl.Controls
public bool ShowImage
{
get => (bool)GetValue(ShowImageProperty);
set => SetValue(ShowImageProperty, value);
set => SetValue(ShowImageProperty, ValueBoxes.BooleanBox(value));
}
private MessageBox()
@@ -109,7 +109,7 @@ namespace HandyControl.Controls
public bool ShowTitle
{
get => (bool) GetValue(ShowTitleProperty);
set => SetValue(ShowTitleProperty, value);
set => SetValue(ShowTitleProperty, ValueBoxes.BooleanBox(value));
}
public static readonly DependencyProperty ShowCancelProperty = DependencyProperty.Register(
@@ -118,7 +118,7 @@ namespace HandyControl.Controls
public bool ShowCancel
{
get => (bool)GetValue(ShowCancelProperty);
set => SetValue(ShowCancelProperty, value);
set => SetValue(ShowCancelProperty, ValueBoxes.BooleanBox(value));
}
public static readonly DependencyProperty ShowBorderProperty = DependencyProperty.Register(
@@ -127,7 +127,7 @@ namespace HandyControl.Controls
public bool ShowBorder
{
get => (bool) GetValue(ShowBorderProperty);
set => SetValue(ShowBorderProperty, value);
set => SetValue(ShowBorderProperty, ValueBoxes.BooleanBox(value));
}
private void TitleBlock_OnMouseLeftButtonDown(object sender, MouseButtonEventArgs e)
@@ -208,7 +208,7 @@ namespace HandyControl.Controls
public bool IsFullScreen
{
get => (bool)GetValue(IsFullScreenProperty);
set => SetValue(IsFullScreenProperty, value);
set => SetValue(IsFullScreenProperty, ValueBoxes.BooleanBox(value));
}
public object NonClientAreaContent
@@ -256,13 +256,13 @@ namespace HandyControl.Controls
public bool ShowNonClientArea
{
get => (bool)GetValue(ShowNonClientAreaProperty);
set => SetValue(ShowNonClientAreaProperty, value);
set => SetValue(ShowNonClientAreaProperty, ValueBoxes.BooleanBox(value));
}
public bool ShowTitle
{
get => (bool)GetValue(ShowTitleProperty);
set => SetValue(ShowTitleProperty, value);
set => SetValue(ShowTitleProperty, ValueBoxes.BooleanBox(value));
}
private static void OnShowNonClientAreaChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)