Style for the tile
<Window x:Class="WpfApplication1.Window1" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="WPF" Height="300" Width="380"> <StackPanel Orientation="Horizontal"> <StackPanel Margin="10"> <StackPanel.Resources> <Style TargetType="{x:Type Image}"> <Setter Property="Margin" Value="5"/> <Setter Property="MaxHeight" Value="50"/> </Style> </StackPanel.Resources> <TextBlock Text="Tiles:" /> <Image Source="c:\image.jpg" /> </StackPanel> </StackPanel> </Window>