Example #1
0
 private PUMessageBox(string title, string content, bool isConfirm, bool showInTaskBar, AnimationStyles animateStyle)
 {
     InitializeComponent();
     Title           = title;
     txtContent.Text = content;
     try
     {
         _parentWindow = GetOwnerWindow();
     }
     catch (Exception ex)
     { }
     if (_parentWindow != null)
     {
         _parentWindow.IsCoverMaskShow = true;
     }
     if (isConfirm)
     {
         groupTip.Visibility     = Visibility.Collapsed;
         groupConfirm.Visibility = Visibility.Visible;
     }
     ShowInTaskbar  = showInTaskBar;
     AnimationStyle = animateStyle;
     if (_parentWindow != null)
     {
         Owner = _parentWindow;
     }
 }
Example #2
0
 private PUMessageBox(string title, string content, bool showInTaskBar, AnimationStyles animateStyle)
 {
     InitializeComponent();
     Title                   = title;
     txtContent.Text         = content;
     _parentWindow           = GetOwnerWindow();
     _parentWindow.ShowCover = true;
     ShowInTaskbar           = showInTaskBar;
     AnimationStyle          = animateStyle;
     Owner                   = _parentWindow;
 }
Example #3
0
 public PUWindow()
 {
     try
     {
         _parentWindow = GetOwnerWindow();
         if (_parentWindow != null && Owner == null)
         {
             Owner = _parentWindow;
         }
     }
     catch { }
 }
Example #4
0
        public PUWindow()
        {
            try
            {
                _parentWindow = GetOwnerWindow();
                if (_parentWindow != null && Owner == null)
                {
                    Owner = _parentWindow;
                }
            }
            catch { }

            PreviewMouseMove += OnPreviewMouseMove;
        }