diff options
author | Dominique Louis <dolouis@microsoft.com> | 2020-10-08 18:09:21 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-08 18:09:21 +0300 |
commit | d820cccf8bb64a27b02cea4d9ad72a742dc4eb8f (patch) | |
tree | d43772fd3d8f19312cb7cbe20409e53c7be5cff2 /Xamarin.PropertyEditing.Windows.Standalone | |
parent | 322d6c8f8298d519c94bad0f745b53bc2ebfed1f (diff) |
Refactor to have individual Date and Time Controls for better mapping… (#756)
* Refactor to have individual Date and Time Controls for better mapping for .Forms
* Add default control mapping to the TypeMap
* Call our initialise value method.
* Use custom controls and converters for our custom Date/Time
* Let's return the 'broken' string, if an error occurs, until they correct it.
Diffstat (limited to 'Xamarin.PropertyEditing.Windows.Standalone')
-rw-r--r-- | Xamarin.PropertyEditing.Windows.Standalone/MainWindow.xaml.cs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Xamarin.PropertyEditing.Windows.Standalone/MainWindow.xaml.cs b/Xamarin.PropertyEditing.Windows.Standalone/MainWindow.xaml.cs index 246c70d..e0e63ce 100644 --- a/Xamarin.PropertyEditing.Windows.Standalone/MainWindow.xaml.cs +++ b/Xamarin.PropertyEditing.Windows.Standalone/MainWindow.xaml.cs @@ -64,6 +64,7 @@ namespace Xamarin.PropertyEditing.Windows.Standalone inspectedObject = mockedControl.MockedControl; if (mockedControl is MockedSampleControlButton mockedButton) { IObjectEditor editor = await this.panel.TargetPlatform.EditorProvider.GetObjectEditorAsync (inspectedObject); + await mockedButton.MockedControl.SetInitialValuesAsync (editor); await mockedButton.MockedControl.SetBrushInitialValueAsync (editor, new CommonSolidBrush (20, 120, 220, 240, "sRGB")); await mockedButton.MockedControl.SetMaterialDesignBrushInitialValueAsync (editor, new CommonSolidBrush (0x65, 0x1F, 0xFF, 200)); await mockedButton.MockedControl.SetReadOnlyBrushInitialValueAsync (editor, new CommonSolidBrush (240, 220, 15, 190)); |