Search code examples
silverlightwindows-phone-7font-sizepanorama-control

WP7: Can I change font size of Panorama view? in silverlight work


Possible Duplicate:
How to change font size of Panorama item header?

I have coded panorama view like this:

`<controls:Panorama Title="test">`

in WP7 silverlight. Is anyway I can change the font size or event font family?

Thanks!


Solution

  • Of course.

    You can using template for this.

    For example

    <controls:Panorama Title="test">
    <controls:Panorama.TitleTemplate>
                    <DataTemplate>
                        <Grid Margin="0,80,0,0">
                            <TextBlock Foreground="Black" FontSize="20" Text="{Binding}"/>
                        </Grid>
                    </DataTemplate>
                </controls:Panorama.TitleTemplate>
    </controls:Panorama>