Control margins of an automatically generated content presenter in Windows Phone Panorama Control
Posted
by
Maxim V. Pavlov
on Stack Overflow
See other posts from Stack Overflow
or by Maxim V. Pavlov
Published on 2011-11-12T01:17:24Z
Indexed on
2011/11/12
17:51 UTC
Read the original article
Hit count: 248
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.
© Stack Overflow or respective owner