Beispiel #1
0
		public MainWindow()
		{
			InitializeComponent();

			this.currentApp = ((App)Application.Current);
			// Export print menu via MEF so that all views can subscribe to click event.
			((App)Application.Current).Container.ComposeExportedValue<MenuItem>("PrintMenuItem", this.PrintMenuItem);
		}
Beispiel #2
0
 public static void Main()
 {
     WpfApplication19.App app = new WpfApplication19.App();
     app.InitializeComponent();
     app.Run();
 }