Pop-Ups Header

3502
2
Jump to solution
05-28-2014 03:06 AM
by Anonymous User
Not applicable
Original User: hanidraidi

I changed the display expression for the parcels layer to ???Parcel Details???, so when I identify a parcel, its attributes appear under Parcel Details-title. I published the mxd as a service and added it to my site (Built using ArcGIS viewer for Silverlight), when configuring the layer pop-ups, the header does not take the display expression from the mxd, instead it uses a field (Shape_Area here), thus when I identify a parcel in the viewer, the title is the area of the parcel. How to change the header to Parcel Details as in the mxd? This is shown in the screen shots below.

Regards,

Hani

1- Display expression in ArcMap (Layer Properties>>Display>>Expression)

[ATTACH=CONFIG]34123[/ATTACH]

2- Identify in ArcMap.

[ATTACH=CONFIG]34124[/ATTACH]

3- Pop-Ups Configuration.

[ATTACH=CONFIG]34125[/ATTACH]

4- Identify in the Web app.

[ATTACH=CONFIG]34126[/ATTACH]
0 Kudos
1 Solution

Accepted Solutions
by Anonymous User
Not applicable
Original User: PietaS175

Not sure how to set it to be the display expression, but this is where you set it
(this is from a previous thread on here)

Change OnClickPopupContainerStyle.xaml located in Config/Layouts/ResourceDictionaries/Common
It contains the datatemplate for the popup. Change 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)

View solution in original post

0 Kudos
2 Replies
by Anonymous User
Not applicable
Original User: PietaS175

Not sure how to set it to be the display expression, but this is where you set it
(this is from a previous thread on here)

Change OnClickPopupContainerStyle.xaml located in Config/Layouts/ResourceDictionaries/Common
It contains the datatemplate for the popup. Change 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)
0 Kudos
HaniDraidi
Occasional Contributor II
Great!

It worked well. Thank you very much Pieta.
0 Kudos