Ejemplo n.º 1
0
        public void Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1: // Views\BingVisualSearch.xaml line 1
            {
                global::Windows.UI.Xaml.Controls.Page element1 = (global::Windows.UI.Xaml.Controls.Page)(target);
                ((global::Windows.UI.Xaml.Controls.Page)element1).SizeChanged += this.OnPageSizeChanged;
            }
            break;

            case 5: // Views\BingVisualSearch.xaml line 80
            {
                this.commandBar = (global::Windows.UI.Xaml.Controls.CommandBar)(target);
            }
            break;

            case 6: // Views\BingVisualSearch.xaml line 111
            {
                this.landingMessage = (global::Windows.UI.Xaml.Controls.TextBlock)(target);
            }
            break;

            case 7: // Views\BingVisualSearch.xaml line 145
            {
                this.resultsDetails = (global::Windows.UI.Xaml.Controls.ScrollViewer)(target);
            }
            break;

            case 8: // Views\BingVisualSearch.xaml line 147
            {
                this.resultsGridView = (global::Windows.UI.Xaml.Controls.GridView)(target);
            }
            break;

            case 9: // Views\BingVisualSearch.xaml line 148
            {
                this.progressRing = (global::Windows.UI.Xaml.Controls.ProgressRing)(target);
            }
            break;

            case 10: // Views\BingVisualSearch.xaml line 149
            {
                this.searchErrorTextBlock = (global::Windows.UI.Xaml.Controls.TextBlock)(target);
            }
            break;

            case 11: // Views\BingVisualSearch.xaml line 138
            {
                this.resultTypeComboBox = (global::Windows.UI.Xaml.Controls.ComboBox)(target);
                ((global::Windows.UI.Xaml.Controls.ComboBox) this.resultTypeComboBox).SelectionChanged += this.OnResultTypeSelectionChanged;
            }
            break;

            case 12: // Views\BingVisualSearch.xaml line 139
            {
                this.celebrityResultType = (global::Windows.UI.Xaml.Controls.ComboBoxItem)(target);
            }
            break;

            case 13: // Views\BingVisualSearch.xaml line 140
            {
                this.similarImagesResultType = (global::Windows.UI.Xaml.Controls.ComboBoxItem)(target);
            }
            break;

            case 14: // Views\BingVisualSearch.xaml line 141
            {
                this.similarProductsResultType = (global::Windows.UI.Xaml.Controls.ComboBoxItem)(target);
            }
            break;

            case 15: // Views\BingVisualSearch.xaml line 127
            {
                this.webCamHostGrid = (global::Windows.UI.Xaml.Controls.Grid)(target);
            }
            break;

            case 16: // Views\BingVisualSearch.xaml line 132
            {
                this.imageWithFacesControl = (global::IntelligentKioskSample.Controls.ImageWithFaceBorderUserControl)(target);
            }
            break;

            case 17: // Views\BingVisualSearch.xaml line 128
            {
                this.imageFromCameraWithFaces = (global::IntelligentKioskSample.Controls.ImageWithFaceBorderUserControl)(target);
            }
            break;

            case 18: // Views\BingVisualSearch.xaml line 129
            {
                this.cameraControl = (global::IntelligentKioskSample.Controls.CameraControl)(target);
            }
            break;

            case 19: // Views\BingVisualSearch.xaml line 96
            {
                global::Windows.UI.Xaml.Controls.AppBarButton element19 = (global::Windows.UI.Xaml.Controls.AppBarButton)(target);
                ((global::Windows.UI.Xaml.Controls.AppBarButton)element19).Click += this.OnWebCamButtonClicked;
            }
            break;

            case 20: // Views\BingVisualSearch.xaml line 98
            {
                this.PicturesAppBarButton = (global::Windows.UI.Xaml.Controls.AppBarButton)(target);
            }
            break;

            case 21: // Views\BingVisualSearch.xaml line 100
            {
                this.imageSearchFlyout = (global::Windows.UI.Xaml.Controls.Flyout)(target);
            }
            break;

            case 22: // Views\BingVisualSearch.xaml line 101
            {
                global::IntelligentKioskSample.Controls.ImageSearchUserControl element22 = (global::IntelligentKioskSample.Controls.ImageSearchUserControl)(target);
                ((global::IntelligentKioskSample.Controls.ImageSearchUserControl)element22).OnImageSearchCompleted += this.OnImageSearchCompleted;
                ((global::IntelligentKioskSample.Controls.ImageSearchUserControl)element22).OnImageSearchCanceled  += this.OnImageSearchCanceled;
            }
            break;

            case 23: // Views\BingVisualSearch.xaml line 84
            {
                this.favoriteImagePickerFlyout = (global::Windows.UI.Xaml.Controls.Flyout)(target);
            }
            break;

            case 24: // Views\BingVisualSearch.xaml line 85
            {
                this.favoritePhotosGridView = (global::Windows.UI.Xaml.Controls.GridView)(target);
                ((global::Windows.UI.Xaml.Controls.GridView) this.favoritePhotosGridView).SelectionChanged += this.OnFavoriteSelectionChanged;
            }
            break;

            default:
                break;
            }
            this._contentLoaded = true;
        }
Ejemplo n.º 2
0
        public void Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1: // Views\VisionApiExplorer.xaml line 1
            {
                global::Windows.UI.Xaml.Controls.Page element1 = (global::Windows.UI.Xaml.Controls.Page)(target);
                ((global::Windows.UI.Xaml.Controls.Page)element1).SizeChanged += this.OnPageSizeChanged;
            }
            break;

            case 2: // Views\VisionApiExplorer.xaml line 23
            {
                this.commandBar = (global::Windows.UI.Xaml.Controls.CommandBar)(target);
            }
            break;

            case 3: // Views\VisionApiExplorer.xaml line 58
            {
                this.landingMessage = (global::Windows.UI.Xaml.Controls.TextBlock)(target);
            }
            break;

            case 4: // Views\VisionApiExplorer.xaml line 83
            {
                this.resultsDetails = (global::Windows.UI.Xaml.Controls.ScrollViewer)(target);
            }
            break;

            case 5: // Views\VisionApiExplorer.xaml line 85
            {
                this.tagsGridView = (global::Windows.UI.Xaml.Controls.GridView)(target);
            }
            break;

            case 6: // Views\VisionApiExplorer.xaml line 103
            {
                this.descriptionGridView = (global::Windows.UI.Xaml.Controls.GridView)(target);
            }
            break;

            case 7: // Views\VisionApiExplorer.xaml line 126
            {
                this.celebritiesTextBlock = (global::Windows.UI.Xaml.Controls.TextBlock)(target);
            }
            break;

            case 8: // Views\VisionApiExplorer.xaml line 128
            {
                this.colorInfoListView = (global::Windows.UI.Xaml.Controls.ListView)(target);
            }
            break;

            case 9: // Views\VisionApiExplorer.xaml line 166
            {
                this.ocrToggle = (global::Windows.UI.Xaml.Controls.ToggleSwitch)(target);
                ((global::Windows.UI.Xaml.Controls.ToggleSwitch) this.ocrToggle).Toggled += this.OnOCRToggled;
            }
            break;

            case 14: // Views\VisionApiExplorer.xaml line 74
            {
                this.webCamHostGrid = (global::Windows.UI.Xaml.Controls.Grid)(target);
            }
            break;

            case 15: // Views\VisionApiExplorer.xaml line 79
            {
                this.imageWithFacesControl = (global::IntelligentKioskSample.Controls.ImageWithFaceBorderUserControl)(target);
            }
            break;

            case 16: // Views\VisionApiExplorer.xaml line 75
            {
                this.imageFromCameraWithFaces = (global::IntelligentKioskSample.Controls.ImageWithFaceBorderUserControl)(target);
            }
            break;

            case 17: // Views\VisionApiExplorer.xaml line 76
            {
                this.cameraControl = (global::IntelligentKioskSample.Controls.CameraControl)(target);
            }
            break;

            case 18: // Views\VisionApiExplorer.xaml line 39
            {
                global::Windows.UI.Xaml.Controls.AppBarButton element18 = (global::Windows.UI.Xaml.Controls.AppBarButton)(target);
                ((global::Windows.UI.Xaml.Controls.AppBarButton)element18).Click += this.OnWebCamButtonClicked;
            }
            break;

            case 19: // Views\VisionApiExplorer.xaml line 41
            {
                this.PicturesAppBarButton = (global::Windows.UI.Xaml.Controls.AppBarButton)(target);
            }
            break;

            case 20: // Views\VisionApiExplorer.xaml line 43
            {
                this.imageSearchFlyout = (global::Windows.UI.Xaml.Controls.Flyout)(target);
            }
            break;

            case 21: // Views\VisionApiExplorer.xaml line 44
            {
                global::IntelligentKioskSample.Controls.ImageSearchUserControl element21 = (global::IntelligentKioskSample.Controls.ImageSearchUserControl)(target);
                ((global::IntelligentKioskSample.Controls.ImageSearchUserControl)element21).OnImageSearchCompleted += this.OnImageSearchCompleted;
                ((global::IntelligentKioskSample.Controls.ImageSearchUserControl)element21).OnImageSearchCanceled  += this.OnImageSearchCanceled;
            }
            break;

            case 22: // Views\VisionApiExplorer.xaml line 27
            {
                this.favoriteImagePickerFlyout = (global::Windows.UI.Xaml.Controls.Flyout)(target);
            }
            break;

            case 23: // Views\VisionApiExplorer.xaml line 28
            {
                this.favoritePhotosGridView = (global::Windows.UI.Xaml.Controls.GridView)(target);
                ((global::Windows.UI.Xaml.Controls.GridView) this.favoritePhotosGridView).SelectionChanged += this.OnFavoriteSelectionChanged;
            }
            break;

            default:
                break;
            }
            this._contentLoaded = true;
        }
        public void Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
            {
                global::Windows.UI.Xaml.Controls.Page element1 = (global::Windows.UI.Xaml.Controls.Page)(target);
                    #line 9 "..\..\..\Views\EmotionRecognitionPage.xaml"
                ((global::Windows.UI.Xaml.Controls.Page)element1).SizeChanged += this.OnPageSizeChanged;
                    #line default
            }
            break;

            case 2:
            {
                this.commandBar = (global::Windows.UI.Xaml.Controls.CommandBar)(target);
            }
            break;

            case 3:
            {
                this.webCamHostGrid = (global::Windows.UI.Xaml.Controls.Grid)(target);
            }
            break;

            case 4:
            {
                this.imageWithFacesControl = (global::IntelligentKioskSample.Controls.ImageWithFaceBorderUserControl)(target);
            }
            break;

            case 5:
            {
                this.imageFromCameraWithFaces = (global::IntelligentKioskSample.Controls.ImageWithFaceBorderUserControl)(target);
            }
            break;

            case 6:
            {
                this.cameraControl = (global::IntelligentKioskSample.Controls.CameraControl)(target);
            }
            break;

            case 7:
            {
                global::Windows.UI.Xaml.Controls.AppBarButton element7 = (global::Windows.UI.Xaml.Controls.AppBarButton)(target);
                    #line 20 "..\..\..\Views\EmotionRecognitionPage.xaml"
                ((global::Windows.UI.Xaml.Controls.AppBarButton)element7).Click += this.OnWebCamButtonClicked;
                    #line default
            }
            break;

            case 8:
            {
                this.PicturesAppBarButton = (global::Windows.UI.Xaml.Controls.AppBarButton)(target);
            }
            break;

            case 9:
            {
                this.imageSearchFlyout = (global::Windows.UI.Xaml.Controls.Flyout)(target);
            }
            break;

            case 10:
            {
                global::IntelligentKioskSample.Controls.ImageSearchUserControl element10 = (global::IntelligentKioskSample.Controls.ImageSearchUserControl)(target);
                    #line 24 "..\..\..\Views\EmotionRecognitionPage.xaml"
                ((global::IntelligentKioskSample.Controls.ImageSearchUserControl)element10).OnImageSearchCompleted += this.OnImageSearchCompleted;
                    #line 24 "..\..\..\Views\EmotionRecognitionPage.xaml"
                ((global::IntelligentKioskSample.Controls.ImageSearchUserControl)element10).OnImageSearchCanceled += this.OnImageSearchCanceled;
                    #line 24 "..\..\..\Views\EmotionRecognitionPage.xaml"
                ((global::IntelligentKioskSample.Controls.ImageSearchUserControl)element10).OnImageSearchLocalFilesProvided += this.OnImageSearchLocalFilesProvided;
                    #line default
            }
            break;

            default:
                break;
            }
            this._contentLoaded = true;
        }
Ejemplo n.º 4
0
        public void Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1: // Views\TranslatorExplorer\TranslatorExplorerPage.xaml line 1
            {
                this.mainPage = (global::Windows.UI.Xaml.Controls.Page)(target);
                ((global::Windows.UI.Xaml.Controls.Page) this.mainPage).SizeChanged += this.OnPageSizeChanged;
            }
            break;

            case 3: // Views\TranslatorExplorer\TranslatorExplorerPage.xaml line 26
            {
                this.MainGrid = (global::Windows.UI.Xaml.Controls.Grid)(target);
            }
            break;

            case 4: // Views\TranslatorExplorer\TranslatorExplorerPage.xaml line 33
            {
                this.commandBar = (global::Windows.UI.Xaml.Controls.CommandBar)(target);
            }
            break;

            case 5: // Views\TranslatorExplorer\TranslatorExplorerPage.xaml line 46
            {
                this.pivotControl = (global::Windows.UI.Xaml.Controls.Pivot)(target);
                ((global::Windows.UI.Xaml.Controls.Pivot) this.pivotControl).SelectionChanged += this.Pivot_SelectionChanged;
            }
            break;

            case 6: // Views\TranslatorExplorer\TranslatorExplorerPage.xaml line 187
            {
                this.lookupLanguageTextBlock = (global::Windows.UI.Xaml.Controls.TextBlock)(target);
            }
            break;

            case 7: // Views\TranslatorExplorer\TranslatorExplorerPage.xaml line 181
            {
                this.processingRing = (global::Windows.UI.Xaml.Controls.ProgressRing)(target);
            }
            break;

            case 8: // Views\TranslatorExplorer\TranslatorExplorerPage.xaml line 182
            {
                this.outputText = (global::Windows.UI.Xaml.Controls.TextBox)(target);
            }
            break;

            case 9: // Views\TranslatorExplorer\TranslatorExplorerPage.xaml line 130
            {
                this.landingMessage = (global::Windows.UI.Xaml.Controls.TextBlock)(target);
            }
            break;

            case 10: // Views\TranslatorExplorer\TranslatorExplorerPage.xaml line 141
            {
                this.webCamHostGrid = (global::Windows.UI.Xaml.Controls.Grid)(target);
            }
            break;

            case 11: // Views\TranslatorExplorer\TranslatorExplorerPage.xaml line 147
            {
                this.imageHostGrid = (global::Windows.UI.Xaml.Controls.Grid)(target);
            }
            break;

            case 12: // Views\TranslatorExplorer\TranslatorExplorerPage.xaml line 152
            {
                this.ocrTextGrid = (global::Windows.UI.Xaml.Controls.StackPanel)(target);
            }
            break;

            case 13: // Views\TranslatorExplorer\TranslatorExplorerPage.xaml line 153
            {
                this.ocrTextTip = (global::Windows.UI.Xaml.Controls.TextBlock)(target);
            }
            break;

            case 14: // Views\TranslatorExplorer\TranslatorExplorerPage.xaml line 156
            {
                this.detectedLanguageTextBox = (global::Windows.UI.Xaml.Controls.TextBlock)(target);
            }
            break;

            case 15: // Views\TranslatorExplorer\TranslatorExplorerPage.xaml line 158
            {
                this.ocrModeCombobox = (global::Windows.UI.Xaml.Controls.ComboBox)(target);
                ((global::Windows.UI.Xaml.Controls.ComboBox) this.ocrModeCombobox).SelectionChanged += this.OcrModeSelectionChanged;
            }
            break;

            case 16: // Views\TranslatorExplorer\TranslatorExplorerPage.xaml line 165
            {
                this.ocrTextBlock = (global::Windows.UI.Xaml.Controls.TextBlock)(target);
            }
            break;

            case 17: // Views\TranslatorExplorer\TranslatorExplorerPage.xaml line 160
            {
                this.printedOCRComboBoxItem = (global::Windows.UI.Xaml.Controls.ComboBoxItem)(target);
            }
            break;

            case 18: // Views\TranslatorExplorer\TranslatorExplorerPage.xaml line 161
            {
                this.handwrittigOCRComboBoxItem = (global::Windows.UI.Xaml.Controls.ComboBoxItem)(target);
            }
            break;

            case 19: // Views\TranslatorExplorer\TranslatorExplorerPage.xaml line 148
            {
                this.imageWithFacesControl = (global::IntelligentKioskSample.Controls.ImageWithFaceBorderUserControl)(target);
            }
            break;

            case 20: // Views\TranslatorExplorer\TranslatorExplorerPage.xaml line 142
            {
                this.imageFromCameraWithFaces = (global::IntelligentKioskSample.Controls.ImageWithFaceBorderUserControl)(target);
            }
            break;

            case 21: // Views\TranslatorExplorer\TranslatorExplorerPage.xaml line 145
            {
                this.cameraControl = (global::IntelligentKioskSample.Controls.CameraControl)(target);
            }
            break;

            case 22: // Views\TranslatorExplorer\TranslatorExplorerPage.xaml line 102
            {
                this.suggestionsButton = (global::Windows.UI.Xaml.Controls.Button)(target);
            }
            break;

            case 23: // Views\TranslatorExplorer\TranslatorExplorerPage.xaml line 116
            {
                this.webCamButton = (global::Windows.UI.Xaml.Controls.Button)(target);
                ((global::Windows.UI.Xaml.Controls.Button) this.webCamButton).Click += this.OnWebCamButtonClicked;
            }
            break;

            case 24: // Views\TranslatorExplorer\TranslatorExplorerPage.xaml line 120
            {
                this.searchButton = (global::Windows.UI.Xaml.Controls.Button)(target);
            }
            break;

            case 25: // Views\TranslatorExplorer\TranslatorExplorerPage.xaml line 123
            {
                this.imageSearchFlyout = (global::Windows.UI.Xaml.Controls.Flyout)(target);
            }
            break;

            case 26: // Views\TranslatorExplorer\TranslatorExplorerPage.xaml line 124
            {
                global::IntelligentKioskSample.Controls.ImageSearchUserControl element26 = (global::IntelligentKioskSample.Controls.ImageSearchUserControl)(target);
                ((global::IntelligentKioskSample.Controls.ImageSearchUserControl)element26).OnImageSearchCompleted += this.OnImageSearchCompleted;
                ((global::IntelligentKioskSample.Controls.ImageSearchUserControl)element26).OnImageSearchCanceled  += this.OnImageSearchCanceled;
            }
            break;

            case 27: // Views\TranslatorExplorer\TranslatorExplorerPage.xaml line 105
            {
                this.favoriteImagePickerFlyout = (global::Windows.UI.Xaml.Controls.Flyout)(target);
            }
            break;

            case 28: // Views\TranslatorExplorer\TranslatorExplorerPage.xaml line 106
            {
                this.favoritePhotosGridView = (global::Windows.UI.Xaml.Controls.GridView)(target);
                ((global::Windows.UI.Xaml.Controls.GridView) this.favoritePhotosGridView).SelectionChanged += this.OnFavoriteSelectionChanged;
            }
            break;

            case 30: // Views\TranslatorExplorer\TranslatorExplorerPage.xaml line 85
            {
                this.inputText = (global::Windows.UI.Xaml.Controls.TextBox)(target);
                ((global::Windows.UI.Xaml.Controls.TextBox) this.inputText).SelectionChanged += this.OnInputTextSelectionChanged;
            }
            break;

            case 31: // Views\TranslatorExplorer\TranslatorExplorerPage.xaml line 88
            {
                this.inputTextLength = (global::Windows.UI.Xaml.Controls.TextBlock)(target);
            }
            break;

            case 32: // Views\TranslatorExplorer\TranslatorExplorerPage.xaml line 79
            {
                global::Windows.UI.Xaml.Controls.Button element32 = (global::Windows.UI.Xaml.Controls.Button)(target);
                ((global::Windows.UI.Xaml.Controls.Button)element32).Click += this.OnSwapLanguageButtonClicked;
            }
            break;

            case 33: // Views\TranslatorExplorer\TranslatorExplorerPage.xaml line 63
            {
                this.favoriteTextPickerFlyout = (global::Windows.UI.Xaml.Controls.Flyout)(target);
            }
            break;

            case 34: // Views\TranslatorExplorer\TranslatorExplorerPage.xaml line 70
            {
                this.samplePhraseTreeView = (global::Windows.UI.Xaml.Controls.TreeView)(target);
                ((global::Windows.UI.Xaml.Controls.TreeView) this.samplePhraseTreeView).ItemInvoked += this.SamplePhraseItemInvoked;
            }
            break;

            default:
                break;
            }
            this._contentLoaded = true;
        }
Ejemplo n.º 5
0
        public void Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1: // Views\CustomVision\CustomVisionExplorer.xaml line 1
            {
                global::Windows.UI.Xaml.Controls.Page element1 = (global::Windows.UI.Xaml.Controls.Page)(target);
                ((global::Windows.UI.Xaml.Controls.Page)element1).SizeChanged += this.OnPageSizeChanged;
            }
            break;

            case 2: // Views\CustomVision\CustomVisionExplorer.xaml line 23
            {
                this.commandBar = (global::Windows.UI.Xaml.Controls.CommandBar)(target);
            }
            break;

            case 3: // Views\CustomVision\CustomVisionExplorer.xaml line 44
            {
                this.landingMessage = (global::Windows.UI.Xaml.Controls.TextBlock)(target);
            }
            break;

            case 4: // Views\CustomVision\CustomVisionExplorer.xaml line 151
            {
                this.progressRing = (global::Windows.UI.Xaml.Controls.ProgressRing)(target);
            }
            break;

            case 5: // Views\CustomVision\CustomVisionExplorer.xaml line 100
            {
                this.activeLearningButton = (global::Windows.UI.Xaml.Controls.Button)(target);
            }
            break;

            case 6: // Views\CustomVision\CustomVisionExplorer.xaml line 120
            {
                this.webCamHostGrid = (global::Windows.UI.Xaml.Controls.Grid)(target);
            }
            break;

            case 7: // Views\CustomVision\CustomVisionExplorer.xaml line 125
            {
                this.imageWithFacesControl = (global::IntelligentKioskSample.Controls.ImageWithFaceBorderUserControl)(target);
            }
            break;

            case 8: // Views\CustomVision\CustomVisionExplorer.xaml line 127
            {
                this.resultsDetails = (global::Windows.UI.Xaml.Controls.ScrollViewer)(target);
            }
            break;

            case 9: // Views\CustomVision\CustomVisionExplorer.xaml line 129
            {
                this.resultsGridView = (global::Windows.UI.Xaml.Controls.ListView)(target);
            }
            break;

            case 10: // Views\CustomVision\CustomVisionExplorer.xaml line 143
            {
                this.searchErrorTextBlock = (global::Windows.UI.Xaml.Controls.TextBlock)(target);
            }
            break;

            case 12: // Views\CustomVision\CustomVisionExplorer.xaml line 121
            {
                this.imageFromCameraWithFaces = (global::IntelligentKioskSample.Controls.ImageWithFaceBorderUserControl)(target);
            }
            break;

            case 13: // Views\CustomVision\CustomVisionExplorer.xaml line 122
            {
                this.cameraControl = (global::IntelligentKioskSample.Controls.CameraControl)(target);
            }
            break;

            case 14: // Views\CustomVision\CustomVisionExplorer.xaml line 102
            {
                this.activeLearningFlyout = (global::Windows.UI.Xaml.Controls.Flyout)(target);
            }
            break;

            case 15: // Views\CustomVision\CustomVisionExplorer.xaml line 114
            {
                global::Windows.UI.Xaml.Controls.Button element15 = (global::Windows.UI.Xaml.Controls.Button)(target);
                ((global::Windows.UI.Xaml.Controls.Button)element15).Click += this.TriggerActiveLearningButtonClicked;
            }
            break;

            case 17: // Views\CustomVision\CustomVisionExplorer.xaml line 53
            {
                this.projectsComboBox = (global::Windows.UI.Xaml.Controls.ComboBox)(target);
            }
            break;

            case 18: // Views\CustomVision\CustomVisionExplorer.xaml line 87
            {
                global::Windows.UI.Xaml.Controls.Button element18 = (global::Windows.UI.Xaml.Controls.Button)(target);
                ((global::Windows.UI.Xaml.Controls.Button)element18).Click += this.EditProjectsClicked;
            }
            break;

            case 22: // Views\CustomVision\CustomVisionExplorer.xaml line 25
            {
                this.webCamButton = (global::Windows.UI.Xaml.Controls.AppBarButton)(target);
                ((global::Windows.UI.Xaml.Controls.AppBarButton) this.webCamButton).Click += this.OnWebCamButtonClicked;
            }
            break;

            case 23: // Views\CustomVision\CustomVisionExplorer.xaml line 27
            {
                this.PicturesAppBarButton = (global::Windows.UI.Xaml.Controls.AppBarButton)(target);
            }
            break;

            case 24: // Views\CustomVision\CustomVisionExplorer.xaml line 29
            {
                this.imageSearchFlyout = (global::Windows.UI.Xaml.Controls.Flyout)(target);
            }
            break;

            case 25: // Views\CustomVision\CustomVisionExplorer.xaml line 30
            {
                global::IntelligentKioskSample.Controls.ImageSearchUserControl element25 = (global::IntelligentKioskSample.Controls.ImageSearchUserControl)(target);
                ((global::IntelligentKioskSample.Controls.ImageSearchUserControl)element25).OnImageSearchCompleted += this.OnImageSearchCompleted;
                ((global::IntelligentKioskSample.Controls.ImageSearchUserControl)element25).OnImageSearchCanceled  += this.OnImageSearchCanceled;
            }
            break;

            default:
                break;
            }
            this._contentLoaded = true;
        }
Ejemplo n.º 6
0
        public void Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1: // Views\RecognitionPage.xaml line 1
            {
                global::Windows.UI.Xaml.Controls.Page element1 = (global::Windows.UI.Xaml.Controls.Page)(target);
                ((global::Windows.UI.Xaml.Controls.Page)element1).SizeChanged += this.OnPageSizeChanged;
            }
            break;

            case 2: // Views\RecognitionPage.xaml line 19
            {
                this.commandBar = (global::Windows.UI.Xaml.Controls.CommandBar)(target);
            }
            break;

            case 3: // Views\RecognitionPage.xaml line 46
            {
                this.webCamHostGrid = (global::Windows.UI.Xaml.Controls.Grid)(target);
            }
            break;

            case 4: // Views\RecognitionPage.xaml line 51
            {
                this.imageWithFacesControl = (global::IntelligentKioskSample.Controls.ImageWithFaceBorderUserControl)(target);
            }
            break;

            case 5: // Views\RecognitionPage.xaml line 53
            {
                this.showFaceLandmarks = (global::Windows.UI.Xaml.Controls.CheckBox)(target);
            }
            break;

            case 6: // Views\RecognitionPage.xaml line 47
            {
                this.imageFromCameraWithFaces = (global::IntelligentKioskSample.Controls.ImageWithFaceBorderUserControl)(target);
            }
            break;

            case 7: // Views\RecognitionPage.xaml line 48
            {
                this.cameraControl = (global::IntelligentKioskSample.Controls.CameraControl)(target);
            }
            break;

            case 8: // Views\RecognitionPage.xaml line 20
            {
                global::Windows.UI.Xaml.Controls.AppBarButton element8 = (global::Windows.UI.Xaml.Controls.AppBarButton)(target);
                ((global::Windows.UI.Xaml.Controls.AppBarButton)element8).Click += this.OnWebCamButtonClicked;
            }
            break;

            case 9: // Views\RecognitionPage.xaml line 21
            {
                this.PicturesAppBarButton = (global::Windows.UI.Xaml.Controls.AppBarButton)(target);
            }
            break;

            case 10: // Views\RecognitionPage.xaml line 23
            {
                this.imageSearchFlyout = (global::Windows.UI.Xaml.Controls.Flyout)(target);
            }
            break;

            case 11: // Views\RecognitionPage.xaml line 24
            {
                global::IntelligentKioskSample.Controls.ImageSearchUserControl element11 = (global::IntelligentKioskSample.Controls.ImageSearchUserControl)(target);
                ((global::IntelligentKioskSample.Controls.ImageSearchUserControl)element11).OnImageSearchCompleted += this.OnImageSearchCompleted;
                ((global::IntelligentKioskSample.Controls.ImageSearchUserControl)element11).OnImageSearchCanceled  += this.OnImageSearchCanceled;
            }
            break;

            default:
                break;
            }
            this._contentLoaded = true;
        }