I have Grid which contain some graphics and all graphics are cliped with grid. The cliping object is inside grid, othervise I got black (or object colored) object.
Imagine:
- Grid
- - rectangleClip
- - rectangle
- - pathArrow
- - rectangleAsLine
when grid is resized, clip object (rectangleClip) is not resized as clip, but core object is resized. That means if I not use clip, rectangleClip is resized with Grid. If Clip is used, it is resized after load or reload xaml, that means if resize object, save and reopen xaml or start debug, the clip is stretched in to object size. But when I start resize this object, Clip is not resized.
this is how I use Clip
<Grid x:Name="grid" Clip="{Binding RenderedGeometry, BindsDirectlyToSource=True, ElementName=rClip}" d:LayoutOverrides="LeftPosition, RightPosition, TopPosition, BottomPosition">