Esempio n. 1
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
 {
     switch (connectionId)
     {
     case 1:
         this.toast = ((Toast.Toasty)(target));
         return;
     }
     this._contentLoaded = true;
 }
Esempio n. 2
0
        private static object OnMessageSet(DependencyObject d, object baseValue)
        {
            Toasty toast = d as Toasty;

            if (toast != null)
            {
                toast.Show();
            }

            return(baseValue);
        }
Esempio n. 3
0
        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;
        }
Esempio n. 5
0
        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;
        }