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