Home > Net >  WPF window button response function in how they relate to the custom class
WPF window button response function in how they relate to the custom class

Time:12-04

That is to say I don't want to direct button response function (OnButtonXXX) in the window of the XAML code, but to bind to a custom class, I this how to implement? I don't want to use the MVVM framework, implementation is simple with WPF?

Note: how to decouple the button the response of the logic function and the coupling between the window class (my window class background don't want to write any code),

CodePudding user response:

Your class to do the custom button class, is to inherit the original press button class then events in a custom button written line, window custom button, directly in line
  • Related