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.
Caution
DropShadowPanel will be removed in a future release, please use the AttachedDropShadow or AttachedCardShadow implementations instead.
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 Windows.UI.Composition APIs.
[Windows.UI.Xaml.TemplatePart(Name="ShadowElement", Type=typeof(Windows.UI.Xaml.Controls.Border))]
public class DropShadowPanel : Windows.UI.Xaml.Controls.ContentControl
[Windows.UI.Xaml.TemplatePart(Name="ShadowElement", Type=typeof(Windows.UI.Xaml.Controls.Border))]
[System.Obsolete("DropShadowPanel will be removed in a future release, please use the AttachedDropShadow or AttachedCardShadow implementations instead.")]
public class DropShadowPanel : Windows.UI.Xaml.Controls.ContentControl
[<Windows.UI.Xaml.TemplatePart(Name="ShadowElement", Type=typeof(Windows.UI.Xaml.Controls.Border))>]
type DropShadowPanel = class
inherit ContentControl
[<Windows.UI.Xaml.TemplatePart(Name="ShadowElement", Type=typeof(Windows.UI.Xaml.Controls.Border))>]
[<System.Obsolete("DropShadowPanel will be removed in a future release, please use the AttachedDropShadow or AttachedCardShadow implementations instead.")>]
type DropShadowPanel = class
inherit ContentControl
Public Class DropShadowPanel
Inherits ContentControl
- Inheritance
-
Windows.UI.Xaml.Controls.ContentControlDropShadowPanel
- Attributes
-
Windows.UI.Xaml.TemplatePartAttribute ObsoleteAttribute
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 Windows.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. |
IsSupported |
Gets a value indicating whether the platform supports drop shadows. |
Mask |
Gets or sets the mask of the underlying Windows.UI.Composition.DropShadow. Allows for a custom Windows.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) | Windows.UI.Xaml.Controls.ContentControl.OnContentChanged(System.Object,System.Object) |