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
(I'm not sure how these are generated in the code base the h/cpp files with those names are empty.)
In either case, there is some mismatch between the style and the properties which should be resolved as this will cause binding reflection errors at runtime.
This is also another reason why improving x:Bind behaviors like #2508#2237 would be valuable.
Steps to reproduce the bug
Copy NavigationView template into an app project, get warning about property on NavigationViewTemplateSettings not existing
Expected behavior
No errors in template
Screenshots
NuGet package version
Microsoft.UI.Xaml 2.7.0
Windows app type
UWP
Win32
Device form factor
No response
Windows version
No response
Additional context
No response
The text was updated successfully, but these errors were encountered:
The behavior you are describing is partially a bug indeed. The property is not included in non-prerelease versions of WinUI 2 and as such, the property is not available in WinUI 2.7. If you are using a pre-release, the property will be available.
@MikeHillberg Do you think the property can be made public now given how long it has been part of the pre-releases (first added in #5800, March 2021)?
Describe the bug
The NavigationView style references this binding:
microsoft-ui-xaml/dev/NavigationView/NavigationView.xaml
Line 472 in e4c5d34
However this property does not exist on the NavgationViewTemplateSettings class: https://docs.microsoft.com/en-us/windows/winui/api/microsoft.ui.xaml.controls.navigationviewtemplatesettings
(I'm not sure how these are generated in the code base the h/cpp files with those names are empty.)
In either case, there is some mismatch between the style and the properties which should be resolved as this will cause binding reflection errors at runtime.
This is also another reason why improving x:Bind behaviors like #2508 #2237 would be valuable.
Steps to reproduce the bug
Copy NavigationView template into an app project, get warning about property on NavigationViewTemplateSettings not existing
Expected behavior
No errors in template
Screenshots
NuGet package version
Microsoft.UI.Xaml 2.7.0
Windows app type
Device form factor
No response
Windows version
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: