大丰烤肉店在哪:XPanderControls(outlook 2007风格界面控件)【精品】

来源:百度文库 编辑:偶看新闻 时间:2024/04/23 22:48:19


运行环境:WinXP/Win2003/Vista/C# 授权方式:免费软件 软件大小:184K 下载量:148 更新日期:2010-11-02 来源地址:http://www.worktool.cn/ 联系作者:未知

类似outlook 2007 风格的界面控件,带类似qq菜单折叠功能,自动停靠。非常经典漂亮,推荐下载。

详细介绍如下:

Introduction

The XPander library offers the option to store many user controls in one single document formula. They are optionally visible or non-visible, expanded or collapsed. The controls provide optically the Microsoft Outlook 2007 style with black, silver and blue color schemes. They also provide other styles. The included ToolStripRenderers offer some other opportunities. All the controls support visual designer, smart tag and RightToLeft features. It contains the following components.

BSE.Windows.Forms.Panel

The panel is a control that contains other controls. You can use a panel to group collections of controls such as the XPanderPanelList control. On top of the panel, there is the captionbar. This captionbar may contain an image and text. According to its dockstyle and properties, the panel is collapsible and/or closable.

BSE.Windows.Forms.XPanderPanelList

The XPanderPanelList contains XPanderPanels, which are represented by XPanderPanel objects that you can add through the XPanderPanels property. The order of XPanderPanel objects reflects the order in which the xpanderpanels appear in the XPanderPanelList control.

BSE.Windows.Forms.XPanderPanel

XPanderPanel controls represent the expandable and collapsible panels in XPanderPanelList. The XpanderPanel is a control that contains other controls. You can use an XPanderPanel to group collections of controls such as the XPanderPanelList. The order of xpanderpanels in the XPanderPanelList.XPanderPanels collection reflects the order of xpanderpanels controls. To change the order of tabs in the control, you must change their positions in the collection by removing them and inserting them at new indexes. You can change the xpanderpanel's appearance. For example, to make it appear flat, set the CaptionStyle property to CaptionStyle.Flat.

On top of the XPanderPanel, there is the captionbar. This captionbar may contain an image and text. According to its properties, the panel can be closed.

BSE.Windows.Forms.Splitter

This represents a splitter control that enables the user to resize docked controls. As different from the System.Windows.Forms.Splitter, the splitter supports a transparent background color.

A splitter can be attached to a panel. If the visibility of the panel changes, the visibility of the splitter changes too.

All the panelcolors and properties are customizable and changeable with the visual designer.

If you want to expand a XPanderPanel in the Visual Designer, please click the captionbar.

When the RightToLeft property value is set to RightToLeft.Yes, the horizontal alignment of the control's elements are reversed.

Using the Code

Right click on the toolbox and choose add/remove items..., there you browse for the BSE.Windows.Forms.dll and press OK. All the controls will be added in the ToolBox under "My User Controls". Set BSE.Windows.Test as StartUp Project.

Using the RightToLeft Feature in the Test Sample

Open the Program.cs file in the BSE.Windows.Test project and remove the following comments:

Collapse
    [STAThread]    static void Main()    {    //// if you want to use the RightToLeft demo,    //// please remove these comments    //CultureInfo currentCulture = new CultureInfo    // (BSE.Windows.Test.Properties.Settings.Default.Language);    //Thread.CurrentThread.CurrentCulture = currentCulture;    //Thread.CurrentThread.CurrentUICulture = currentCulture;    Application.EnableVisualStyles();    Application.SetCompatibleTextRenderingDefault(false);    //// if you want to use the RightToLeft demo,    //// please remove these comments    //using (CCountrySelectionForm form = new CCountrySelectionForm())    //{    //form.ShowDialog();    //}    Application.Run(new Form1());    }    

Select the ar-EG culture name for the Arabic (Egypt) culture:

Class Diagrams

XPanderPanelList

Panel and XPanderPanel