WPF : 2. WPF에서 Winform Control을 사용하는 법
참조 추가
- WindowsFormsIntegration.dll
- System.Windows.Forms.dll
사용법
<WindowsFormsHost x:Name="host" Grid.Row="1"/>
public MainWindow()
{
InitializeComponent();
host.Child = new MaskedTextBox();
}
<WindowsFormsHost x:Name="host" Grid.Row="1"/>
public MainWindow()
{
InitializeComponent();
host.Child = new MaskedTextBox();
}
댓글남기기