private void InitializePopup() { // Add overlay which is the size of RootFrame _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; RootFrame.Loaded += RootFrameDeferredShowLoaded; } }
public override void OnCompleted(PopUpEventArgs <string, PopUpResult> result) { PreventScrollBinding.SetIsEnabled(this, false); PauseTimer(); Dispose(); base.OnCompleted(result); }
public ColorPicker() { DefaultStyleKey = typeof(ColorPicker); PreventScrollBinding.SetIsEnabled(this, true); SizeChanged += ColorPicker_SizeChanged; IsEnabledChanged += ColorSlider_IsEnabledChanged; Loaded += ColorPicker_Loaded; }
public SuperSlider2() { DefaultStyleKey = typeof(SuperSlider2); PreventScrollBinding.SetIsEnabled(this, true); IsEnabledChanged += SuperSlider_IsEnabledChanged; Loaded += SuperSlider_Loaded; SizeChanged += SuperSlider_SizeChanged; }
public override void Show() { if (!IsTimerEnabled) { return; } base.Show(); SetRenderTransform(); PreventScrollBinding.SetIsEnabled(this, true); }
public override void OnCompleted(PopUpEventArgs <string, PopUpResult> result) { if (PopUpService != null && result.PopUpResult == PopUpResult.UserDismissed) { PopUpService.AnimationType = DialogService.AnimationTypes.SlideHorizontal; } PreventScrollBinding.SetIsEnabled(this, false); PauseTimer(); Dispose(); base.OnCompleted(result); }