New to Telerik UI for WPF? Start a free 30-day trial

Shadow

Class

Shadow for the MaterialTheme.

It provides from a preset of predefined effects for the Material theme as well as animation for the transitions between each of them.

Avoid setting child element as any text in it would receive the DropShadowEffect resulting in blurred appearance of the text.

Definition

Namespace:Telerik.Windows.Controls.MaterialControls

Assembly:Telerik.Windows.Controls.dll

Syntax:

C#
public class Shadow : Border

Inheritance: objectShadow

Constructors

Initializes a new instance of the Shadow class.

C#
public Shadow()

Fields

AnimationDurationProperty

DependencyProperty

Identifies the AnimationDuration dependency property. Default Value: 40.0 .

C#
public static readonly DependencyProperty AnimationDurationProperty

ShadowBrushProperty

DependencyProperty

Identifies the ShadowBrush dependency property.

C#
public static readonly DependencyProperty ShadowBrushProperty

ShadowDepthProperty

DependencyProperty

Identifies the ShadowDepth dependency property. Default Value: Depth0.

C#
public static readonly DependencyProperty ShadowDepthProperty

ThemeProperty

DependencyProperty

Identifies the Theme dependency property.

C#
public static readonly DependencyProperty ThemeProperty

Properties

Gets or sets the duration of the animation of the change in milliseconds.

C#
public double AnimationDuration { get; set; }

ShadowBrush

SolidColorBrush

Gets or set the brush used for the drop shadow effect.

C#
public SolidColorBrush ShadowBrush { get; set; }

Gets or sets a value for the ShadowDepth.

C#
public MaterialShadowDepth ShadowDepth { get; set; }

Gets or sets the Theme of the Shadow.

C#
public Theme Theme { get; set; }

Methods

Adds to the internal shadows array a ResourceDictionary containing definitions of the required shadow depths.

C#
public static void FromShadowResourceDictionary(ResourceDictionary dictionary, Theme theme)
Parameters:dictionaryResourceDictionarythemeTheme
C#
protected override void OnInitialized(EventArgs e)
Parameters:eEventArgs

Resets the theme in StyleManager scenario.

C#
public void ResetTheme()

Sets the default style key for StyleManager based on the current theme.

C#
protected virtual void SetDefaultStyleKey()