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)MainWindowController.WPF.swift

#if ECHOES

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

extension MainWindowController {

	let window: Window

	public init() {
		window = MainWindow(controller: self)
		setup()
	}

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

	public func showWindow(_ sender: id!) {
		window.Show()
	}

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

#endif