locked
Pointer Position with GridView inside ZoomedOut View RRS feed

  • Question

  • Hi everybody,

    I'm currently working on a Windows Store App and wanted to take advantage of the Semantic Zoom when displaying a TV-Schedule (In the zoomed in View you can view a FlipView with the Schedule - in Zoomed Out you can select Station-Groups & Stations or Drag the stations around)

    For a while now there is a problem in the Zoomed Out View - the Pointer Position is off so some Items are not selectable at all (when you mouse over something the mouse over and click happens on some other element

    When the pointer is in the center everything's ok but the further you go to a border the more off the position is)

    the XAML looks like this:

    (SemanticGrid simply extends Grid and implements ISemanticZoomInformation and GridViewEx allows drag and drop across groups)

    <SemanticZoom x:Name="EPG_semanticZoom"  Grid.RowSpan="3"  >
                <SemanticZoom.ZoomedInView>
                <ui:SemanticZoomFlipView Grid.Row="1" Visibility="{Binding IsLoading, Converter={StaticResource FalseToVisibleConverter}}" x:Name="flipView"
                        Padding="80, 60, 80, 60"
                        ItemsSource="{Binding AllStationsGroups}"
                        ItemTemplateSelector="{StaticResource EPGFlipViewItemTemplateSelector}"
                        ItemContainerStyle="{StaticResource EPG_FlipViewItemStyle}"       Style="{StaticResource EPG_FlipViewStyle}"/>
                </SemanticZoom.ZoomedInView>
                <SemanticZoom.ZoomedOutView>      
                    <control:SemanticGrid >
                            
                        <ui:GridViewEx x:Name="StationsGridView" SelectionMode="None"
                                   IsItemClickEnabled="True"
                                   BeforeDrop="MyGridView_BeforeDrop"
                                   AllowDrop="True"
                                   Padding="116, 136, 80, 80"
                                   IsSwipeEnabled="True"
                                   CanDragItems="True"
                                   CanReorderItems="True"
                                   ItemsSource="{Binding Mode=OneWay, Source={StaticResource groupedItemsViewSource}}"
                                   ItemTemplate="{StaticResource EPG_SelectionStationItemDataTemplate}"
                                   IsZoomedInView="False">
                            <GridView.GroupStyle>
                                <GroupStyle ContainerStyle="{StaticResource EPG_StationGroupItemStyle}" HeaderTemplate="{StaticResource EPG_StationGroupHeaderTemplate}">
                                    <GroupStyle.Panel>
                                        <ItemsPanelTemplate>
                                            <StackPanel Orientation="Vertical" >
                                                <StackPanel.ChildrenTransitions>
                                                    <TransitionCollection>
                                                        <ReorderThemeTransition/>
                                                        <RepositionThemeTransition/>
                                                    </TransitionCollection>
                                                </StackPanel.ChildrenTransitions>
                                            </StackPanel>
                                        </ItemsPanelTemplate>
                                    </GroupStyle.Panel>
                                </GroupStyle>
                            </GridView.GroupStyle>
                            <GridView.ItemsPanel>
                                <ItemsPanelTemplate>
                                    <WrapGrid />
                                </ItemsPanelTemplate>
                            </GridView.ItemsPanel>
                        </ui:GridViewEx>
                    </control:SemanticGrid>
    
            </SemanticZoom.ZoomedOutView>
    
    </SemanticZoom>

    Anybody knows, what the problem might be?

    Thanks a lot.

    Friday, October 4, 2013 11:03 AM

Answers

All replies

  • Can you share your 'entire' simple repro sample on SkyDrive so that we can understand your problem better and help.

    Windows Store Developer Solutions #WSDevSol || Want more solutions? See our blog, http://aka.ms/t4vuvz

    Saturday, October 5, 2013 12:07 AM
    Moderator
  • Thanks for your response :)

    I figured it out over the weekend: i was using a visual state triggered by the ZoomChange which messed it up.
    Tuesday, October 8, 2013 8:36 AM