Example #1
0
        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();
        }
Example #2
0
 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();
 }
Example #3
0
 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();
 }
Example #4
0
 public void HelpAbout()
 {
     var dlg = new AboutDialog(this.Owner)
     {
         Title = "About OxyPlot ExportDemo",
         Image = new BitmapImage(new Uri(@"pack://application:,,,/ExportDemo;component/Images/oxyplot.png"))
     };
     dlg.Show();
 }