WPF window that have a content control with Prism region manager and region name. Prism region have a user control that injected to it. Window open and fully loaded, after reconnect with RDP, the window Prism region lost the injected view. I figure out that on RDP reconnecting the widow is updating layout and re render, loading event is firing and UpdateLayout as well.
Any idea ?
I already observe the following solution but it doesn’t helped on this one.
WPF: Prevent unload & load after RDP (dis)connect
<ContentControl x:Name="DetailRegion" Grid.Row="1"
Visibility="{Binding IsAgentVisible,`enter code here`
Converter={StaticResource BoolVisibilityConverter},
ConverterParameter=Collapsed}"
HorizontalAlignment="Left"
VerticalAlignment="Top"
Focusable="False"
Padding="5"
regions:RegionManager.RegionManager="{Binding CvaRegionManager,UpdateSourceTrigger=PropertyChanged}"
regions:RegionManager.RegionName="StandAloneCVAViewRegion" />