/// </summary>\r
private int maxWidth;\r
\r
+ /// <summary>\r
+ /// The show keep ar backing field.\r
+ /// </summary>\r
+ private bool showKeepAr = true;\r
+\r
#endregion\r
\r
#region Constructors and Destructors\r
}\r
}\r
\r
+ /// <summary>\r
+ /// Gets or sets a value indicating whether show keep ar.\r
+ /// </summary>\r
+ public bool ShowKeepAR\r
+ {\r
+ get\r
+ {\r
+ return this.showKeepAr;\r
+ }\r
+ set\r
+ {\r
+ this.showKeepAr = value;\r
+ this.NotifyOfPropertyChange(() => this.ShowKeepAR);\r
+ }\r
+ }\r
+\r
#endregion\r
\r
#region Implemented Interfaces\r
this.CalculateAnamorphicSizes().Height);\r
\r
this.ShowDisplaySize = true;\r
+ this.ShowKeepAR = true;\r
switch (this.SelectedAnamorphicMode)\r
{\r
case Anamorphic.None:\r
this.ShowCustomAnamorphicControls = false;\r
this.ShowModulus = true;\r
this.ShowDisplaySize = false;\r
+ this.ShowKeepAR = true;\r
this.SelectedModulus = 16; // Reset\r
this.Width = this.sourceResolution.Width;\r
this.SetDisplaySize();\r
this.ShowCustomAnamorphicControls = false;\r
this.ShowModulus = false;\r
this.SelectedModulus = 16; // Reset\r
+ this.ShowKeepAR = false;\r
\r
this.Width = 0;\r
this.Height = 0;\r
this.ShowModulus = true;\r
this.Width = this.sourceResolution.Width;\r
this.Height = 0;\r
+ this.ShowKeepAR = false;\r
\r
this.SetDisplaySize();\r
break;\r
this.WidthControlEnabled = true;\r
this.HeightControlEnabled = true;\r
this.ShowCustomAnamorphicControls = true;\r
- this.MaintainAspectRatio = true;\r
+ this.MaintainAspectRatio = false; // TODO Fix when implementing custom\r
this.ShowModulus = true;\r
+ this.ShowDisplaySize = false; // Disabled for Custom until we implement it properly. TODO\r
+ this.ShowKeepAR = false;\r
\r
// Ignore any of the users current settings and reset to source to make things easier.\r
this.Width = this.sourceResolution.Width;\r
this.DisplayWidth = (this.Width * this.ParWidth / this.ParHeight);\r
}\r
\r
- this.SetDisplaySize();\r
+ //this.SetDisplaySize();\r
break;\r
}\r
}\r
<UserControl.Resources>\r
<Converters:BooleanConverter x:Key="boolConverter" />\r
<Converters:BooleanToVisibilityConverter x:Key="boolToVisConverter" />\r
+ <Converters:BooleanToHiddenVisibilityConverter x:Key="boolToVisHiddenConverter" />\r
<Style TargetType="controls:NumberBox">\r
<Setter Property="Height" Value="24" />\r
</Style>\r
<Label Content="Height:" Grid.Row="1" Grid.Column="2" />\r
<controls:NumberBox Number="{Binding Height, Mode=TwoWay}" IsEnabled="{Binding HeightControlEnabled}" Modulus="{Binding SelectedModulus, Mode=OneWay}" \r
Minimum="0" Grid.Row="1" Grid.Column="3" Width="60" />\r
- <CheckBox Content="Keep Aspect Ratio" IsChecked="{Binding MaintainAspectRatio}" VerticalAlignment="Center" Margin="5,0,0,0" />\r
+ <CheckBox Content="Keep Aspect Ratio" IsChecked="{Binding MaintainAspectRatio}"\r
+ Visibility="{Binding ShowKeepAR, Converter={StaticResource boolToVisHiddenConverter}}" \r
+ VerticalAlignment="Center" Margin="5,0,0,0" />\r
</StackPanel>\r
\r
<!-- Row 3-->\r