コード例 #1
0
ファイル: LuiDialog.xaml.cs プロジェクト: q2g/leonardo-wpf
        public override void OnApplyTemplate()
        {
            base.OnApplyTemplate();
            try
            {
                // Code to get the Template parts as instance member
                mainPopup        = GetTemplateChild("PART_Popup") as Popup;
                canvas           = GetTemplateChild("PART_Canvas") as Canvas;
                path             = GetTemplateChild("PART_Path") as Path;
                contentPresenter = GetTemplateChild("PART_ContentPresenter") as ContentPresenter;

                mainPopup.Closed += (sender, e) => { PopupClosed?.Invoke(sender, e); };
                mainPopup.IsOpen  = IsOpen;
                canvas.Width      = PanelWidth;
                canvas.Height     = PanelHeight;
                RefreshPath();
                mainPopup.PlacementTarget = PlacementTarget;
                mainPopup.Placement       = Placement;
                path.Fill = Fill;
            }
            catch (Exception ex)
            {
                logger.Error(ex);
            }
        }
コード例 #2
0
ファイル: PopupScreenView.cs プロジェクト: polvila/Splash
        protected virtual void OnDestroy()
        {
            PopupClosed?.Invoke(this);
            PopupClosed = null;

            CleanButtons();
        }
コード例 #3
0
 public void OnPopupClosed(PopUpWindowArgs e)
 {
     PopupClosed?.Invoke(this, e);
 }
コード例 #4
0
 private void OnPopupClosed(object sender, EventArgs e)
 {
     IsOpen           = false;
     IsHitTestVisible = true;
     PopupClosed?.Invoke(this, e);
 }
コード例 #5
0
 protected virtual void OnPopupClosed(PopupClosedEventArgs e)
 {
     PopupClosed?.Invoke(this, e);
 }
コード例 #6
0
ファイル: CustomYesNoBox.cs プロジェクト: reddtoric/CprNow
 public void OnPopupClosed(CustomYesNoBoxClosedArgs e)
 {
     PopupClosed?.Invoke(this, e);
 }
コード例 #7
0
 public void OnPopupClosed(EntryPopupClosedArgs e)
 {
     PopupClosed?.Invoke(this, e);
 }
コード例 #8
0
        //-------------------------------------------------------------------------

        protected virtual void OnPopupClosed()
        {
            PopupClosed?.Invoke(this, EventArgs.Empty);
        }