0

イメージを Silverlight プロジェクトに読み込もうとしていますが、次の XAML があります。

<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>
4

1 に答える 1

1

Silverlight のイメージ コントロールは PNG と JPEG のみをサポートし、GIF はサポートしません。

http://msdn.microsoft.com/en-us/library/system.windows.controls.image(VS.95).aspx

于 2012-04-16T22:58:46.807 に答える