Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/xamarin/Xamarin.PropertyEditing.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Maupin <ermaup@microsoft.com>2019-02-21 00:33:45 +0300
committerEric Maupin <ermaup@microsoft.com>2019-02-21 00:33:45 +0300
commitb2bd6a7c2a1301e70de8b747b368996630342975 (patch)
treeee399f8e080f8843fb72bd0e27ddb7d6fa67352f /Xamarin.PropertyEditing
parentf4273f41a9a221d8baad04604138381b272f8437 (diff)
[core] Fix no brush -> material
Diffstat (limited to 'Xamarin.PropertyEditing')
-rw-r--r--Xamarin.PropertyEditing/ViewModels/MaterialDesignColorViewModel.cs2
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");