Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/video/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Xaml Metro模态弹出按钮自动禁用_Xaml_Mahapps.metro - Fatal编程技术网

Xaml Metro模态弹出按钮自动禁用

Xaml Metro模态弹出按钮自动禁用,xaml,mahapps.metro,Xaml,Mahapps.metro,我使用过metro Mahapps弹出按钮,如下所示: <Grid> <Controls:FlyoutsControl> <Controls:Flyout IsModal="True" IsOpen="True" Header="Flyout" Position="Right" Width="200"> <!-- Your custom content here --> </C

我使用过metro Mahapps弹出按钮,如下所示:

<Grid>
    <Controls:FlyoutsControl>
        <Controls:Flyout  IsModal="True" IsOpen="True" Header="Flyout" Position="Right" Width="200">
            <!-- Your custom content here -->
        </Controls:Flyout>
    </Controls:FlyoutsControl>
</Grid>

它会禁用一切,甚至它本身——我不能关闭它,也不能关闭我的应用程序。
我做错什么了吗?

弹出型按钮容器必须位于
MetroWindow

<Controls:MetroWindow.Flyouts>
    <Controls:FlyoutsControl>
        <Controls:Flyout  IsModal="True" IsOpen="True" Header="Flyout" Position="Right" Width="200">
            <!-- Your custom content here -->
        </Controls:Flyout>
    </Controls:FlyoutsControl>
</Controls:MetroWindow.Flyouts>