microsoft-metro - Windows 应用商店应用程序 : Eliminates GridView styles and use only for hub page layout

标签 microsoft-metro winrt-xaml windows-store-apps

我尝试使用 GridView 制作一个 Windows 应用商店应用程序 (Metro) 中心页面,其中包含四个不同的模板。

我引用了linkCreating hub page with different controls in Windows 8页面并且工作正常。

但是 GridView 有一个与触摸(和鼠标)事件交互的默认样式。 悬停时呈灰色,并显示点击交互。

我的问题是,如何禁用这些行为? 我尝试用 Blend 进行挖掘,但很难找到可以定制的地方。

最佳答案

抱歉,我不知道 MS Blend

但在 Visual Studio 中请遵循以下说明:

  1. 右键单击网格
  2. 转到编辑其他模板
  3. 点击“编辑生成的项目容器(ItemContainerStyle)”>“编辑副本...”
  4. 转到 XAML 代码并从代码中删除 PointerOver 内容。代码应如下所示

      //some code here
    
    <VisualStateGroup x:Name="CommonStates">
       <VisualState x:Name="Normal"/>
         <VisualState x:Name="PointerOverPressed"/>
         <VisualState x:Name="Disabled">
    
        //continue
    

关于microsoft-metro - Windows 应用商店应用程序 : Eliminates GridView styles and use only for hub page layout,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13795937/

相关文章:

c# - 本地文件夹的大小限制?

image - 寻找 Windows Phone 7 设计模板

c# - 从 Windows 8 应用程序中生成的缓冲区播放声音

c# - ItemClick 事件在 ListView Windows Phone 8.1 上的位置

c# - Winrt - ListView 最后一项的特定 ItemTemplate

c# - 如何在Windows应用商店应用程序中获取图像的一个像素(C#)

c# - 如何在 Windows 应用商店应用程序中为按钮位置(边距)设置动画?

qt - 从 Qt UI 应用程序到 Windows 10 应用商店应用程序

c# - WebView cookie Windows 8

c# - RichTextBlock 段落背景颜色