From 15f9b5ebdc6a4f22a8bc44ee52e4b721c94c8c60 Mon Sep 17 00:00:00 2001 From: heartacker Date: Sat, 25 Mar 2023 11:34:18 +0800 Subject: [PATCH 1/2] add IsUpdateValueWhenLostFocus to ui --- .../UpDownDemoLib/Views/ByteUpDownDemo.xaml | 487 +++++------ .../Views/DecimalUpDownDemo.xaml | 472 +++++------ .../UpDownDemoLib/Views/DoubleUpDownDemo.xaml | 466 +++++------ .../UpDownDemoLib/Views/FloatUpDownDemo.xaml | 472 +++++------ .../UpDownDemoLib/Views/LongUpDownDemo.xaml | 462 ++++++----- .../Views/NumericUpDownDemo.xaml | 490 +++++------ .../Views/PercentageUpDownDemo.xaml | 768 +++++++++--------- .../UpDownDemoLib/Views/SByteUpDownDemo.xaml | 486 +++++------ .../UpDownDemoLib/Views/ShortUpDownDemo.xaml | 486 +++++------ .../Views/UIntegerUpDownDemo.xaml | 488 +++++------ .../UpDownDemoLib/Views/ULongUpDownDemo.xaml | 486 +++++------ .../UpDownDemoLib/Views/UShortUpDownDemo.xaml | 486 +++++------ 12 files changed, 3109 insertions(+), 2940 deletions(-) diff --git a/source/Demo/UpDownDemoLib/Views/ByteUpDownDemo.xaml b/source/Demo/UpDownDemoLib/Views/ByteUpDownDemo.xaml index 457d027..dc76ece 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..df8c4cf 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..41c0195 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..5f30942 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..430cdfc 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..571944e 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..24ad580 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..287c63b 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..efbcf25 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..c2de250 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 + + - - - - - - + + + + + + - - - - - - + + + + + + - - + + + - - - - - + + + + + - + - + - + - - - + + + - - - + + + From deb5a38ff6ac0d4f212e30dddc3f95f0c2f8eebf Mon Sep 17 00:00:00 2001 From: heartacker Date: Sun, 26 Mar 2023 06:46:53 +0800 Subject: [PATCH 2/2] change static resource to dynamic resource to fix the ide error --- source/Demo/UpDownDemoLib/Views/ByteUpDownDemo.xaml | 2 +- source/Demo/UpDownDemoLib/Views/DecimalUpDownDemo.xaml | 4 ++-- source/Demo/UpDownDemoLib/Views/FloatUpDownDemo.xaml | 4 ++-- source/Demo/UpDownDemoLib/Views/LongUpDownDemo.xaml | 4 ++-- source/Demo/UpDownDemoLib/Views/NumericUpDownDemo.xaml | 4 ++-- source/Demo/UpDownDemoLib/Views/SByteUpDownDemo.xaml | 4 ++-- source/Demo/UpDownDemoLib/Views/ShortUpDownDemo.xaml | 4 ++-- source/Demo/UpDownDemoLib/Views/UIntegerUpDownDemo.xaml | 4 ++-- source/Demo/UpDownDemoLib/Views/ULongUpDownDemo.xaml | 4 ++-- source/Demo/UpDownDemoLib/Views/UShortUpDownDemo.xaml | 4 ++-- 10 files changed, 19 insertions(+), 19 deletions(-) diff --git a/source/Demo/UpDownDemoLib/Views/ByteUpDownDemo.xaml b/source/Demo/UpDownDemoLib/Views/ByteUpDownDemo.xaml index dc76ece..05c739c 100644 --- a/source/Demo/UpDownDemoLib/Views/ByteUpDownDemo.xaml +++ b/source/Demo/UpDownDemoLib/Views/ByteUpDownDemo.xaml @@ -214,7 +214,7 @@ DisplayLength="13" IsMouseDragEnabled="{Binding ElementName=IsMouseDragEnabledCheckBox, Path=IsChecked}" IsReadOnly="False" - IsUpdateValueWhenLostFocus="{Binding ElementName=UpdateValueWhenLostFocusCheckBox, Path=IsChecked}" + IsUpdateValueWhenLostFocus="True" LargeStepSize="{Binding LargeStepSize, Mode=OneWay, UpdateSourceTrigger=PropertyChanged}" MaxValue="{Binding MaximumValue}" MinValue="{Binding MinimumValue}" diff --git a/source/Demo/UpDownDemoLib/Views/DecimalUpDownDemo.xaml b/source/Demo/UpDownDemoLib/Views/DecimalUpDownDemo.xaml index df8c4cf..787f1bb 100644 --- a/source/Demo/UpDownDemoLib/Views/DecimalUpDownDemo.xaml +++ b/source/Demo/UpDownDemoLib/Views/DecimalUpDownDemo.xaml @@ -193,8 +193,8 @@ ToolTip="Test whether the numeric control can be used in a Pop-uo control." />