How do I create a base page in WPF?

后端 未结 5 1212
隐瞒了意图╮
隐瞒了意图╮ 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:47

    I'm not sure on this one, but looking at your error, I would try to define the base class with just c# (.cs) code - do not create one with XAML, just a standard .cs file that extends the WPF Page class.

提交回复
热议问题