Apoorv
Apoorv

Reputation: 1101

WPF: How to find out which element is determining the window size?

I have a complex WPF window that uses several controls laid out in grids, stackpanels, etc. At run time I find the size of my window far too wide.

Normally, for a small code base, I would have examined the Width, MinWidth, MaxWidth, and Column Widths for the entire layout but I am working on a huge codebase (these controls are spread across dozens of XAML files and for some I don't even own the source code).

I am looking for a tool using which I can perhaps hover(?) over a control and find out how it derived its size. Is there something like this?

Upvotes: 0

Views: 97

Answers (1)

Raúl Otaño
Raúl Otaño

Reputation: 4760

Try Snoop. This is an excellent visual dissambler for wpf. It is like firebug for wpf.

Upvotes: 1

Related Questions