mirror of
https://github.com/wagesj45/butterflow-ui.git
synced 2025-09-09 03:00:39 -05:00
Conditional XAML
This commit is contained in:
parent
7fde16539f
commit
19c04c363e
5 changed files with 65 additions and 11 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue