Class
RadShadow

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:

cs-api-definition
public class RadShadow : RadControl

Inheritance: objectRadControlRadShadow

Inherited Members RadControl.EndVisualStateUpdate(bool, bool)RadControl.UpdateVisualState(bool)RadControl.BeginVisualStateUpdate()RadControl.OnCreateAutomationPeer()RadControl.SetVisualState(string, bool)RadControl.CanUpdateVisualState()RadControl.ComposeVisualStateName()RadControl.MeasureOverride(Size)RadControl.OnApplyTemplate()RadControl.UnapplyTemplateCore()RadControl.OnIsEnabledChanged(bool, bool)RadControl.OnTemplateApplied()RadControl.LoadCore()RadControl.OnLoaded()RadControl.UnloadCore()RadControl.CurrentVisualStateRadControl.IsLoadedRadControl.IsLoadingRadControl.IsUnloadedRadControl.WasUnloadedRadControl.IsTemplateApplied

Constructors

RadShadow()

Initializes a new instance of the RadShadow class.

Declaration

cs-api-definition
public RadShadow()

Fields

BlurRadiusProperty

Identifies the BlurRadius dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty BlurRadiusProperty

Field Value

DependencyProperty

ColorProperty

Identifies the Color dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty ColorProperty

Field Value

DependencyProperty

ContentProperty

Identifies the Content dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty ContentProperty

Field Value

DependencyProperty

OffsetXProperty

Identifies the OffsetX dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty OffsetXProperty

Field Value

DependencyProperty

OffsetYProperty

Identifies the OffsetY dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty OffsetYProperty

Field Value

DependencyProperty

ShadowCornerRadiusProperty

Identifies the ShadowCornerRadius dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty ShadowCornerRadiusProperty

Field Value

DependencyProperty

ShadowOpacityProperty

Identifies the ShadowOpacity dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty ShadowOpacityProperty

Field Value

DependencyProperty

Properties

BlurRadius

Gets or sets the blur radius of the shadow.

Declaration

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

Property Value

double

Color

Gets or sets the color of the shadow.

Declaration

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

Property Value

Color

Content

Gets or sets the content of the RadShadow.

Declaration

cs-api-definition
public object Content { get; set; }

Property Value

object

OffsetX

Gets or sets the X offset of the shadow from its content.

Declaration

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

Property Value

double

OffsetY

Gets or sets the Y offset of the shadow from its content.

Declaration

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

Property Value

double

ShadowCornerRadius

Gets or sets a value indicating the corner radius of the shadow only It does not affect the wrapped element.

Declaration

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

Property Value

double

ShadowOpacity

Gets or sets the opacity of the shadow.

Declaration

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

Property Value

double

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.

Declaration

cs-api-definition
protected override bool ApplyTemplateCore()

Returns

bool

Overrides RadControl.ApplyTemplateCore()

ArrangeOverride(Size)

Provides the behavior for the Arrange pass of layout. Classes can override this method to define their own Arrange pass behavior.

Declaration

cs-api-definition
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 RadControl.ArrangeOverride(Size)

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

cs-api-definition
public virtual CompositionBrush GetShadowMask(FrameworkElement content)

Parameters

content

FrameworkElement

The content of the shadow control.

Returns

CompositionBrush

The alpha mask applied to the shadow.