【发布时间】:2012-01-06 15:13:10
【问题描述】:
我的 WP7.5 Silverlight 应用程序中有一个 Image 元素,我尝试在 XAML 中和以编程方式更改其源代码。无论我尝试什么,我都无法完全加载大图像(大小或字节,我不知道)。
这是我的代码:
<controls:PanoramaItem>
<ScrollViewer VerticalAlignment="Top" VerticalScrollBarVisibility="Auto" Margin="2, 4, 0, 0" HorizontalScrollBarVisibility="Disabled">
<StackPanel x:name="stackPanel">
<TextBlock x:Name="debugger" Foreground="Black"/>
<Image Source="http://d24w6bsrhbeh9d.cloudfront.net/photo/1574819_460s.jpg" VerticalAlignment="Top" ImageOpened="Image_ImageOpened"/>
</StackPanel>
</ScrollViewer>
</controls:PanoramaItem>
private void Image_ImageOpened(object sender, RoutedEventArgs e)
{
debugger.Text = "DONE";
}
【问题讨论】:
标签: c# windows-phone-7