WindowsFormsHost.EnableWindowsFormsInterop 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
Form WPF에서 모덜리스로 열 때 제대로 작동하도록 설정합니다.
public:
static void EnableWindowsFormsInterop();
public static void EnableWindowsFormsInterop();
static member EnableWindowsFormsInterop : unit -> unit
Public Shared Sub EnableWindowsFormsInterop ()
설명
EnableWindowsFormsInterop 메서드를 호출하여 System.Windows.Forms.Form 모덜리스로 열 때 모든 키보드 메시지를 전달합니다. EnableWindowsFormsInterop 메서드는 WPF 열 때 모덜리스 양식이 올바르게 작동하는 데 필요한 메시지 필터를 설치합니다. 특정 WindowsFormsHost 인스턴스에 대해 이 메서드를 한 번만 호출해야 합니다.