WPF custom derived control style

前端 未结 5 1258
难免孤独
难免孤独 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条回答
  •  猫巷女王i
    2021-01-04 22:37

    The TargetType property doesn't work for classes that derive from the specified type. See this question

提交回复
热议问题