ClassRadShadow
Represents a control that enables a user to show a shadow around another view.
Definition
Namespace:Telerik.UI.Xaml.Controls.Primitives
Assembly:Telerik.WinUI.Controls.dll
Syntax:
public class RadShadow : RadControl
Inheritance: objectRadControlRadShadow
Inherited Members
Constructors
RadShadow()
Initializes a new instance of the RadShadow class.
Declaration
public RadShadow()
Fields
BlurRadiusProperty
Identifies the BlurRadius dependency property.
Declaration
public static readonly DependencyProperty BlurRadiusProperty
Field Value
DependencyProperty
ColorProperty
Identifies the Color dependency property.
Declaration
public static readonly DependencyProperty ColorProperty
Field Value
DependencyProperty
ContentProperty
Identifies the Content dependency property.
Declaration
public static readonly DependencyProperty ContentProperty
Field Value
DependencyProperty
OffsetXProperty
Identifies the OffsetX dependency property.
Declaration
public static readonly DependencyProperty OffsetXProperty
Field Value
DependencyProperty
OffsetYProperty
Identifies the OffsetY dependency property.
Declaration
public static readonly DependencyProperty OffsetYProperty
Field Value
DependencyProperty
ShadowCornerRadiusProperty
Identifies the ShadowCornerRadius dependency property.
Declaration
public static readonly DependencyProperty ShadowCornerRadiusProperty
Field Value
DependencyProperty
ShadowOpacityProperty
Identifies the ShadowOpacity dependency property.
Declaration
public static readonly DependencyProperty ShadowOpacityProperty
Field Value
DependencyProperty
Properties
BlurRadius
Gets or sets the blur radius of the shadow.
Color
Gets or sets the color of the shadow.
Declaration
public Color Color { get; set; }
Property Value
Color
Content
Gets or sets the content of the RadShadow.
OffsetX
Gets or sets the X offset of the shadow from its content.
OffsetY
Gets or sets the Y offset of the shadow from its content.
ShadowCornerRadius
Gets or sets a value indicating the corner radius of the shadow only It does not affect the wrapped element.
ShadowOpacity
Gets or sets the opacity of the shadow.
Methods
ApplyTemplateCore()
Called when the Framework is called. Inheritors should override this method should they have some custom template-related logic. This is done to ensure that the property is properly initialized.
ArrangeOverride(Size)
Provides the behavior for the Arrange pass of layout. Classes can override this method to define their own Arrange pass behavior.
Declaration
protected override Size ArrangeOverride(Size finalSize)
Parameters
finalSize
Size
The final area within the parent that this object should use to arrange itself and its children.
Returns
Size
The actual size that is used after the element is arranged in layout.
Overrides
GetShadowMask(FrameworkElement)
Use to get the shadow mask if the Content has such mask. Views like Shapes, TextBlock and Image provide masks - you can get them through the GetAlphaMask methods.
Declaration
public virtual CompositionBrush GetShadowMask(FrameworkElement content)
Parameters
content
FrameworkElement
The content of the shadow control.
Returns
CompositionBrush
The alpha mask applied to the shadow.