谁能阐明为什么以下代码不起作用?“不工作”是指图像未在全景控件中呈现:
XAML
DataContext="{Binding RelativeSource={RelativeSource Self}}"
shell:SystemTray.IsVisible="False">
<Grid x:Name="LayoutRoot">
<controls:Panorama Title="My Control">
<controls:Panorama.Background>
<ImageBrush ImageSource="{Binding RandomImage}"/>
</controls:Panorama.Background>
C#
public string RandomImage { get; set; }
注意: RandomImage 属性设置为 Internet 上的公共 jpg 图像。
编辑
我也尝试将 RandomImage 属性更改为 ImageSource 但没有任何运气。