Windows Store App: Eliminates GridView Styles and Uses Only Site Page Layout

I am trying to create an App Store (Metro) hub page that has four different templates with a GridView.

I referred to the link in Creating a hub page with various controls in Windows 8 and it works fine.

But the GridView has a default style that interacts with the touch (and the mouse). It is grayed out on hover and shows click interaction.

My question is how to disable these behaviors? I tried to dig out the Blend, but it's hard to find a place to customize.

+2
source share
1 answer

Sorry, I do not know MS Blend

But in the visual studio, please follow the instructions below:

  • right click on your grid.
  • go to edit additional template
  • Click "Edit Created Item Container (ItemContainerStyle)"> "Edit Copy ..."
  • go to the XAML code and remove the contents of the PointerOver from your code. The code should look like this:

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

Source: https://habr.com/ru/post/1443204/


All Articles