1

Windows Phone 8 でアプリケーションを作成していますが、バインディングに問題があります。これが私のページ構造を持つ私のxamlコードです

<phone:Pivot Grid.Row="1" SelectedIndex="{Binding SelectedPivotElement, Mode=TwoWay}" x:Name="SymbolsPivot" Title="Symbols" ItemsSource="{Binding CategoriesWithSymbols}">
        <phone:Pivot.HeaderTemplate>
            <DataTemplate>
                <ContentControl Content="{Binding Name}"/>
            </DataTemplate>
        </phone:Pivot.HeaderTemplate>
        <phone:Pivot.ItemTemplate>
            <DataTemplate>
                <telerikData:RadJumpList x:Name="SymbolsControl"  ItemsSource="{Binding Path=Symbols}" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" >
                    <telerikData:RadJumpList.GroupDescriptors>
                        <data:PropertyGroupDescriptor PropertyName="GroupName"
                              SortMode="Ascending" />
                    </telerikData:RadJumpList.GroupDescriptors>
                    <telerikPrimitives:RadDataBoundListBox.VirtualizationStrategyDefinition>
                        <telerikPrimitives:WrapVirtualizationStrategyDefinition Orientation="Horizontal"/>
                    </telerikPrimitives:RadDataBoundListBox.VirtualizationStrategyDefinition>
                    <telerikData:RadJumpList.GroupHeaderTemplate>
                        <DataTemplate>
                            <Grid Margin="0,-8,0,12" Width="480">
                                <TextBlock FontWeight="Bold" FontSize="{StaticResource PhoneFontSizeMedium}" Text="{Binding}" TextWrapping="Wrap"/>
                            </Grid>
                        </DataTemplate>
                    </telerikData:RadJumpList.GroupHeaderTemplate>

                    <telerikData:RadJumpList.ItemTemplate>
                        <DataTemplate>
                            <Grid Width="300">
                                <TextBlock Text="{Binding Symbol}"/>
                            </Grid>
                        </DataTemplate>
                    </telerikData:RadJumpList.ItemTemplate>
                </telerikData:RadJumpList>


            </DataTemplate>
        </phone:Pivot.ItemTemplate>
    </phone:Pivot>
    <i:Interaction.Triggers>
            <i:EventTrigger EventName="ItemTap" SourceName="SymbolsControl"  >
                <cmd:EventToCommand Command="{Binding TapCommand}"
                                        />
            </i:EventTrigger>
    </i:Interaction.Triggers>  

したがって、ピボット コントロールがあり、ピボット内にリストがあります。そして今、問題は、アプリケーションがアイテム タップ イベントをリレー コマンドにバインドすることですが、このイベント/コマンドが呼び出されないことです。リストをピボットの外に移動すると、すべてが機能します。その問題を解決するには?

4

0 に答える 0