protected override void OnChildChanged(FrameworkElement oldChild, FrameworkElement newChild) { base.OnChildChanged(oldChild, newChild); if (newChild != null) { PopupRoot.SetPopup(newChild, this); } }
public Popup GetPopupControl() { var parent = GetParent(this); while (parent != null) { if (parent is PopupPanel pnl) { return(pnl.Popup); } #if __WASM__ var popup = PopupRoot.GetPopup(parent); if (popup != null) { return(popup); } #endif parent = GetParent(parent); } return(null); }