English 中文(简体)
Styling WPF controls inline with Infragistics themes
原标题:

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?

最佳回答

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

问题回答

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)Infragistics2015.1WPFThemes).

<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>




相关问题
Creating a Style in code behind

Does anyone know how to create a wpf Style in code behind, I can t find anything on the web or MSDN docs. I have tried this but it is not working: Style s = new Style(typeof(TextBlock)); s....

WPF Custom Themes

I have a simple question which is giving me some difficulty. I have downloaded a custom them for WPF of the net. Now i want to apply this theme to my App instead of the default one. How do i do that,...

Is it sometimes bad to use <BR />?

Is it sometimes bad to use <BR/> tags? I ask because some of the first advice my development team gave me was this: Don t use <BR/> ; instead, use styles. But why? Are there negative ...

WPF - How to apply effect to a cropped image?

I have an Image being clipped like so: <Image Width="45" Grid.Column="0" Source="{Binding Photo}"> <Image.Clip> <RectangleGeometry Rect="0,0,45,55" RadiusX="8" RadiusY="8" /...

WPF ListView : Header styling

I want to have a ListView with columns and a particular style: The background for ALL column headers should be transparent except when the mouse is over in one of them. When this happends, the ...

热门标签