UIElement.Clip property

Expand
0 out of 1 rated this helpful - Rate this topic

UIElement.Clip property

[This documentation is preliminary and is subject to change.]

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

Syntax


public RectangleGeometry Clip { get; set; }


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

Property value

Type: RectangleGeometry

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

Examples

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


<Canvas>
    <Image Source="Images/Water_lilies.jpg" Width="200" Height="150">
        <Image.Clip>
            <RectangleGeometry Rect="100 75 50 50"/>
        </Image.Clip>
    </Image>
</Canvas>


Requirements

Minimum supported client

Windows 8 Release Preview

Minimum supported server

Windows Server 2012

Namespace

Windows.UI.Xaml
Windows::UI::Xaml [C++]

Metadata

Windows.winmd

See also

UIElement

 

 

Build date: 5/22/2012

Did you find this helpful?
(1500 characters remaining)
Community Additions ADD