簡體   English   中英

更改PanoramaItem的字體大小(Windows Phone)

[英]Changing the font size of the PanoramaItem (windows phone)

我正在嘗試更改PanoramaItem標題的大小,但是它不起作用。 我嘗試了FontSize屬性,但是它什么也沒做。 我可以使用以下代碼更改Panorama標題的字體大小:

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

嘗試設置Panorama.HeaderTemplate而不是TitleTemplate

首次嘗試設置控件的樣式時,它通常有助於打開Expression Blend中的控件。它使查看涉及的所有不同模板及其默認值變得非常容易。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM