1

I am using WinRT XAML Toolkit in Windows Universal Application C#. I want to change distance between plus(+) and minus(-) buttons and increase size of both buttons.

There are templates available for WPF but not for Universal app.

Here is image Please advice me how can I achieve it?

Beelal Ahmed
  • 51
  • 1
  • 8

1 Answers1

1

The template is in the toolkit here.

You might be able to get what you want by changing these button styles to add the Margin:

<!-- DecrementButtonStyle -->
<Style
    x:Key="DecrementButtonStyle"
    BasedOn="{StaticResource NumericUpDownButtonStyle}"
    TargetType="RepeatButton">
    <Setter
        Property="Content"
        Value="&#x2796;" />
    <Setter
        Property="Margin"
        Value="5" />
</Style>

<!-- IncrementButtonStyle -->
<Style
    x:Key="IncrementButtonStyle"
    BasedOn="{StaticResource NumericUpDownButtonStyle}"
    TargetType="RepeatButton">
    <Setter
        Property="Content"
        Value="&#x2795;" />
    <Setter
        Property="Margin"
        Value="5" />
</Style>
Filip Skakun
  • 31,624
  • 6
  • 74
  • 100
  • Its breaking code with exception in Windows Universal application. – Beelal Ahmed Jul 24 '16 at 08:05
  • Well, what's the exception and stack? BTW, I just realized the buttons in the template already have margins specified, so you might need to set them elsewhere in the template instead. – Filip Skakun Jul 25 '16 at 14:45