魅力酒吧不会显示

时间:2012-09-26 23:43:00

标签: c# xaml windows-8 microsoft-metro charms-bar

实施设置超级按钮栏。关注Michael Hauck的NuGet charmsflyout库。

成功:“关于”按钮或链接显示在设置超级按钮中。但是 -

问题:点击“关于”

后设置窗格消失
    private void CommandsRequested(SettingsPane sender, SettingsPaneCommandsRequestedEventArgs args)
    {
        var cmd = new SettingsCommand("about", "About This App", new Windows.UI.Popups.UICommandInvokedHandler(x =>
            {
                cfoSettings.IsOpen = true; // guessin problem is here??

            }));

        args.Request.ApplicationCommands.Add(cmd);

        SettingsPane.Show();
    } 

Xaml代码:

    <cfo:CharmFlyout 
       x:Name="cfoSettings" 
       Heading="My Flyout" 
       HeadingBackgroundBrush="#FF4E0000">
        <StackPanel>
            <TextBlock 
               FontSize="16">CharmFlyout by John Michael Hauck</TextBlock>
            <TextBlock 
               FontSize="16">For support:</TextBlock>

        </StackPanel>
    </cfo:CharmFlyout>

1 个答案:

答案 0 :(得分:1)

我利用了这个并没有一个问题,也许你想尝试一下呢? Flyout control for Windows 8 Metro Apps