UWP从NavigationView项目中删除翻转效果 [英] UWP Removing Rollover effects from NavigationView Items

查看:244
本文介绍了UWP从NavigationView项目中删除翻转效果的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道是否有人能够从导航视图中删除奇怪的翻转效果?

Hi, I was wondering if anyone has come across the ability to remove the weird rollover effects from the Navigation view as yet?

每当您突出显示PaneCustomContent或PaneFooter项目时,高光框不是导航视图的整个宽度,使其看起来很糟糕。使用Horizo​​ntalAlignment ="Center"时的选择指示符。也看起来很糟糕,如果可能的话,我会想要尝试删除它们吗?

Whenever you highlight over a PaneCustomContent or PaneFooter item, the highligh box is not the full width of the navigation view making it look awful. The selection indicators when using HorizontalAlignment="Center" also look awful and i would like to try to remove them if possible?

推荐答案

首先,Reveal Hightlight行为是设计的。从文档
NavigationView
中,提到了当满足硬件和软件要求时,NavigationView会在其窗格中自动使用丙烯酸材料,并仅在其左窗格中显示突出显示。 

First, the Reveal Hightlight behavior is by design. From the document NavigationView, it is mentioned that When hardware and software requirements are met, NavigationView automatically uses the Acrylic material in its pane, and Reveal highlight only in its left pane. 

我检查了文档,但我不能找到了可以做到这一点的API。在PaneCustomContent或PaneFooter中将NavigationViewItem的Horizo​​ntalAlignment设置为Stretch可能会更好看Reveal hightlight。

And I checked the document but I could not found APIs that could do that. The Reveal hightlight might look better that you set the HorizontalAlignment of NavigationViewItem as Stretch in the PaneCustomContent or PaneFooter.

祝你好运,

Roy


这篇关于UWP从NavigationView项目中删除翻转效果的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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