DevExpress.Wpf.TypedStyles 26.1.5

DevExpress WPF: Typed Styles

DevExpress.Wpf.TypedStyles removes boilerplate code from WPF styling. You no longer need to declare a Style, set TargetType, and add a Setter for every property. Instead, declare a strongly typed style and assign properties directly. You get compile-time checking and full IntelliSense in the XAML editor. Typos become build errors instead of styles that silently fail to apply.

This package provides typed styles for DevExpress WPF controls and for standard WPF controls in PresentationCore, PresentationFramework, and WindowsBase.

dotnet add package DevExpress.Wpf.TypedStyles

Key Features

  • Strongly Typed Styles: For a Button control, use ButtonStyle; for GridControl, use GridControlStyle. The naming rule is {ControlName}Style.
  • IntelliSense and Compile-Time Validation: Property names are real CLR properties, so mistakes surface at build time rather than at runtime.
  • No xmlns eeded for Standard Controls: Typed styles for WPF controls map to the default presentation namespace, so ButtonStyle and TextBoxStyle are available out of the box.
  • Style Inheritance Mirrors the Control Hierarchy: Every generated style derives from its control's base style, so ButtonStyle inherits from ButtonBaseStyle.
  • BasedOn Works as Usual: Derive one typed style from another, including across target types: a ButtonStyle can be based on a FrameworkElementStyle that carries shared sizing.
  • Regular Setters When You Need Them: Populate the Setters collection to mix classic and typed syntax in one style.
  • Typed Triggers: ButtonTrigger and its siblings expose trigger conditions as typed properties and can restyle elements inside the control template.
  • Bindings on Any Property: Each typed property has a matching {PropertyName}_Source property that accepts a Binding or another markup extension.

Examples

Example 1: Style a Standard WPF Button Without Setters

<Window
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">

    <Window.Resources>
        <!-- Equivalent to a Style with TargetType="Button" and three Setter elements. -->
        <ButtonStyle x:Key="PrimaryButtonStyle"
                     FontWeight="Bold"
                     Padding="16,6"
                     MinWidth="96" />
    </Window.Resources>

    <Button Content="Save" Style="{StaticResource PrimaryButtonStyle}" />
</Window>

The button renders with bold text, the specified padding, and a minimum width. The compiler validates property names.

Example 2: Restyle a Button When the Pointer Hovers Over It

<Window.Resources>
    <ButtonStyle x:Key="HoverButtonStyle" Margin="1,2,3,4">
        <ButtonStyle.Triggers>
            <!-- Trigger properties are typed too, so IsMouseOver is checked at compile time. -->
            <ButtonTrigger IsMouseOver="True">
                <TextBlockStyle FontSize="13" FontWeight="Bold" />
            </ButtonTrigger>
        </ButtonStyle.Triggers>
    </ButtonStyle>
</Window.Resources>

<Button Content="Save" Style="{StaticResource HoverButtonStyle}" />

The button caption becomes larger and bold while the pointer is over the button. A typed trigger targets the elements inside the control template, so TextBlockStyle applies to the text block that renders the caption.

Evaluation Period, Pricing Options, and Licensing Terms

Whether you own a license or want to start a 30-day evaluation period, download and register your DevExpress license key. To obtain your key, log in to the DevExpress Download Manager. Use your existing DevExpress.com account or create a new account for free. For key registration instructions, see License Key for DevExpress Products.

If you purchase a license after evaluating a product, re-register your updated DevExpress license key to remove evaluation version warnings/messages.

This package is included in the following commercial subscriptions:

See DevExpress Subscriptions & Licensing for subscription comparison tables, purchasing FAQ, and licensing information.

DevExpress.Wpf.Core - DevExpress WPF core library and theme engine shared by all DevExpress WPF controls.

dotnet add package DevExpress.Wpf.Core

DevExpress.Wpf - The complete DevExpress WPF Control suite.

dotnet add package DevExpress.Wpf

Documentation

Software Bill of Materials (SBOM)

To access SBOM files for DevExpress packages, please refer to the following article: Software Bill of Materials (SBOM) for DevExpress .NET assemblies/NuGet packages, JavaScript, VCL and other redistributable artifacts.

See Also: Information Security | Security - What You Need to Know

Useful Online Resources

Showing the top 20 packages that depend on DevExpress.Wpf.TypedStyles.

Packages Downloads
DevExpress.Wpf.TypedStyles.de
This package provides TypedStyles for controls from base WPF assemblies and DevExpress WPF controls.
14
DevExpress.Wpf
Provides a set of DevExpress WPF components.
13
DevExpress.Wpf.TypedStyles.es
This package provides TypedStyles for controls from base WPF assemblies and DevExpress WPF controls.
13
DevExpress.Wpf.TypedStyles.ja
This package provides TypedStyles for controls from base WPF assemblies and DevExpress WPF controls.
11
DevExpress.Wpf
Provides a set of DevExpress WPF components.
10
DevExpress.Wpf.TypedStyles.de
This package provides TypedStyles for controls from base WPF assemblies and DevExpress WPF controls.
10
DevExpress.Wpf.TypedStyles.es
This package provides TypedStyles for controls from base WPF assemblies and DevExpress WPF controls.
8
DevExpress.Wpf
Provides a set of DevExpress WPF components.
8
DevExpress.Wpf
Target Platform/Framework: Desktop DevExpress Product Libraries Used: WPF UI components (https://www.devexpress.com/wpf) Available in the following DevExpress Subscription(s): Universal, DXperience, WPF
8
DevExpress.Wpf.TypedStyles.de
Target Platform/Framework: Desktop DevExpress Product Libraries Used: WPF UI components (https://www.devexpress.com/wpf) Available in the following DevExpress Subscription(s): Universal, DXperience, WPF
8
DevExpress.Wpf.TypedStyles.de
This package provides TypedStyles for controls from base WPF assemblies and DevExpress WPF controls.
8
DevExpress.Wpf.TypedStyles.es
Target Platform/Framework: Desktop DevExpress Product Libraries Used: WPF UI components (https://www.devexpress.com/wpf) Available in the following DevExpress Subscription(s): Universal, DXperience, WPF
8
DevExpress.Wpf.TypedStyles.ja
This package provides TypedStyles for controls from base WPF assemblies and DevExpress WPF controls.
7

.NET Framework 4.6.2

.NET 8.0

Version Downloads Last updated
26.1.5 1 09/22/2026
26.1.5-pre-26248 1 09/22/2026
26.1.5-pre-26241 1 09/22/2026
26.1.5-pre-26235 1 09/22/2026
26.1.5-pre-26227 1 09/22/2026
26.1.4 1 09/22/2026
26.1.4-pre-26190 2 07/24/2026
26.1.4-pre-26179 2 07/24/2026
26.1.3 2 07/24/2026
26.1.2-beta 4 05/28/2026
25.2.10 0 09/22/2026
25.2.9 1 09/22/2026
25.2.8 4 06/17/2026
25.2.7 4 05/13/2026
25.2.6 5 04/28/2026
25.2.5 7 03/03/2026
25.2.4 7 02/23/2026
25.2.3 7 01/17/2026
25.1.14 0 09/22/2026
25.1.13 1 09/22/2026
25.1.12 4 06/17/2026
25.1.11 6 05/05/2026
25.1.10 5 04/28/2026
25.1.9 7 03/03/2026
25.1.8 6 01/16/2026
25.1.7 6 01/16/2026
25.1.6 7 01/16/2026
25.1.5 7 01/16/2026
25.1.4 6 01/16/2026
25.1.3 8 01/16/2026
23.2.9 9 09/13/2025
22.1.5 13 01/20/2025