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-03-29 22:01:02 +0300
committerEric Maupin <ermaup@microsoft.com>2019-04-24 22:26:09 +0300
commit97898744069fc854d59d7a855dd1b72c04106ee3 (patch)
tree3713c4225d0741602a33be6ec53c3984a2b632c5 /Xamarin.PropertyEditing
parent1ee3dc571f4e7d65b87afae5c701b9a1fa4e5eea (diff)
[Win] Variants
Diffstat (limited to 'Xamarin.PropertyEditing')
-rw-r--r--Xamarin.PropertyEditing/Properties/Resources.Designer.cs37
-rw-r--r--Xamarin.PropertyEditing/Properties/Resources.resx8
-rw-r--r--Xamarin.PropertyEditing/ViewModels/PropertiesViewModel.cs3
3 files changed, 37 insertions, 11 deletions
diff --git a/Xamarin.PropertyEditing/Properties/Resources.Designer.cs b/Xamarin.PropertyEditing/Properties/Resources.Designer.cs
index 8fa5b0f..9168be7 100644
--- a/Xamarin.PropertyEditing/Properties/Resources.Designer.cs
+++ b/Xamarin.PropertyEditing/Properties/Resources.Designer.cs
@@ -1,4 +1,4 @@
-//------------------------------------------------------------------------------
+//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
@@ -60,12 +60,21 @@ namespace Xamarin.PropertyEditing.Properties {
}
public static string Black {
+ get {
+ return ResourceManager.GetString ("Black", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Add Variant.
+ /// </summary>
+ public static string AddVariant {
get {
- return ResourceManager.GetString("Black", resourceCulture);
+ return ResourceManager.GetString("AddVariant", resourceCulture);
}
}
-
- public static string BlackInitial {
+
+ public static string BlackInitial {
get {
return ResourceManager.GetString("BlackInitial", resourceCulture);
}
@@ -964,14 +973,24 @@ namespace Xamarin.PropertyEditing.Properties {
return ResourceManager.GetString("AccessibilityXEditor", resourceCulture);
}
}
-
- public static string AccessibilityYEditor {
+
+ public static string AccessibilityYEditor
+ {
+ get {
+ return ResourceManager.GetString("AccessibilityYEditor", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Remove Variant.
+ /// </summary>
+ public static string RemoveVariant {
get {
- return ResourceManager.GetString("AccessibilityYEditor", resourceCulture);
+ return ResourceManager.GetString("RemoveVariant", resourceCulture);
}
}
-
- public static string AccessibilityWidthEditor {
+
+ public static string AccessibilityWidthEditor {
get {
return ResourceManager.GetString("AccessibilityWidthEditor", resourceCulture);
}
diff --git a/Xamarin.PropertyEditing/Properties/Resources.resx b/Xamarin.PropertyEditing/Properties/Resources.resx
index fe281b5..fb081bb 100644
--- a/Xamarin.PropertyEditing/Properties/Resources.resx
+++ b/Xamarin.PropertyEditing/Properties/Resources.resx
@@ -746,4 +746,10 @@
<value>Directory</value>
<comment>Directory</comment>
</data>
-</root> \ No newline at end of file
+ <data name="AddVariant" xml:space="preserve">
+ <value>Add Variant</value>
+ </data>
+ <data name="RemoveVariant" xml:space="preserve">
+ <value>Remove Variant</value>
+ </data>
+</root>
diff --git a/Xamarin.PropertyEditing/ViewModels/PropertiesViewModel.cs b/Xamarin.PropertyEditing/ViewModels/PropertiesViewModel.cs
index bc8e2e0..8e5cceb 100644
--- a/Xamarin.PropertyEditing/ViewModels/PropertiesViewModel.cs
+++ b/Xamarin.PropertyEditing/ViewModels/PropertiesViewModel.cs
@@ -589,7 +589,8 @@ namespace Xamarin.PropertyEditing.ViewModels
if (baseVm.HasVariations) {
using (await AsyncWork.RequestAsyncWork (this)) {
var variants = await GetVariationsAsync (property);
- if (baseVm.HasVariantChildren = variants.Count > 0) {
+ baseVm.HasVariantChildren = variants.Count > 0;
+ if (baseVm.HasVariantChildren) {
foreach (PropertyVariation variant in variants) {
vms.Add (CreateViewModel (property, variant));
}