diff options
author | Eric Maupin <me@ermau.com> | 2019-02-21 01:01:07 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-21 01:01:07 +0300 |
commit | 74cd11cc4e3972b8ca00eacd5c5015e796eac375 (patch) | |
tree | 498719cd43228a7781c159b29feff25e10017319 /Xamarin.PropertyEditing | |
parent | 3a218183a20329d8905061008fe0ea52dec6fdfd (diff) | |
parent | b2bd6a7c2a1301e70de8b747b368996630342975 (diff) |
Merge pull request #540 from xamarin/ermau-fix-491
[core] Fix no brush -> material
Diffstat (limited to 'Xamarin.PropertyEditing')
-rw-r--r-- | Xamarin.PropertyEditing/ViewModels/MaterialDesignColorViewModel.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Xamarin.PropertyEditing/ViewModels/MaterialDesignColorViewModel.cs b/Xamarin.PropertyEditing/ViewModels/MaterialDesignColorViewModel.cs index c88c328..40b3e83 100644 --- a/Xamarin.PropertyEditing/ViewModels/MaterialDesignColorViewModel.cs +++ b/Xamarin.PropertyEditing/ViewModels/MaterialDesignColorViewModel.cs @@ -24,7 +24,7 @@ namespace Xamarin.PropertyEditing.ViewModels } private set { - if (!Color.Equals (value)) { + if (!Color.Equals (value) || !(Parent.Value is CommonSolidBrush)) { // Debug.WriteLine ($"Setting Color to {value}"); Parent.Value = new CommonSolidBrush (value, null, Parent.Value?.Opacity ?? 1.0); // Debug.WriteLine ($"Notifying alpha and color change"); |