我是新手 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>
现在我想绑定cities.cxml位于其中的 CXML 文件,该文件clientbin具有图像以及名为 Location 的属性。我想在集合和 cxml 之间创建一个链接,以便当我对显示人员姓名的集合进行深度缩放时,它应该淡入 cxml 集合中的城市图像。对于 ex Location is london in observable collection 我应该将它从 cxml 文件中深度缩放到伦敦的图像。任何人都可以帮助实现这一目标吗?谢谢。