Use of Navbarcointrol in DEV Express

Source: Internet
Author: User

Content has not been truncated, content is biased and redundant, read carefully.

Found in the back, written in front:

13, before in the default mode, the reason that many appearance properties do not work, because the control of the Lookandfeel by default selected Usedefultlookandfeel.

14, the earliest in contact with the control, looked for a long time to raise the pull button is how to come out, you can set the control of the Skinexplorerbarviewscrollstyle for the button or scroll, that is, buttons or scroll bar.

First, Control

1,navbarcontrol, the navigation bar control, is located in navigation and layout classifications and can be used to implement features similar to left navigation in a Web page. Its basic elements are navbargroup controls, which are grouped by navigation bars,

2, by clicking the Quick Edit button, enter the quick and easy interface, you can add grouping (add Group), modify the docking properties (dock style), modify the control's basic layout style (Paint style). The docking property is consistent with all other controls in WinForm, modifying the docking mode in the parent container. The Paintstyle includes the Default/explorerbar/sidebar/navigationpane four modes, such as the D mode and the S mode, where the d/e pattern is similar and the s/v pattern is similar.

3, open Run Designer is a detailed property configuration for the navigation controls.

Where Groups/items/links is clearly a detailed set of items, such as navigation Category 1/navigation category 2 and so on,

View Chooser is the default attempt, which previews preview version:

Setting the control's view property overrides the previously selected Paintstyle.

4, look at the other People's demo program, how do not appear barcontrol on the button, and later found that when the addition of items enough, naturally appeared, before always tangled in this, because the button as a redundant style.

Insert: UseWaitCursor property that displays the wait symbol when the mouse enters the control's active area.

Second, Group

5,navbargroup also enters the quick edit interface

You can modify the title, noting that most controls in dev replace the original Text property with the Caption property.

Using the Supertip property to modify the cue information, as described, is really powerful.

Modify Groupstyle and select Controlcontainer to add any control to the group.

When the expanded check box is selected, the group opens by default at run time. Otherwise, the default is shrunk.

The image part of item in 6,group, select Smallimage or Largeimage to add a picture, whether it is displayed in small or large way, depending on groupstyle in group, If Groupstyle is Largeicontext, then:

Conversely, if Smallicontext is selected in group, but only largeimage is specified, then I am sorry, no icon will be displayed.

Insert: Controls that are common to the interface are in the components category, such as ImageCollection.

To achieve the above effect, we can add smallimages and largeimages for the Navbarcontrol control, that is, to specify ImageCollection for the two properties respectively. This specifies the Smallimageindex property, which, of course, overrides the image specified in ImageCollection If Smallimage has been specified.

7, at the same time only one Group of the Expanded property is true;

8, in the default mode, the BackColor and BackColor2 of the group's appearance attribute and the bordercolor attribute are invalidated, but in sidebar mode it is useful, but in sidebar mode, Icons will not be displayed, so we infer that icons and color backgrounds do not coexist by default, that is, they cover each other.

The Font property sets the size of the fonts in group and affects the height of the group.

Fontsizedelta will affect the size of the group display font, FONTSTYLEDELTA will affect the style of the font, such as bold/italic. ForeColor represents the font color;

Gradientmode represents the way color gradients, such as vertical/horizontal.

The image is the background picture set. Of course it is only valid in sidebar mode.

That is, only the sidebar mode allows so many customizations, which are overwritten directly in other modes. In fact, these properties will be preserved when switching modes, but there is an overlap between them.

Other properties in the options, such as setting useimage, will not be expanded.

9, some attributes of the same appearancebackground are only valid in sidebar. It's just the background of the group, not the set of the group bar.

There is no need to unfold. is of little use.

10,appearancehottrack just when the mouse enters the group control, the control's reflection is still useful.

11,dragdropflags sets whether items within the group can be dragged.

The Hint property sets the hint text, which is a miniature version of the Supertip.

Visible indicates visibility, other properties are not described.

Third, item

12, because there is control and group accumulation, so the quick editing interface of item does not need to explain, note that the Enabled property is available, indicates whether the current control can be selected. The properties of the appearance are also not described.

Note that the Candrag property is affected by the drag in group, and even if the set group can be dragged, we can still set an item not to be dragged.

Use of Navbarcointrol in DEV Express

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.