Behold the following XAML:
<Grid>
<HyperlinkButton x:Name="Link" Background="Green">
<Grid Background="Red">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto" />
<ColumnDefinition />
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="12" />
</Grid.RowDefinitions>
<Image x:Name="AvatarImage" Style="{StaticResource AvatarStyle}" Grid.Column="0" Grid.Row="0" />
<StackPanel Grid.Column="1" HorizontalAlignment="Stretch">
<TextBlock Text="New Topic" Style="{StaticResource ItemTypeStyle}" />
<TextBlock x:Name="Title" Style="{StaticResource HeadlineStyle}" TextWrapping="Wrap" />
<TextBlock x:Name="SubText" Style="{StaticResource TextStyle}" TextWrapping="Wrap" />
</StackPanel>
<TextBlock x:Name="TimeStampText" Grid.ColumnSpan="2" Grid.Row="1" Style="{StaticResource TimeStampStyle}" />
</Grid>
</HyperlinkButton>
In the user control's Loaded event, I call the following code:
var imageUrl = new Uri("http://coasterbuzz.com/Forums/UserAvatar.ashx?id=2");
AvatarImage.Source = new BitmapImage(imageUrl);
Looking at Firebug, the image is coming down the wire, but for some reason it's not displayed. Any guesses as to why? You'd probably like to see the styles, but note that if I remove the styles, nothing changes.