Well, it's just the other way around: I want to resize the
window's root element (a canvas) to its client area. So
I'd better ask how to do this.
Thanks,
fö
"Drew Marsh" wrote:
> fo wrote:
>
> > When a window is resized the SizeChangedEventArgs only give me the new
> > size of the whole window including title and borders. How do I get the
> > width and height of what was formerly known as "client area" of a
> > window? In GDI the answer was given by GetClientRect(). What's it in
> > WPF?
>
> You can get the ActualWidth/Height of the window's content (the root) element.
>
> HTH,
> Drew
>
> ___________________________________
> Drew Marsh
> Chief Software Architect
> Mimeo.com, Inc. - http://www.mimeo.com
> Microsoft C# / WPF MVP
> Weblog - http://blog.hackedbrain.com/
>
>
>