【问题标题】:Charms bar won't show魅力栏不显示
【发布时间】:2012-09-27 09:24:12
【问题描述】:

实现设置魅力栏。关注 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>

【问题讨论】:

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


    【解决方案1】:

    我使用了这个并且没有任何问题,也许你想试试这个? Flyout control for Windows 8 Metro Apps

    【讨论】:

      猜你喜欢
      • 2022-10-13
      • 2013-09-06
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多