AttachedShadowBase Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
The base class for attached shadows.
public abstract class AttachedShadowBase : Windows.UI.Xaml.DependencyObject, Microsoft.Toolkit.Uwp.UI.IAttachedShadow
type AttachedShadowBase = class
inherit DependencyObject
interface IAttachedShadow
Public MustInherit Class AttachedShadowBase
Inherits DependencyObject
Implements IAttachedShadow
- Inheritance
-
Windows.UI.Xaml.DependencyObjectAttachedShadowBase
- Derived
- Implements
Constructors
AttachedShadowBase() |
Fields
BlurRadiusProperty |
The Windows.UI.Xaml.DependencyProperty for BlurRadius. |
ColorProperty |
The Windows.UI.Xaml.DependencyProperty for Color. |
OffsetProperty |
The Windows.UI.Xaml.DependencyProperty for Opacity. |
OpacityProperty |
The Windows.UI.Xaml.DependencyProperty for Opacity |
SupportsCompositionVisualSurface |
Gets a value indicating whether or not Composition's VisualSurface is supported. |
Properties
BlurRadius |
Gets or sets the blur radius of the shadow. |
Color |
Gets or sets the color of the shadow. |
IsSupported |
Gets a value indicating whether or not this AttachedShadowBase implementation is supported on the current platform. |
Offset |
Gets or sets the offset of the shadow as a string representation of a Vector3. |
Opacity |
Gets or sets the opacity of the shadow. |
SupportsOnSizeChangedEvent |
Gets a value indicating whether or not OnSizeChanged should be called when Windows.UI.Xaml.FrameworkElement.SizeChanged is fired. |
Methods
EnumerateElementContexts() |
Gets an enumeration over the current list of AttachedShadowElementContext of elements using this shared shadow definition. |
GetElementContext(FrameworkElement) |
Get the associated AttachedShadowElementContext for the specified Windows.UI.Xaml.FrameworkElement. |
GetShadowClip(AttachedShadowElementContext) |
Get the Windows.UI.Composition.CompositionClip for the shadow's Windows.UI.Composition.SpriteVisual |
GetShadowMask(AttachedShadowElementContext) |
Get a Windows.UI.Composition.CompositionBrush in the shape of the element that is casting the shadow. |
OnDependencyPropertyChanged(Object, DependencyPropertyChangedEventArgs) |
Use this method as the Windows.UI.Xaml.PropertyChangedCallback for Windows.UI.Xaml.DependencyProperty in derived classes. |
OnElementContextInitialized(AttachedShadowElementContext) |
Override to handle when the AttachedShadowElementContext for an element is being initialized. |
OnElementContextUninitialized(AttachedShadowElementContext) |
Override to handle when the AttachedShadowElementContext for an element is being uninitialized. |
OnPropertyChanged(AttachedShadowElementContext, DependencyProperty, Object, Object) |
This method is called when a DependencyProperty is changed. |
OnSizeChanged(AttachedShadowElementContext, Size, Size) |
This method is called when the element size changes, and SupportsOnSizeChangedEvent = true. |
SetElementChildVisual(AttachedShadowElementContext) |
Sets SpriteVisual as a child visual on Element |
UpdateShadowClip(AttachedShadowElementContext) |
Update the clipping on the shadow's Windows.UI.Composition.SpriteVisual. |
UpdateShadowMask(AttachedShadowElementContext) |
Update the mask that gives the shadow its shape. |