コード例 #1
0
        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;
            }
        }
コード例 #2
0
        public override void OnCompleted(PopUpEventArgs <string, PopUpResult> result)
        {
            PreventScrollBinding.SetIsEnabled(this, false);

            PauseTimer();
            Dispose();

            base.OnCompleted(result);
        }
コード例 #3
0
        public override void Show()
        {
            if (!IsTimerEnabled)
            {
                return;
            }

            base.Show();

            SetRenderTransform();
            PreventScrollBinding.SetIsEnabled(this, true);
        }