Windows Universal Application C# で WinRT XAML Toolkit を使用しています。プラス (+) ボタンとマイナス (-) ボタンの間の距離を変更し、両方のボタンのサイズを大きくしたい。
WPF で使用できるテンプレートがありますが、ユニバーサル アプリでは使用できません。
ここに画像があり ますどうすればそれを達成できますか?
Windows Universal Application C# で WinRT XAML Toolkit を使用しています。プラス (+) ボタンとマイナス (-) ボタンの間の距離を変更し、両方のボタンのサイズを大きくしたい。
WPF で使用できるテンプレートがありますが、ユニバーサル アプリでは使用できません。
ここに画像があり ますどうすればそれを達成できますか?
テンプレートは、こちらのツールキットにあります。
これらのボタンのスタイルを変更して以下を追加することで、必要なものを取得できる場合がありますMargin
。
<!-- DecrementButtonStyle -->
<Style
x:Key="DecrementButtonStyle"
BasedOn="{StaticResource NumericUpDownButtonStyle}"
TargetType="RepeatButton">
<Setter
Property="Content"
Value="➖" />
<Setter
Property="Margin"
Value="5" />
</Style>
<!-- IncrementButtonStyle -->
<Style
x:Key="IncrementButtonStyle"
BasedOn="{StaticResource NumericUpDownButtonStyle}"
TargetType="RepeatButton">
<Setter
Property="Content"
Value="➕" />
<Setter
Property="Margin"
Value="5" />
</Style>