【问题标题】:Zoombox from Xceed WPF Toolkit not workingXceed WPF Toolkit 中的 Zoombox 不工作
【发布时间】:2017-08-19 17:49:38
【问题描述】:

我正在试验来自XceedZoombox 控件。不幸的是,鼠标滚轮或平移没有任何反应。我在这里遗漏了什么吗?

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>

【问题讨论】:

    标签: c# wpf xaml wpftoolkit xceed


    【解决方案1】:

    您必须定义DragModifiersZoomModifiers。默认值为 CtrlShift 键。因此,使用组合 Shift+MouseWheel 进行缩放,使用 Ctrl+LeftButton 进行平移。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-12-14
      • 2011-06-19
      • 1970-01-01
      • 2021-11-09
      相关资源
      最近更新 更多