2017-08-19 8 views
1

J'expérimente avec Zoombox contrôle de Xceed. Malheureusement rien ne se passe sur la molette de la souris ou sur la casserole. Est-ce que j'ai râté quelque chose?Zoombox de Xceed WPF Toolkit ne fonctionne pas

https://github.com/xceedsoftware/wpftoolkit

<Window x:Class="UI.MainWindow" 
     xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
     xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
     xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
     xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
     xmlns:xcdg="http://schemas.xceed.com/wpf/xaml/datagrid" 
     xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit" 

     mc:Ignorable="d" 
     Title="MainWindow" Height="800" Width="700"> 
    <Grid> 
     <xctk:Zoombox MinScale="0.5" MaxScale="100" > 
      <Grid Width="600" Height="400" Background="Yellow"> 
       <Ellipse Fill="Blue" /> 
      </Grid> 
     </xctk:Zoombox> 
    </Grid> 

</Window> 

Répondre

1

Vous devez définir DragModifiers et ZoomModifiers. Les valeurs par défaut sont Ctrl et Shift. Donc, utilisez Shit + MouseWheel pour zoomer et utilisez Ctrl + LeftButton pour le panoramique.

enter image description here