Hello there,
I was wondering why there isn't a TemplateHostViewRenderer for UWP in your EssentialUIKit demo project in github. You guys use a different method to display the respective Template Pages on UWP versus Android and iOS.
The logic is in TemplatePage.xaml.cs
private void ListView_OnSelectionChanged(object sender, SelectedItemChangedEventArgs e)
{
if (e.SelectedItem == null || this.isNavigationInQueue)
{
return;
}
this.isNavigationInQueue = true;
if (Device.RuntimePlatform == "UWP")
{
var assembly = typeof(App).GetTypeInfo().Assembly;
Navigation.PushAsync((Page)Activator.CreateInstance(
assembly.GetType($"EssentialUIKit.{((Template)e.SelectedItem).PageName}")));
}
else
{
Navigation.PushAsync(new TemplateHostPage(e.SelectedItem as Template));
}
}
I actually wanted to run everything through the TemplateHostPage and get the same effect as on Andoird and iOS with the navigational items.
Is it possible to write a TemplateHostViewRenderer for UWP?