提交 068c78a6 编写于 作者: 末城via

1.1.9.2

上级 0cf22a0c
...@@ -124,5 +124,7 @@ ...@@ -124,5 +124,7 @@
Text="{Binding Now, Source={x:Static pu:Tools.DateTime}, StringFormat='MM/dd/yyyy HH:mm:ss'}" /> Text="{Binding Now, Source={x:Static pu:Tools.DateTime}, StringFormat='MM/dd/yyyy HH:mm:ss'}" />
</Grid> </Grid>
</Grid> </Grid>
<pu:NumberInput Maximum="20"
Interval="4" />
</Grid> </Grid>
</pu:WindowX> </pu:WindowX>
\ No newline at end of file
...@@ -428,12 +428,12 @@ namespace Panuon.WPF.UI ...@@ -428,12 +428,12 @@ namespace Panuon.WPF.UI
#region Methods #region Methods
public void Up() public void Up()
{ {
SetValue(ValueProperty, Value + Interval); SetValue(ValueProperty, Math.Max(Minimum, Math.Min(Maximum, Value + Interval)));
} }
public void Down() public void Down()
{ {
SetValue(ValueProperty, Value - Interval); SetValue(ValueProperty, Math.Max(Minimum, Math.Min(Maximum, Value - Interval)));
} }
#endregion #endregion
......
...@@ -20,5 +20,5 @@ using System.Windows; ...@@ -20,5 +20,5 @@ using System.Windows;
ResourceDictionaryLocation.SourceAssembly ResourceDictionaryLocation.SourceAssembly
)] )]
[assembly: AssemblyVersion("1.1.9.1")] [assembly: AssemblyVersion("1.1.9.2")]
[assembly: AssemblyFileVersion("1.1.9.1")] [assembly: AssemblyFileVersion("1.1.9.2")]
\ No newline at end of file \ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册