<?xml version="1.0" encoding="utf-8"?>
<UserControl x:Class="C1_Demo.DemoContextMenu" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:c1="http://schemas.componentone.com/winfx/2006/xaml">
    <UserControl.Resources>
        <Style TargetType="Image" x:Key="MenuIcon">
            <Setter Property="Width" Value="13" />
            <Setter Property="Height" Value="13" />
            <Setter Property="Margin" Value="5 0 0 0" />
        </Style>
    </UserControl.Resources>
    <Grid x:Name="LayoutRoot">
    	<Grid.RowDefinitions>
    		<RowDefinition />
			<RowDefinition Height="Auto" />  	
		</Grid.RowDefinitions>
        <Border Background="LemonChiffon" MinHeight="40" BorderBrush="#969696" BorderThickness="1" Padding="5" HorizontalAlignment="Center" VerticalAlignment="Center">
                <c1:C1ContextMenuService.ContextMenu>
                    <c1:C1ContextMenu x:Name="contextMenu" ItemClick="contextMenu_ItemClick">
                        <c1:C1MenuItem Header="Add">
                            <c1:C1MenuItem Header="New Item">
                                <c1:C1MenuItem.Icon>
                                    <Image Style="{StaticResource MenuIcon}" Source="../../Resources/Menu/newFile.png" />
                                </c1:C1MenuItem.Icon>
                            </c1:C1MenuItem>
                            <c1:C1MenuItem Header="Existing Item" />
                            <c1:C1MenuItem Header="Folder" />
                            <c1:C1Separator />
                            <c1:C1MenuItem Header="Class" />
                        </c1:C1MenuItem>
                        <c1:C1Separator />
                        <c1:C1MenuItem Header="Exclude From Project" />
                        <c1:C1Separator />
                        <c1:C1MenuItem Header="Cut">
                            <c1:C1MenuItem.Icon>
                                <Image Style="{StaticResource MenuIcon}" Source="../../Resources/Menu/cut.png" />
                            </c1:C1MenuItem.Icon>
                        </c1:C1MenuItem>
                        <c1:C1MenuItem Header="Copy">
                            <c1:C1MenuItem.Icon>
                                <Image Style="{StaticResource MenuIcon}" Source="../../Resources/Menu/copy.png" />
                            </c1:C1MenuItem.Icon>
                        </c1:C1MenuItem>
                        <c1:C1MenuItem Header="Paste">
                            <c1:C1MenuItem.Icon>
                                <Image Style="{StaticResource MenuIcon}" Source="../../Resources/Menu/paste.png" />
                            </c1:C1MenuItem.Icon>
                        </c1:C1MenuItem>
                        <c1:C1MenuItem Header="Delete">
                            <c1:C1MenuItem.Icon>
                                <Image Style="{StaticResource MenuIcon}" Source="../../Resources/Menu/delete.png" />
                            </c1:C1MenuItem.Icon>
                        </c1:C1MenuItem>
                        <c1:C1MenuItem Header="Rename" />
                        <c1:C1Separator />
                        <c1:C1MenuItem Header="Properties" />
                    </c1:C1ContextMenu>
                </c1:C1ContextMenuService.ContextMenu>
                <TextBlock Text="Press the context-menu button over this text (right-click in Windows)." TextWrapping="Wrap" HorizontalAlignment="Center" VerticalAlignment="Center" />
         </Border>
         <TextBlock x:Name="txt" Grid.Row="1" Foreground="Red" Text="" VerticalAlignment="Center" HorizontalAlignment="Center" />
     </Grid>
</UserControl>