C # winform Development Series-introduction to some open source third-party controls

Source: Internet
Author: User
Document directory
  • Aqua Effects)
  • Office2007 Effects)
  • Some design goals
  • Quick Guide

From: http://www.cnblogs.com/peterzb/archive/2009/06/21/1507880.html

1. Copy the ribbon panel of Office 2007 (this control imitates the ribbon style of Office 2007 and displays the Operation Panel .)

2. The most comprehensive table control in. net

[Translation]

Mathew Hall. xptable-. Net listview meets Java's jtable

[Introduction]

As the project requires, I need to customize a listview, which must be able to insert images, drop-down boxes, numbers that can be adjusted up or down, progress bars, and so on in the column. Because I already have a background in Java, I will simply encapsulate it based on that jtable.

[Function]

Custom Visual Interface
Supports XP style
Easy to add and customize controls
Columns that can be hidden
Rows, columns, and units can be disable.
Each unit and column can have a tooltip.
Wait ......

[Xptable]

Xptable contains the following components:
1. Table,
2. columnmodel and its columns,
3. tablemodel and its row and cell,
4. Renderer
5. Editor

3. opentheme: an open-source GUI toolkit

[Translation]

Weiqj. opentheme: an open source graphic user interface (GUI) Toolkit

[Introduction]

Opentheme is an XML-based GUI toolkit that includes a series of basic classes and WYSIWYG editors. Although it was originally designed for full screen GUI, it is fully applicable to Windows user interfaces.

In addition, I have prepared a complete introductory tutorial for you.

4. An XP and Vista Outlook toolbar Control

[Translation]
Jan geerinckx with rich outlookbar in XP and Vista Style

[Development Environment]
VB
. Net

[Introduction]
The control in this article implements an XP and Vista style Outlook toolbar control.

[Basic structure]

The control has three classes:

Outlookbarbutton class
This class implements a single button instance, where plotting is not included here.
The basic members are as follows:
Text: If the button is displayed as a large button, the text is displayed on it. If the button is displayed at the bottom and as a small button, the text is displayed as a tooltip.
Visible: indicates whether the button is visible. It can be dynamically set during running.
Allowed: This button is invisible when it is set to false. You cannot access a specific button during running.
Image: The image displayed on the button. Preferably 24x24 or a larger icon.
Rectangle: it can be set only in assembly.

Outlookbarbuttoncollection class:

It inherits from collectionbase and is the set of buttons mentioned above.

5. Use Vista-style controls. NET 2.0Widget

Translation

Pedro M. C. Cardoso follows Vista controls

Introduction

Vista controls is a library that provides new style controls in Microsoft Windows Vista operating system.

If you are. NET 2.0 applications use system. windows. tree View in forms assembly, list view listview, open file dialog box openfiledialog, save file dialog box savefiledialog and directory browse dialog box folderbrowserdialog. When your program runs under Vista, you will find that your program style has not changed, and you have not automatically called the New Vista interface style, or the previous Windows XP style.

In Vista controls, you will find five alternative classes that make the programs running in Vista look like Vista, if you use these programs in earlier Windows systems, they are still in the old style. This reduces the workload and makes it easy for your program to adapt to both Vista and earlier Windows versions.

In addition, the Vista control set includes a new control added to Vista: command link. Because this control does not exist in earlier Windows systems, it imitates the Vista style when the program runs in these Windows systems.

General dialog box

Open File, save file and Open Directory dialog box

 

6. panel control library xpandercontrols

 
Panel control library xpandercontrols

Author: Uwe eichkorn.
Translation: [YN] Yuxiang

This article describes how to use an extensible panel control library that can be grouped by child controls.
C # (C #2.0)
Windows (Win2k, WINXP, Vista),. Net (. NET 2.0)
Win32, vs (vs2005)
Dev
Posting Date:2007-4-13
Updated on:2007-9-29

Download source code and demo files (http://www.codeproject.com/useritems/XPanderControls/xpandercontrols.zip)-177.8 KB

Original article: xpandercontrols

Translator's note(In addition, Due to space limitations, most of the illustrations in the translation are not attached. Please download the translation for details)
(1) After extracting the source code, we recommend that you cancel the read-only attribute of the source code file to avoid a warning dialog box when saving the file.
(2) After opening the solution for the first time, you need to enter the control library BSE. Windows. Forms. dll. Otherwise, the demo form form1.cs cannot be opened.
(3) Before debugging, set the BSE. Windows. test project as the startup project.
(4) Note: when using the righttoleft function, an error occurs during runtime (for initial imagelist2 control, see the following description). Please follow the author's updates.

Introduction

The xpander control library allows you to place multiple user controls in a single container. It can be displayed or hidden at will. The xpander control follows the visual style of MS outlook. All Controls Support the visual designer, Smart tag, and righttoleft functions. The use of the Panel is associated with toolstripenders to create interesting visual effects.

Panel styles)

In the demo project, you can change the Panel style by using the combo box in tooltrip.

Aqua effects office2007 Effects)

In the visualization designer, panel colors and attributes can be customized and changed.

 

WhenRighttoleftProperty value is setRighttoleft. YesThe horizontal alignment of control elements is changed from right to left.

7. Office 2007 ribbon-style buttons and menus [reprinted]

Translation

Juan Pablo G. C. Improved and recoded ribbonmenubutton

Introduction

First, thank you. I am very grateful to you for your high comments on the efforts made in this article. I remember that when I was 16 years old, I saw a variety of software, applications, and games, and for me, it was impossible to achieve or develop such software. However, since then, I have learned a lot and now I have been able to easily complete such software. Moreover, if I can help anyone implement brilliant applications, I decide they can use my code freely.

Background

Previously, I have been thinking about how to make a fully Customized button and how difficult it is to change the RGB element. I decided to make a class ribboncolor that can provide many operation colors. If you run the demo program and move the hue, SAT, or brightness trackbar, you will soon understand what I said above. I must acknowledge that nearly 70% of the ribboncontrol linked libraries have been completed. However, when people are eager to use improved code and tell me that I have not explained much about my code, I decided to treat myself as a dumb person. :)

8. C # winform Development Series-grid controls

9. C # winform Development Series-Article indexing (other controls)

10. Introduction to the free user interface control kryton Toolkit

Kryton
Introduction

Kryton 2.7.1

 Kryton KitIt includes user interface components that allow developers to easily create professional appearance applications. You can use a built-in template to complete the same appearance as industrial standard applications, suchMicrosoft Office 2007. You can also choose to build your own custom template to create a very unique user interface.Kryton KitIt consists of three products:Kryton Toolkit,Kryton RIBBONAndKryton Navigator. Note: InstallKryton KitContains the Assembly, help documentation, templates, examples and their source code, and adds components in the Assembly to the toolbox of Visual Studio 2005 (or 2008) development environment, add the kryton form project, kryton toolstrip form project, and kryton ribbon form project templates.Kryton KitProvides color templates such as Office 2007 Blue, Office 2007 silver, Office 2007 black, Office 2003, and system, which are easy to work with. Net toolbar, menu bar, Status Bar, and other controls)

(After downloading and decompressingYou only need to installKryptontoolkit271.msi): Download on windowsclient.net

Or: http://www.componentfactory.com/downloads/KryptonToolkit271.zip

Kryton Toolkit

Kryton ToolkitProvides a set of free basic user interface components. You can distribute signedKryton toolkit assembly, No charge or license required. If you want to view or modify the source code, you canComponent FactoryFor more information, see the link at the end of the page.

11. Copy the Scalable panel control in the XP Resource Manager.

[Translation]
Collapsible panel control

This control has functions similar to the Scalable panel on the left of Windows XP resource browser.

[Introduction]

This control can contain multiple views. When you click the title bar of a panel, it can automatically scale the following panel. You can set its own title bar icon and custom stretch/shrink button. In addition, there are several different types of labels used to customize the Panel Interface and behavior.

When you click a panel, you will receive the wm_command message in the main window, which will tell you whether the Panel is really stretched or shrunk. You can also disable auto scaling.

The widget also allows you to capture wm_drawitem messages and then draw your own button image.

Due to performance considerations, the widget draws the button image in a single-digit diagram, which ensures that it is quickly displayed on the interface. Memory DC is used during painting to prevent flickering.

12. A professional ribbon Control

Author:Jose M. Menendez poó
Translation: Yuxiang
Posting Date:
Updated on:2008-5-29

  • Download demo program
  • Download source code (http://www.codeproject.com/KB/toolbars/WinFormsRibbon.aspx)

Introduction

I decided to write a free ribbon control on my website. I analyzed the working mechanism of the previous ribbon controls (including those on codeproject. Unfortunately, most of the existing controls are just bad attempts. Why? Some of them lack good plotting, some lack the ability to change the size, and some have almost nothing to do. Of course, the developed ribbon controls are charged. This ribbon is free of charge.

Why not use WPF? The main reason is that I need to add ribbon to an existing winforms application. In my opinion, this is not "not" to use WPF, but "not yet" to use. In either case, You can host a winforms control in WPF (see http://msdn.microsoft.com/en-us/library/ms750944.aspx ).

Some design goals

Implementation-This ribbon is contained in a control window. Each element in it is managed as a series of bounds in the control, just like the toolstrip control. Although it is difficult to manage from the internal code of ribboon, this is a way to keep it best to implement ribbon. Believe me, download the demo program, run it, and change the size of the form. It's done beautifully.

And office RIBBONConsistency-I have read about Jakob Nielsen. Most users prefer programs that look like Word, Excel, or PowerPoint. This is obvious because people use the software every day. It is very important that the visual effect is consistent with ribbon of office, because people already know what to expect and that is a useful usage. I tried to make the appearance and behavior of each element in ribbon strictly consistent with that in office ribbon.

Easy for programmers-Component naming is the same as that in most winforms naming systems. toolstrip elements are more used. For the properties of similar elements, the event and method names are like the process items in toolstrip.

Design TimeSupported-I will add more and more design time support, so you can manage this ribbon 100% in the designer.

When I find the bugs or you are happy to let me know about them, I will provide updates And correction.

Use RIBBON

This ribbon is locatedSystem.Windows.FormsNamespace, like other controls, I want to useMyCoolFirm.MyCoolNameSpace.MyCoolSubNameSpaceThe naming method of such controls is unpleasant (Please name them only for commercial objects ).

You can add references to compiled DLL (system. Windows. Forms. ribbon. dll), or copy the source code file to your project folder. Now the code has been designed. You can just copy the source code file without any additional resources.

Quick Guide

This ribbon mainly consists of three elements: the tag (tabs), the panel on the tag (Panels on the tabs, other developers call them as groups ), and items inside the Panel (items inside the panels ).

These elements pass throughRibbonTab,RibbonPanel AndRibbonItem Type.RibbonItem IsRibbonPanelOrRibbonDropDownAbstract class that provides basic functions.

You can use the Smart tag of ribbon to add tags. You can select a tag and call the "add panel" action at the bottom of the Attribute Table to add the tag panel.

The elements on ribbon are adjusted based on the available ribbon space. This is a key feature of ribbon. By adjusting the size, it tries to display all available commands on the screen, rather than hiding them on the overflow button (like the legacy toolstrip ).

I use three sizes for processing: large (large), medium (medium), and compact (COMPACT ). An additional dimension is used for the Panel because the Panel can be folded and then they are in the overflow size mode.

13. Gantt Chart Rendering component

Translation
Adagio.81. Gantt Chart

Introduction
This component allows you to simply add a Gantt chart to your application. You only need three lines of code.

This Gantt chart includes the following features:
1. The column width is automatically adjusted according to the width of the component and the start and end time. If there are more than two days between the date, the control only displays the date; otherwise, the time is displayed.
2. You can set the color for each bar
3. automatically display the scroll bar
4. The information is automatically displayed when the mouse stops.
5. It is easy to use multi-line prompt box text

14. Windows Forms. net

15. The Code project (Recommended Site with rich resources)

Related Article

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.