DCSIMG
Win32 API - Alex Golesh's Blog About Silverlight Development

Browse by Tags

All Tags » Win32 API (RSS)

WPF Quick Tip: How to get WPF Window client area size

This time my quick tip will be not about the Silverlight, but about WPF. When you have WPF window, the runtime size of it could be discovered by ActualWidth/ActualHeight properties. In most cases this is enough. But what about the case, when you need to perform some mathematical calculations based on the real size of client area? What is this client area? Well, the second question is really easy one – the client area is the area available to user defined UI (controls, panes, etc.): At the screenshot...