![]() ![]() Important APIs: Microsoft.UI.Xaml.Window class, Window.ExtendsContentIntoTitleBar property, Window.SetTitleBar method.For more about the interop APIs, see Manage app windows - UI framework and HWND interop and the Windowing gallery sample. With this AppWindow object you have access to the title bar customization APIs. You get an AppWindow object from an existing window using the interop APIs. You can use AppWindow APIs with any UI framework that the Windows App SDK supports - Win32, WPF, WinForms, or WinUI 3 - and you can adopt them incrementally, using only the APIs you need. ![]() These APIs can be used in conjunction with the Windows App SDK APIs (see the WinUI 3 tab). We recommend that you check AppWindowTitleBar.IsCustomizationSupported in your code before you call these APIs to ensure your app doesn't crash on other versions of Windows.įor XAML apps that use WinUI 3, XAML Window APIs provide a simpler way to customize the title bar that also works on Windows 10. Partially, since Windows App SDK 1.2 (Color customization is not supported)įor information on which APIs are supported on Windows 10 since Windows App SDK 1.2, refer to the Windows App SDK Release Notes page under "Windowing" section for details. Support for title bar customization APIs varies across different versions of Windows and different versions of Windows App SDK.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |