void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.toast = ((Toast.Toasty)(target)); return; } this._contentLoaded = true; }
private static object OnMessageSet(DependencyObject d, object baseValue) { Toasty toast = d as Toasty; if (toast != null) { toast.Show(); } return(baseValue); }
private static void OnMessageChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { Toasty toast = d as Toasty; if (toast == null) { return; } toast.Show(); }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.MenuListBox = ((System.Windows.Controls.ListBox)(target)); return; case 2: this.Snackbar = ((Toast.Toasty)(target)); return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.ToastRoot = ((Toast.Toasty)(target)); return; case 2: this.LayoutRoot = ((System.Windows.Controls.Grid)(target)); return; case 3: this.actionButton = ((System.Windows.Controls.Button)(target)); return; } this._contentLoaded = true; }