DropShadowPanel 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 DropShadowPanel control allows the creation of a DropShadow for any Xaml FrameworkElement in markup making it easier to add shadows to Xaml without having to directly drop down to Microsoft.UI.Composition APIs.
[Microsoft.UI.Xaml.TemplatePart(Name="ShadowElement", Type=typeof(Microsoft.UI.Xaml.Controls.Border))]
public class DropShadowPanel : Microsoft.UI.Xaml.Controls.ContentControl
[<Microsoft.UI.Xaml.TemplatePart(Name="ShadowElement", Type=typeof(Microsoft.UI.Xaml.Controls.Border))>]
type DropShadowPanel = class
inherit ContentControl
Public Class DropShadowPanel
Inherits ContentControl
- Inheritance
-
Microsoft.UI.Xaml.Controls.ContentControlDropShadowPanel
- Attributes
-
Microsoft.UI.Xaml.TemplatePartAttribute
Constructors
DropShadowPanel() |
Initializes a new instance of the DropShadowPanel class. |
Fields
BlurRadiusProperty |
Identifies the BlurRadius dependency property. |
ColorProperty |
Identifies the Color dependency property. |
IsMaskedProperty |
Identifies the IsMasked dependency property. |
OffsetXProperty |
Identifies the OffsetX dependency property. |
OffsetYProperty |
Identifies the OffsetY dependency property. |
OffsetZProperty |
Identifies the OffsetZ dependency property. |
ShadowOpacityProperty |
Identifies the ShadowOpacity dependency property. |
Properties
BlurRadius |
Gets or sets the blur radius of the drop shadow. |
Color |
Gets or sets the color of the drop shadow. |
DropShadow |
Gets DropShadow. Exposes the underlying composition object to allow custom Microsoft.UI.Composition animations. |
IsMasked |
Gets or sets a value indicating whether the panel uses an alpha mask to create a more precise shadow vs. a quicker rectangle shape. |
Mask |
Gets or sets the mask of the underlying Microsoft.UI.Composition.DropShadow. Allows for a custom Microsoft.UI.Composition.CompositionBrush to be set. |
OffsetX |
Gets or sets the x offset of the drop shadow. |
OffsetY |
Gets or sets the y offset of the drop shadow. |
OffsetZ |
Gets or sets the z offset of the drop shadow. |
ShadowOpacity |
Gets or sets the opacity of the drop shadow. |
Methods
OnApplyTemplate() |
Update the visual state of the control when its template is changed. |
OnContentChanged(Object, Object) | Microsoft.UI.Xaml.Controls.ContentControl.OnContentChanged(System.Object,System.Object) |