Skip to content
Next Next commit
Fix return- and parameter types in VerticalAlignmentConverter
  • Loading branch information
nicolaihenriksen committed Feb 27, 2024
commit e8be90343eb176fdb72d6b1be66097921baa1691
4 changes: 2 additions & 2 deletions MaterialDesignThemes.Wpf/SmartHint.cs
Original file line number Diff line number Diff line change
Expand Up @@ -241,9 +241,9 @@ private void RefreshState(bool useTransitions)
public class VerticalAlignmentConverter : IValueConverter
{
public VerticalAlignment StretchReplacement { get; set; } = VerticalAlignment.Top;
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
public object? Convert(object? value, Type targetType, object? parameter, CultureInfo culture)
=> value is VerticalAlignment.Stretch ? StretchReplacement : value;

public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
public object? ConvertBack(object? value, Type targetType, object? parameter, CultureInfo culture)
=> throw new NotImplementedException();
}