Silverlight overrides a control style

Source: Internet
Author: User

In practical development applications, the Silverlight default control style does not meet all of our requirements, especially the construction of a gorgeous interface, which requires skin rewriting of existing controls. The XAML description interface is used in Wpf/silverlight, similar to CSS, and they also have style and template. At present, Microsoft Open Source Toolkit is integrated with complex types of controls, how to modify their style does make a lot of friends, then this section is mainly analysis, combined with the common NumericUpDown controls to explain how to override existing controls.

First open the sample project in the toolkit:

Next Find Numericupdownsample.xaml This sample page and open:

Why did you do that? To override a control you must first know how it is constructed, and of course, if you have deep skill, you can look at the source code from the base class to write down, but this is definitely a thankless task, because MS has provided us with very detailed sample:

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.