How to Set personality attributes for controls in netadvantage

Source: Internet
Author: User

Problem:

Properties separately set for ultrabutton in the form cannot be displayed normally

Problem reproduction:

1. Create usercontrol and add ultrabutton1
2. Modify ultrabutton1 -- appearance -- backcolor to red.
3. When the project runs properly, it is found that ultrabutton1 is shown as the default light blue of defaultform.

Problem Analysis:

When a netadvantage control is created, the style of the parent form is inherited by default, so that the personal attributes of the control cannot be displayed normally.

Correction Method:

Method 1: Modify the Style File loaded by the parent form, as shown on the right.

Step 1. Open the style editor infragistics -- netadvantage -- Windows Forms -- appstylist for Windows Forms

Step 2. Open the style to be edited

Step 3. Select the control to be edited, such as ultrabutton. You can customize your own style.

Miserable-Images cannot be uploaded now

Method 2: Modify control attributes
Useappstyling = false;
Useosthemes = infragistics. Win. defaultableboolean. False;
The control does not inherit the style of the parent form by default.

Experience:

Netadvantage has the function of inheriting the style of the parent form, which is not always easy to use. Sometimes you need to create some special attributes for the interface.

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.