diff --git a/HandyControl/Controls/Attach/StatusSwitchElement.cs b/HandyControl/Controls/Attach/StatusSwitchElement.cs index 6c52ab80..1c3f3e1a 100644 --- a/HandyControl/Controls/Attach/StatusSwitchElement.cs +++ b/HandyControl/Controls/Attach/StatusSwitchElement.cs @@ -5,11 +5,24 @@ namespace HandyControl.Controls { public class StatusSwitchElement { + /// + /// 选中时展示的元素 + /// public static readonly DependencyProperty CheckedElementProperty = DependencyProperty.RegisterAttached( "CheckedElement", typeof(object), typeof(StatusSwitchElement), new PropertyMetadata(default(object))); public static void SetCheckedElement(DependencyObject element, object value) => element.SetValue(CheckedElementProperty, value); public static object GetCheckedElement(DependencyObject element) => element.GetValue(CheckedElementProperty); + + /// + /// 是否隐藏元素 + /// + public static readonly DependencyProperty HiddenElementProperty = DependencyProperty.RegisterAttached( + "HiddenElement", typeof(bool), typeof(StatusSwitchElement), new PropertyMetadata(default(bool))); + + public static void SetHiddenElement(DependencyObject element, bool value) => element.SetValue(HiddenElementProperty, value); + + public static bool GetHiddenElement(DependencyObject element) => (bool) element.GetValue(HiddenElementProperty); } } \ No newline at end of file diff --git a/HandyControl/Controls/Carousel.xaml b/HandyControl/Controls/Carousel.xaml index ef82e01e..942c03ee 100644 --- a/HandyControl/Controls/Carousel.xaml +++ b/HandyControl/Controls/Carousel.xaml @@ -28,12 +28,12 @@ - - - - diff --git a/HandyControl/Controls/Info/InfoNumericUpDown.xaml b/HandyControl/Controls/Info/InfoNumericUpDown.xaml index 519e5614..e9c40029 100644 --- a/HandyControl/Controls/Info/InfoNumericUpDown.xaml +++ b/HandyControl/Controls/Info/InfoNumericUpDown.xaml @@ -56,9 +56,9 @@ - - - + + + diff --git a/HandyControl/Controls/Info/InfoTextBox.xaml b/HandyControl/Controls/Info/InfoTextBox.xaml index 18930a13..4889a9e2 100644 --- a/HandyControl/Controls/Info/InfoTextBox.xaml +++ b/HandyControl/Controls/Info/InfoTextBox.xaml @@ -54,7 +54,7 @@ - + diff --git a/HandyControl/Controls/Pagination.xaml b/HandyControl/Controls/Pagination.xaml index a7cc89d4..9b3c1af9 100644 --- a/HandyControl/Controls/Pagination.xaml +++ b/HandyControl/Controls/Pagination.xaml @@ -16,7 +16,7 @@ - - + + - + - - + - - + + \ No newline at end of file diff --git a/HandyControl/Controls/Window/PopupWindow.xaml b/HandyControl/Controls/Window/PopupWindow.xaml index 5d1d6f54..4a3f1660 100644 --- a/HandyControl/Controls/Window/PopupWindow.xaml +++ b/HandyControl/Controls/Window/PopupWindow.xaml @@ -36,7 +36,7 @@ - @@ -44,12 +44,12 @@ - -