Vah*_*hid 5 c# wpf xaml wpftoolkit xceed
我正在尝试通过进行Zoombox控制Xceed。不幸的是,鼠标滚轮或平底锅上没有任何反应。我在这里想念什么吗?
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>
Run Code Online (Sandbox Code Playgroud)
您必须定义DragModifiers和ZoomModifiers。默认值为Ctrl和Shift键。因此,请使用Shift+ MouseWheel组合进行缩放,并使用Ctrl+ LeftButton进行平移。
| 归档时间: |
|
| 查看次数: |
863 次 |
| 最近记录: |