Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

After resize object (rectangle or grid), clip is not resized (help)

$
0
0

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">


Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>