私は pivotviewerも も初めてですsilverlight。
プロパティobservablecollectionを持つを作成しました
public string StaffName { get; set; }
public string Location {get;set;}
メソッドを使用して、次の方法BuildCollection()でバインドしmainpage.xamlます。
<pivot:PivotViewer x:Name="pViewer">
<pivot:PivotViewer.ItemTemplates>
<pivot:PivotViewerItemTemplate MaxWidth="300">
<Border Width="300" Height="300"
<TextBlock Text="{Binding StaffName}"
FontSize="90"
FontWeight="Bold"
Foreground="White"
HorizontalAlignment="Center"
VerticalAlignment="Center" />
</Border>
</pivot:PivotViewerItemTemplate>
</pivot:PivotViewer.ItemTemplates>
</pivot:PivotViewer>
ここで、画像と Location というプロパティを持つ にcities.cxml存在する CXML ファイルをバインドします。clientbinコレクションとcxmlの間にリンクを作成して、staffnameを示すコレクションをdeepzoomすると、cxmlコレクションにある都市の画像にフェードインする必要があります。たとえば、場所は観察可能なコレクションのロンドンです。cxmlファイルからロンドンの画像にズームする必要があります。誰でもこれを達成するのを助けることができますか? ありがとう。