Beispiel #1
0
        public static void Show(AboutDialogSpec spec, Window parent)
        {
            var dlg = new AboutDialog();

            dlg.DataContext = spec;
            dlg.Owner       = parent;
            dlg.ShowDialog();
        }
Beispiel #2
0
        public static void Show(AboutDialogSpec spec, IntPtr parent)
        {
            var dlg = new AboutDialog();

            dlg.DataContext = spec;

            var interopHelper = new WindowInteropHelper(dlg);

            interopHelper.Owner = parent;
            dlg.ShowDialog();
        }
Beispiel #3
0
 public AboutDialog(AboutDialogSpec spec) : this()
 {
     this.DataContext = spec;
 }
Beispiel #4
0
        public static void Show(Assembly assm, Window parent)
        {
            var spec = new AboutDialogSpec(assm);

            Show(spec, parent);
        }
Beispiel #5
0
        public static void Show(Assembly assm, Image logo, IntPtr parent)
        {
            var spec = new AboutDialogSpec(assm, logo);

            Show(spec, parent);
        }