I've created my own Template for a TextBox so I can draw a custom
border.
The initial size of the TextBox I can bind to without problems using
something like
<PathFigure StartPoint="{Binding ElementName=Label, Path=RenderSize,
Converter={StaticResource sizeToPoint}}">
Only problem is: when the size of the TextBox does change for whatever
reason, my custom border's size stays the same. The border does not
reflect the changes of the size of the TextBox.
My guess is I need to get the size in a different way, but I don't know
where to get it. And I can't use Rectangle, or Border to just fill the
border since these two can't draw what I need.
Anyone got an idea how to bind to the size of a control so my template
does grow and shrink with it?
Thanks,
Sam



