diff --git a/src/modules/fancyzones/editor/FancyZonesEditor/Controls/CustomSliderAutomationPeer.cs b/src/modules/fancyzones/editor/FancyZonesEditor/Controls/CustomSliderAutomationPeer.cs
index 1e1ab70eb7..b52306eb57 100644
--- a/src/modules/fancyzones/editor/FancyZonesEditor/Controls/CustomSliderAutomationPeer.cs
+++ b/src/modules/fancyzones/editor/FancyZonesEditor/Controls/CustomSliderAutomationPeer.cs
@@ -10,14 +10,18 @@ namespace FancyZonesEditor.Controls
internal class CustomSliderAutomationPeer : SliderAutomationPeer
{
+ private string name = string.Empty;
+
public CustomSliderAutomationPeer(Slider owner)
: base(owner)
{
+ name = GetHelpText();
}
protected override string GetNameCore()
{
var element = this.Owner as Slider;
+
if (element == null)
{
return string.Empty;
@@ -25,7 +29,8 @@ namespace FancyZonesEditor.Controls
string announce = string.Format(
CultureInfo.CurrentCulture,
- Properties.Resources.Distance_adjacent_zones_slider_announce,
+ Properties.Resources.Custom_slider_announce,
+ name,
element.Minimum,
element.Maximum,
element.Value);
diff --git a/src/modules/fancyzones/editor/FancyZonesEditor/MainWindow.xaml b/src/modules/fancyzones/editor/FancyZonesEditor/MainWindow.xaml
index b7d34dc2aa..453d17fa82 100644
--- a/src/modules/fancyzones/editor/FancyZonesEditor/MainWindow.xaml
+++ b/src/modules/fancyzones/editor/FancyZonesEditor/MainWindow.xaml
@@ -527,16 +527,42 @@
ToolTip="{x:Static props:Resources.Number_of_zones}"
Text="" />
-
+
+
+
+
+
+
+
+
+
+
+
-
-
+
+
+
+
+
+
0
-
+
@@ -606,8 +643,7 @@
Minimum="{Binding SensitivityRadiusMinimum}"
Maximum="{Binding SensitivityRadiusMaximum}"
IsMoveToPointEnabled="True"
- AutomationProperties.Name="{x:Static props:Resources.Distance_adjacent_zones}"
- AutomationProperties.HelpText="{Binding SensitivityRadius}"
+ AutomationProperties.HelpText="{x:Static props:Resources.Distance_adjacent_zones}"
ToolTip="{Binding SensitivityRadius}"
ValueChanged="SensitivityInput_ValueChanged"
MinWidth="216"
@@ -619,13 +655,14 @@
+ TextWrapping="Wrap"
+ VerticalAlignment="Center"/>
-
-
-
-
-
-
-
-
-
diff --git a/src/modules/fancyzones/editor/FancyZonesEditor/MainWindow.xaml.cs b/src/modules/fancyzones/editor/FancyZonesEditor/MainWindow.xaml.cs
index 22b6a0020b..2e180ed44e 100644
--- a/src/modules/fancyzones/editor/FancyZonesEditor/MainWindow.xaml.cs
+++ b/src/modules/fancyzones/editor/FancyZonesEditor/MainWindow.xaml.cs
@@ -587,7 +587,49 @@ namespace FancyZonesEditor
FrameworkElementAutomationPeer.FromElement(SensitivityInput) as SliderAutomationPeer;
string activityId = "sliderValueChanged";
- string value = string.Format(CultureInfo.CurrentCulture, Properties.Resources.Slider_Value, SensitivityInput.Value);
+ string value = string.Format(CultureInfo.CurrentCulture, Properties.Resources.Pixel_Value, SensitivityInput.Value);
+
+ if (peer != null && value != null)
+ {
+ peer.RaiseNotificationEvent(
+ AutomationNotificationKind.ActionCompleted,
+ AutomationNotificationProcessing.ImportantMostRecent,
+ value,
+ activityId);
+ }
+ }
+ }
+
+ private void TemplateZoneCount_ValueChanged(object sender, RoutedPropertyChangedEventArgs e)
+ {
+ if (AutomationPeer.ListenerExists(AutomationEvents.PropertyChanged))
+ {
+ SliderAutomationPeer peer =
+ FrameworkElementAutomationPeer.FromElement(TemplateZoneCount) as SliderAutomationPeer;
+ string activityId = "templateZoneCountValueChanged";
+
+ string value = string.Format(CultureInfo.CurrentCulture, Properties.Resources.Template_Zone_Count_Value, TemplateZoneCount.Value);
+
+ if (peer != null && value != null)
+ {
+ peer.RaiseNotificationEvent(
+ AutomationNotificationKind.ActionCompleted,
+ AutomationNotificationProcessing.ImportantMostRecent,
+ value,
+ activityId);
+ }
+ }
+ }
+
+ private void Spacing_ValueChanged(object sender, RoutedPropertyChangedEventArgs e)
+ {
+ if (AutomationPeer.ListenerExists(AutomationEvents.PropertyChanged))
+ {
+ SliderAutomationPeer peer =
+ FrameworkElementAutomationPeer.FromElement(Spacing) as SliderAutomationPeer;
+ string activityId = "spacingValueChanged";
+
+ string value = string.Format(CultureInfo.CurrentCulture, Properties.Resources.Pixel_Value, Spacing.Value);
if (peer != null && value != null)
{
diff --git a/src/modules/fancyzones/editor/FancyZonesEditor/Models/GridLayoutModel.cs b/src/modules/fancyzones/editor/FancyZonesEditor/Models/GridLayoutModel.cs
index cae71e2d38..9010b2e9e6 100644
--- a/src/modules/fancyzones/editor/FancyZonesEditor/Models/GridLayoutModel.cs
+++ b/src/modules/fancyzones/editor/FancyZonesEditor/Models/GridLayoutModel.cs
@@ -119,6 +119,16 @@ namespace FancyZonesEditor.Models
}
}
+ public int SpacingMinimum
+ {
+ get { return -10; }
+ }
+
+ public int SpacingMaximum
+ {
+ get { return 1000; }
+ }
+
private int _spacing = LayoutSettings.DefaultSpacing;
public GridLayoutModel()
diff --git a/src/modules/fancyzones/editor/FancyZonesEditor/Models/LayoutModel.cs b/src/modules/fancyzones/editor/FancyZonesEditor/Models/LayoutModel.cs
index 44c52a965d..a587414213 100644
--- a/src/modules/fancyzones/editor/FancyZonesEditor/Models/LayoutModel.cs
+++ b/src/modules/fancyzones/editor/FancyZonesEditor/Models/LayoutModel.cs
@@ -288,6 +288,22 @@ namespace FancyZonesEditor.Models
}
}
+ public int TemplateZoneCountMinimum
+ {
+ get
+ {
+ return 1;
+ }
+ }
+
+ public int TemplateZoneCountMaximum
+ {
+ get
+ {
+ return 128;
+ }
+ }
+
private int _zoneCount = LayoutSettings.DefaultZoneCount;
public bool IsZoneAddingAllowed
diff --git a/src/modules/fancyzones/editor/FancyZonesEditor/Properties/Resources.Designer.cs b/src/modules/fancyzones/editor/FancyZonesEditor/Properties/Resources.Designer.cs
index 43c7e819a0..deee65388c 100644
--- a/src/modules/fancyzones/editor/FancyZonesEditor/Properties/Resources.Designer.cs
+++ b/src/modules/fancyzones/editor/FancyZonesEditor/Properties/Resources.Designer.cs
@@ -213,6 +213,15 @@ namespace FancyZonesEditor.Properties {
}
}
+ ///
+ /// Looks up a localized string similar to {0} slider. Possible range is from {1} to {2}. Value is {3}..
+ ///
+ public static string Custom_slider_announce {
+ get {
+ return ResourceManager.GetString("Custom_slider_announce", resourceCulture);
+ }
+ }
+
///
/// Looks up a localized string similar to Custom layout.
///
@@ -316,15 +325,6 @@ namespace FancyZonesEditor.Properties {
}
}
- ///
- /// Looks up a localized string similar to Highlight distance slider. Possible range is from {0} to {1}. Value is {2}..
- ///
- public static string Distance_adjacent_zones_slider_announce {
- get {
- return ResourceManager.GetString("Distance_adjacent_zones_slider_announce", resourceCulture);
- }
- }
-
///
/// Looks up a localized string similar to Duplicate.
///
@@ -717,6 +717,15 @@ namespace FancyZonesEditor.Properties {
}
}
+ ///
+ /// Looks up a localized string similar to {0} pixels.
+ ///
+ public static string Pixel_Value {
+ get {
+ return ResourceManager.GetString("Pixel_Value", resourceCulture);
+ }
+ }
+
///
/// Looks up a localized string similar to px.
///
@@ -825,15 +834,6 @@ namespace FancyZonesEditor.Properties {
}
}
- ///
- /// Looks up a localized string similar to {0} pixels.
- ///
- public static string Slider_Value {
- get {
- return ResourceManager.GetString("Slider_Value", resourceCulture);
- }
- }
-
///
/// Looks up a localized string similar to Space around zones.
///
@@ -915,6 +915,15 @@ namespace FancyZonesEditor.Properties {
}
}
+ ///
+ /// Looks up a localized string similar to {0} zones.
+ ///
+ public static string Template_Zone_Count_Value {
+ get {
+ return ResourceManager.GetString("Template_Zone_Count_Value", resourceCulture);
+ }
+ }
+
///
/// Looks up a localized string similar to Templates.
///
@@ -941,5 +950,14 @@ namespace FancyZonesEditor.Properties {
return ResourceManager.GetString("Zone_Count_Increment", resourceCulture);
}
}
+
+ ///
+ /// Looks up a localized string similar to zones.
+ ///
+ public static string Zones {
+ get {
+ return ResourceManager.GetString("Zones", resourceCulture);
+ }
+ }
}
}
diff --git a/src/modules/fancyzones/editor/FancyZonesEditor/Properties/Resources.resx b/src/modules/fancyzones/editor/FancyZonesEditor/Properties/Resources.resx
index 95f79e7e3c..f98e90b9ba 100644
--- a/src/modules/fancyzones/editor/FancyZonesEditor/Properties/Resources.resx
+++ b/src/modules/fancyzones/editor/FancyZonesEditor/Properties/Resources.resx
@@ -408,12 +408,18 @@
An error occurred while parsing custom layouts.
-
- Highlight distance slider. Possible range is from {0} to {1}. Value is {2}.
+
+ {0} slider. Possible range is from {1} to {2}. Value is {3}.
-
+
{0} pixels
+
+ {0} zones
+
+
+ zones
+
Default layout for horizontal monitor orientation