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:
authorBertrand Le Roy <beleroy@microsoft.com>2018-02-24 03:33:46 +0300
committerEric Maupin <ermaup@microsoft.com>2018-02-27 21:11:49 +0300
commitcd90bf3b6bdf63e4f4119875f40d142cfe6266d9 (patch)
treeea147e278dadc45a7b6b37aea470d19de266ce24 /Xamarin.PropertyEditing.Windows.Standalone
parentea7de009781a30d302a1fa51263e675a1a9ec5d8 (diff)
Fix normal and accent color selection in material design picker
Diffstat (limited to 'Xamarin.PropertyEditing.Windows.Standalone')
-rw-r--r--Xamarin.PropertyEditing.Windows.Standalone/MainWindow.xaml.cs3
1 files changed, 1 insertions, 2 deletions
diff --git a/Xamarin.PropertyEditing.Windows.Standalone/MainWindow.xaml.cs b/Xamarin.PropertyEditing.Windows.Standalone/MainWindow.xaml.cs
index 654b0c6..0acdd2c 100644
--- a/Xamarin.PropertyEditing.Windows.Standalone/MainWindow.xaml.cs
+++ b/Xamarin.PropertyEditing.Windows.Standalone/MainWindow.xaml.cs
@@ -35,9 +35,8 @@ namespace Xamarin.PropertyEditing.Windows.Standalone
private async void Button_Click (object sender, RoutedEventArgs e)
{
- var mockedControl = sender as IMockedControl;
object inspectedObject;
- if (mockedControl == null || mockedControl.MockedControl == null) {
+ if (!(sender is IMockedControl mockedControl) || mockedControl.MockedControl == null) {
inspectedObject = sender;
} else {
inspectedObject = mockedControl.MockedControl;