Windows App SDK API Reference

This section provides detailed documentation for the APIs available in the Windows App SDK. You can navigate through namespaces and types to find information on classes, interfaces, methods, properties, and events.

Namespaces

The Windows App SDK is organized into several namespaces. Click on a namespace to explore its types.

Example: Getting Window Handle

Here's a simple example demonstrating how to get the window handle for the main window of your application using the Windows App SDK.

// Assuming you have a Window object initialized
var window = Application.Current.MainWindow;
if (window != null)
{
    var windowHandle = window.CoreWindow.Value;
    Console.WriteLine($"Window Handle: {windowHandle}");
}