New to Telerik UI for WPFStart a free 30-day trial

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

Definition

Namespace:Telerik.Windows.Controls

Assembly:Telerik.Windows.Controls.dll

Syntax:

C#
public class Windows11ThemeSizeHelper : DependencyObject

Inheritance: objectWindows11ThemeSizeHelper

Constructors

C#
public Windows11ThemeSizeHelper()

Fields

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

C#
public static readonly DependencyProperty EnableDynamicAnimationProperty

IsInCompactModeProperty

DependencyProperty

Identifies the IsInCompactMode dependency property.

C#
public static readonly DependencyProperty IsInCompactModeProperty

Properties

Holds the Helper singleton instance.

C#
public static Windows11ThemeSizeHelper Helper { get; }

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

C#
public bool IsInCompactMode { get; set; }

Methods

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

C#
public static bool GetEnableDynamicAnimation(DependencyObject obj)
Parameters:objDependencyObject

The target animated object.

Returns:

bool

Remarks:

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

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

C#
public static void SetEnableDynamicAnimation(DependencyObject obj, bool value)
Parameters:objDependencyObject

The target animated object.

valuebool

The new value.

Remarks:

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