diff --git a/src/Shared/HandyControl_Shared/Controls/Attach/VisualElement.cs b/src/Shared/HandyControl_Shared/Controls/Attach/VisualElement.cs index 2e748dae..1a39fbde 100644 --- a/src/Shared/HandyControl_Shared/Controls/Attach/VisualElement.cs +++ b/src/Shared/HandyControl_Shared/Controls/Attach/VisualElement.cs @@ -12,6 +12,15 @@ namespace HandyControl.Controls => element.SetValue(HighlightBrushProperty, value); public static Brush GetHighlightBrush(DependencyObject element) - => (Brush) element.GetValue(HighlightBrushProperty); + => (Brush) element.GetValue(HighlightBrushProperty); + + public static readonly DependencyProperty TextProperty = DependencyProperty.RegisterAttached( + "Text", typeof(string), typeof(VisualElement), new PropertyMetadata(default(string))); + + public static void SetText(DependencyObject element, string value) + => element.SetValue(TextProperty, value); + + public static string GetText(DependencyObject element) + => (string) element.GetValue(TextProperty); } } \ No newline at end of file diff --git a/src/Shared/HandyControl_Shared/HandyControl_Shared.projitems b/src/Shared/HandyControl_Shared/HandyControl_Shared.projitems index ce4c4233..91dcd613 100644 --- a/src/Shared/HandyControl_Shared/HandyControl_Shared.projitems +++ b/src/Shared/HandyControl_Shared/HandyControl_Shared.projitems @@ -25,7 +25,6 @@ - diff --git a/src/Shared/HandyControl_Shared/Themes/Styles/Base/ProgressBarBaseStyle.xaml b/src/Shared/HandyControl_Shared/Themes/Styles/Base/ProgressBarBaseStyle.xaml index 78d1a69f..2a33fef1 100644 --- a/src/Shared/HandyControl_Shared/Themes/Styles/Base/ProgressBarBaseStyle.xaml +++ b/src/Shared/HandyControl_Shared/Themes/Styles/Base/ProgressBarBaseStyle.xaml @@ -16,6 +16,14 @@ -