XamlMarkupHelper.UnloadObject
gives exception
#9819
Labels
bug
Something isn't working
documentation
An issue with existing documentation or a request for documenation of a new topic
team-Markup
Issue for the Markup team
Describe the bug
I am trying to unload a child control inside my templated control using
Windows.UI.Xaml.Markup.XamlMarkupHelper.UnloadObject
(UWP) andMicrosoft.UI.Xaml.Markup.XamlMarkupHelper.UnloadObject
(Winui3) as documented here. But I got exceptions:Steps to reproduce the bug
DependencyProperty
calledIsLoading
. And write code whenIsLoading==false
, call this api to unload a component.MainWindow.xaml
, add aToggleSwitch
and this new templated control, bind theIsLoading
to theToggleSwitch.IsOn
。Expected behavior
No response
Screenshots
No response
NuGet package version
WinUI 3 - Windows App SDK 1.5.5: 1.5.240627000
Windows version
Windows 11 (22H2): Build 22621
Additional context
This issue happens on both UWP & WinUI3. If I am doing anything wrong, please update the documentation!
The text was updated successfully, but these errors were encountered: