How to set image to image control?

By James J

set image path to image control...


//Here one folder is created named "Images" & store image in that folder in your application folder...


<Window x:Class="WpfApplication1.MainWindow"
         
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
         
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
         
Title="MainWindow" Height="350" Width="525">
    
<Grid>
        <Image Height="13" HorizontalAlignment="Left" Margin="19,82,0,0" Name="image1" Stretch="Fill" VerticalAlignment="Top" Width="111" Source="/WpfApplication1;component/Images/Balloon.bmp" />
    
</Grid>
</Window>

How to set image to image control?  (1232 Views)