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.
Microsoft.Windows.App.Comp.UIMicrosoft.Windows.App.CoreMicrosoft.Windows.App.WindowsAppSDKMicrosoft.Windows.ApplicationModel.ActivationMicrosoft.Windows.ApplicationModel.AppActivationMicrosoft.Windows.ApplicationModel.BackgroundMicrosoft.Windows.ApplicationModel.CallbacksMicrosoft.Windows.ApplicationModel.DataTransferMicrosoft.Windows.ApplicationModel.PackageMicrosoft.Windows.ApplicationModel.ResourcesMicrosoft.Windows.ApplicationModel.WinmdMicrosoft.Windows.Devices.EnumerationMicrosoft.Windows.Graphics.CompositionMicrosoft.Windows.Input.PointerMicrosoft.Windows.Management.DeploymentMicrosoft.Windows.System.AppUpdatesMicrosoft.Windows.System.EnvironmentMicrosoft.Windows.System.PowerMicrosoft.Windows.System.UserProfileMicrosoft.Windows.UI.CompositionMicrosoft.Windows.UI.CoreMicrosoft.Windows.UI.InputMicrosoft.Windows.UI.WindowingMicrosoft.Windows.WidgetsMicrosoft.Windows.WindowsAppSDK
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}");
}