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: Silver, Platform: All, Category: SharedUI
https://github.com/remobjects/ElementsSamples/tree/master/Silver/All/SharedUI/SharedUI.Shared

$(MSBuildThisFileDirectory)MainWindow.xaml.swift

#if ECHOES

import System.Windows;
import System.Windows.Controls;

__partial class MainWindow : Window {

	private var controller: MainWindowController {
		return DataContext as! MainWindowController
	}

	public init(controller: MainWindowController!) {
		DataContext = controller
		InitializeComponent()
	}

	//
	// Forward actions to the controller
	//

	private func CalculateResult_Click(_ sender: Object!, _ e: RoutedEventArgs!) {
		controller.calculateResult(sender)
	}
}

#endif