Skip to content

Latest commit

 

History

History
42 lines (27 loc) · 1.57 KB

uielement_clip.md

File metadata and controls

42 lines (27 loc) · 1.57 KB
-api-id -api-type
P:Microsoft.UI.Xaml.UIElement.Clip
winrt property

Microsoft.UI.Xaml.UIElement.Clip

-description

Gets or sets the RectangleGeometry used to define the outline of the contents of a UIElement.

-xaml-syntax

<uiElement>
  <uiElement.Clip>
    rectangleGeometry
  </uiElement.Clip>
</uiElement>

-property-value

The rectangle geometry to be used for clipping area sizing. The default value is null (no clipping).

-remarks

The clipping geometry for UIElement.Clip in the Windows Runtime API must be a RectangleGeometry. You can't specify a non-rectangular geometry.

The clipped area is the outside of the geometry. In other words, the content that is shown (not clipped) is the area of the rectangle that is drawn with Fill if the geometry were used as data for a Path rather than for clipping. The clipped area is any area that falls outside the rectangle. The clipped area isn't hit-testable.

-examples

This example is simple XAML markup that specifies a Clip using an inline RectangleGeometry that specifies its dimensions through an attribute syntax.

[!code-xamlGeometryOvw4]

-see-also