public override void OnNavigatedTo(NavigationContext navigationContext) { if (navigationContext.Parameters["VisualPlugin"] is IVisualPlugin visualPlugin) { if (PluginList.Count(x => x.Label == visualPlugin.Name) == 0) { PluginSelectedIndex.Value = -1; OptionSelectedIndex.Value = -1; ActiveViewName.Value = ""; return; } RegionManager.RequestNavigate(PluginMainViewRegion.Value, visualPlugin.MainViewName); PluginSelectedIndex.Value = PluginList.IndexOf(PluginList.FirstOrDefault(x => x.Label == visualPlugin.Name && x.Icon as string == visualPlugin.Icon && x.Tag as string == visualPlugin.MainViewName)); ActiveViewName.Value = visualPlugin.Name; } }