コード例 #1
0
ファイル: MainWindow.g.i.cs プロジェクト: scorer5/Window
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
 {
     switch (connectionId)
     {
     case 1:
         this.toast = ((Toast.Toasty)(target));
         return;
     }
     this._contentLoaded = true;
 }
コード例 #2
0
        private static object OnMessageSet(DependencyObject d, object baseValue)
        {
            Toasty toast = d as Toasty;

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

            return(baseValue);
        }
コード例 #3
0
        private static void OnMessageChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            Toasty toast = d as Toasty;

            if (toast == null)
            {
                return;
            }

            toast.Show();
        }
コード例 #4
0
        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;
        }
コード例 #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;
        }