private void ALAInitialize() { #region Instantiations var mainWindow = new MainWindow() { Title = "Reactive Calculator", Margin = new Thickness(10) }; var horiz = new Horizontal() { Margin = new Thickness(5) }; var text = new Text() { Content = "Hello, world! text1" }; var text2 = new Text() { Content = "Xamarin.Mac ALA text2" }; var text3 = new Text() { Content = "Xamarin.Mac ALA text3" }; var toolbar = new Toolbar("ReactiveToolbar") { }; var helloItem = new ToolbarItem("helloItem") { Title = "Print", Label = "Hello" }; #endregion #region Wiring // mainWindow // .WireTo(text, "children") // .WireTo(text2, "children") // .WireTo(text3, "children") // .WireTo(toolbar // .WireTo(helloItem, "children"), "toolbar"); mainWindow .WireTo(text, "children") .WireTo(text2, "children") .WireTo(text3, "children") .WireTo(toolbar .WireTo(helloItem, "children"), "toolbar") ; #endregion Wiring.PostWiringInitialize(); base.Window = mainWindow.GetWindow(); ((IEvent)mainWindow).Execute(); }
private Application Initialize() { Wiring.PostWiringInitialize(); return(this); }