MCPcopy Create free account
hub / github.com/TranslucentTB/TranslucentTB / OnFrameworkElementUnloaded

Method OnFrameworkElementUnloaded

Xaml/RelativeAncestor.cpp:76–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74 }
75
76 void RelativeAncestor::OnFrameworkElementUnloaded(const wf::IInspectable &sender, const wux::RoutedEventArgs &)
77 {
78 if (const auto fe = sender.try_as<wux::FrameworkElement>())
79 {
80 // avoid an XAML leak
81 SetAncestor(fe, nullptr);
82 }
83 }
84
85 wux::DependencyObject RelativeAncestor::FindAscendant(const wux::DependencyObject &element, const wux::Interop::TypeName &type)
86 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected