참조 추가

  • WindowsFormsIntegration.dll
  • System.Windows.Forms.dll

사용법

<WindowsFormsHost x:Name="host" Grid.Row="1"/>
public MainWindow()
{
    InitializeComponent();    
    host.Child = new MaskedTextBox();
}

참고

https://docs.microsoft.com/ko-kr/dotnet/framework/wpf/advanced/walkthrough-hosting-a-windows-forms-control-in-wpf

카테고리:

업데이트:

댓글남기기