Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace + and - for arrows in NumericUpDown #4476

Closed
grizoood opened this issue Apr 5, 2024 · 3 comments
Closed

Replace + and - for arrows in NumericUpDown #4476

grizoood opened this issue Apr 5, 2024 · 3 comments

Comments

@grizoood
Copy link

grizoood commented Apr 5, 2024

I'm looking for a way to replace the + and - in numericupdown with arrows. Could you help me do this.

Thk

image

@timunie
Copy link
Collaborator

timunie commented Apr 5, 2024

Why do you make it an issue instead of a Q&A? Please close this.

Here is the original style:

<Setter Property="ButtonDownContentTemplate">
<Setter.Value>
<DataTemplate>
<mah:PathIcon Width="14"
Height="14"
HorizontalAlignment="Center"
VerticalAlignment="Center"
Data="M19,13H5V11H19V13Z" />
</DataTemplate>
</Setter.Value>
</Setter>
<Setter Property="ButtonUpContentTemplate">
<Setter.Value>
<DataTemplate>
<mah:PathIcon Width="14"
Height="14"
HorizontalAlignment="Center"
VerticalAlignment="Center"
Data="M19,13H13V19H11V13H5V11H11V5H13V11H19V13Z" />
</DataTemplate>
</Setter.Value>
</Setter>

@grizoood
Copy link
Author

grizoood commented Apr 5, 2024

I agree, but the buttons always remain vertical and not horizontal

@grizoood grizoood closed this as completed Apr 5, 2024
@grizoood
Copy link
Author

grizoood commented Apr 5, 2024

In fact, it's more of a question/answer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants