mbed_dev
mbed_dev

Reputation: 1470

Flyout does not show content

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

Answers (1)

Snicker
Snicker

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

Related Questions