How to set the width of TimePicker? #18155
-
I want to make the width of the TimePicker the same as the width of the parent control, but no matter how I set the width, it doesn't work. |
Beta Was this translation helpful? Give feedback.
Answered by
seishinkouki
Feb 9, 2025
Replies: 1 comment 1 reply
-
Name your TimePicker Classes like <Style Selector="TimePicker.InfinityWidth">
<Setter Property="HorizontalAlignment" Value="Stretch"/>
<Style Selector="^ /template/ Button#PART_FlyoutButton">
<Setter Property="MaxWidth" Value="Infinity"/>
</Style>
</Style> |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
suoyukii
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Name your TimePicker Classes like
InfinityWidth