diff --git a/butterflow-ui/ButterflowOption.cs b/butterflow-ui/ButterflowOption.cs index ca9109b..9f17366 100644 --- a/butterflow-ui/ButterflowOption.cs +++ b/butterflow-ui/ButterflowOption.cs @@ -14,11 +14,24 @@ namespace butterflow_ui public string LabelValue { get; set; } + public string DescriptionValue { get; set; } + + public Visibility ToolTipVisibility + { + get + { + //return string.IsNullOrWhiteSpace(this.DescriptionValue) ? Visibility.Hidden : Visibility.Visible; + return Visibility.Hidden; + } + } + #endregion #region Dependency Properties public static DependencyProperty LabelValueProperty = DependencyProperty.Register("LabelValue", typeof(string), typeof(ButterflowOption)); + public static DependencyProperty DescriptionValueProperty = DependencyProperty.Register("DescriptionValue", typeof(string), typeof(ButterflowOption)); + public static DependencyProperty ToolTipVisibilityProperty = DependencyProperty.Register("ToolTipVisibility", typeof(Visibility), typeof(ButterflowOption)); #endregion diff --git a/butterflow-ui/Controls.xaml b/butterflow-ui/Controls.xaml index 27ac339..120b8f9 100644 --- a/butterflow-ui/Controls.xaml +++ b/butterflow-ui/Controls.xaml @@ -13,7 +13,13 @@