ArcGISRuntimeXamarin.SearchResultsViewController.RowSelected C# (CSharp) Метод

RowSelected() публичный Метод

public RowSelected ( UITableView tableView, NSIndexPath indexPath ) : void
tableView UITableView
indexPath NSIndexPath
Результат void
        public override void RowSelected(UITableView tableView, NSIndexPath indexPath)
        {
            try
            {
                var item = sampleItems[indexPath.Row];
                var sampleName = (item as SampleModel).SampleName;
                var sampleNamespace = (item as SampleModel).SampleNamespace;

                Type t = Type.GetType(sampleNamespace + "." + sampleName);
                UIViewController vc = Activator.CreateInstance(t) as UIViewController;
                parentViewController.NavigationController.PushViewController(vc, true);
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.Message);
            }
        }