Skip to content

Flyout MaxWidth #6798

Answered by MarkusKgit
keg247 asked this question in Q&A
Oct 26, 2021 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

While I don't have an answer as to why the Flyout has a MaxWidth in the Fluent theme, restyling a specific Flyout is pretty straightforward.

Just set Flyout.FlyoutPresenterClasses on your Flyout and then you can reference it in your style, e.g.:

<Flyout Flyout.FlyoutPresenterClasses="wider">
  <TextBlock Text="This would normally show a Scrollbar" Width="800"/>
</Flyout>
<Style Selector="FlyoutPresenter.wider">
  <Setter Property="MaxWidth" Value="850"/>
</Style>

Replies: 1 comment 1 reply

Comment options

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

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