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)MainWindow.xaml.cs

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

	public partial class MainWindow : Window
	{
		public this withController(MainWindowController controller)
		{
			DataContext = controller;
			InitializeComponent();
		}

		private MainWindowController controller { get { return DataContext as MainWindowController; } }

		//
		// Forward actions to the controller
		//

		private void CalculateResult_Click(object sender, RoutedEventArgs e)
		{
			controller.calculateResult(sender);
		}
	}
	#endif
}