Code Monkey home page Code Monkey logo

leondirectui's Introduction

LeonDirectUI

  • 一款轻巧的DirectUI框架;
  • 支持虚拟控件级别的鼠标事件;
  • 可以自定义布局并在容器尺寸改变时设置响应布局;
  • 界面图文可以自定义绘制样式和对齐方式;
  • 基因决定支持容器克隆并引用同一组虚拟控件;
  • 可以自定义绘制器实现个性化风格定制;
  • 小巧简洁,使用方便;
  • 底层绘制代码高效,性能资源占用较小;

解决方案结构:

  • ControlBase :

虚拟控件基类,实现了控件的基础属性,包括位置、大小、图文绘制样式、图文对齐方式、响应鼠标事件、公开给访问者的方法等; 可以继承此类以定制功能更强大的控件类型;

  • ContainerBase :

容器基类,继承自 System.Windows.Forms.Control,可直接放置于 WinForm 界面内; 用于提供虚拟控件管理作用; 可以继承此类以扩展更强大的管理容器;

  • CloneContainerBase :

克隆容器基类,设置克隆的目标容器即可在克隆类中实时响应目标容器的所有效果;

  • PainterBase :

绘制器基类,用于提供基础的底层绘制方法; 可继承此类定制喜欢的界面风格;

image


演示效果:

  • 自定义响应式布局:

image

  • 克隆容器与目标容器实时响应事件:

image

leondirectui's People

Watchers

 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.