locked
Disable GridView Item Click/Press Animation RRS feed

All replies

  • Hello MJFara,

    try to remove storyboard from that pressed event, 

    <VisualState x:Name="Pressed">
            <Storyboard>
                  <PointerDownThemeAnimation TargetName="ContentContainer"/>
            </Storyboard>
    </VisualState>

    replace that code to that code.

    <VisualState x:Name="Pressed">
            
    </VisualState>

    Thursday, October 31, 2013 4:26 AM
  • Visual states are removed in 8.1, my template looks like this:

    <Style x:Key="GridViewContainerClear" TargetType="GridViewItem">
            <Setter Property="FontFamily" Value="{StaticResource ContentControlThemeFontFamily}"/>
            <Setter Property="FontSize" Value="{StaticResource ControlContentThemeFontSize}"/>
            <Setter Property="Background" Value="Transparent"/>
            <Setter Property="TabNavigation" Value="Local"/>
            <Setter Property="IsHoldingEnabled" Value="True"/>
            <Setter Property="Margin" Value="0,0,2,2"/>
            <Setter Property="HorizontalContentAlignment" Value="Stretch"/>
            <Setter Property="VerticalContentAlignment" Value="Stretch"/>
            <Setter Property="VerticalAlignment" Value="Stretch"/>
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="GridViewItem">
                        <GridViewItemPresenter PointerOverBackground="Transparent"
                                               PointerPressed=""            
                                                />               
                        
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
            
        </Style>

    Friday, November 1, 2013 2:54 AM
  • Any help is greatly appreciated, was working fine in 8.0 :(
    Tuesday, November 5, 2013 2:50 PM
  • We are targeting 8.1 and visual states are still working just fine. 
    Tuesday, November 5, 2013 4:50 PM
  • Aren't you sacrificing the performance gains in 8.1 if you're not using GridViewItemPresenter?

    How can I keep those gains while using the new GridViewItemPresenter?

    Tuesday, November 5, 2013 5:35 PM
  • Still dealing with this problem, any ideas?

    Monday, November 11, 2013 4:24 PM
  • Bump!
    Tuesday, November 19, 2013 3:49 AM