전제조건.
WPF userconrol이 있다.
사용하기.
1. 참조추가
- C:\Program Files\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\Profile\Client\PresentationFramework.dll (찾아보기)
- C:\Program Files\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\Profile\Client\PresentationCore.dll (찾아보기)
- WindowsFormsIntegration (.Net)
2. using 추가
using System.Windows.Controls;
using System.Windows.Forms.Integration;
3. winform에 ElementHost 추가
4. 추가된 ElementHost.Child에 WPF userControl 넣어서 사용하면 됨 ^^

반응형
'Language > C#' 카테고리의 다른 글
| DEP 기능 비호환 ActiveX (0) | 2016.02.04 |
|---|---|
| C# 리본메뉴 (0) | 2016.02.04 |
| 정규식 패턴 (0) | 2016.02.04 |
| Image 배율만큼 확대 (0) | 2016.02.04 |
| MSChart Control 설치방법 (0) | 2016.02.04 |