How do you update a component that’s injected into the xaml of a page when NavigationCacheMode for the page is set to Required? I find when I navigate away from the page and then back, the UI that’s in the component does not update.
This is the code in the xaml:
<DataTemplate x:Key="AbcControl">
<component:AbcControl Visibility="{Binding ElementName=ThisPage, Path=DataContext.IsAbcControlEnabled, Converter={StaticResource BoolToVisibilityConverter}}"
OnOpenedCallback="{Binding ElementName=ThisPage, Path=OnOpenedAction}"
OnClosedCallback="{Binding ElementName=ThisPage, Path=OnClosedAction}"/>
</DataTemplate>
The code behind for this page has the following:
NavigationCacheMode = NavigationCacheMode.Required;
I notice when I navigate away from the page and then go back to it nothing on the AbcControl UI ever gets updated. Is there a way to manually reload the AbcControl UI?