diff --git a/MainDemo.Wpf/Domain/MainWindowViewModel.cs b/MainDemo.Wpf/Domain/MainWindowViewModel.cs index b3cc337327..2da13acc3b 100644 --- a/MainDemo.Wpf/Domain/MainWindowViewModel.cs +++ b/MainDemo.Wpf/Domain/MainWindowViewModel.cs @@ -31,7 +31,7 @@ public MainWindowViewModel(ISnackbarMessageQueue snackbarMessageQueue) { DemoItems.Add(item); } - SelectedItem = DemoItems.First(d => d.Name == "Hint and helper issues"); + SelectedItem = DemoItems.First(); _demoItemsView = CollectionViewSource.GetDefaultView(DemoItems); _demoItemsView.Filter = DemoItemsFilter; @@ -428,11 +428,6 @@ private static IEnumerable GenerateDemoItems(ISnackbarMessageQueue sna DocumentationLink.DemoPageLink(), DocumentationLink.StyleLink("SmartHint"), }); - - yield return new DemoItem( - "Hint and helper issues", - typeof(HintIssues), - Enumerable.Empty()); } private bool DemoItemsFilter(object obj) diff --git a/MainDemo.Wpf/HintIssues.xaml b/MainDemo.Wpf/HintIssues.xaml deleted file mode 100644 index 7e990afe2f..0000000000 --- a/MainDemo.Wpf/HintIssues.xaml +++ /dev/null @@ -1,200 +0,0 @@ - - - - - - Hint - Medium length hint - Long hint that will not fit within the bounds of the container when fixed width - - Helper - Medium length helper - Long helper text that will not fit within the bounds of the container when fixed width - - PRE - POST - - Github - Settings - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/MainDemo.Wpf/HintIssues.xaml.cs b/MainDemo.Wpf/HintIssues.xaml.cs deleted file mode 100644 index 677663a847..0000000000 --- a/MainDemo.Wpf/HintIssues.xaml.cs +++ /dev/null @@ -1,35 +0,0 @@ -using System.Globalization; -using System.Windows.Data; - -namespace MaterialDesignDemo; - -/// -/// Interaction logic for HintIssues.xaml -/// -public partial class HintIssues : UserControl -{ - public HintIssues() - { - InitializeComponent(); - } -} - -internal class FixedWidthConverter : IValueConverter -{ - public double FixedWidth { get; set; } - - public object? Convert(object? value, Type targetType, object? parameter, CultureInfo culture) - => value is true ? FixedWidth : double.NaN; - - public object? ConvertBack(object? value, Type targetType, object? parameter, CultureInfo culture) - => throw new NotImplementedException(); -} - -internal class BoolToParameterConverter : IValueConverter -{ - public object? Convert(object? value, Type targetType, object? parameter, CultureInfo culture) - => value is true ? parameter : null; - - public object? ConvertBack(object? value, Type targetType, object? parameter, CultureInfo culture) - => throw new NotImplementedException(); -} diff --git a/MaterialDesignThemes.Wpf/Themes/MaterialDesignTheme.SmartHint.xaml b/MaterialDesignThemes.Wpf/Themes/MaterialDesignTheme.SmartHint.xaml index a721ac4024..88588f563a 100644 --- a/MaterialDesignThemes.Wpf/Themes/MaterialDesignTheme.SmartHint.xaml +++ b/MaterialDesignThemes.Wpf/Themes/MaterialDesignTheme.SmartHint.xaml @@ -94,12 +94,12 @@ Storyboard.TargetName="FloatingHintTextBlock" Storyboard.TargetProperty="Opacity" To="{TemplateBinding HintOpacity}" - Duration="0:0:0.75" /> + Duration="0:0:0.15" /> + Duration="0:0:0.15" />