EDrawing Control 在Winform和wpf中使用的edrawing 控件。使用了c# dynamic 类型封装,这样就不需要引用edrawing的dll,不需要额外配置,直接引用便可以使用。 Winform: WPF PreView Assembly Document PreView Drawing Document Print Document Create ToolTip 安装 Install-Package DuEDrawingControl -Version 1.0.1 使用 1.需要安装eDrawing 2.引用命名空间 using DuEDrawingControl; 3.将平台修改为x64 4.添加控件 Winform private EDrawingView eDrawingView; private void Form1_Load(object sender, EventArgs e) { //add edrawing control when form loaded eDrawingView = new EDrawingView() { Dock = DockStyle.Fill }; paneleDrawing.Controls.Add(eDrawingView); } Clone this repository for more WPF private DuEDrawingControl.EDrawingWPFControl edrawing; public MainWindow() { InitializeComponent(); //Add edrawing control edrawing = new DuEDrawingControl. EDrawingWPFControl() { Margin = new Thickness(5) }; edrawingPanel.Children.Add(edrawing); }
在仓库中寻找更多示例和使用方法 示例 实现的edrawing api
|