0
私は私のSilverlightのプロジェクトに画像をロードしようとしていますし、私は次のXAMLを持っている:WPFイメージ
<UserControl x:Class="SilverlightApplication1.MainPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d"
d:DesignHeight="300" d:DesignWidth="400" xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk">
<Grid x:Name="LayoutRoot" Background="White">
<Image Height="150" Width="200" Source="http://wsf.cdyne.com/WeatherWS/Images/rain.gif" />
</Grid>
</UserControl>
代わりに何を使用しますか? – Spencer
@Spencer GIFコンテンツをサポートされている形式に変換するためにvalueconverterを実装してみてください。 –
あなたの最も簡単な賭けは、別のファイル形式を使用することです。しかし、GIFの使用を主張する場合、Silverlightのプログラムマネージャーの一人が、外部フレームワークを使用して銀色のアニメーションGIFを表示する方法を書いていました。私は個人的にそれを試みていない:http://blogs.msdn.com/b/jstegman/archive/2008/06/08/sample-updates-for-beta-2.aspx –