PageRenderTime 43ms CodeModel.GetById 19ms RepoModel.GetById 0ms 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. <Grid Name="PageViewerGrid">
  11. <Controls:PageControl x:Name="PageViewer" Panel.ZIndex="1"
  12. ImageSource="{Binding ImgSource}" Scale="{Binding Scale, Mode=TwoWay}" FitMode="{Binding FitMode}"
  13. IsEditing="{Binding IsInEditMode}" FrameList="{Binding FrameList}"
  14. PreviewMouseMove="PageViewer_PreviewMouseMove"
  15. PreviewMouseLeftButtonDown="PageViewer_PreviewMouseLeftButtonDown"
  16. PreviewMouseLeftButtonUp="PageViewer_PreviewMouseLeftButtonUp"
  17. PreviewKeyDown="PageViewer_PreviewKeyDown"
  18. PreviewKeyUp="PageViewer_PreviewKeyUp">
  19. <Controls:PageControl.ContextMenu>
  20. <ContextMenu>
  21. <MenuItem Header="Properties" Command="{Binding BookPropertyCommand}" />
  22. </ContextMenu>
  23. </Controls:PageControl.ContextMenu>
  24. </Controls:PageControl>
  25. <Controls:MagnifyGlass x:Name="Magnifier" Panel.ZIndex="500" VisualToDisplay="{Binding ElementName=PageViewer}"
  26. Scale="{Binding MagnifierSize}" Zoom="{Binding MagnifierScale}" />
  27. </Grid>
  28. </UserControl>