Can't set x:Bind.Converter to StaticResource in a Window #6369
Labels
area-Binding
duplicate
This issue or pull request already exists
team-Markup
Issue for the Markup team
Describe the bug
Window doesn't have a Resources property, so you set resources typically in the root of the Window content. If you try to use that in an x:Bind Converter using a {StaticResource}, it fails in the generated x:Bind code on the
SetConverterLookupRoot
call with the error:Argument 1: cannot convert from 'App5.MainWindow' to 'Microsoft.UI.Xaml.FrameworkElement'
See also #3442, where were it not for this compiler error, the scenario still wouldn't work for a different issue.
Steps to reproduce the bug
Expected behavior
No response
Screenshots
No response
NuGet package version
No response
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: