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

Method OnFrameworkElementLoaded

Xaml/RelativeAncestor.cpp:68–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

66 }
67
68 void RelativeAncestor::OnFrameworkElementLoaded(const wf::IInspectable &sender, const wux::RoutedEventArgs &)
69 {
70 if (const auto fe = sender.try_as<wux::FrameworkElement>())
71 {
72 SetAncestor(fe, FindAscendant(fe, GetAncestorType(fe)));
73 }
74 }
75
76 void RelativeAncestor::OnFrameworkElementUnloaded(const wf::IInspectable &sender, const wux::RoutedEventArgs &)
77 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected