0

私は5つのピボットアイテムを持っています。それぞれにセマンティック ズーム イン ビューとビュー アウト ビューがあります。セマンティック ズーム アウト ビューを作成すると、別のセマンティック ズーム アウト ビュー画面と重なっています。この問題を解決する方法。

これは私のコードです:

 <Grid Margin="0 -15 0 0" Grid.RowSpan="2" x:Name="MainGrid">
        <Pivot x:Name="PivotControl" x:Uid="PivotControlTitle" PivotItemLoaded="PivotControl_PivotItemLoaded"  Visibility="{Binding PivotControlVisibility}">
            <PivotItem Margin="20 10 15 10" Tag="0">
                <SemanticZoom  IsZoomedInViewActive="{Binding IsSZoomedInViewActive, Mode=TwoWay}">
                    <SemanticZoom.ZoomedInView>
                        <GridView
                        AutomationProperties.AutomationId="ItemsGridView"
                        AutomationProperties.Name="Grouped Items"
                        SelectionMode="Multiple"
                        ItemTemplate="{StaticResource fileItemControl}"
                        ItemsSource="{Binding Source={StaticResource groupItemViewSource}}"
                        IsSwipeEnabled="True"
                        >
                            <GridView.GroupStyle>
                                <GroupStyle HidesIfEmpty="True">
                                    <GroupStyle.HeaderTemplate>
                                        <DataTemplate>
                                            <TextBlock 
                                                Padding="0 2 0 11"
                                                x:Name="GroupHeader"
                                                Style="{StaticResource SubheaderTextBlockStyle}"
                                                Foreground="White" 
                                                Text="{Binding GroupName}"/>
                                        </DataTemplate>
                                    </GroupStyle.HeaderTemplate>
                                    <GroupStyle.Panel>
                                        <ItemsPanelTemplate>
                                            <ItemsWrapGrid Orientation="Vertical" Margin="0 0 20 0"/>
                                        </ItemsPanelTemplate>
                                    </GroupStyle.Panel>
                                </GroupStyle>
                            </GridView.GroupStyle>
                            <i:Interaction.Behaviors>
                                <core:EventTriggerBehavior EventName="SelectionChanged">
                                    <core:InvokeCommandAction Command="{Binding GridViewSelectionChanged}"  />
                                </core:EventTriggerBehavior>
                            </i:Interaction.Behaviors>
                        </GridView>
                    </SemanticZoom.ZoomedInView>
                    <SemanticZoom.ZoomedOutView>
                        <GridView
                            Padding="18 0 0 0"
                            AutomationProperties.AutomationId="ItemsGridView"
                            AutomationProperties.Name="Grouped Items"
                            Background="#DD000000"
                            SelectionMode="None"
                            IsSwipeEnabled="True"
                            SelectedIndex="{Binding SZOutSelectedIndex, Mode=TwoWay}"
                            HeaderTemplate="{StaticResource SemanticZoomOutViewHeaderTemplate}"
                            ItemTemplate="{StaticResource DefaultGroupOutViewItemTemplate}"
                            >
                            <Style TargetType="GridViewItem">
                                <Setter Property="FontFamily" Value="{ThemeResource ContentControlThemeFontFamily}" />
                                <Setter Property="FontSize" Value="{ThemeResource ControlContentThemeFontSize}" />
                                <Setter Property="Background" Value="Transparent"/>
                                <Setter Property="TabNavigation" Value="Local"/>
                                <Setter Property="IsHoldingEnabled" Value="True"/>
                                <Setter Property="Margin" Value="0,7,4,4"/>
                            </Style>
                        </GridView>
                    </SemanticZoom.ZoomedOutView>
                </SemanticZoom>
            </PivotItem

上記のピボット コントロールには、上記のようなピボット アイテムが 4 つ以上あります

4

0 に答える 0