Released a free and beautiful outlook-like universal interface framework that supports skin replacement

Source: Internet
Author: User

This general interface framework is based on the osgi. Net plug-in framework. Let's take a look at the running effect.

Try another skin!

This interface framework is osgi. net is a common interface plug-in for the service plug-in platform, osgi. net service-oriented plug-in framework is a plug-in platform that supports winform, web, WPF, Silverlight, and even mobile applications. It provides three functions: Dynamic plug-in and modularization, service-oriented, and plug-in extension. This interface framework plug-in uses osgi. the Extension function of net exposes the extension points of the left navigation bar and the right display area, allowing newly developed plug-ins to register the custom interface functions to the program framework by registering the extension. Let's look at a usage example. In this example, we have created a new contact plug-in. This contact plug-in defines the extension of the interface framework through the extension node of the plug-in configuration file manifest. xml. As shown below.

 

<? XML version = "1.0" encoding = "UTF-8" ?>
< Bundle Xmlns = "Urn: uiosp-bundle-manifest-2.0" Name = "Contactsplugin" Symbolicname = "Contactsplugin" Version = "1.0.0.0" Initializedstate = "Active" >
< Activator Type = "Contactsplugin. Activator" Policy = "Immediate"   />
< Runtime >
< Assembly Path = "Bin \ contactsplugin. dll" Share = "False"   />
< Dependency Bundlesymbolicname = "Uishell. dbmanagerservice" Resolution = "Mandatory"   />
</ Runtime >
<! -- Define interface function extension, register two Custom forms to the interface framework -->
< Extension Point = "Uishell. Applications" >
< Application Title = "Contactsplugin" Tooltip = "Contactsplugin" Icon = "Contactsplugin.resources.shell.png" >
< Menu Text = "Create contact" Tooltip = "Create a contact" Icon = "Contactsplugin.resources.shell.png" Class = "Contactsplugin. createcontactform"   />
< Menu Text = "View contacts" Tooltip = "View all contacts" Icon = "Contactsplugin.resources.shell.png" Class = "Contactsplugin. contactsform"   />
</ Application >
</ Extension >
<! -- Define a data source to use the lightweight ORM Data Access Service -->
< Extension Point = "Uishell. datasources" >
< Datasource Name = "Default"  
Connectionstring = "Data Source = '{bundlelocation} \ app_data \ contact. SDF ';"  
Providername = "Microsoft. sqlserverce. client.3.5"  
Description = "Contact data source ."   />
</ Extension >
</ Bundle >

 

After running the plug-in project, you can find that the contact management application is displayed in the navigation area on the left. Once you click the navigation menu, the registered form is displayed on the right.

For the use of the interface framework, you can access: http://www.iopenworks.com/Products/ProductDetails/Introduction? Proid = 8

For introduction to the contact plug-in, development tutorials, source code and deployment files, you can access: http://www.iopenworks.com/Products/ProductDetails/Introduction? Proid = 20

 

If you have more questions, you can join the QQ chat group: 121369588.

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.