3

I would like to create a PanoramaItem that has no header at all. I would like to place some controls in this PanoramaItem and I want them to occupy the whole space. Of course I was able to delete the header text and change the font to smaller, but still there are some margins left. This might be easy, but I am new to WP7 development...

Is it possible to achieve and how?

Thanks in advance!

pajton
  • 15,828
  • 8
  • 54
  • 65

3 Answers3

3

Negative top margin may be the quickest way to get rid the stubborn header padding.

   <controls:Panorama Margin="0,-25,0,0">
   </controls:Panorama>
Hong
  • 17,643
  • 21
  • 81
  • 142
0
<phone:Panorama.HeaderTemplate>
    <DataTemplate>
        <TextBlock FontSize="1"/>
     </DataTemplate>
</phone:Panorama.HeaderTemplate>

it's a very funny method but for WP 8.1 Silverlight Apps this works fine.

0

You need to modify Styles of Panorama. There is was a question recently for Pivot here: Creating Pivot Footers on Windows phone 7 application, but you can do the same with a Panorama

Community
  • 1
  • 1
Ku6opr
  • 8,126
  • 2
  • 24
  • 31