How to get a tool window title bar height in WPF ?

Posted by user275587 on Stack Overflow See other posts from Stack Overflow or by user275587
Published on 2010-03-08T20:29:35Z Indexed on 2010/03/08 20:51 UTC
Read the original article Hit count: 680

Filed under:
|
|
|
|

WPF includes the title bar height in the total window height instead of using only the client content area height.

  • Is there a way to disable this behaviour?
  • If not, how can I get the height of a tool window title bar?

I'm aware of the SystemParameters.CaptionHeight property and the SystemParameters.WindowCaptionHeight property but they both return the height of a regular window title bar. This is not the correct value for a tool window because the title bar is smaller for this type of window. I need something like SystemParameters.ToolWindowCaptionHeight

Thanks.

© Stack Overflow or respective owner

Related posts about wpf

Related posts about window