Skip to content

Commit

Permalink
Merge pull request #339 from Glen-Nicol-Garmin/master
Browse files Browse the repository at this point in the history
Feature: BrushRoundConverter supports ImmutableSolidColorBrush objects
  • Loading branch information
SKProCH authored Jan 10, 2024
2 parents d47ad12 + ba74249 commit 431d44c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Material.Styles/Converters/BrushRoundConverter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public class BrushRoundConverter : IValueConverter

public object Convert(object? value, Type targetType, object? parameter, CultureInfo culture)
{
if (value is not SolidColorBrush solidColorBrush)
if (value is not ISolidColorBrush solidColorBrush)
return BindingOperations.DoNothing;

var color = solidColorBrush.Color;
Expand Down

0 comments on commit 431d44c

Please sign in to comment.