<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"
	
	mc:Ignorable="d"
	x:Class="PDFTron.SilverDox.Samples.SubControls.ZoomTextBoxControl"
	d:DesignWidth="120" d:DesignHeight="38">

	<UserControl.Resources>
		<ResourceDictionary Source="/ReaderControl;component/Resources/ResourceDictionary.xaml"/>
	</UserControl.Resources>

	<Grid x:Name="LayoutRoot">
		<StackPanel Margin="0" Orientation="Horizontal" d:LayoutOverrides="Height">
			<TextBox x:Name="ZoomTextBox" Text="{Binding Converter={StaticResource ZoomLevelConverter}, Mode=TwoWay, Path=Zoom}" 
				KeyDown="ZoomTextBox_KeyDown" MouseEnter="ZoomTextBox_MouseEnter"
                MaxLength="4" VerticalAlignment="Center" HorizontalContentAlignment="Right"
				Width="35" Foreground="Black" HorizontalAlignment="Right"  TextAlignment="Right" BorderThickness="1" Padding="0" >
				<ToolTipService.ToolTip>
					<ToolTip Placement="Bottom">
						<TextBlock x:Name="ZoomToolTextBlock" />
					</ToolTip>
				</ToolTipService.ToolTip>
			</TextBox>
			<TextBlock Text="%" Margin="2,0,0,0" Style="{StaticResource ToolbarTextBlock}" />
		</StackPanel>
	</Grid>
</UserControl>