-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ListDetailsView not working with WinUI3/WindowsAppSDK 1.0.0-preview3 #4357
Comments
Hello huoyaoyuan, thank you for opening an issue with us! I have automatically added a "needs triage" label to help get things started. Our team will analyze and investigate the issue, and escalate it to the relevant team if possible. Other community members may also look into the issue and provide feedback 🙌 |
The call stack is native SystemNavigationManager::GetForCurrentView, so this is microsoft/microsoft-ui-xaml#4174 again. |
Thanks @huoyaoyuan I think we missed from the original WinUI discussion that there was code we needed to update here too. Thanks for filing an issue. @azchohfi looks like we missed how best to convert these APIs here: WindowsCommunityToolkit/CommunityToolkit.WinUI.UI.Controls.Layout/ListDetailsView/ListDetailsView.cs Lines 173 to 176 in 82e2bbb
WindowsCommunityToolkit/CommunityToolkit.WinUI.UI.Controls.Layout/ListDetailsView/ListDetailsView.cs Lines 196 to 199 in 82e2bbb
According to the docs this isn't a WinUI 3 API at all. We used it here to synchronize the behavior of the ListDetailsView to the main app back button. Since that concept doesn't exist, I think we just remove this code entirely in our WinUI 3 world, right? I think our original hope was that |
How about WinUI 3 with UWP? On Win32 I think we can remove it. |
@huoyaoyuan sorry are you creating a WinUI 3 UWP project? We only support WinUI 3 Desktop projects with the Toolkit. |
Ah, we found some unguarded cases in https://github.com/CommunityToolkit/WindowsCommunityToolkit/blob/main/Microsoft.Toolkit.Uwp.UI.Controls.Layout/ListDetailsView/ListDetailsView.BackButton.cs, so those may be it as well. We're adding guards :) |
@michael-hawker No, just in case if you are missing that scenario. |
@huoyaoyuan we just shipped an update which we think will address the issue?https://github.com/CommunityToolkit/WindowsCommunityToolkit/releases/tag/winui-7.1.1-preview3.1 Please let us know, thanks! |
@michael-hawker Yes it works. However, I discovered that This is not so critical and I can wait for next version. |
I do have the same problem with As far as I can see there is no custom template I supply which changes the |
Have same isuue. Any workarounds? I'm using version 7.1.2 and .NET 6.0 |
Was able to reproduce this in UWP as well, so not specific to WinUI 3. It was overlooked with the change to private void OnListPaneWidthChanged()
{
if (_twoPaneView != null)
{
_twoPaneView.Pane1Length = new GridLength(ListPaneWidth);
}
} |
Hi, Thank you for raising the Issue, Created a PR with the suggested changes |
Describe the bug
ListDetailsView
causes hard crash in normal usage.7.0.1
Steps to Reproduce
Steps to reproduce the behavior:
ListDetailsView
, setListPaneWidth
and some contentListPaneWidth
set in xaml, it will fail withXamlParseException
which wrappesNullReferenceException
4. When moving mouse over the control. it will fail with not being able to load reveal brushEdit: I used reveal brush in my custom style. It's not caused by the control itself.
Environment
NuGet Package(s):
CommunityToolkit.WinUI.UI.Controls.Layout
Microsoft.WindowsAppSDK 1.0.0-preview3
Package Version(s):
7.1.1-preview3
Windows 10 Build Number:
App min and target version:
Device form factor:
Visual Studio version:
Additional context
This could be a issue of WinUI side, but we should be aware of them here.The text was updated successfully, but these errors were encountered: