LayerVisual
LayerVisual
LayerVisual
LayerVisual
Class
Definition
Some information relates to pre-released product which may be substantially modified before it’s commercially released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Prerelease APIs are identified by a Prerelease label.
[Contains prerelease APIs.]
A ContainerVisual whose children are flattened into a single layer.
public : sealed class LayerVisual : ContainerVisual, ILayerVisualpublic sealed class LayerVisual : ContainerVisual, ILayerVisualPublic NotInheritable Class LayerVisual Inherits ContainerVisual Implements ILayerVisual// This API is not available in Javascript.
- Inheritance
-
LayerVisualLayerVisualLayerVisualLayerVisual
- Attributes
| Device family |
Windows 10 Anniversary Edition (introduced v10.0.14393.0)
|
| API contract |
Windows.Foundation.UniversalApiContract (introduced v3)
|
Inherited Members
Inherited properties
Inherited methods
Remarks
A LayerVisual is a special input type that can be used to select a tree of visuals. The tree input is implicitly specified using the LayerVisual. When an EffectBrush is set to the Effect property of the LayerVisual, the EffectBrush automatically uses the subtree rooted at the LayerVisual as the input. The implicit input for LayerVisual works for effects as follows:
- If the effect has one input, the EffectBrush uses the subtree rooted at the LayerVisual as the input.
- If the effect has 2 inputs, the first unbounded input of the EffectBrush uses the subtree rooted at the LayerVisual as the input.
- The system does not allow an effect with 0 inputs or effects with all inputs bounded to SurfaceBrush to be set as the EffectBrush on LayerVisual’s Effect property. This will throw an exception.
Properties
Effect Effect Effect Effect
The effect to be applied to the flattened representation of the children of a LayerVisual.
public : CompositionEffectBrush Effect { get; set; }public CompositionEffectBrush Effect { get; set; }Public ReadWrite Property Effect As CompositionEffectBrush// This API is not available in Javascript.
The effect to be applied to the flattened representation of the children of a LayerVisual.
Shadow Shadow Shadow Shadow
Prerelease. The shadow to be applied to the flattened representation of the children of a LayerVisual.
public : CompositionShadow Shadow { get; set; }public CompositionShadow Shadow { get; set; }Public ReadWrite Property Shadow As CompositionShadow// This API is not available in Javascript.
| Device family |
Windows 10 Insider Preview (introduced v10.0.16257.0)
|
| API contract |
Windows.Foundation.UniversalApiContract (introduced v5)
|