Is it possible to remove the tap effect on an item inside a gridview?
相关问题
- Sorting 3 numbers without branching [closed]
- Graphics.DrawImage() - Throws out of memory except
- Why am I getting UnauthorizedAccessException on th
- 求获取指定qq 资料的方法
- How to know full paths to DLL's from .csproj f
IsHitTestVisible="False" will be the fastest solution when just a read-only grid view is needed.
Removing storyboard of visualstate "PointerOver" and "PointerOverPressed" in "GridViewItemStyle" will disable pointer hover and pressed animations.
sample source code: http://files.cnblogs.com/Tealcwu/ItemContainerStyleSelectorDemo.zip
please refer to http://www.cnblogs.com/Tealcwu/archive/2012/11/07/2759132.html, the last section.
This is perfect solution on W8.1
Yes, you need to modify the GridViewItem style in the ItemContainerStyle property.
Note that the default style of system controls changes between versions of the OS. The Windows 10 expanded (note that the platform renders the items with simplified visual tree by default to improve performance) style of the
GridViewItem
can be found in"c:\Program Files (x86)\Windows Kits\10\DesignTime\CommonConfiguration\Neutral\UAP\10.0.10240.0\Generic\themeresources.xaml"
(or some such place in the themeresources.xaml file) by searching forTargetType="GridViewItem"
.