Compartir a través de


DepthStencilState.TwoSidedStencilMode Property

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Gets or sets a value that indicates whether to enable two-sided stenciling. The default is false.

Namespace:  Microsoft.Xna.Framework.Graphics
Assembly:  Microsoft.Xna.Framework.Graphics (in Microsoft.Xna.Framework.Graphics.dll)

Syntax

'Declaration
Public Property TwoSidedStencilMode As Boolean
public bool TwoSidedStencilMode { get; set; }

Property Value

Type: System.Boolean
true to enable two-sided stenciling; otherwise, false.

Remarks

Set this property to None to enable two-sided stencil mode. If the triangle winding order is clockwise, the StencilFunctionwill be used. If the winding order is counterclockwise, the CounterClockwiseStencilFunction will be used.

Version Information

Silverlight

Supported in: 5

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.