Ribbon界面的插件框架实现功能与界面的分离

时间:2016-02-01 15:31:49
【文件属性】:

文件名称:Ribbon界面的插件框架实现功能与界面的分离

文件大小:11.75MB

文件格式:RAR

更新时间:2016-02-01 15:31:49

C# ribbon 功能与界面 分离

具体介绍见:http://blog.csdn.net/happyw2004/article/details/8494871 使用C#开发的插件框架,实现了界面与功能的分离,使用了DEVEXPRESS界面,可能需要安装相应的版本才能运行。要增加功能只需要新建一个类库项目,名称以.addin.dll结尾,建立一个类继承于AbstractToolButtonCommand类实现相应的属性和一个功能类即可。在界面上就会自动生成相应的按钮。 public class Class1:td.Core.AbstractToolButtonCommand { public override string GroupName { get { return "skd"; } set { base.GroupName = value; } } public override System.Drawing.Image largeImage { get { return Image.FromFile(Application.StartupPath+"\\images\\Ribbon_Content_32x32.png"); } set { base.largeImage = value; } } public override string PageName { get { return "Home"; } set { base.PageName = value; } } public override void Run() { MessageBox.Show("test"); } public override string Caption { get { return "sldfkj"; } set { base.Caption = value; } } }


【文件预览】:
DevExpress.OfficeSkins.v11.1.dll
DevExpress.XtraGrid.v11.1.dll
DevExpress.Utils.v11.1.dll
DevExpress.BonusSkins.v11.1.dll
MainForm.exe.config
DevExpress.RichEdit.v11.1.Core.dll
td.Core.vshost.exe.config
DevExpress.XtraNavBar.v11.1.dll
DevExpress.Printing.v11.1.Core.dll
DevExpress.XtraRichEdit.v11.1.dll
td.command.addin.dll
td.command.addin.pdb
DevExpress.XtraLayout.v11.1.dll
Images
----Ribbon_Find_32x32.png(2KB)
----Ribbon_Info_16x16.png(872B)
----Calendar_16x16.png(705B)
----Ribbon_SaveAs_16x16.png(632B)
----Ribbon_Content_16x16.png(581B)
----Ribbon_Underline_16x16.png(323B)
----Ribbon_Italic_16x16.png(274B)
----Ribbon_Open_16x16.png(669B)
----Outbox_16x16.png(789B)
----Ribbon_AlignRight_16x16.png(237B)
----Ribbon_AlignCenter_16x16.png(241B)
----Inbox_16x16.png(810B)
----Trash_16x16.png(709B)
----Tasks_16x16.png(640B)
----Ribbon_Open_32x32.png(1KB)
----Ribbon_Content_32x32.png(1KB)
----Ribbon_AlignLeft_16x16.png(236B)
----Ribbon_Close_16x16.png(832B)
----Ribbon_New_32x32.png(910B)
----Ribbon_Info_32x32.png(2KB)
----Ribbon_New_16x16.png(485B)
----Ribbon_Exit_16x16.png(746B)
----Ribbon_Close_32x32.png(2KB)
----Ribbon_Save_16x16.png(553B)
----Mail_32x32.png(2KB)
----Ribbon_SaveAs_32x32.png(1KB)
----Organizer_32x32.png(2KB)
----Drafts_16x16.png(755B)
----Ribbon_Find_16x16.png(680B)
----Ribbon_Exit_32x32.png(2KB)
----Ribbon_Save_32x32.png(1KB)
----Ribbon_Bold_16x16.png(267B)
DevExpress.XtraBars.v11.1.dll
td.Core.exe.config
MainForm.exe
MainForm.vshost.exe.config
td.Core.exe
MainForm.vshost.exe
DevExpress.Data.v11.1.dll
DevExpress.XtraEditors.v11.1.dll
MainForm.pdb
td.Core.dll

网友评论