如何更改Phone 8.1中的数据透视表标题文本的颜色? [英] How to change the colour of a pivot header text in Phone 8.1?

查看:191
本文介绍了如何更改Phone 8.1中的数据透视表标题文本的颜色?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

以前更改数据透视表头的颜色很容易,您更改了模板标题以使文本块具有新的前景色。但是,现在如果您尝试确实获得了颜色,但所有标题(即使是那些不是
的标题)都具有该颜色集。换句话说,你失去了不透明度的变化。有新房产吗?



http://pauliom.wordpress.com

解决方案

在App中。 xaml:

< Application.Resources> 
< ResourceDictionary>
< ResourceDictionary.ThemeDictionaries>
< ResourceDictionary x:Key =" Default">
< SolidColorBrush x:Key =" PivotHeaderForegroundSelectedBrush"颜色="#FFE51400" />
< / ResourceDictionary>
< /ResourceDictionary.ThemeDictionaries>
< / ResourceDictionary>
< /Application.Resources>

您还可以覆盖PivotHeaderForegroundUnselectedBrush(和许多其他人)。


Previously changing the colour of a pivot header was easy, you changed the template header to have a text block with a new foreground color. However, now if you try that you do indeed get the colour but all the headers (i.e. even the ones that are not selected) have that colour set. Or to put it another way, you lose the change the opacity. Is there a new property or something?


http://pauliom.wordpress.com

解决方案

In App.xaml:

<Application.Resources>
    <ResourceDictionary>
        <ResourceDictionary.ThemeDictionaries>
            <ResourceDictionary x:Key="Default">
                <SolidColorBrush x:Key="PivotHeaderForegroundSelectedBrush" Color="#FFE51400" />
            </ResourceDictionary>
        </ResourceDictionary.ThemeDictionaries>
    </ResourceDictionary>
</Application.Resources>

You can also override PivotHeaderForegroundUnselectedBrush (and many others).


这篇关于如何更改Phone 8.1中的数据透视表标题文本的颜色?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆