Reputation: 1470
I am using the Mah.MetroApps package for my WPF application, In the XAML-file I define the flyoutControl, which is activated when a button is clicked. The problem is, that it shows the flyout without the content e.g. a textblock.
So am I doing something wrong here?
<Controls:MetroWindow.Flyouts>
<Controls:FlyoutsControl>
<Controls:Flyout x:Name="ActiveUserFlyout" Header="Active Users" Position="Right" Width="300" IsOpen="{Binding FlyoutIsOpen}"/>
<TextBlock FontSize="30">Stackoverflow</TextBlock>
</Controls:FlyoutsControl>
</Controls:MetroWindow.Flyouts>
Upvotes: 1
Views: 592
Reputation: 987
You have to put the TextBlock inside the flyout e. g.
<controls:FlyoutsControl>
<controls:Flyout x:Name="ActiveUserFlyout"
Width="300"
Header="Active Users"
IsOpen="{Binding FlyoutIsOpen}"
Position="Right">
<TextBlock FontSize="30">Stackoverflow</TextBlock>
</controls:Flyout>
</controls:FlyoutsControl>
Upvotes: 2