Solved! Go to Solution.
This tweak works as expected when run from my dev machine. But when I deploy the app to the production server, the popup reverts to its original out-of-the-box appearance, i.e. displays the PopupItem.Title.
When I delete Config\Layouts\ResourceDictionaries\Common\OnClickPopupContainerStyle.xaml from both my dev and production server, and the popups on both show only the original out-of-the-box appearance, i.e. display the PopupItem.Title.
This indicates the popup has a default template that is defined elsewhere, but more importantly, this means my production server is unable to override the default template by applying the OnClickPopupContainerStyle.xaml.
Any ideas why the production version will not apply OnClickPopupContainerStyle.xaml? I wonder if it is a file/folder permission issue with Config\Layouts\ResourceDictionaries\Common\OnClickPopupContainerStyle.xaml on the production server.
OnClickPopupContainerStyle.xaml located in Config/Layouts/ResourceDictionaries/Common contains the datatemplate for the popup changing line number 755 from:
<TextBlock Text="{Binding PopupItem.Title}" Grid.Row="0"
to
<TextBlock Text="{Binding PopupItem.LayerName}" Grid.Row="0"
will display the Layer Name instead of the Title (Primary Display Field)
I'm having the same problem as Jamal. It doesn't work. Their must be some small piece of code that needs to be tweaked to make it work.