0

私は基本的に、2 つのパノラマ アイテムを含むパノラマ コントロールを持っています。これには、単に異なるアイテムのリストが含まれています。Windows phone のチュートリアルに従って、ユーザーがリストの最後に到達したことを検出し、新しいアイテムを表示します -スクロールビューアーが最後までスクロールしたときに、(呼び出し) メソッドを起動します

ただし、私の問題は、両方のリストボックスにこれが必要であるため、2つの異なる依存関係プロパティを登録しましたが、依存関係プロパティを特定のリストボックスに「リンク」するにはどうすればよいですか?

ありがとうございました

リストボックス 1

  <ListBox Foreground="Black" 
                         x:Name="nuus"
                         Loaded="nuus_Loaded_1"
                         ItemsSource="{Binding Story}"
                         SelectionChanged="nuus_SelectionChanged_1">
                    <ListBox.ItemTemplate>
                        <DataTemplate>
                            <StackPanel Orientation="Horizontal" Margin="12,2,0,4" Height="105" Width="432">
                                <Image Width="115" Height="115" Source="{Binding ImageUrl}"/>
                                <StackPanel Width="311" Margin="8,0,0,0">
                                    <TextBlock Text="{Binding Title}" 
                                           TextWrapping="Wrap" 
                                           FontWeight="Bold"
                                           Margin="10,0" 
                                           Foreground="Black"
                                           FontSize="20"/>

                                    <TextBlock Text="{Binding CreationDate}" 
                                           TextWrapping="Wrap" 
                                           Foreground="Black"
                                           Margin="10,-2,10,0" 
                                           FontSize="20"/>
                                </StackPanel>
                            </StackPanel>
                        </DataTemplate>
                    </ListBox.ItemTemplate>
                </ListBox>
4

1 に答える 1