Elements. Build native projects for any modern development platform, using the language(s) of your choice. Oxygene (Object Pascal), C#, Swift, Java, Go. | RemObjects Software

SharedUI.Shared

Language: Hydrogene, Platform: All, Category: SharedUI
https://github.com/remobjects/ElementsSamples/tree/master/Hydrogene/All/SharedUI/SharedUI.Shared

$(MSBuildThisFileDirectory)MainWindowController.WPF.cs

namespace SharedUI.Shared
{
	#if ECHOES
	using System.Windows;
	using System.Windows.Controls;

	public partial class MainWindowController
	{
		public this()
		{
			window = new MainWindow withController(this);
			setup();
		}

		public Window window { get; }

		//
		// Compatibility Helpers. These could/should be in a shared base class, in a real app with many window/views
		//

		public void showWindow(id sender)
		{
			window.Show();
		}

		//
		// Add WPF-specific code here
		//
	}
	#endif
}