Core Library for WPF | ComponentOne
C1.WPF.Core Namespace / C1Button Class / AccentStyleKey Property
Example

In This Topic
    AccentStyleKey Property
    In This Topic
    Resource key for a button accent style.
    Syntax
    'Declaration
     
    
    Public Shared ReadOnly Property AccentStyleKey As ComponentResourceKey
    public static ComponentResourceKey AccentStyleKey {get;}
    Remarks
    Use the AccentStyleKey property to create a dynamic reference to the accent style. This dynamic reference will automatically update if application theme is changed. To create a static reference that does not update automatically, use AccentStyle property.
    Example
    <c1:C1Button Content="Default Button" Style="{DynamicResource {x:Static c1:C1Button.AccentStyleKey}}" IsDefault="True"/>
    See Also