有没有人知道MenuFlyoutItem的Item前景的XAML主题属性? [英] Does anyone know the XAML theme property for the Item foreground of a MenuFlyoutItem?

查看:108
本文介绍了有没有人知道MenuFlyoutItem的Item前景的XAML主题属性?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我似乎找不到它。我看到了MenuItemFlyoutFocusedForegroundThemebrush,但没有看到简单的前景属性。在此先感谢。

I cannot seem to locate it. I see MenuItemFlyoutFocusedForegroundThemebrush but nothing for the simple foreground property. Thanks in advance.

推荐答案

您可以在\Program Files(x86)\ Windows Kits \8.1 \ Include中查看MenuFlyoutItems的模板\ winrt\xaml\design\generic.xaml查看它是如何实现的以及它使用的画笔。这将显示其TextBlock不会显式设置Foregroundex。除非
覆盖它,否则它将使用DefaultTextForegroundThemeBrush。

You can look at the MenuFlyoutItems' template in \Program Files (x86)\Windows Kits\8.1\Include\winrt\xaml\design\generic.xamlto see how it is implemented and what brushes it uses. This will show that its TextBlock doesn't set the Foregroundexplicitly. Unless you override that, it will use the DefaultTextForegroundThemeBrush.

MenuFlyoutItemFocusedForegroundThemebrush,MenuFlyoutItemPressedBackgroundThemeBrush等在特定的视觉状态中覆盖它。

The MenuFlyoutItemFocusedForegroundThemebrush, MenuFlyoutItemPressedBackgroundThemeBrush, etc. override this in specific visual states.

- Rob


这篇关于有没有人知道MenuFlyoutItem的Item前景的XAML主题属性?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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