Skip to content

How to set the width of TimePicker? #18155

Answered by seishinkouki
suoyukii asked this question in Q&A
Discussion options

You must be logged in to vote

Name your TimePicker Classes like InfinityWidth

<Style Selector="TimePicker.InfinityWidth">
    <Setter Property="HorizontalAlignment" Value="Stretch"/>
    <Style Selector="^ /template/ Button#PART_FlyoutButton">
        <Setter Property="MaxWidth" Value="Infinity"/>
    </Style>
</Style>

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@robloo
Comment options

Answer selected by suoyukii
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants