Control margins of an automatically generated content presenter in Windows Phone Panorama Control
- by Maxim V. Pavlov
I am building an MVVM Panorama Windows Phone 7 application.
At some point of Panorama Item's layout I get a bottom margin of a panorama header box, that moves my content too far down. Is there a way I can set a bottom margin of a ContentPresenter, that is generated to hold the controls, defined in the Panorama.HeaderTemplate?
Here is my layout list in Silverlight Spy:
In case the screen shot is not readable, here is a large version:
http://bit.ly/rBvNp8
Something generates a 26 points bottom margin for a header box (probably the control's code, that handles a layout). How can I control this value? I need it to be set to 0.