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>2018-04-18 22:23:14 +0300
committerEric Maupin <ermaup@microsoft.com>2018-05-01 00:53:55 +0300
commitfa28e9cca17eb158ea9a59202f448b041c43a9f4 (patch)
tree21a1277a7fc23ed351c1b8a50120c6f54f0f2296 /Xamarin.PropertyEditing.Windows.Standalone
parentd6321d4d839b8515d76e8ea5b5e7a5e2a3c84557 (diff)
[Core] Move IEditorProvider into TargetPlatform
Diffstat (limited to 'Xamarin.PropertyEditing.Windows.Standalone')
-rw-r--r--Xamarin.PropertyEditing.Windows.Standalone/MainWindow.xaml.cs5
1 files changed, 2 insertions, 3 deletions
diff --git a/Xamarin.PropertyEditing.Windows.Standalone/MainWindow.xaml.cs b/Xamarin.PropertyEditing.Windows.Standalone/MainWindow.xaml.cs
index 0acdd2c..d7d4028 100644
--- a/Xamarin.PropertyEditing.Windows.Standalone/MainWindow.xaml.cs
+++ b/Xamarin.PropertyEditing.Windows.Standalone/MainWindow.xaml.cs
@@ -15,7 +15,7 @@ namespace Xamarin.PropertyEditing.Windows.Standalone
public MainWindow ()
{
InitializeComponent ();
- this.panel.TargetPlatform = new TargetPlatform {
+ this.panel.TargetPlatform = new TargetPlatform (new MockEditorProvider()) {
SupportsCustomExpressions = true,
SupportsMaterialDesign = true,
SupportsBrushOpacity = false,
@@ -23,7 +23,6 @@ namespace Xamarin.PropertyEditing.Windows.Standalone
{ typeof(CommonBrush), "Brush" }
}
};
- this.panel.EditorProvider = new MockEditorProvider ();
this.panel.ResourceProvider = new MockResourceProvider ();
#if USE_VS_ICONS
@@ -41,7 +40,7 @@ namespace Xamarin.PropertyEditing.Windows.Standalone
} else {
inspectedObject = mockedControl.MockedControl;
if (mockedControl is MockedSampleControlButton mockedButton) {
- IObjectEditor editor = await this.panel.EditorProvider.GetObjectEditorAsync (inspectedObject);
+ IObjectEditor editor = await this.panel.TargetPlatform.EditorProvider.GetObjectEditorAsync (inspectedObject);
await mockedButton.SetBrushInitialValueAsync (editor, new CommonSolidBrush (20, 120, 220, 240, "sRGB"));
await mockedButton.SetMaterialDesignBrushInitialValueAsync (editor, new CommonSolidBrush (0x65, 0x1F, 0xFF, 200));
await mockedButton.SetReadOnlyBrushInitialValueAsync (editor, new CommonSolidBrush (240, 220, 15, 190));