How to use it in XAML?

Aug 3, 2011 at 11:28 AM

Hi, I'm trying to load images from a twitter feed so the profile images could be jpg or gif.
I'm using VS 2010.

My Silverlight 4 app looks like this:

 

<UserControl
    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" 
    xmlns:smf="http://schemas.microsoft.com/smf/2010/xaml/player"
    xmlns:media="clr-namespace:Microsoft.SilverlightMediaFramework.Core.Media;assembly=Microsoft.SilverlightMediaFramework.Core"
    xmlns:SmoothStreamingMediaElementExample="clr-namespace:SMF_SmoothStreaming1" xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity" xmlns:ei="http://schemas.microsoft.com/expression/2010/interactions"
    xmlns:local="clr-namespace:ImageTools;assembly=ImageTools"
    xmlns:Controls="clr-namespace:ImageTools.Controls;assembly=ImageTools.Controls" x:Name="userControl" x:Class="SMF_SmoothStreaming1.MainPage"
    mc:Ignorable="d"
    d:DesignHeight="300" d:DesignWidth="400" 
    >
	<UserControl.Resources>
		 <Grid x:Name="LayoutRoot" Background="White">
            <ListBox x:Name="ChannelBrowserControl" Width="300" HorizontalAlignment="Left" Margin="0,10" Opacity="0.75" BorderThickness="0,1,1,1" Height="Auto" ScrollViewer.VerticalScrollBarVisibility="Auto" MinHeight="{Binding ActualHeight, ElementName=MediaPlayer}" VerticalAlignment="Stretch" Background="#000000" Style="{StaticResource ListBoxStyle1}" RenderTransformOrigin="0.5,0.5">
            	<ListBox.RenderTransform>
            		<CompositeTransform TranslateX="-300"/>
            	</ListBox.RenderTransform>
                <ListBox.ItemTemplate>
                    <DataTemplate>
                        <StackPanel Height="80" Orientation="Horizontal">
                            <Canvas Width="87" Height="77">
                            <Controls:AnimatedImage  x:Name="imgPumpkin" Source="{Binding ImageUri}"  VerticalAlignment="Top" Stretch="Fill" Height="83" Width="120" BorderThickness="5" Background="Black" OpacityMask="{x:Null}"/>
 
                            </Canvas>
                            <TextBlock FontFamily="Arial" Foreground="White" FontWeight="Bold" FontSize="12" Padding="10" Width="100" TextWrapping="Wrap" Text="{Binding Title}"/>
                        </StackPanel>
                    </DataTemplate>
                </ListBox.ItemTemplate>
            	
            </ListBox>
    </Grid>
    
    
</UserControl>

I added all the dll's as references but nothing happens.

Please, if anyone have a XAML example of how to display images i'd be most grateful!

//Rob