Class
Shadow

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:

cs-api-definition
public class Shadow : Border

Inheritance: objectShadow

Constructors

Shadow()

Initializes a new instance of the Shadow class.

Declaration

cs-api-definition
public Shadow()

Fields

AnimationDurationProperty

Identifies the AnimationDuration dependency property. Default Value: 40.0 .

Declaration

cs-api-definition
public static readonly DependencyProperty AnimationDurationProperty

Field Value

DependencyProperty

ShadowBrushProperty

Identifies the ShadowBrush dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty ShadowBrushProperty

Field Value

DependencyProperty

ShadowDepthProperty

Identifies the ShadowDepth dependency property. Default Value: Depth0.

Declaration

cs-api-definition
public static readonly DependencyProperty ShadowDepthProperty

Field Value

DependencyProperty

ThemeProperty

Identifies the Theme dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty ThemeProperty

Field Value

DependencyProperty

Properties

AnimationDuration

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

Declaration

cs-api-definition
public double AnimationDuration { get; set; }

Property Value

double

ShadowBrush

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

Declaration

cs-api-definition
public SolidColorBrush ShadowBrush { get; set; }

Property Value

SolidColorBrush

ShadowDepth

Gets or sets a value for the ShadowDepth.

Declaration

cs-api-definition
public MaterialShadowDepth ShadowDepth { get; set; }

Property Value

MaterialShadowDepth

Theme

Gets or sets the Theme of the Shadow.

Declaration

cs-api-definition
public Theme Theme { get; set; }

Property Value

Theme

Methods

FromShadowResourceDictionary(ResourceDictionary, Theme)

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

Declaration

cs-api-definition
public static void FromShadowResourceDictionary(ResourceDictionary dictionary, Theme theme)

Parameters

dictionary

ResourceDictionary

theme

Theme

OnInitialized(EventArgs)

Declaration

cs-api-definition
protected override void OnInitialized(EventArgs e)

Parameters

e

EventArgs

ResetTheme()

Resets the theme in StyleManager scenario.

Declaration

cs-api-definition
public void ResetTheme()

SetDefaultStyleKey()

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

Declaration

cs-api-definition
protected virtual void SetDefaultStyleKey()