fixed #313
This commit is contained in:
1 parent
5ac4c644d5
commit
3957a3b7bb
2 files changed
+2
-8
No files matched your search
@@ -24,7 +24,7 @@
|
|||||||
</Style>
|
</Style>
|
||||||
</Border.Resources>
|
</Border.Resources>
|
||||||
<DockPanel>
|
<DockPanel>
|
||||||
<Button Command="{Binding OpenOverviewCmd}" DockPanel.Dock="Top" HorizontalAlignment="Stretch" Margin="4,4,4,0" Content="{x:Static langs:Lang.Overview}"/>
|
<Button Command="{Binding OpenOverviewCmd}" DockPanel.Dock="Top" HorizontalAlignment="Stretch" Margin="4" Content="{x:Static langs:Lang.Overview}"/>
|
||||||
<TabControl SelectionChanged="TabControl_OnSelectionChanged" ItemsSource="{Binding DemoInfoList}" Style="{StaticResource TabControlInLine}" Background="Transparent" SelectedIndex="0">
|
<TabControl SelectionChanged="TabControl_OnSelectionChanged" ItemsSource="{Binding DemoInfoList}" Style="{StaticResource TabControlInLine}" Background="Transparent" SelectedIndex="0">
|
||||||
<TabControl.ItemTemplate>
|
<TabControl.ItemTemplate>
|
||||||
<DataTemplate>
|
<DataTemplate>
|
||||||
|
|||||||
@@ -196,13 +196,7 @@ namespace HandyControl.Controls
|
|||||||
ctl.Value = maximum;
|
ctl.Value = maximum;
|
||||||
}
|
}
|
||||||
|
|
||||||
var result = num > maximum ? maximum : num;
|
return num > maximum ? maximum : num;
|
||||||
if (!ctl.DecimalPlaces.HasValue)
|
|
||||||
{
|
|
||||||
result = Math.Floor(result);
|
|
||||||
}
|
|
||||||
|
|
||||||
return result;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|||||||
Reference in new issue
Block a user