Compartilhar via


Como: Open a Window

This example shows how to open a window.

Exemplo

Uma janela é aberta pela instanciação de Window e chamando o Show método. ShowAbre uma janela e retorna imediatamente sem aguardar que a nova janela Fechar. This type of window is also known as a modeless window, and doesn't restrict user input.

            Dim window As New CustomWindow()
            window.Show() ' Returns immediately
CustomWindow window = new CustomWindow();
window.Show(); // Returns immediately

Segurança

Instantiating Window requires permission to call unsafe native methods (see Window).