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; } }
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; }
public PUWindow() { try { _parentWindow = GetOwnerWindow(); if (_parentWindow != null && Owner == null) { Owner = _parentWindow; } } catch { } }
public PUWindow() { try { _parentWindow = GetOwnerWindow(); if (_parentWindow != null && Owner == null) { Owner = _parentWindow; } } catch { } PreviewMouseMove += OnPreviewMouseMove; }