All:
In developing a custom control (UserControl), I have a StackPanel with
a gradient background and a TextBlock. This works fine. Now, I am
attempting to round the corners of the StackPanel. I can do this with
various clipping/Geometry objects, e.g., RectangleGeometry, etc.
Now, the problem I'm facing is that all of the clipping/geometry
objects seem to need a fixed size, e.g., Rect="0,0,100,100". Now, I
want my StackPanel to grow and shrink with it's parent (it is to be
placed on a Grid whose "cell" sizes grow and shrink with respect to the
host Window).
So, the goal is to have a rounded rect imposed on the StackPanel as it
grows and shrinks -- therefore, I cannot assign a fixed sized to the
clipping region/geometry -- I need the clipping region to grow in
shrink as well, in proportion to the StackPanel it's clipping.
Ideas? A better way to approach this?
Thanks,
John - jpuopolo


