根据 Infragistics 主题设置 WPF 控件的样式

发布于 2024-08-17 19:05:32 字数 256 浏览 10 评论 0原文

我们正在使用 Infragistics WPF 控件(例如 xamDataGrid、xamDockManager 等),并且我们将使用这些控件支持的 Infragistics Office 2007 Blue 主题。

我们还希望使用相同的 Office 2007 Blue 样式来设计应用程序的其余部分(即标准 WPF 控件)。

最好的方法是什么?我们可以下载或购买 Office 2007 主题/皮肤吗?我们可以使用 Infragistics 下载中的任何内容吗?

we are using Infragistics WPF controls (e.g. xamDataGrid, xamDockManager etc), and we will be using the Infragistics Office 2007 Blue theme which these controls support.

We also want to style the rest of the application (i.e. standard WPF controls) using the same Office 2007 Blue style.

What's the best approach? Are there Office 2007 themes/skins that we can download or purchase? Can we use anything from the Infragistics download?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

无名指的心愿 2024-08-24 19:05:32

我知道这是一个老问题,但也许很少的更新对偶然发现这个问题的人有帮助。它正在当前版本的 Infragistics 中运行。 App.xaml 中的资源足够了。源指向解决方案中包含 Infragistics 主题文件的文件夹(通常类似于 C:\Program Files (x86)\Infragistics\2015.1\WPF\Themes)。

<Application.Resources>
    <ResourceDictionary>
        <ResourceDictionary.MergedDictionaries>
            <ResourceDictionary Source="/Theme/Styles.Shared.xaml" />
            <ResourceDictionary Source="/Theme/Styles.WPF.xaml" />
            <ResourceDictionary Source="/Theme/Theme.Colors.xaml" />
            <ResourceDictionary Source="/Theme/IG.MSControls.Core.Implicit.xaml" />
        </ResourceDictionary.MergedDictionaries>
    </ResourceDictionary>
</Application.Resources>

I know this is an old question, but maybe little update can be helpful for anyone that stumbles upon this. It is working in current version of Infragistics. Resource in App.xaml in enough. Sources point to folder in solution that contains files from Infragistics themes (usually something like C:\Program Files (x86)\Infragistics\2015.1\WPF\Themes).

<Application.Resources>
    <ResourceDictionary>
        <ResourceDictionary.MergedDictionaries>
            <ResourceDictionary Source="/Theme/Styles.Shared.xaml" />
            <ResourceDictionary Source="/Theme/Styles.WPF.xaml" />
            <ResourceDictionary Source="/Theme/Theme.Colors.xaml" />
            <ResourceDictionary Source="/Theme/IG.MSControls.Core.Implicit.xaml" />
        </ResourceDictionary.MergedDictionaries>
    </ResourceDictionary>
</Application.Resources>
屌丝范 2024-08-24 19:05:32

IIRC for winforms infragistics 允许您使用应用程序设计师来为标准控件设置主题。

刚刚在论坛上快速浏览了一下,看起来 WPF 无法做到这一点。

如何将主题应用到非 Infragistics 控件

IIRC for winforms infragistics allow you to use the app stylist to be able to theme the standard controls.

Just had a quick look on the forums and it doesn't look like it can be done for WPF.

How to apply themes to non-Infragistics controls

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文