[C#/WPF] WindowsFormsHost 엘리먼트 : WINFORM 복합 컨트롤 호스트하기


■ WPF 응용 프로그램에서 데이터 입력을 수행하기 위해 Windows Forms 복합 컨트롤을 호스팅하는 응용 프로그램을 안내한다. 복합 컨트롤은 DLL에 패키지되어 있다. 이 일반적인 절차는 더 복잡한 응용 프로그램 및 제어로 확장될 수 있다.

[TestLibrary 프로젝트]

CustomControlEventArgs.cs

CustomControlEventHandler.cs

CustomControl.cs

[TestProject 프로젝트]

MainWindow.xaml

MainWindow.xaml.cs

TestSolution.zip