GithubHelp home page GithubHelp logo

lajfox / muinetplus Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mroccyen/muinetplus

0.0 2.0 0.0 726 KB

WPF插件式开发框架,基于FirstFloor.ModernUI界面库,可根据配置文件动态配置界面与功能。相比UIShell.iOpenWorks.WPF,增加了可在不同Dll中配置同一菜单下的子菜单项,并且可自定义排序。

C# 100.00%

muinetplus's Introduction

MUINetPlus

框架介绍

MUINetPlus是WPF的一个插件式的开发框架,界面库基于FirstFloor.ModernUI,可根据配置文件动态配置界面与功能。

相比UIShell.iOpenWorks.WPF,增加了可在不同Dll中配置同一菜单下的子菜单项,并且可自定义排序。

配置文件

<Plugin  Name="MainConfig" Author="mroccyen" Version="1.0.0" Description="" Initialized="true">
  <Extension Type="LinkGroup"  Assembly="MUINetPlus.MainPlugin.dll">
    <LinkGroup Name="Project" Index="1" DisplayName="项目" >
      <Link Name="Setting" Index="0" DisplayName="设定" Source="MUINetPlus.MainPlugin.TestUserControl"></Link>
      <Link Name="New" Index="1" DisplayName="新建" Source="MUINetPlus.MainPlugin.TestUserControl1"></Link>
    </LinkGroup>
    <LinkGroup Name="Debug" Index="0" DisplayName="调试" >
      <Link Name="Produce" Index="0" DisplayName="生成" Source="MUINetPlus.MainPlugin.TestUserControl2"></Link>
      <Link Name="Start" Index="1" DisplayName="开始" Source="MUINetPlus.MainPlugin.TestUserControl3"></Link>
    </LinkGroup>
    <LinkGroup Name="View" Index="2" DisplayName="视图" >
      <Link Name="Design" Index="0" DisplayName="设计器" Source="MUINetPlus.MainPlugin.TestUserControl6"></Link>
      <Link Name="Property" Index="1" DisplayName="属性" Source="MUINetPlus.MainPlugin.TestUserControl7"></Link>
    </LinkGroup>
    <LinkGroup Name="View" Index="2" DisplayName="视图" >
      <Link Name="Design" Index="0" DisplayName="视图1" Source="MUINetPlus.MainPlugin.TestUserControl6"></Link>
      <Link Name="Property" Index="1" DisplayName="视图2" Source="MUINetPlus.MainPlugin.TestUserControl7"></Link>
    </LinkGroup>
    <LinkGroup Name="Set" Index="2" DisplayName="设置" GroupKey="Settings" IsTitleLink="true">
      <Link Name="Set1" Index="0" DisplayName="设置1" Source="MUINetPlus.MainPlugin.TestUserControl4"></Link>
      <Link Name="Set2" Index="1" DisplayName="设置2" Source="MUINetPlus.MainPlugin.TestUserControl5"></Link>
    </LinkGroup>
    <LinkGroup Name="Color" Index="1" DisplayName="颜色" GroupKey="Settings" IsTitleLink="true">
      <Link Name="Color1" Index="0" DisplayName="颜色1" Source="MUINetPlus.MainPlugin.TestUserControl4"></Link>
      <Link Name="Color2" Index="1" DisplayName="颜色2" Source="MUINetPlus.MainPlugin.TestUserControl5"></Link>
    </LinkGroup>
  </Extension>
</Plugin>

每个节点的解释:

  • Extension:插件的扩展节点,里面可包含一个或者多个插件项。
  • LinkGroup:第一级菜单项,可以根据Index属性设置顺序优先级。
  • Link:LinkGroup下的子菜单,同样可根据Index属性设置顺序优先级,同时Source设置显示的页面。

使用方法

只需要将相应的Dll和配置文件所在文件夹放在Plugins目录下即可。

意见

如果有什么意见和建议欢迎给我发邮件,大家一起探讨探讨。

muinetplus's People

Contributors

mroccyen avatar

Watchers

James Cloos avatar 锡山飞狐 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.