/CBR/CBR/Views/Books/BookView.xaml
XAML | 30 lines | 28 code | 2 blank | 0 comment | 0 complexity | 28f5389aef7a8e124786a651d0d06d6e MD5 | raw file
- <UserControl x:Class="CBR.Views.BookView"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- mc:Ignorable="d"
- xmlns:Controls="clr-namespace:CBR.Components.Controls"
- xmlns:Converters="clr-namespace:CBR.Components.Converters"
- d:DesignHeight="300" d:DesignWidth="300" Loaded="UserControl_Loaded">
-
- <Grid Name="PageViewerGrid">
- <Controls:PageControl x:Name="PageViewer" Panel.ZIndex="1"
- ImageSource="{Binding ImgSource}" Scale="{Binding Scale, Mode=TwoWay}" FitMode="{Binding FitMode}"
- IsEditing="{Binding IsInEditMode}" FrameList="{Binding FrameList}"
- PreviewMouseMove="PageViewer_PreviewMouseMove"
- PreviewMouseLeftButtonDown="PageViewer_PreviewMouseLeftButtonDown"
- PreviewMouseLeftButtonUp="PageViewer_PreviewMouseLeftButtonUp"
- PreviewKeyDown="PageViewer_PreviewKeyDown"
- PreviewKeyUp="PageViewer_PreviewKeyUp">
- <Controls:PageControl.ContextMenu>
- <ContextMenu>
- <MenuItem Header="Properties" Command="{Binding BookPropertyCommand}" />
- </ContextMenu>
- </Controls:PageControl.ContextMenu>
- </Controls:PageControl>
-
- <Controls:MagnifyGlass x:Name="Magnifier" Panel.ZIndex="500" VisualToDisplay="{Binding ElementName=PageViewer}"
- Scale="{Binding MagnifierSize}" Zoom="{Binding MagnifierScale}" />
- </Grid>
- </UserControl>