private void InitializePopup() { // Add overlay which is the size of RootVisual _childPanel = CreateGrid(); if (IsOverlayApplied) { _overlay = CreateGrid(); PreventScrollBinding.SetIsEnabled(_overlay, true); } ApplyOverlayBackground(); // Initialize popup to draw the context menu over all controls if (PopupContainer != null) { if (_overlay != null) { PopupContainer.Children.Add(_overlay); } PopupContainer.Children.Add(_childPanel); _childPanel.Children.Add(Child); } else { _deferredShowToLoaded = true; RootVisual.Loaded += RootVisualDeferredShowLoaded; } }
public override void OnCompleted(PopUpEventArgs <string, PopUpResult> result) { PreventScrollBinding.SetIsEnabled(this, false); PauseTimer(); Dispose(); base.OnCompleted(result); }
public override void Show() { if (!IsTimerEnabled) { return; } base.Show(); SetRenderTransform(); PreventScrollBinding.SetIsEnabled(this, true); }