Class
Windows11ThemeSizeHelper

Allows for switching between the normal and compact mode of the Windows11Theme theme.

Definition

Namespace:Telerik.Windows.Controls

Assembly:Telerik.Windows.Controls.dll

Syntax:

cs-api-definition
public class Windows11ThemeSizeHelper : DependencyObject

Inheritance: objectWindows11ThemeSizeHelper

Constructors

Windows11ThemeSizeHelper()

Declaration

cs-api-definition
public Windows11ThemeSizeHelper()

Fields

EnableDynamicAnimationProperty

Identifies the EnableDynamicAnimation attached property. It is used by the Windows11 theme to enable dynamic animations in the ListBox and RadioButton controls.

Declaration

cs-api-definition
public static readonly DependencyProperty EnableDynamicAnimationProperty

Field Value

DependencyProperty

IsInCompactModeProperty

Identifies the IsInCompactMode dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty IsInCompactModeProperty

Field Value

DependencyProperty

Properties

Helper

Holds the Helper singleton instance.

Declaration

cs-api-definition
public static Windows11ThemeSizeHelper Helper { get; }

Property Value

Windows11ThemeSizeHelper

IsInCompactMode

Gets or sets a boolean property indicating whether the Windows11Theme theme is in compact or normal mode.

Declaration

cs-api-definition
public bool IsInCompactMode { get; set; }

Property Value

bool

Methods

GetEnableDynamicAnimation(DependencyObject)

Gets a boolean value indicating whether dynamic animation is enabled for this element.

Declaration

cs-api-definition
public static bool GetEnableDynamicAnimation(DependencyObject obj)

Parameters

obj

DependencyObject

The target animated object.

Returns

bool

Remarks

This attached property is used by the Windows11 theme to enable dynamic animations.

SetEnableDynamicAnimation(DependencyObject, bool)

Sets a boolean value indicating whether dynamic animation is enabled for this element.

Declaration

cs-api-definition
public static void SetEnableDynamicAnimation(DependencyObject obj, bool value)

Parameters

obj

DependencyObject

The target animated object.

value

bool

The new value.

Remarks

This attached property is used by the Windows11 theme to enable dynamic animations in the ListBox and RadioButton controls.