Search code examples
debugginggridviewuwpuicontrol

How to debug into `MeasureOverride` of a UWP UI control


I am trying to find out the cells pacing used in the GridView control in UWP. I have tried setting the symbol server to Microsoft server and derived a class from GridView and overridden few virtual method. I was hoping that I would debug into the MeasureOverride.

I am using visual studio 2017.

Alternately, if I can look into just the source that is also enough.


Solution

  • If it's for styling, I'd recommend using the built-in XAML inspector in Visual Studio 2017. Use it to navigate to your GridView and find where the spacing is applied. You'll find that it's going to be a Style you have to override where Padding or Margin are hardcoded.