Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Update MaterialDesignThemes.Wpf/Converters/FloatingHintTextBlockMargi…
…nConverter.cs

Co-authored-by: Kevin B <[email protected]>
  • Loading branch information
nicolaihenriksen and Keboo authored Jan 30, 2023
commit bca967ca2e71272d7f1f902fbc724661942f3127
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ internal class FloatingHintTextBlockMarginConverter : IMultiValueConverter
{
public object? Convert(object?[]? values, Type targetType, object? parameter, CultureInfo culture)
{
if (values == null || values.Length != 7 || values.Any(v => v == null)
if (values?.Length != 7 || values.Any(v => v == null)
|| values[0] is not FloatingHintHorizontalAlignment floatingAlignment
|| values[1] is not HorizontalAlignment restingAlignment
|| !double.TryParse(values[2]!.ToString(), out double desiredWidth)
Expand Down