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:
Diffstat (limited to 'Xamarin.PropertyEditing.Tests/MockControls/MockSampleControl.cs')
-rw-r--r--Xamarin.PropertyEditing.Tests/MockControls/MockSampleControl.cs9
1 files changed, 8 insertions, 1 deletions
diff --git a/Xamarin.PropertyEditing.Tests/MockControls/MockSampleControl.cs b/Xamarin.PropertyEditing.Tests/MockControls/MockSampleControl.cs
index 991ef5b..c1eb8cb 100644
--- a/Xamarin.PropertyEditing.Tests/MockControls/MockSampleControl.cs
+++ b/Xamarin.PropertyEditing.Tests/MockControls/MockSampleControl.cs
@@ -102,7 +102,11 @@ namespace Xamarin.PropertyEditing.Tests.MockControls
AddProperty<FilePath> ("FilePath", ReadWrite, valueSources: ValueSources.Local | ValueSources.Resource | ValueSources.Binding);
AddReadOnlyProperty<FilePath> ("ReadOnlyFilePath", ReadOnly);
AddProperty<DateTime> ("DateTime", ReadWrite, valueSources: ValueSources.Local | ValueSources.Resource | ValueSources.Binding);
- AddReadOnlyProperty<DateTime> ("ReadDateTime", ReadOnly);
+ AddReadOnlyProperty<DateTime> ("ReadOnlyDateTime", ReadOnly);
+ AddProperty<Date> ("Date", ReadWrite, valueSources: ValueSources.Local | ValueSources.Resource | ValueSources.Binding);
+ AddReadOnlyProperty<Date> ("ReadOnlyDate", ReadOnly);
+ AddProperty<Time> ("Time", ReadWrite, valueSources: ValueSources.Local | ValueSources.Resource | ValueSources.Binding);
+ AddReadOnlyProperty<Time> ("ReadOnlyTime", ReadOnly);
AddEvents ("Click", "Hover", "Focus");
@@ -140,6 +144,9 @@ namespace Xamarin.PropertyEditing.Tests.MockControls
public async Task SetInitialValuesAsync (IObjectEditor editor)
{
await editor.SetValueAsync (Properties["FilePath"], new ValueInfo<FilePath> { Value = new FilePath ("/Desktop/MyTestFile") });
+ await editor.SetValueAsync (Properties["DateTime"], new ValueInfo<DateTime> { Value = DateTime.Now });
+ await editor.SetValueAsync (Properties["Date"], new ValueInfo<Date> { Value = new Date (DateTime.Now) });
+ await editor.SetValueAsync (Properties["Time"], new ValueInfo<Time> { Value = new Time (DateTime.Now) });
}
public async Task SetBrushInitialValueAsync (IObjectEditor editor, CommonBrush brush)