partial void NavigateToUri(Uri uri)
{
#if NETFX_CORE
throw Log.ErrorAndCreateException<NotSupportedInPlatformException>($"Direct navigations to urls is not supported in '{Platforms.CurrentPlatform}', cannot navigate to '{uri}'. Use Navigate(type) instead.");
#else
RootFrame.Navigate(uri);
#endif
}