What is the last event to fire when loading a new WPF/C# window?

前端 未结 7 643
梦毁少年i
梦毁少年i 2020-12-08 10:47

I am trying to load a preferences window for my application and I would like the apply button to initially be disabled, then when a preference is updated, the apply button g

7条回答
  •  余生分开走
    2020-12-08 11:36

    I just did kind of the same thing behaviorly in a systray WPF app.

    However, I didn't do it using event handling. I simply bound the Enabled property of my button to a property in my ViewModel, and had the property updated whenever I needed the behavior.

提交回复
热议问题