DecimalUpDown style #4036
Unanswered
Duploman72
asked this question in
Q&A
Replies: 2 comments
-
|
Great question. It is not overly obvious, but there is a way to take control of the internal buttons using a style and modify their properties like this. The key is to make sure the style is named <materialDesign:DecimalUpDown MinWidth="0"
Value="12.5"
Width="80">
<materialDesign:DecimalUpDown.Resources>
<Style x:Key="NestedNumericUpDownButtonsStyle"
TargetType="ButtonBase"
BasedOn="{StaticResource MaterialDesignNumericUpDownButtonsStyle}">
<Setter Property="Visibility" Value="Collapsed" />
</Style>
</materialDesign:DecimalUpDown.Resources>
</materialDesign:DecimalUpDown> |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Great, that works for the up/down buttons. Thank's Any ideas about the control's width? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
Is it possible to size the DecimalUpDown control ?
I'm using it in a matrix-style DataGrid (via DataGridTemplateColumn), with a TextBlock for display and a DecimalUpDown for editing, but the DecimalUpDown control's size is causing an UI issue.
I'd also like to remove the up/down buttons. The workaround (Dec/In-creaseContent="") works, but doesn't free up any space.
Any ideas? Suggestions?
Thanks in advance for your help!
Beta Was this translation helpful? Give feedback.
All reactions