Created
November 8, 2022 03:31
-
-
Save huanlin/dc8db80f497b3761c0b30ec0406fd421 to your computer and use it in GitHub Desktop.
MAUI - Create a window
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private void Button1_Clicked(object sender, EventArgs e) | |
{ | |
var win = new Window | |
{ | |
Page = new NewPage1(), | |
Width = 1024, | |
Height = 300 // 亦可在此設定初始座標 X 和 Y | |
}; | |
Application.Current.OpenWindow(win); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment