<UserControl x:Class="FlexGridSamples.SearchBox"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
    <Grid x:Name="LayoutRoot">
        <Border x:Name="_border" Background="White" BorderBrush="LightGray" BorderThickness="1 1 2 2" Padding="6 0" >
            <StackPanel Orientation="Horizontal">
                <Image x:Name="_imgSearch" Source="Resources/search.png" Stretch="None" />
                <TextBox x:Name="_txtSearch" Text="Search" Width="160" BorderThickness="0" VerticalContentAlignment="Center" TextChanged="_txtSearch_TextChanged" />
                <Image x:Name="_imgClear" Source="Resources/clear.png" Stretch="None" PointerPressed="_imgClear_PointerPressed"/>
            </StackPanel>
        </Border>
    </Grid>
</UserControl>
