ClassShadow
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:
public class Shadow : Border
Inheritance: objectShadow
Constructors
Fields
AnimationDurationProperty
Identifies the AnimationDuration dependency property. Default Value: 40.0 .
Declaration
public static readonly DependencyProperty AnimationDurationProperty
Field Value
DependencyProperty
ShadowBrushProperty
Identifies the ShadowBrush dependency property.
Declaration
public static readonly DependencyProperty ShadowBrushProperty
Field Value
DependencyProperty
ShadowDepthProperty
Identifies the ShadowDepth dependency property. Default Value: Depth0.
Declaration
public static readonly DependencyProperty ShadowDepthProperty
Field Value
DependencyProperty
ThemeProperty
Identifies the Theme dependency property.
Declaration
public static readonly DependencyProperty ThemeProperty
Field Value
DependencyProperty
Properties
AnimationDuration
Gets or sets the duration of the animation of the change in milliseconds.
ShadowBrush
Gets or set the brush used for the drop shadow effect.
Declaration
public SolidColorBrush ShadowBrush { get; set; }
Property Value
SolidColorBrush
ShadowDepth
Gets or sets a value for the ShadowDepth.
Declaration
public MaterialShadowDepth ShadowDepth { get; set; }
Property Value
Methods
FromShadowResourceDictionary(ResourceDictionary, Theme)
Adds to the internal shadows array a ResourceDictionary containing definitions of the required shadow depths.
Declaration
public static void FromShadowResourceDictionary(ResourceDictionary dictionary, Theme theme)
Parameters
dictionary
ResourceDictionary
theme
OnInitialized(EventArgs)
Declaration
protected override void OnInitialized(EventArgs e)
Parameters
e
ResetTheme()
Resets the theme in StyleManager scenario.
Declaration
public void ResetTheme()
SetDefaultStyleKey()
Sets the default style key for StyleManager based on the current theme.
Declaration
protected virtual void SetDefaultStyleKey()