diff --git a/source/Demo/UpDownDemoLib/Views/ByteUpDownDemo.xaml b/source/Demo/UpDownDemoLib/Views/ByteUpDownDemo.xaml index 457d027..05c739c 100644 --- a/source/Demo/UpDownDemoLib/Views/ByteUpDownDemo.xaml +++ b/source/Demo/UpDownDemoLib/Views/ByteUpDownDemo.xaml @@ -1,264 +1,279 @@ - - - - + + + + - - - - - + + + + + - + - + - - - - - - - - - - - - + + + + + + + + + + + + - - - - - - - + + + + + + + - - - - - + + + + + - - + + - - - + + + - - + + - - + + - + - + - + - - + + - - + + - + - + - - Left - Center - Right - Stretch - - + + Left + Center + Right + Stretch + + - - - - - - + + + + + + - - - - - - + + + + + + - - + + + - - - - - + + + + + - + - + - + - - - + + + - - - + + + diff --git a/source/Demo/UpDownDemoLib/Views/DecimalUpDownDemo.xaml b/source/Demo/UpDownDemoLib/Views/DecimalUpDownDemo.xaml index 54db41f..787f1bb 100644 --- a/source/Demo/UpDownDemoLib/Views/DecimalUpDownDemo.xaml +++ b/source/Demo/UpDownDemoLib/Views/DecimalUpDownDemo.xaml @@ -1,256 +1,270 @@  - - - + x:Class="UpDownDemoLib.Views.DecimalUpDownDemo" + xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" + xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" + xmlns:d="http://schemas.microsoft.com/expression/blend/2008" + xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" + d:DesignHeight="450" + d:DesignWidth="800" + mc:Ignorable="d"> + + + - - - - - + + + + + - + IsDisplayLengthFixed="True" + IsMouseDragEnabled="{Binding ElementName=IsMouseDragEnabledCheckBox, Path=IsChecked}" + IsReadOnly="False" + IsUpdateValueWhenLostFocus="{Binding ElementName=UpdateValueWhenLostFocusCheckBox, Path=IsChecked}" + LargeStepSize="{Binding LargeStepSize, Mode=OneWay, UpdateSourceTrigger=PropertyChanged}" + MaxValue="{Binding MaximumValue}" + MinValue="{Binding MinimumValue}" + MouseWheelAccelaratorKey="{Binding AccelModifierKey, Mode=OneWay, UpdateSourceTrigger=PropertyChanged}" + StepSize="{Binding StepSize, Mode=OneWay, UpdateSourceTrigger=PropertyChanged}" + ToolTip="{Binding ToolTip, Mode=OneWay, UpdateSourceTrigger=PropertyChanged}" + Value="{Binding Value, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" /> - + - - - - - - - - - - - - + + + + + + + + + + + + - - - - - - - + + + + + + + - - - - - + + + + + - - + + - - - + + + - - + + - - - - + + + + - + - - + + - - + + - + - - Left - Center - Right - Stretch - - + + Left + Center + Right + Stretch + + - - - - - - + + + + + + - - - - - - + + + + + + - - + + + - - - - - + + + + + - + - + - + - - - + + + - - - + + + diff --git a/source/Demo/UpDownDemoLib/Views/DoubleUpDownDemo.xaml b/source/Demo/UpDownDemoLib/Views/DoubleUpDownDemo.xaml index 4ce41bf..6eb3c2b 100644 --- a/source/Demo/UpDownDemoLib/Views/DoubleUpDownDemo.xaml +++ b/source/Demo/UpDownDemoLib/Views/DoubleUpDownDemo.xaml @@ -1,253 +1,267 @@  - - - + x:Class="UpDownDemoLib.Views.DoubleUpDownDemo" + xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" + xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" + xmlns:d="http://schemas.microsoft.com/expression/blend/2008" + xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" + d:DesignHeight="450" + d:DesignWidth="800" + mc:Ignorable="d"> + + + - - - - - + + + + + - + IsDisplayLengthFixed="True" + IsMouseDragEnabled="{Binding ElementName=IsMouseDragEnabledCheckBox, Path=IsChecked}" + IsReadOnly="False" + IsUpdateValueWhenLostFocus="{Binding ElementName=UpdateValueWhenLostFocusCheckBox, Path=IsChecked}" + LargeStepSize="{Binding LargeStepSize, Mode=OneWay, UpdateSourceTrigger=PropertyChanged}" + MaxValue="{Binding MaximumValue}" + MinValue="{Binding MinimumValue}" + MouseWheelAccelaratorKey="{Binding AccelModifierKey, Mode=OneWay, UpdateSourceTrigger=PropertyChanged}" + StepSize="{Binding StepSize, Mode=OneWay, UpdateSourceTrigger=PropertyChanged}" + ToolTip="{Binding ToolTip, Mode=OneWay, UpdateSourceTrigger=PropertyChanged}" + Value="{Binding Value, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" /> - + - - - - - - - - - - - - + + + + + + + + + + + + - - - - - - - + + + + + + + - - - - - + + + + + - - + + - - - + + + - - + + - - - - + + + + - + - - + + - - + + - + - - Left - Center - Right - Stretch - - + + Left + Center + Right + Stretch + + - - - - - - + + + + + + - - - - - - + + + + + + - - + + + - - - - - + + + + + - + - + - + - - - + + + - - - + + + diff --git a/source/Demo/UpDownDemoLib/Views/FloatUpDownDemo.xaml b/source/Demo/UpDownDemoLib/Views/FloatUpDownDemo.xaml index 3a463a8..98a44bb 100644 --- a/source/Demo/UpDownDemoLib/Views/FloatUpDownDemo.xaml +++ b/source/Demo/UpDownDemoLib/Views/FloatUpDownDemo.xaml @@ -1,256 +1,270 @@  - - - + x:Class="UpDownDemoLib.Views.FloatUpDownDemo" + xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" + xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" + xmlns:d="http://schemas.microsoft.com/expression/blend/2008" + xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" + d:DesignHeight="450" + d:DesignWidth="800" + mc:Ignorable="d"> + + + - - - - - + + + + + - + IsDisplayLengthFixed="True" + IsMouseDragEnabled="{Binding ElementName=IsMouseDragEnabledCheckBox, Path=IsChecked}" + IsReadOnly="False" + IsUpdateValueWhenLostFocus="{Binding ElementName=UpdateValueWhenLostFocusCheckBox, Path=IsChecked}" + LargeStepSize="{Binding LargeStepSize, Mode=OneWay, UpdateSourceTrigger=PropertyChanged}" + MaxValue="{Binding MaximumValue}" + MinValue="{Binding MinimumValue}" + MouseWheelAccelaratorKey="{Binding AccelModifierKey, Mode=OneWay, UpdateSourceTrigger=PropertyChanged}" + StepSize="{Binding StepSize, Mode=OneWay, UpdateSourceTrigger=PropertyChanged}" + ToolTip="{Binding ToolTip, Mode=OneWay, UpdateSourceTrigger=PropertyChanged}" + Value="{Binding Value, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" /> - + - - - - - - - - - - - - + + + + + + + + + + + + - - - - - - - + + + + + + + - - - - - + + + + + - - + + - - - + + + - - + + - - - - + + + + - + - - + + - - + + - + - - Left - Center - Right - Stretch - - + + Left + Center + Right + Stretch + + - - - - - - + + + + + + - - - - - - + + + + + + - - + + + - - - - - + + + + + - + - + - + - - - + + + - - - + + + diff --git a/source/Demo/UpDownDemoLib/Views/LongUpDownDemo.xaml b/source/Demo/UpDownDemoLib/Views/LongUpDownDemo.xaml index 54a39f0..cedb5b6 100644 --- a/source/Demo/UpDownDemoLib/Views/LongUpDownDemo.xaml +++ b/source/Demo/UpDownDemoLib/Views/LongUpDownDemo.xaml @@ -1,239 +1,253 @@  - - - + x:Class="UpDownDemoLib.Views.LongUpDownDemo" + xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" + xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" + xmlns:d="http://schemas.microsoft.com/expression/blend/2008" + xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" + d:DesignHeight="450" + d:DesignWidth="800" + mc:Ignorable="d"> + + + - - - - - + + + + + - + HorizontalContentAlignment="{Binding HzntalContentAlignment}" + DisplayLength="5" + FormatString="{Binding FormatString, Mode=OneWay, UpdateSourceTrigger=PropertyChanged}" + IsDisplayLengthFixed="True" + IsMouseDragEnabled="{Binding ElementName=IsMouseDragEnabledCheckBox, Path=IsChecked}" + IsReadOnly="False" + IsUpdateValueWhenLostFocus="{Binding ElementName=UpdateValueWhenLostFocusCheckBox, Path=IsChecked}" + LargeStepSize="{Binding LargeStepSize, Mode=OneWay, UpdateSourceTrigger=PropertyChanged}" + MaxValue="{Binding MaximumValue}" + MinValue="{Binding MinimumValue}" + MouseWheelAccelaratorKey="{Binding AccelModifierKey, Mode=OneWay, UpdateSourceTrigger=PropertyChanged}" + NumberStyle="{Binding NumberStyle, Mode=OneWay, UpdateSourceTrigger=PropertyChanged}" + StepSize="{Binding StepSize, Mode=OneWay, UpdateSourceTrigger=PropertyChanged}" + ToolTip="{Binding ToolTip, Mode=OneWay, UpdateSourceTrigger=PropertyChanged}" + Value="{Binding Value, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" /> - + - - - - - - - - - - - - + + + + + + + + + + + + - - - - - - - + + + + + + + - - - - - + + + + + - - + + - - - + + + - - + + - - - - + + + + - + - - + + - - + + - + - + - - Left - Center - Right - Stretch - - + + Left + Center + Right + Stretch + + - - - - - - + + + + + + - - - - - - + + + + + + - - + + + + Margin="0,3" + BorderBrush="Gray" + BorderThickness="1"> @@ -243,19 +257,19 @@ + Margin="3" + Content="Alt" + IsChecked="{Binding Path=AccelModifierKey, Mode=TwoWay, Converter={StaticResource enumConverter}, ConverterParameter=Alt}" /> + Margin="3" + Content="Control" + IsChecked="{Binding Path=AccelModifierKey, Mode=TwoWay, Converter={StaticResource enumConverter}, ConverterParameter=Control}" /> + Margin="3" + Content="Shift" + IsChecked="{Binding Path=AccelModifierKey, Mode=TwoWay, Converter={StaticResource enumConverter}, ConverterParameter=Shift}" /> - - - + + + diff --git a/source/Demo/UpDownDemoLib/Views/NumericUpDownDemo.xaml b/source/Demo/UpDownDemoLib/Views/NumericUpDownDemo.xaml index 22d6115..618e8da 100644 --- a/source/Demo/UpDownDemoLib/Views/NumericUpDownDemo.xaml +++ b/source/Demo/UpDownDemoLib/Views/NumericUpDownDemo.xaml @@ -1,263 +1,277 @@  - - - + x:Class="UpDownDemoLib.Views.NumericUpDownDemo" + xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" + xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" + xmlns:d="http://schemas.microsoft.com/expression/blend/2008" + xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" + d:DesignHeight="450" + d:DesignWidth="800" + mc:Ignorable="d"> + + + - - - - - + + + + + - + - + - - - - - - - - - - - - + + + + + + + + + + + + - - - - - - - + + + + + + + - - - - - + + + + + - - + + - - - + + + - - + + - - - - + + + + - + - - + + - - + + - + - + - - Left - Center - Right - Stretch - - + + Left + Center + Right + Stretch + + - - - - - - + + + + + + - - - - - - + + + + + + - - + + + - - - - - + + + + + - + - + - + - - - + + + - - - - - + + + + diff --git a/source/Demo/UpDownDemoLib/Views/PercentageUpDownDemo.xaml b/source/Demo/UpDownDemoLib/Views/PercentageUpDownDemo.xaml index 6ddb58a..1971bd3 100644 --- a/source/Demo/UpDownDemoLib/Views/PercentageUpDownDemo.xaml +++ b/source/Demo/UpDownDemoLib/Views/PercentageUpDownDemo.xaml @@ -1,381 +1,395 @@  - - - - - - - + x:Class="UpDownDemoLib.Views.PercentageUpDownDemo" + xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" + xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" + xmlns:d="http://schemas.microsoft.com/expression/blend/2008" + xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" + d:DesignHeight="450" + d:DesignWidth="800" + mc:Ignorable="d"> + + + + + + + - - - - - - - + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Left - Center - Right - Stretch - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - This sample demonstrates the usage of a converter to scale between - the up/down value being displayed and manipulated versus the value being - stored in the backend. - A converter is used at the binding of the up/down control to scale - values up and down as the data goes from the viewmodel to the view - and vice versa. - - - - - - - - - - - - - - - - - - - + IsDisplayLengthFixed="True" + IsMouseDragEnabled="{Binding ElementName=IsMouseDragEnabledCheckBox, Path=IsChecked}" + IsReadOnly="False" + IsUpdateValueWhenLostFocus="{Binding ElementName=UpdateValueWhenLostFocusCheckBox, Path=IsChecked}" + LargeStepSize="{Binding LargeStepSize, Mode=OneWay, UpdateSourceTrigger=PropertyChanged}" + MaxValue="{Binding MaximumValue, Converter={StaticResource FactorToDoubleConverter}, Mode=OneWay, UpdateSourceTrigger=PropertyChanged}" + MinValue="{Binding MinimumValue, Converter={StaticResource FactorToDoubleConverter}, Mode=OneWay, UpdateSourceTrigger=PropertyChanged}" + MouseWheelAccelaratorKey="{Binding AccelModifierKey, Mode=OneWay, UpdateSourceTrigger=PropertyChanged}" + StepSize="{Binding StepSize, Converter={StaticResource FactorToDoubleConverter}, Mode=OneWay, UpdateSourceTrigger=PropertyChanged}" + ToolTip="{Binding ToolTip, Mode=OneWay, UpdateSourceTrigger=PropertyChanged}" + Value="{Binding Value, Converter={StaticResource FactorToDoubleConverter}, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" /> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Left + Center + Right + Stretch + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + This sample demonstrates the usage of a converter to scale between + the up/down value being displayed and manipulated versus the value being + stored in the backend. + A converter is used at the binding of the up/down control to scale + values up and down as the data goes from the viewmodel to the view + and vice versa. + + + + + + + + + + + + + + + + + + + - - - + + + diff --git a/source/Demo/UpDownDemoLib/Views/SByteUpDownDemo.xaml b/source/Demo/UpDownDemoLib/Views/SByteUpDownDemo.xaml index b872464..83019b9 100644 --- a/source/Demo/UpDownDemoLib/Views/SByteUpDownDemo.xaml +++ b/source/Demo/UpDownDemoLib/Views/SByteUpDownDemo.xaml @@ -1,264 +1,278 @@  - - - + x:Class="UpDownDemoLib.Views.SByteUpDownDemo" + xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" + xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" + xmlns:d="http://schemas.microsoft.com/expression/blend/2008" + xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" + d:DesignHeight="450" + d:DesignWidth="800" + mc:Ignorable="d"> + + + - - - - - + + + + + - + - + - - - - - - - - - - - - + + + + + + + + + + + + - - - - - - - + + + + + + + - - - - - + + + + + - - + + - - - + + + - - + + - - - + + + - + - + - - + + - - + + - + - + - - Left - Center - Right - Stretch - - + + Left + Center + Right + Stretch + + - - - - - - + + + + + + - - - - - - + + + + + + - - + + + - - - - - + + + + + - + - + - + - - - + + + - - - + + + diff --git a/source/Demo/UpDownDemoLib/Views/ShortUpDownDemo.xaml b/source/Demo/UpDownDemoLib/Views/ShortUpDownDemo.xaml index 540d351..cd8ce3b 100644 --- a/source/Demo/UpDownDemoLib/Views/ShortUpDownDemo.xaml +++ b/source/Demo/UpDownDemoLib/Views/ShortUpDownDemo.xaml @@ -1,264 +1,278 @@  - - - + x:Class="UpDownDemoLib.Views.ShortUpDownDemo" + xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" + xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" + xmlns:d="http://schemas.microsoft.com/expression/blend/2008" + xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" + d:DesignHeight="450" + d:DesignWidth="800" + mc:Ignorable="d"> + + + - - - - - + + + + + - + - + - - - - - - - - - - - - + + + + + + + + + + + + - - - - - - - + + + + + + + - - - - - + + + + + - - + + - - - + + + - - + + - - - + + + - + - + - - + + - - + + - + - + - - Left - Center - Right - Stretch - - + + Left + Center + Right + Stretch + + - - - - - - + + + + + + - - - - - - + + + + + + - - + + + - - - - - + + + + + - + - + - + - - - + + + - - - + + + diff --git a/source/Demo/UpDownDemoLib/Views/UIntegerUpDownDemo.xaml b/source/Demo/UpDownDemoLib/Views/UIntegerUpDownDemo.xaml index 4957aef..bda91fe 100644 --- a/source/Demo/UpDownDemoLib/Views/UIntegerUpDownDemo.xaml +++ b/source/Demo/UpDownDemoLib/Views/UIntegerUpDownDemo.xaml @@ -1,265 +1,279 @@  - - - + x:Class="UpDownDemoLib.Views.UIntegerUpDownDemo" + xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" + xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" + xmlns:d="http://schemas.microsoft.com/expression/blend/2008" + xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" + d:DesignHeight="450" + d:DesignWidth="800" + mc:Ignorable="d"> + + + - - - - - + + + + + - - + + - + - - - - - - - - - - - - + + + + + + + + + + + + - - - - - - - + + + + + + + - - - - - + + + + + - - + + - - - + + + - - + + - - - + + + - + - + - - + + - - + + - + - + - - Left - Center - Right - Stretch - - + + Left + Center + Right + Stretch + + - - - - - - + + + + + + - - - - - - + + + + + + - - + + + - - - - - + + + + + - + - + - + - - - + + + - - - + + + diff --git a/source/Demo/UpDownDemoLib/Views/ULongUpDownDemo.xaml b/source/Demo/UpDownDemoLib/Views/ULongUpDownDemo.xaml index 672d2b5..848bafe 100644 --- a/source/Demo/UpDownDemoLib/Views/ULongUpDownDemo.xaml +++ b/source/Demo/UpDownDemoLib/Views/ULongUpDownDemo.xaml @@ -1,264 +1,278 @@  - - - + x:Class="UpDownDemoLib.Views.ULongUpDownDemo" + xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" + xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" + xmlns:d="http://schemas.microsoft.com/expression/blend/2008" + xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" + d:DesignHeight="450" + d:DesignWidth="800" + mc:Ignorable="d"> + + + - - - - - + + + + + - + - + - - - - - - - - - - - - + + + + + + + + + + + + - - - - - - - + + + + + + + - - - - - + + + + + - - + + - - - + + + - - + + - - - + + + - + - + - - + + - - + + - + - + - - Left - Center - Right - Stretch - - + + Left + Center + Right + Stretch + + - - - - - - + + + + + + - - - - - - + + + + + + - - + + + - - - - - + + + + + - + - + - + - - - + + + - - - + + + diff --git a/source/Demo/UpDownDemoLib/Views/UShortUpDownDemo.xaml b/source/Demo/UpDownDemoLib/Views/UShortUpDownDemo.xaml index b575d87..ef357e8 100644 --- a/source/Demo/UpDownDemoLib/Views/UShortUpDownDemo.xaml +++ b/source/Demo/UpDownDemoLib/Views/UShortUpDownDemo.xaml @@ -1,263 +1,277 @@  - - - + x:Class="UpDownDemoLib.Views.UShortUpDownDemo" + xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" + xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" + xmlns:d="http://schemas.microsoft.com/expression/blend/2008" + xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" + d:DesignHeight="450" + d:DesignWidth="800" + mc:Ignorable="d"> + + + - - - - - - + + + + + + - + - - - - - - - - - - - - + + + + + + + + + + + + - - - - - - - + + + + + + + - - - - - + + + + + - - + + - - - + + + - - + + - - - + + + - + - + - - + + - - + + - + - + - - Left - Center - Right - Stretch - - + + Left + Center + Right + Stretch + + - - - - - - + + + + + + - - - - - - + + + + + + - - + + + - - - - - + + + + + - + - + - + - - - + + + - - - + + +