Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Zoombox from Xceed WPF Toolkit not working

I'm experimenting with Zoombox control from Xceed. Unfortunately nothing happens on mouse wheel or pan. Am I missing something here?

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>
like image 315
Vahid Avatar asked Aug 19 '17 17:08

Vahid


People also ask

What is Xceed WPF Toolkit?

Xceed Toolkit Plus for WPF is the commercial edition of the popular Toolkit for WPF project, the number one collection of WPF controls for creating next-gen Windows apps. You can try this package for free for 45 days, after which you will need to purchase a license key to continue using it.

Is WPF Toolkit free?

Use it to build professional looking, modern, and easy to use WPF applications. It has been downloaded more than 1 million times here, on Codeplex, and on NuGet. Starting at v4. 0.0, this free toolkit is provided under the Xceed Community License agreement(for non-commercial use).

What is WPF Toolkit?

Extended WPF Toolkit is the number one collection of WPF controls, components and utilities for creating next generation Windows applications. Provides 48 controls, all offered under the Xceed Software Inc Community License. v4. 4.0 provides 17 bug fixes and improvements, including the . NET5/6 dlls.


1 Answers

You have to define DragModifiers and ZoomModifiers. Default values are Ctrl and Shift keys. So use the combination Shift+MouseWheel for zooming and use Ctrl+LeftButton for panning.

enter image description here

like image 186
jsanalytics Avatar answered Sep 29 '22 10:09

jsanalytics