From 573ce727c08f0069f743fe25cdf59e03cb9fc5e7 Mon Sep 17 00:00:00 2001 From: Jordan Wages Date: Mon, 25 Jun 2018 03:44:45 -0500 Subject: [PATCH] Incremental commit --- butterflow-ui/App.xaml | 1 + butterflow-ui/ButterflowOption.cs | 17 +++--- butterflow-ui/Controls.xaml | 31 ++++++---- butterflow-ui/Icons.xaml | 34 +++++++++++ .../Localization/Localization.Designer.cs | 56 ++++++++++++++++++- butterflow-ui/Localization/Localization.resx | 20 ++++++- butterflow-ui/MainWindow.xaml | 32 +++++++---- butterflow-ui/MainWindow.xaml.cs | 3 + butterflow-ui/butterflow-ui.csproj | 4 ++ 9 files changed, 166 insertions(+), 32 deletions(-) create mode 100644 butterflow-ui/Icons.xaml diff --git a/butterflow-ui/App.xaml b/butterflow-ui/App.xaml index 97d5d62..6b0f03f 100644 --- a/butterflow-ui/App.xaml +++ b/butterflow-ui/App.xaml @@ -7,6 +7,7 @@ + diff --git a/butterflow-ui/ButterflowOption.cs b/butterflow-ui/ButterflowOption.cs index 9f17366..0025f6b 100644 --- a/butterflow-ui/ButterflowOption.cs +++ b/butterflow-ui/ButterflowOption.cs @@ -12,29 +12,26 @@ namespace butterflow_ui { #region Properties + /// Gets or sets the label value. + /// The label value. public string LabelValue { get; set; } + /// Gets or sets the description value. + /// The description value. 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 + /// The label value property. public static DependencyProperty LabelValueProperty = DependencyProperty.Register("LabelValue", typeof(string), typeof(ButterflowOption)); + /// The description value property. public static DependencyProperty DescriptionValueProperty = DependencyProperty.Register("DescriptionValue", typeof(string), typeof(ButterflowOption)); - public static DependencyProperty ToolTipVisibilityProperty = DependencyProperty.Register("ToolTipVisibility", typeof(Visibility), typeof(ButterflowOption)); #endregion + /// Default constructor. public ButterflowOption() { // diff --git a/butterflow-ui/Controls.xaml b/butterflow-ui/Controls.xaml index 7cb9e80..0372c63 100644 --- a/butterflow-ui/Controls.xaml +++ b/butterflow-ui/Controls.xaml @@ -13,16 +13,11 @@