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