Class Shadow
Shadow for the MaterialTheme.
It provides System.Windows.Media.Effects.DropShadowEffect 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.
Inheritance
Namespace: Telerik.Windows.Controls.MaterialControls
Assembly: Telerik.Windows.Controls.dll
Syntax
public class Shadow : Border, IThemable
Constructors
Shadow()
Fields
AnimationDurationProperty
Identifies the AnimationDuration dependency property. Default Value: 40.0 .
Declaration
public static readonly DependencyProperty AnimationDurationProperty
Field Value
System.Windows.DependencyProperty
|
ShadowBrushProperty
Identifies the ShadowBrush dependency property.
Declaration
public static readonly DependencyProperty ShadowBrushProperty
Field Value
System.Windows.DependencyProperty
|
ShadowDepthProperty
Identifies the ShadowDepth dependency property. Default Value: Depth0.
Declaration
public static readonly DependencyProperty ShadowDepthProperty
Field Value
System.Windows.DependencyProperty
|
ThemeProperty
Identifies the Theme dependency property.
Declaration
public static readonly DependencyProperty ThemeProperty
Field Value
System.Windows.DependencyProperty
|
Properties
AnimationDuration
Gets or sets the duration of the animation of the System.Windows.Media.Effects.DropShadowEffect change in milliseconds.
Declaration
public double AnimationDuration { get; set; }
Property Value
System.Double
|
ShadowBrush
Gets or set the brush used for the drop shadow effect.
Declaration
public SolidColorBrush ShadowBrush { get; set; }
Property Value
System.Windows.Media.SolidColorBrush
|
ShadowDepth
Gets or sets a value for the ShadowDepth.
Declaration
public MaterialShadowDepth ShadowDepth { get; set; }
Property Value
MaterialShadowDepth
|
Theme
Methods
FromShadowResourceDictionary(ResourceDictionary, Theme)
Adds to the internal shadows array a System.Windows.ResourceDictionary containing definitions of the required shadow depths.
Declaration
public static void FromShadowResourceDictionary(ResourceDictionary dictionary, Theme theme)
Parameters
System.Windows.ResourceDictionary
dictionary
|
Theme
theme
|
OnInitialized(EventArgs)
Declaration
protected override void OnInitialized(EventArgs e)
Parameters
System.EventArgs
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()