简体   繁体   中英

How to theme NumericUpDown with MetroFramework

I'm making a WindowsForm project, and I've ran into a pretty major issue (for my application at least) with MetroFramework.

When I use NumericUpDown it appears the same as the normal WindowsForm theme. I tried installing Mahapps.metro, but it didn't show any new tools, and it didn't change how it looked when applied to the form.

How do I make it so that the tool follows the Metro theme, and doesn't just look like the default WindowsForm tool?

Clarification: I'm using WindowsForms and need the theme of Mahapps NumericUpDown in my project

How do I make it so that the tool follows the Metro theme?
Clarification: I'm using WindowsForms and need the theme of Mahapps NumericUpDown in my project

You can't.

MahApps Metro is for WPF not WinForms. The NumericUpDown control is a WinForms control and like other WinForms controls, doesn't support skinning .

You will need to create a WPF app not WinForms.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM