Example #1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.Carousels = ((AduSkin.Controls.Metro.Carousel.Carousel)(target));
                return;

            case 2:
                this.Demos = ((System.Windows.Controls.ItemsControl)(target));
                return;
            }
            this._contentLoaded = true;
        }
Example #2
0
        private static void OnAutoPlayChangedCallback(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            Carousel carousel = d as Carousel;

            carousel.autoPlayTimer.Enabled = (bool)e.NewValue;
        }
Example #3
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.exit = ((AduSkin.Controls.Metro.MetroMenuItem)(target));
                return;

            case 2:
                this.tab = ((AduSkin.Controls.Metro.MetroMenuTabControl)(target));
                return;

            case 3:
                this.tabc = ((AduSkin.Controls.Metro.AduTabControl)(target));
                return;

            case 4:
                this.waterfallFlow = ((AduSkin.Controls.Metro.MetroWaterfallFlow)(target));
                return;

            case 5:
                this.color1 = ((AduSkin.Controls.Metro.MetroColorPicker)(target));
                return;

            case 6:
                this.color2 = ((AduSkin.Controls.Metro.MetroColorPicker)(target));
                return;

            case 7:
                this.Calendar1 = ((AduSkin.Controls.Metro.AduDatePickers.AduCalendar)(target));
                return;

            case 8:
                this.Date1 = ((AduSkin.Controls.Metro.AduDatePickers.AduDatePicker)(target));
                return;

            case 9:
                this.Date2 = ((AduSkin.Controls.Metro.AduDatePickers.AduDatePicker)(target));
                return;

            case 10:
                this.Date3 = ((AduSkin.Controls.Metro.AduDatePickers.AduDatePicker)(target));
                return;

            case 11:
                this.Date4 = ((AduSkin.Controls.Metro.AduDatePickers.AduDatePicker)(target));
                return;

            case 12:
                this.Date5 = ((AduSkin.Controls.Metro.AduDatePickers.AduDatePicker)(target));
                return;

            case 13:
                this.Date6 = ((AduSkin.Controls.Metro.AduDatePickers.AduDatePicker)(target));
                return;

            case 14:
                this.ts = ((AduSkin.Controls.Metro.MetroSwitch)(target));
                return;

            case 15:
                this.password = ((AduSkin.Controls.Metro.MetroTextBox)(target));
                return;

            case 16:
                this.check = ((AduSkin.Controls.Metro.MetroTextBox)(target));
                return;

            case 17:
                this.check1 = ((AduSkin.Controls.Metro.MetroTextBox)(target));
                return;

            case 18:
                this.btnShowAdu = ((AduSkin.Controls.Metro.MetroButton)(target));
                return;

            case 19:
                this.rt1 = ((AduSkin.Controls.Metro.MetroRichTextBox)(target));
                return;

            case 20:
                this.rt3 = ((AduSkin.Controls.Metro.MetroRichTextBox)(target));
                return;

            case 21:
                this.pb1 = ((AduSkin.Controls.Metro.MetroProgressBar)(target));
                return;

            case 22:
                this.pb2 = ((AduSkin.Controls.Metro.MetroProgressBar)(target));
                return;

            case 23:
                this.vis = ((AduSkin.Controls.Metro.MetroProgressBar)(target));
                return;

            case 24:
                this.TreeViewCompany = ((System.Windows.Controls.TreeView)(target));
                return;

            case 25:
                this.InfoMsg = ((AduSkin.Controls.Metro.AduFlatButton)(target));

            #line 766 "..\..\MainWindow.xaml"
                this.InfoMsg.Click += new System.Windows.RoutedEventHandler(this.InfoMsg_Click);

            #line default
            #line hidden
                return;

            case 26:
                this.ErroMsg = ((AduSkin.Controls.Metro.AduFlatButton)(target));

            #line 767 "..\..\MainWindow.xaml"
                this.ErroMsg.Click += new System.Windows.RoutedEventHandler(this.ErroMsg_Click);

            #line default
            #line hidden
                return;

            case 27:
                this.SuccessMsg = ((AduSkin.Controls.Metro.AduFlatButton)(target));

            #line 768 "..\..\MainWindow.xaml"
                this.SuccessMsg.Click += new System.Windows.RoutedEventHandler(this.SuccessMsg_Click);

            #line default
            #line hidden
                return;

            case 28:
                this.WarmMsg = ((AduSkin.Controls.Metro.AduFlatButton)(target));

            #line 769 "..\..\MainWindow.xaml"
                this.WarmMsg.Click += new System.Windows.RoutedEventHandler(this.WarmMsg_Click);

            #line default
            #line hidden
                return;

            case 29:

            #line 821 "..\..\MainWindow.xaml"
                ((AduSkin.Controls.Metro.AduFlatButton)(target)).Click += new System.Windows.RoutedEventHandler(this.About_Click);

            #line default
            #line hidden
                return;

            case 30:

            #line 822 "..\..\MainWindow.xaml"
                ((AduSkin.Controls.Metro.AduFlatButton)(target)).Click += new System.Windows.RoutedEventHandler(this.BtnShowAdu_Click);

            #line default
            #line hidden
                return;

            case 31:
                this.lists = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 32:
                this.Carousels = ((AduSkin.Controls.Metro.Carousel.Carousel)(target));
                return;

            case 33:
                this.AduTimeLine = ((AduSkin.Controls.Metro.AduTimeLine.AduTimeline)(target));
                return;

            case 34:
                this.navigationPanel = ((AduSkin.Controls.Metro.AduNavigationPanel)(target));
                return;

            case 35:
                this.aduskincom = ((System.Windows.Documents.Hyperlink)(target));
                return;
            }
            this._contentLoaded = true;
        }