|
@@ -1,14 +1,16 @@
|
|
|
<UserControl
|
|
|
- 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"
|
|
|
- xmlns:local="clr-namespace:PixiEditor.Views.UserControls"
|
|
|
- xmlns:tools="clr-namespace:PixiEditor.Models.Tools.Tools"
|
|
|
- xmlns:vws="clr-namespace:PixiEditor.Views"
|
|
|
- xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity"
|
|
|
- xmlns:behaviors="clr-namespace:PixiEditor.Helpers.Behaviours" xmlns:converters="clr-namespace:PixiEditor.Helpers.Converters"
|
|
|
- xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit" xmlns:sys="clr-namespace:System;assembly=System.Runtime" xmlns:dataholders="clr-namespace:PixiEditor.Models.DataHolders" x:Class="PixiEditor.Views.UserControls.DrawingViewPort"
|
|
|
+ xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
|
+ xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity"
|
|
|
+ xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
|
+ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
|
+ xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
|
+ xmlns:cmd="http://www.galasoft.ch/mvvmlight"
|
|
|
+ xmlns:behaviors="clr-namespace:PixiEditor.Helpers.Behaviours"
|
|
|
+ xmlns:converters="clr-namespace:PixiEditor.Helpers.Converters"
|
|
|
+ xmlns:dataholders="clr-namespace:PixiEditor.Models.DataHolders"
|
|
|
+ xmlns:local="clr-namespace:PixiEditor.Views.UserControls"
|
|
|
+ xmlns:sys="clr-namespace:System;assembly=System.Runtime"
|
|
|
+ x:Class="PixiEditor.Views.UserControls.DrawingViewPort"
|
|
|
mc:Ignorable="d"
|
|
|
d:DesignHeight="450" d:DesignWidth="800" x:Name="uc">
|
|
|
<UserControl.Resources>
|
|
@@ -30,6 +32,18 @@
|
|
|
<i:EventTrigger EventName="PreviewMouseDown">
|
|
|
<i:InvokeCommandAction Command="{Binding PreviewMouseDownCommand, ElementName=uc}"/>
|
|
|
</i:EventTrigger>
|
|
|
+ <i:EventTrigger EventName="StylusButtonDown">
|
|
|
+ <cmd:EventToCommand Command="{Binding StylusButtonDownCommand, ElementName=uc}"
|
|
|
+ PassEventArgsToCommand="True"/>
|
|
|
+ </i:EventTrigger>
|
|
|
+ <i:EventTrigger EventName="StylusButtonUp">
|
|
|
+ <cmd:EventToCommand Command="{Binding StylusButtonUpCommand, ElementName=uc}"
|
|
|
+ PassEventArgsToCommand="True"/>
|
|
|
+ </i:EventTrigger>
|
|
|
+ <i:EventTrigger EventName="StylusSystemGesture">
|
|
|
+ <cmd:EventToCommand Command="{Binding StylusGestureCommand, ElementName=uc}"
|
|
|
+ PassEventArgsToCommand="True"/>
|
|
|
+ </i:EventTrigger>
|
|
|
</i:Interaction.Triggers>
|
|
|
<i:Interaction.Behaviors>
|
|
|
<behaviors:MouseBehavior RelativeTo="{Binding ElementName=zoombox, Path=AdditionalContent}"
|