Samples
Samples
SharedUI.Shared
Language: Hydrogene, Platform: All, Category: SharedUI
https://github.com/remobjects/ElementsSamples/tree/master/Hydrogene/All/SharedUI/SharedUI.Shared
-
SharedUI.Shared
-
References
-
Source Files
- $(MSBuildThisFileDirectory)MainWindowController.cs
- $(MSBuildThisFileDirectory)MainWindow.xaml.cs
- $(MSBuildThisFileDirectory)MainWindowController.Cocoa.cs
- $(MSBuildThisFileDirectory)MainWindowController.WPF.cs
- $(MSBuildThisFileDirectory)Aliases.cs
- $(MSBuildThisFileDirectory)AppDelegate.cs
- $(MSBuildThisFileDirectory)AppDelegate.Cocoa.cs
- $(MSBuildThisFileDirectory)AppDelegate.WPF.cs
- Other Files
-
References
$(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
}
