Use WPF resource dictionary

1, add a resource dictionary in the solution: Right - Add - resource dictionary

 

2, written in the style you need in a resource dictionary, I am here to simply write the form of a border style

 

3, adding just new in App.xaml resources like dictionaries

 

Guess you like

Origin www.cnblogs.com/xiangyueqiaomai/p/12010484.html