开发者

Changing the font size of the PanoramaItem (windows phone)

开发者 https://www.devze.com 2023-03-29 07:09 出处:网络
I am trying to change the size of the PanoramaItem\'s title, but it doesnt work. I tried the FontSize attribute, but it does nothing. I could change the font size of the Panorama\'s title usi开发者_St

I am trying to change the size of the PanoramaItem's title, but it doesnt work. I tried the FontSize attribute, but it does nothing. I could change the font size of the Panorama's title usi开发者_StackOverflow社区ng this code:

        <controls:Panorama.TitleTemplate>
            <DataTemplate>
                <TextBlock Text="{Binding Content, RelativeSource={RelativeSource TemplatedParent}}" FontSize="100" Margin="0,50,0,0" />
            </DataTemplate>
        </controls:Panorama.TitleTemplate>


Try setting Panorama.HeaderTemplate instead of TitleTemplate

It usually helps to open controls in Expression Blend when trying to style them for the first time, It makes it very easy to see all the different templates involved and their default values.

0

精彩评论

暂无评论...
验证码 换一张
取 消