WPF custom derived control style

前端 未结 5 1257
难免孤独
难免孤独 2021-01-04 22:04

I have a custom control derived from Button:

    class MyControl : Button{}

And suppose, this class is empty (has no members).

In t

5条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-01-04 22:53

    Check if style for Button is there in your BureauBlue.xaml and remove x:key attribute from the style if it is there

提交回复
热议问题