我想从代码中更改WP7中全景视图的背景图像。
首先来自XAML: -
<controls:Panorama Title="earth" Name="PanoObj">
<controls:Panorama.Background>
<ImageBrush ImageSource="background.jpg" />
</controls:Panorama.Background>
</controls:Panorama>
从代码方面来看,它来自: -
$ this.PanoObj.Background //接受类型Brush。
我真的不明白这一点,因为从XAML它是一个ImageBrush但在代码中它是刷机。 请帮我解决这个问题,或者从ImageBrush转换为Brush。
感谢,