MainDrawingPanel.xaml 1.3 KB

1234567891011121314151617181920
  1. <UserControl x:Class="PixiEditor.Views.MainDrawingPanel"
  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. xmlns:local="clr-namespace:PixiEditor.Views"
  7. xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"
  8. xmlns:helpers="clr-namespace:PixiEditor.Helpers"
  9. xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit"
  10. mc:Ignorable="d"
  11. d:DesignHeight="450" d:DesignWidth="800" x:Name="mainDrawingPanel">
  12. <xctk:Zoombox IsAnimated="False" Name="Zoombox" KeepContentInBounds="True" Loaded="Zoombox_Loaded" ZoomModifiers="None" >
  13. <i:Interaction.Triggers>
  14. <i:EventTrigger EventName="MouseMove">
  15. <i:InvokeCommandAction Command="{Binding MouseMoveCommand, ElementName=mainDrawingPanel, Mode=OneWay}"/>
  16. </i:EventTrigger>
  17. </i:Interaction.Triggers>
  18. <ContentPresenter Content="{Binding Item, ElementName=mainDrawingPanel}"/>
  19. </xctk:Zoombox>
  20. </UserControl>