public ViewerPage()
 {
     this.InitializeComponent();
     DataContext            = AppState.Current;
     SampleFrame.Navigated += SampleFrame_Navigated;
     SampleFrame.Navigate(typeof(SamplesPage));
 }
 public MainPage()
 {
     ArcGISRuntimeEnvironment.SymbolsPath = @"Resources";
     this.InitializeComponent();
     DataContext            = AppState.Current;
     SampleFrame.Navigated += SampleFrame_Navigated;
     SampleFrame.Navigate(typeof(SampleListPage));
 }
Exemple #3
0
        protected override async void OnNavigatedTo(NavigationEventArgs e)
        {
            sampleMetadata = (SampleMetadata)e.Parameter;
            switch (sampleMetadata.Tag)
            {
            case "ImageClassifier":
                SampleFrame.Navigate(typeof(Samples.ImageClassifier));
                break;

            case "Batching":
                SampleFrame.Navigate(typeof(Samples.Batching));
                break;

            case "ImageEffects":
                SampleFrame.Navigate(typeof(Samples.ImageEffects));
                break;

            case "OpenCVInterop":
                SampleFrame.Navigate(typeof(Samples.OpenCVInterop));
                break;

            case "ImageSharpInterop":
                SampleFrame.Navigate(typeof(Samples.ImageSharpInterop));
                break;

            case "EncryptedModel":
                SampleFrame.Navigate(typeof(Samples.EncryptedModel));
                break;

            case "AdapterSelection":
                SampleFrame.Navigate(typeof(Samples.AdapterSelection));
                break;
            }
            if (sampleMetadata.Docs.Count > 0)
            {
                DocsHeader.Visibility = Visibility.Visible;
            }
            else
            {
                DocsHeader.Visibility = Visibility.Collapsed;
            }
        }