You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When i try to resize the app window with content extended into title bar the window not resize.
The pointer changes from resize pointer to selection pointer.
Steps to reproduce the bug
I go to the top of the window app bar and appear the resize pointer;
I click the left button of the mouse and the pointer changes to default selection pointer;
Expected behavior
When the pointer go to the top of the window app bar the pointer changes in resize pointer.
At the left click the pointer not change in default selection pointer and moving the mouse down the window resizes.
Screenshots
Registrazione.2023-04-10.174401.mp4
NuGet package version
Windows App SDK 1.2.5: 1.2.230313.1
Packaging type
Packaged (MSIX)
Windows version
Windows 11 version 22H2 (22621, 2022 Update)
IDE
Visual Studio 2022
Additional context
Source code
MainWindow.cs
// Copyright (c) Microsoft Corporation and Contributors.
// Licensed under the MIT License.
using Microsoft.UI; // Needed for WindowId
using Microsoft.UI.Windowing; // Needed for AppWindow
using Microsoft.UI.Xaml;
using System;
using WinRT.Interop; // Needed for XAML/HWND interop
// To learn more about WinUI, the WinUI project structure,
// and more about our project templates, see: http://aka.ms/winui-project-info.
namespace WindowCustomTitleBarSample
{
/// <summary>
/// An empty window that can be used on its own or navigated to within a Frame.
/// </summary>
public sealed partial class MainWindow : Window
{
private AppWindow m_AppWindow;
public MainWindow()
{
this.InitializeComponent();
m_AppWindow = GetAppWindowForCurrentWindow();
// Check to see if customization is supported.
// The method returns true on Windows 10 since Windows App SDK 1.2, and on all versions of
// Windows App SDK on Windows 11.
if (AppWindowTitleBar.IsCustomizationSupported())
{
var titleBar = m_AppWindow.TitleBar;
// Hide default title bar.
titleBar.ExtendsContentIntoTitleBar = true;
titleBar.PreferredHeightOption = TitleBarHeightOption.Tall;
}
else
{
// In the case that title bar customization is not supported, hide the custom title bar
// element.
AppTitleBar.Visibility = Visibility.Collapsed;
}
}
private AppWindow GetAppWindowForCurrentWindow()
{
IntPtr hWnd = WindowNative.GetWindowHandle(this);
WindowId wndId = Win32Interop.GetWindowIdFromWindow(hWnd);
return AppWindow.GetFromWindowId(wndId);
}
}
}
Describe the bug
When i try to resize the app window with content extended into title bar the window not resize.
The pointer changes from resize pointer to selection pointer.
Steps to reproduce the bug
Expected behavior
When the pointer go to the top of the window app bar the pointer changes in resize pointer.
At the left click the pointer not change in default selection pointer and moving the mouse down the window resizes.
Screenshots
Registrazione.2023-04-10.174401.mp4
NuGet package version
Windows App SDK 1.2.5: 1.2.230313.1
Packaging type
Packaged (MSIX)
Windows version
Windows 11 version 22H2 (22621, 2022 Update)
IDE
Visual Studio 2022
Additional context
Source code
MainWindow.cs
MainWindow.xaml
The text was updated successfully, but these errors were encountered: