Example #1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 21 "..\..\PicsPage.xaml"
                ((WpfApp1.PicsPage)(target)).Loaded += new System.Windows.RoutedEventHandler(this.PicsPage_Loaded);

            #line default
            #line hidden
                return;

            case 2:
                this.image = ((System.Windows.Controls.Image)(target));

            #line 76 "..\..\PicsPage.xaml"
                this.image.PreviewMouseDown += new System.Windows.Input.MouseButtonEventHandler(this.Image_PreviewMouseDown);

            #line default
            #line hidden
                return;

            case 3:
                this.Spinner = ((System.Windows.Controls.Image)(target));
                return;

            case 4:
                this.DislikeButton = ((System.Windows.Controls.Button)(target));

            #line 111 "..\..\PicsPage.xaml"
                this.DislikeButton.Click += new System.Windows.RoutedEventHandler(this.DislikeButton_Click);

            #line default
            #line hidden
                return;

            case 5:
                this.DislikeIcon = ((MahApps.Metro.IconPacks.PackIconControl)(target));
                return;

            case 6:

            #line 157 "..\..\PicsPage.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click);

            #line default
            #line hidden
                return;

            case 7:
                this.HeartIcon = ((MaterialIcons.MaterialIcon)(target));
                return;

            case 8:

            #line 182 "..\..\PicsPage.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.GoToJoke);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Example #2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 18 "..\..\JokesPage.xaml"
                ((WpfApp1.JokesPage)(target)).Loaded += new System.Windows.RoutedEventHandler(this.JokePage_Loaded);

            #line default
            #line hidden
                return;

            case 2:
                this.q = ((System.Windows.Controls.TextBlock)(target));

            #line 167 "..\..\JokesPage.xaml"
                this.q.PreviewMouseDown += new System.Windows.Input.MouseButtonEventHandler(this.FirstTextBlock_PreviewMouseDown);

            #line default
            #line hidden
                return;

            case 3:
                this.a = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 4:
                this.j = ((System.Windows.Controls.TextBlock)(target));

            #line 178 "..\..\JokesPage.xaml"
                this.j.PreviewMouseDown += new System.Windows.Input.MouseButtonEventHandler(this.JTextBox_PreviewMouseDown);

            #line default
            #line hidden
                return;

            case 5:
                this.spinner = ((System.Windows.Controls.Image)(target));
                return;

            case 6:

            #line 221 "..\..\JokesPage.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.AddPresetButton_Click);

            #line default
            #line hidden
                return;

            case 7:
                this.AddPresetButton = ((System.Windows.Controls.MenuItem)(target));

            #line 225 "..\..\JokesPage.xaml"
                this.AddPresetButton.Click += new System.Windows.RoutedEventHandler(this.AddPresetButton_Click);

            #line default
            #line hidden
                return;

            case 8:
                this.MenuItemOne = ((System.Windows.Controls.MenuItem)(target));

            #line 238 "..\..\JokesPage.xaml"
                this.MenuItemOne.Click += new System.Windows.RoutedEventHandler(this.MenuItemOne_Click);

            #line default
            #line hidden
                return;

            case 9:

            #line 244 "..\..\JokesPage.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.MenuItemTwo_Click);

            #line default
            #line hidden
                return;

            case 10:
                this.DislikeButton = ((System.Windows.Controls.Button)(target));

            #line 254 "..\..\JokesPage.xaml"
                this.DislikeButton.Click += new System.Windows.RoutedEventHandler(this.DislikeButton_Click);

            #line default
            #line hidden
                return;

            case 11:
                this.DislikeStack = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 12:
                this.DislikeIcon = ((MahApps.Metro.IconPacks.PackIconControl)(target));
                return;

            case 13:

            #line 301 "..\..\JokesPage.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.HeartButton_Click);

            #line default
            #line hidden
                return;

            case 14:
                this.HeartIcon = ((MaterialIcons.MaterialIcon)(target));
                return;
            }
            this._contentLoaded = true;
        }