【问题标题】:Catel Orchestra theme only works in designer?Catel Orchestra 主题仅适用于设计师?
【发布时间】:2015-12-28 16:20:31
【问题描述】:

您好,我正在尝试将主题应用于 Fluent Ribbon,但不幸的是它不起作用。但是视觉工作室设计师的有趣之处在于一切正常。这是我尝试做的代码,还有一个问题。如何在主窗口中禁用全屏模式?

<Application x:Class="WLDA.Server.App" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> <Application.Resources> <ResourceDictionary> <ResourceDictionary.MergedDictionaries> <ResourceDictionary Source="pack://application:,,,/Fluent;Component/Themes/Windows8/Generic.xaml" /> </ResourceDictionary.MergedDictionaries> </ResourceDictionary> </Application.Resources> </Application>

Test App

【问题讨论】:

    标签: wpf catel fluent-ribbon orchestra


    【解决方案1】:

    这可能是由于 Orchestra 自动为您添加的 Fluent Ribbon 样式(默认为 Office 2013)。

    一种解决方案可能是从 Application.Current.Resources.MergedDictionaries 中删除现有字典并添加 Windows 8。

    您可以使用 Orchestra 存储库(带有示例)来测试这是否有效。

    【讨论】:

      猜你喜欢
      • 2016-12-23
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-04-09
      • 1970-01-01
      • 1970-01-01
      • 2021-11-16
      相关资源
      最近更新 更多