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: