WinForms is simply a layer on top of the standard Windows controls (e.g. a TextBox) WPF is built from scratch and doesn’t rely on standard Windows controls in almost all situations. you will definitely notice if you have ever worked with a framework that depends on Win32/WinAPI.
MaterialDesignThemes 非常流行的开源控件库
install Tool - NuGet Package manager - NuGet Package manager for solution
Install-Package MaterialDesignThemes -Version 3.0.0
配置App.xaml <Application x:Class="MaterialTest.App" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:local="clr-namespace:MaterialTest" StartupUri="MainWindow.xaml"> <Application.Resources> <ResourceDictionary> <ResourceDictionary.MergedDictionaries> <ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesignTheme.Light.xaml" /> <ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesignTheme.Defaults.xaml" /> </ResourceDictionary.MergedDictionaries> </ResourceDictionary> </Application.Resources> </Application>