提供3000多款全球软件/控件产品
针对软件研发的各个阶段提供专业培训与技术咨询
根据客户需求提供定制化的软件开发服务
全球知名设计软件,显著提升设计质量
打造以经营为中心,实现生产过程透明化管理
帮助企业合理产能分配,提高资源利用率
快速打造数字化生产线,实现全流程追溯
生产过程精准追溯,满足企业合规要求
以六西格玛为理论基础,实现产品质量全数字化管理
通过大屏电子看板,实现车间透明化管理
对设备进行全生命周期管理,提高设备综合利用率
实现设备数据的实时采集与监控
利用数字化技术提升油气勘探的效率和成功率
钻井计划优化、实时监控和风险评估
提供业务洞察与决策支持实现数据驱动决策
ZoomPanel is a custom control that provides animated zooming and panning capabilities to any WPF application.
声明:本产品中文介绍为慧都网版权所有,未经慧都公司书面许可,严禁拷贝、转载!
* 关于本产品的分类与介绍仅供参考,精准产品资料以官网介绍为准,如需购买请先行测试。
主要功能
在该库中的控件
ZoomPanel控件只是Ab2d.Controls.ZoomPanel库的主控件。该库包含:
注:该库仅在WPF应用程序中可用—不支持Silverlight。
该软件包包含一个详细的帮助文件。
这里还有许多示例用于查看ZoomPanel和其他控件的实际运行效果。此外,其他三个用户案例示例显示了使用先进的缩放和平移来改善一个现实世界的应用程序是多么的简单(点击图片看更大的屏幕截图):
Painter | Documents browser | Image browser |
ZoomPanel 和ZoomController
WPF的矢量图形引擎是一个完美的选择用于显示复杂的2D图表,模式,复杂的图表和其他的图表元素。它常常是为了应用程序的用户用于查看整个图像,同时用户也能够放大来查看其细节部分。WPF已经提供了一些基本的缩放和转换机制。但它从Scale和Translate Transform到一个伟大的用户体验经历了很长的一段路程。
下面的代码是所有需要使用具有默认的ZoomController的ZoomPanel所必须的(在右上角的5个按钮):
首先,我们需要向我们的程序集中添加应用并添加命名空间的声明到根元素中。该ZoomPanel控件完成了大部分的“魔力”。基于它的ZoomMode,它可以放大,缩小,平移,缩放到ZoomPanel的内容的选定的矩形区域(在我们的示例中时“12345”文本)。ZoomController控件只是一个预定义的ToggleButtons面板,它使得应用程序的用户在ZoomPanel上不同的ZoomMode 切换。
以下的ZoomModes可用:
在所有的缩放模式中除了None,放大和缩小也可以使用鼠标滚轮来进行(如果IsMouseWheelZoomEnabled属性没有被禁用)。
ZoomPanel可以使用许多它自身的公共方法完全的定制。另外从中可以得到一个自定义的控件并且一些核心的方法可以被重载,以提供自定义的行为。
它还可以创建您自己的ZoomController— 在示例程序中的相关包中显示了两种不同的方法可以实现这一点。
有关属性和方法的更多信息能够在该软件包所包含的帮助文档中找到。
ViewboxEx
ViewboxEx控件是非常类似标准的WPF的Viewbox控件。使用它的默认设置它伸展和缩放一个单一的子视图以填充现有可用的控件。
ViewboxEx通过定义额外的属性扩展了Viewbox—Viewbox。它的默认值作为字符串是“0 0 1 1”—其定义了一个在(0,0)开始的并其高度和宽度为1的矩形。这就意味着显示整个内容——通过相对的默认值(1指的是100%)。
下面的代码示例显示的只包含TextBlock的右半部分— 以该视图的50%比例开始并显示宽度的50%。
以下来自示例应用层序中的图像显示了一些其他Viewbox值的显示结果:
RectAnimation
RectAnimation是一个自定义的动画类,它能够被用于一个矩形到另一个矩形的动画产生。它与ZoomPanel控件一起使用为缩放产生动画。下面的代码显示了一个可用的示例。
Main features
Controls in the library
ZoomPanel control is just the main control in the Ab2d.Controls.ZoomPanel library. The library contains:
Note: the library is available only for WPF applications - not for Silverlight.
The package includes a detailed help file.
There are also many samples to see the ZoomPanel and other controls in action. Besides other samples there are also three Use Case samples that shows how simple is to improve a real world application with advanced zooming and panning (click on image to see a bigger screenshot):
Painter | Documents browser | Image browser |
ZoomPanel and ZoomController
WPF's vector based graphical engine is a perfect choice to display complex 2D diagrams, schemas, complex graphs and other graphical elements. It is often necessary for the user of the application to see the whole image and that the user can also zoom in to see the details. The WPF already provides some basic scaling and translating mechanism. But it is a long way from Scale and Translate Transform to a great user experience.
The following code is all that is needed to use the ZoomPanel with the default ZoomController
(5 buttons on the top-right):
Firstly we need to add reference to our assembly and add a namespace declaration to the root element. The ZoomPanel control does most of the "magic". Based on its ZoomMode it enables zooming in and out, panning, zooming to selected rectangle of the content of ZoomPanel (in our sample "12345" text). The ZoomController control is just a predefined ToggleButtons panel that enables user of the application to switch between different ZoomMode on ZoomPanel.
The following ZoomModes are available:
In all zoom modes except None zooming in and out can be also done with mouse wheel (if not disabled by IsMouseWheelZoomEnabled property).
The ZoomPanel can be fully customized by using many of its public methods. Also a custom control can be derived from it and some core methods can be overriden to provide custom behavior.
It is also possible to create your own ZoomController - the sample application that comes with the package shows two different ways to do this.
More info on properties and methods can be found in the help file that is included in the package.
ViewboxEx
ViewboxEx control is very similar to standard WPF's Viewbox control. With its default setting it stretch and scale a single child to fill the available space.
ViewboxEx extends the Viewbox by defining additional property - Viewbox. Its default value as string is "0 0 1 1" - this defines a Rect at (0,0) and its width and heigth to 1. This means the whole content is shown - by default the values are relative (1 meaning 100%).
The following code sample shows only the right half of the containing TextBlock - starting at 50% and showing 50% of width:
The following images from sample application show results of some other Viewbox values:
RectAnimation
RectAnimation is a custom animation class that can be use to animate one Rect to another. It is used with ZoomPanel control to animate the zooming. The following code shows a possible use.
更新时间:2015-01-28 10:22:00.000 | 录入时间:2010-05-27 16:23:22.000 | 责任编辑:何家巧
行业领先的界面控件开发包,帮助企业构建卓越应用!
Figma基于云端的界面设计工具,用于用户界面(UI)和用户体验(UX)设计
GL Studio一款用于制作实时的、照片级别的高级图形界面和强大交互控制的三维模拟软件
DevExpress DXperience Subscription高性价比的企业级.NET用户界面套包,助力企业创建卓越应用!
BusinessSkinForm VCL帮助你创建稳定且多样的应用程序皮肤。
服务电话
重庆/ 023-68661681
华东/ 13452821722
华南/ 18100878085
华北/ 17347785263
客户支持
技术支持咨询服务
服务热线:400-700-1020
邮箱:sales@cahobeh.cn
关注我们
地址 : 重庆市九龙坡区火炬大道69号6幢