Jonas Stawski

Everything .NET and More

Change Windows Phone 7 Panorama’s Control Title

The other day I was playing with WP7 Panorama’s Control and the default Title was HUGE! I wanted to change it, but wasn’t sure how to do so. After reading the docs I found the TitleTemplate property, which allows you to create the template used for the Title.

Here’s how I use it:

   1: <controls:Panorama.TitleTemplate>
   2:    <DataTemplate>
   3:        <TextBlock Text="{Binding Content, RelativeSource={RelativeSource TemplatedParent}}" FontSize="100" Margin="0,50,0,0" />
   4:    </DataTemplate>
   5: </controls:Panorama.TitleTemplate>
Happy Programming!

Comments (12) -

nice~~~~~~~~~~~~~~~~~

Reply

thankssssssssssssss it works Smile

Reply

Sam Matthews
Sam Matthews

Excellent Job!!

Reply

good job!
thank you

Reply

Thanks, worked like a charm!

Reply

Thank you so much .... it was very usefull.....

Reply

Thanks. Wasted 10 minutes trying to figure how to do this in panorama properties. Then 1 minute for a Google search and copy and paste your code - fixed!!

Reply

Thanh you so much !

Reply

Add comment

biuquote
Loading