Sharpui Enterprise Edition-Overview [01] [QQ group: 206378966]

Source: Internet
Author: User

1. What is sharpui?

Sharpui is a set of interface Engines Based on DUI. It is developed in pure C ++ to implement complete message processing mechanism, rendering engine separation, and flexible control scaling, it is a real interface engine that separates interfaces from business logic in C ++.

Sharpui abstracts the interface elements into a separate drawing unit, and then combines these drawing units into a logical control through the template concept. Therefore, the Interface Engine implements the core rendering and drawing units, and obtains various logical controls through combination to meet the ever-changing business needs. In addition, it fundamentally makes the interface development simple and efficient, the business really only cares about its own business logic. As for the presentation of business data, the interface engine data is automatically bound to the core layer.


This document: http://down.51cto.com/data/1887618

Images related to this document are collected. If your copyright is infringed, contact 386666951. we will delete them in time!


The following are some controls of sharpui:

650) This. width = 650; "src =" http://home.51cto.com/thumb.php? W = 600 & H = 600 & t = F & url = http://s3.51cto.com/wyfs02/M02/4C/FB/wKioL1RImBDisUAZAAF7zjdFojg512.jpg "width =" 600 "Height =" 337 "alt =" wkiol1rimbdisuazaaf7zjdfojg512.jpg "/>


2. sharpui advantages

Sharpui is an excellent interface engine in the C ++ field. It adopts a different implementation method than the traditional one. The traditional DUI interface library generally uses interface-Driven Data; sharpui uses the data-driven interface.

Disadvantages of the traditional interface-Driven Data Interface Engine:

  • The user's business data is highly coupled with the interface;

  • The interaction between data and UI is large and error-prone;

  • The scalability and flexibility of the entire system are greatly limited;

  • The system development efficiency is relatively low, and the development code is large.

The sharpui Interface Engine is implemented using a data-driven interface. Its features are as follows:

  • Bind data to the UI control to automatically update user data and UI control. You only need to focus on the business logic to make development more efficient, intelligent, and easy;

  • Implement a complete dependency attribute system, effectively saving the memory space occupied by the system;

  • Implement a complete virtual display mechanism to easily support the presentation of more than 100000 data items, greatly accelerate the startup speed of applications and reduce memory usage;

  • With a complete animation framework, you can easily develop a variety of efficient and cool animations to meet your business needs and improve the user experience of your products;

  • Most of the interface-related logic can be configured in XML, with high development efficiency and low code size;

  • Using Virtual controls and dirty area processing technology, the system occupies a small amount of CPU and consumes low memory;

  • The delegation mechanism makes interaction between users and interfaces simple, easy, and natural.

  • Improve the resource structure to easily achieve multi-language and skin-changing effects (with the ability to change layout and content ).


The above briefly demonstrates the unique advantages of sharpui over the traditional DUI interface. Later, we will demonstrate the strong, simple, and efficient data-driven interface through actual code.



3. Overall sharpui Structure

Is the overall structure of the entire sharpui:

650) This. width = 650; "src =" http://home.51cto.com/thumb.php? W = 600 & H = 600 & t = F & url = http://s3.51cto.com/wyfs02/M02/4C/FB/wKioL1RImd6TUcAXAALMf-uDGHI842.jpg "width =" 600 "Height =" 555 "alt =" wKioL1RImd6TUcAXAALMf-uDGHI842.jpg "/>



4. Hello, sharpui

Sharpui is simple and efficient for project development. The following is a simple example to give you an intuitive impression on how to display a window of hello and sharpui:

The layout file is described as follows:

<? XML encoding = "UTF-8"?>

<Window name = "window1">

<Window. Resources>

<Solidcolorbrush X: Key = "window_bk" color = "# 288add"/>

<Solidcolorbrush X: Key = "border_bk" color = "# 298add"/>


<Style targettype = "window">

<Setter property = "background" value = "{dynamicresource window_bk}"/>

<Setter property = "borderbrush" value = "{dynamicresource border_bk}"/>

<Setter property = "borderthickness" value = "0"/>

<Setter property = "template">

<Setter. value>

<Controltemplate targettype = "window">

<Border background = "{templatebinding}" cornerradius = "2.5"

Borderbrush = "{templatebinding}" borderthickness = "{templatebinding}">

<Adornerdecorator>

<Contentpresenter/>

</Adornerdecorator>

</Border>

</Controltemplate>

</Setter. value>

</Setter>

</Style>

</Window. Resources>

<Grid>

<Textblock horizontalalignment = "center" verticalalignment = "center" text = "Hello, sharpui"/>

</GRID>

</WINDOW>


Below are a few demon (add QQ group: 206378966 for further understanding ):

Sharpui Main Control demo interface:

650) This. width = 650; "src =" http://home.51cto.com/thumb.php? W = 600 & H = 600 & t = F & url = http://s3.51cto.com/wyfs02/M01/4C/FA/wKiom1RIl8KhZMo5AAJXKLH-myM757.jpg "width =" 600 "Height =" 337 "alt =" wKiom1RIl8KhZMo5AAJXKLH-myM757.jpg "/>


Major demon:

650) This. width = 650; "src =" http://home.51cto.com/thumb.php? W = 600 & H = 600 & t = F & url = http://s3.51cto.com/wyfs02/M00/4C/FB/wKioL1RImA6CEKtJAADsinqtqOU612.jpg "width =" 428 "Height =" 328 "alt =" wkiol1rima6cektjaadsinqtqou612.jpg "/>

650) This. width = 650; "src =" http://home.51cto.com/thumb.php? W = 600 & H = 600 & t = F & url = http://s3.51cto.com/wyfs02/M00/4C/FA/wKiom1RIl8DizVlvAAHlGVRkbek594.jpg "width =" 368 "Height =" 537 "alt =" wkiom1ril8dizvlvaahlgvrkbek594.jpg "/>

650) This. width = 650; "src =" http://home.51cto.com/thumb.php? W = 600 & H = 600 & t = F & url = http://s3.51cto.com/wyfs02/M01/4C/FB/wKioL1RImBDhWBxdAARpj46UP54524.jpg "width =" 600 "Height =" 367 "alt =" wkiol1rimbdhwbxdaarpj46up54524.jpg "/>

650) This. width = 650; "src =" http://home.51cto.com/thumb.php? W = 600 & H = 600 & t = F & url = http://s3.51cto.com/wyfs02/M02/4C/FA/wKiom1RIl7_ScYy3AAHwyy41sAc604.jpg "width =" 600 "Height =" 481 "alt =" wkiom1ril7_scyy3aahwyy41sac604.jpg "/>



This article is from the sharpui Interface Engine blog, please be sure to keep this source http://sharpui.blog.51cto.com/9516071/1567199

Sharpui Enterprise Edition-Overview [01] [QQ group: 206378966]

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.