Open HO-COOH opened 2 years ago
Quick workaround I found, add this in your idl
void UnloadObject(Windows.UI.Xaml.DependencyObject object);
This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 5 days.
This is still reproducible with WinUI 2.8.5. Amazing to see how this seemingly a must-to-have feature got not attention.
Hi, does this issue repro in WinAppSDK? Thanks!
Hi, does this issue repro in WinAppSDK? Thanks!
Yes, if the root object is a Window
, that is
<Window
....
<Button x:Load="{x:Bind Show, Mode=OneWay}"/>
You get
'FindName': is not a member of 'winrt::WinUI3Cpp2::MainWindow'
Thank you HO-COOH, this seems like a different issue, no? Xaml's Window is not a FrameworkElement, and doesn't have a FindName() function. See for example: 7305. Do you still see a problem with Page in WinAppSDK?
Thank you HO-COOH, this seems like a different issue, no? Xaml's Window is not a FrameworkElement, and doesn't have a FindName() function. See for example: 7305. Do you still see a problem with Page in WinAppSDK?
It's a differenent cause yes, but it's the same issue as the title. C# winui3 project builds fine.
Quick workaround I found, add this in your idl
IInspectable FindName(String name);
It didn't work for FindName
:( https://github.com/microsoft/microsoft-ui-xaml/issues/9842
Describe the bug
Steps to reproduce the bug
Page
, with{x:Load}
binding to a boolean valueExpected behavior
No response
Screenshots
NuGet package version
Microsoft.UI.Xaml 2.8.0
Windows app type
Device form factor
No response
Windows version
Windows Insider Build (xxxxx)
Additional context
No response