private void btnViewLastResponse_Click(object sender, RoutedEventArgs e) { Site site = ((FrameworkElement)sender).DataContext as Site; ResponseViewer responseViewer = new ResponseViewer(); responseViewer.SiteId = site.Id; responseViewer.ShowDialog(); }
private void btnMoreDetails_Click(object sender, RoutedEventArgs e) { //Process.Start(SiteUri); ResponseViewer rv = new ResponseViewer(); rv.SiteId = Model.SiteId; rv.Show(); //brings window to top rv.Activate(); rv.Topmost = true; // important rv.Topmost = false; // important rv.Focus(); // important //the tray icon assigned this attached property to simplify access TaskbarIcon taskbarIcon = TaskbarIcon.GetParentTaskbarIcon(this); taskbarIcon.CloseBalloon(); }