, XAML 171 * . - :
<Grid.ColumnDefinitions>
<ColumnDefinition Width="24" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
XAML layout, , .
-, ( URI), , 24, , , , , 0.
<Border Grid.Column="0" Grid.Row="0" BorderThickness="0" BorderBrush="Black">
<Image
Source="sampleImages/gecko.jpg"
Stretch="UniformToFill" />
</Border>
. , , - :
<Image Width="200">
<Image.Source>
<BitmapImage DecodePixelWidth="200"
UriSource="C:\Documents and Settings\All Users\Documents\My Pictures\Sample Pictures\Water Lilies.jpg" />
</Image.Source>
</Image>
, , . http://msdn.microsoft.com/en-us/library/ms748873.aspx
I agree with the accepted answer, but I don't think this explains why it just explains that it works.
source
share