I'm using the Extended WPF Toolkit's Zoombox. Right now, Ctrl + drag and drop is changing the position, and alt + Scroll is changing the zoom. Logically I'd rather have this turned around since in most software Ctrl+Scroll is used for zooming. How do I change these keys? I played around with DragModifiers
and RelativeZoomModifiers
property but can't get it to work.
I tried the following:
<xctk:Zoombox Margin="20" ClipToBounds="False" HorizontalAlignment="Stretch" Name="CanvasZoombox" VerticalAlignment="Stretch" Scale="1" AutoWrapContentWithViewbox="False">
<xctk:Zoombox.ZoomModifiers>
<xctk:KeyModifier>LeftCtrl</xctk:KeyModifier>
</xctk:Zoombox.ZoomModifiers>
<xctk:Zoombox.RelativeZoomModifiers>
<xctk:KeyModifier>LeftCtrl</xctk:KeyModifier>
</xctk:Zoombox.RelativeZoomModifiers>
<Viewbox Stretch="Uniform" Name="CanvasViewbox" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" OpacityMask="White">
<Canvas Name="LabelCanvas" Background="#FFC3C3C3"/>
</Viewbox>
</xctk:Zoombox>
This doesn't change anything unfortunately