PageRenderTime 30ms CodeModel.GetById 1ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/CBR/CBR/Views/Books/BookView.xaml

#
XAML | 30 lines | 28 code | 2 blank | 0 comment | 0 complexity | 28f5389aef7a8e124786a651d0d06d6e MD5 | raw file
 1<UserControl x:Class="CBR.Views.BookView"
 2             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
 3             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
 4             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
 5             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
 6             mc:Ignorable="d"
 7             xmlns:Controls="clr-namespace:CBR.Components.Controls"
 8			 xmlns:Converters="clr-namespace:CBR.Components.Converters"
 9             d:DesignHeight="300" d:DesignWidth="300" Loaded="UserControl_Loaded">
10	
11    <Grid Name="PageViewerGrid">
12			<Controls:PageControl x:Name="PageViewer" Panel.ZIndex="1"
13						ImageSource="{Binding ImgSource}" Scale="{Binding Scale, Mode=TwoWay}" FitMode="{Binding FitMode}"
14						IsEditing="{Binding IsInEditMode}" FrameList="{Binding FrameList}"
15						PreviewMouseMove="PageViewer_PreviewMouseMove"
16						PreviewMouseLeftButtonDown="PageViewer_PreviewMouseLeftButtonDown"
17						PreviewMouseLeftButtonUp="PageViewer_PreviewMouseLeftButtonUp"
18						PreviewKeyDown="PageViewer_PreviewKeyDown"
19						PreviewKeyUp="PageViewer_PreviewKeyUp">
20				<Controls:PageControl.ContextMenu>
21					<ContextMenu>
22						<MenuItem Header="Properties" Command="{Binding BookPropertyCommand}" />
23					</ContextMenu>
24				</Controls:PageControl.ContextMenu>
25			</Controls:PageControl>
26
27		<Controls:MagnifyGlass x:Name="Magnifier" Panel.ZIndex="500" VisualToDisplay="{Binding ElementName=PageViewer}" 
28                               Scale="{Binding MagnifierSize}" Zoom="{Binding MagnifierScale}" />
29    </Grid>
30</UserControl>