| Overload | Description |
|---|---|
| Show() | Displays the window. |
| Show(FrameworkElement) | Displays the window and attach it to a specified owner. |
The following example shows how to create a new instance of HomeWindow class and show the window using API on a button click.
| C# | Copy Code |
|---|---|
private void UXButton1_Click(object sender, RoutedEventArgs e) { HomeWindow window = new HomeWindow(); window.Show(); } | |
The Show method used to display the window.
Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family