Skip to content

Commit

Permalink
NumericUpDown细节修改
Browse files Browse the repository at this point in the history
  • Loading branch information
Adu committed Dec 19, 2019
1 parent 2676448 commit b0872b7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace AduSkin.Controls.Metro
{
public class AduNumericUpDownBase : TextBox
public class AduNumericUpDownBase : MetroTextBox
{
static AduNumericUpDownBase()
{
Expand All @@ -18,7 +18,7 @@ public enum UpDownOrientationEnum
}

public static readonly DependencyProperty UpDownOrientationProperty = DependencyProperty.Register("UpDownOrientation"
, typeof(UpDownOrientationEnum), typeof(TextBox));
, typeof(UpDownOrientationEnum), typeof(MetroTextBox));
/// <summary>
/// 皮肤
/// </summary>
Expand Down
4 changes: 2 additions & 2 deletions src/AduSkin/Themes/Metro/AduNumericUpDown.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -326,12 +326,12 @@
</Grid>
</Popup>

<Adu:AduPathIconButton x:Name="PART_DOWN" Grid.Column="0" PathData="{StaticResource Icon_Reduce}" PathWidth="10" Background="{StaticResource Brush}" MouseOverPathColor="{StaticResource Brush}" PressedPathColor="{StaticResource Brush}" NormalPathColor="#FFF"/>
<Adu:AduPathIconButton x:Name="PART_DOWN" Grid.Column="0" PathData="{StaticResource Icon_Reduce}" PathWidth="10" Background="{StaticResource Brush}" MouseOverBackground="{StaticResource DefaultBackground}" MouseOverPathColor="{StaticResource Brush}" PressedPathColor="{StaticResource Brush}" NormalPathColor="#FFF"/>

<ScrollViewer x:Name="PART_ContentHost" Grid.Column="1" Focusable="false" HorizontalScrollBarVisibility="Hidden"
VerticalScrollBarVisibility="Hidden" />

<Adu:AduPathIconButton x:Name="PART_UP" Grid.Column="2" PathData="{StaticResource Icon_Add}" PathWidth="12" Background="{StaticResource Brush}" MouseOverPathColor="{StaticResource Brush}" PressedPathColor="{StaticResource Brush}" NormalPathColor="#FFF" />
<Adu:AduPathIconButton x:Name="PART_UP" Grid.Column="2" PathData="{StaticResource Icon_Add}" PathWidth="12" Background="{StaticResource Brush}" MouseOverBackground="{StaticResource DefaultBackground}" MouseOverPathColor="{StaticResource Brush}" PressedPathColor="{StaticResource Brush}" NormalPathColor="#FFF" />
</Grid>
</Border>
<ControlTemplate.Triggers>
Expand Down

0 comments on commit b0872b7

Please sign in to comment.