How do I create a base page in WPF?

后端 未结 5 1211
隐瞒了意图╮
隐瞒了意图╮ 2021-01-02 07:17

I have decided that all my WPF pages need to register a routed event. Rather than include

public static readonly RoutedEvent MyEvent= EventManager.RegisterR         


        
5条回答
  •  说谎
    说谎 (楼主)
    2021-01-02 07:49

    Also, have a look at Attached Events and see if you can attach your event to every Page in your app. Might be easier than a custom intermediary class.

提交回复
热议问题