<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:toolkit="http://schemas.microsoft.com/winfx/2006/xaml/presentation/toolkit"
		xmlns:input="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Input.Toolkit"
        xmlns:fixedcm="clr-namespace:Silverlight.Windows.Controls;assembly=Silverlight.Windows.Controls"
        xmlns:alpha="AlphaVersion"
  xmlns:beta="BetaVersion"
  xmlns:production="ProductionVersion"
		x:Class="PDFTron.SilverDox.Samples.ToolbarControl" d:DesignHeight="40" d:DesignWidth="800" mc:Ignorable="d">
	<UserControl.Resources>
		<ResourceDictionary Source="/ReaderControl;component/Resources/ResourceDictionary.xaml" />
	</UserControl.Resources>
	<Grid x:Name="LayoutRoot">
		<Grid.Resources>
			<Storyboard x:Name="FadeInBar">
				<DoubleAnimation Storyboard.TargetName="ToolBorder" Storyboard.TargetProperty="Opacity" From="0"
						To="1.0" Duration="0:0:1" SpeedRatio="5" />
			</Storyboard>
			<Storyboard x:Name="FadeOutBar" BeginTime="0:0:2">
				<DoubleAnimation Storyboard.TargetName="ToolBorder" Storyboard.TargetProperty="Opacity" From="1.0"
						To="0" Duration="0:0:1" SpeedRatio="2" />
			</Storyboard>
		</Grid.Resources>
		<Grid Grid.Column="0" Background="Transparent" HorizontalAlignment="Center" x:Name="ToolGrid"
				MouseEnter="ToolGrid_MouseEnter" MouseLeave="ToolGrid_MouseLeave">
			<Border x:Name="ToolBorder" Style="{StaticResource OpalBorderStyle}" Opacity="0" Width="auto"
					HorizontalAlignment="Center">
				<toolkit:DockPanel x:Name="ToolDockPanel" LastChildFill="False" Height="23" Margin="0,5,0,5">
					<StackPanel x:Name="LeftToolStackPanel" Margin="5,0,0,0" toolkit:DockPanel.Dock="Left"
							Orientation="Horizontal" HorizontalAlignment="Right" VerticalAlignment="Center" />
					<StackPanel x:Name="ToolStackPanel" Margin="0,0,5,0" toolkit:DockPanel.Dock="Right"
							Orientation="Horizontal" HorizontalAlignment="Right" VerticalAlignment="Center" />
				</toolkit:DockPanel>
                  <fixedcm:ContextMenuService.ContextMenu>
                    <fixedcm:ContextMenu x:Name="ContextMenu">
                        <fixedcm:MenuItem Click="MenuItem_Click" Loaded="MenuItem_Loaded" Unloaded="MenuItem_Unloaded" />
                        </fixedcm:ContextMenu>
                  </fixedcm:ContextMenuService.ContextMenu>

            </Border>
		</Grid>
	</Grid>
</UserControl>
