Allows for switching between the normal and compact mode of the Windows11Theme theme.
Definition
Namespace:Telerik.Windows.Controls
Assembly:Telerik.Windows.Controls.dll
Syntax:
public class Windows11ThemeSizeHelper : DependencyObject
Inheritance: objectWindows11ThemeSizeHelper
Constructors
public Windows11ThemeSizeHelper()
Fields
EnableDynamicAnimationProperty
DependencyProperty
Identifies the EnableDynamicAnimation attached property. It is used by the Windows11 theme to enable dynamic animations in the ListBox and RadioButton controls.
public static readonly DependencyProperty EnableDynamicAnimationProperty
IsInCompactModeProperty
DependencyProperty
Identifies the IsInCompactMode dependency property.
public static readonly DependencyProperty IsInCompactModeProperty
Properties
Holds the Helper singleton instance.
public static Windows11ThemeSizeHelper Helper { get; }
Gets or sets a boolean property indicating whether the Windows11Theme theme is in compact or normal mode.
public bool IsInCompactMode { get; set; }
Methods
Gets a boolean value indicating whether dynamic animation is enabled for this element.
public static bool GetEnableDynamicAnimation(DependencyObject obj)
The target animated object.
Returns: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.
public static void SetEnableDynamicAnimation(DependencyObject obj, bool value)
The target animated object.
valueboolThe new value.
This attached property is used by the Windows11 theme to enable dynamic animations in the ListBox and RadioButton controls.