WindowsAppSDK
WindowsAppSDK copied to clipboard
Custom TitleBar is not working in RTL
Describe the bug
i used Custom titlebar from here https://docs.microsoft.com/en-us/windows/apps/develop/title-bar?tabs=wasdk#platform-options
now if we change App Language to RTL, Custom Titlebar is not working (Window can not be dragged and Close Button is not work)
Steps to reproduce the bug
1.Create custom titlebar in RTL app
Expected behavior
No response
Screenshots
No response
NuGet package version
1.1.0-preview3
Packaging type
Packaged (MSIX), Unpackaged
Windows version
Windows 11 version 21H2 (22000)
IDE
Visual Studio 2022
Additional context
No response
@ghost1372 Can you provide a reproducible example? What language are you targeting?
This works for me. Used 1.1.0-preview1 on 22000 and 25115.

OK, this is more of a problem with the sample code (SetDragRegionForCustomTitleBar) at https://docs.microsoft.com/en-us/windows/apps/develop/title-bar?tabs=wasdk#interactive-content. Can confirm it's broken and incorrectly assumes LTR layout.
Adding @rkarman @BenJKuhn
We've verified this bug and logged it here http://task.ms/39695482. We will add it as part of v1.2 planning.
Hope it is considered for servicing as it impacts global readiness.
Yes, this we will consider servicing the fix in in-market releases.
@mevey Great news, thanks for closing the loop!
@mevey or @riverar do you think this will fix #2953?
@jamers99 The bug described here was ultimately a problem with the sample in the docs, so no don't think any changes here will fix that sadly.
@riverar should this be closed then?
@jamers99 Doesn't look like the sample was updated yet, so think it needs to remain open. @mevey may have more info.
@riverar thanks for the insight, makes sense. Do you have any idea if I should keep #2953 or microsoft/microsoft-ui-xaml#7392? How should I go about getting more priority for it? It's a big deal for our tab based app. Unless we find a workaround, I think it's a stopper.
@jamers99 I'd keep both, just to have data on how inattentive Microsoft is in the Microsoft UI XAML repository. I'll take a look at your issue and update you in the other thread.
This issue has been resolved in version 1.2 stable
