private void About_Click(object sender, RoutedEventArgs e) { var dlg = new AboutDialog(this); dlg.Title = "About the application"; dlg.UpdateStatus = "The application is updated."; dlg.Image = new BitmapImage(new Uri(@"pack://application:,,,/DialogDemos;component/pt.png")); // var uri = "http://opensource.linux-mirror.org/trademarks/opensource/web/opensource-400x345.png"; // dlg.Image = new BitmapImage(new Uri(uri, UriKind.Absolute)); dlg.ShowDialog(); }
private void About_Click(object sender, RoutedEventArgs e) { var d = new AboutDialog(this) { Topmost = this.Topmost, Image = new BitmapImage(new Uri(@"pack://application:,,,/UsageStats;component/Images/chart.png")), Title = "About Application Usage Statistics", UpdateStatus = "The program is updated." }; d.ShowDialog(); }
private void menuItemAbout_Click(object sender, RoutedEventArgs e) { var dlg = new AboutDialog(this) { Title = FindResource("AboutProgram").ToString(), UpdateStatus = FindResource("UpdateStatus").ToString(), Comments = FindResource("Comments").ToString(), Image = new BitmapImage(new Uri(@"/about.png", UriKind.Relative)) }; dlg.ShowDialog(); }