| 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 | { |
nothing calls this directly
no outgoing calls
no test coverage detected