WPF Window control calls across a form / form method calls across a program

WPF Window control calls across a form / form method calls across a program

For example, the coexistence of the two procedures now Window, Form A and Form B, if I want to operate on Form A in the B form of it?

Operation 1: A calling method of func

Operation 2: A large call button, the large-button is unavailable

How to achieve it?

I'll provide a solution, using the event

In IwndowB, the write event, the program used for func A call to achieve given below


Binding in the event of B in A


B events were defined in A, gave a func method, so that the background of the large button red discoloration, let's try to see results


Click B operation in the form A, found in big red button programming A

Guess you like

Origin www.cnblogs.com/iamgongjun/p/11957700.html