Attribute window doesn't wrap text

3077
2
Jump to solution
07-31-2017 06:49 AM
PramodHarithsa1
Occasional Contributor II

Hi,

Looks like ArcGIS for Windows Mobile Attribute window doesn't like long texts. Anything that exceeds the length of the display window gets chopped off instead of wrapping the text. Attaching screenshots for reference. Refer to the description field in the screenshot.

Any idea how to fix this?

I am using ArcGIS for Windows Mobile v10.2.1, ArcGIS Server 10.2.2 for Mobile data service.

0Kudos
1 Solution

Accepted Solutions
PramodHarithsa1
Occasional Contributor II

Found a workaround, was able to set the horizontal scrollbar to auto on feature attribute control.

ESRI.ArcGIS.Mobile.Client.Controls.ViewFeatureAttributesControl.ControlCreatingFeatureAttributes+=newEventHandler<ViewFeatureAttributesControlEventArgs>(ViewFeatureAttributesControl_ControlCreatingFeatureAttributes);voidViewFeatureAttributesControl_ControlCreatingFeatureAttributes(objectsender,ViewFeatureAttributesControlEventArgs e){((System.Windows.Controls.ScrollViewer)(((System.Windows.Controls.ContentControl)(e.Control)).Content)).HorizontalScrollBarVisibility=ScrollBarVisibility.Auto;}

View solution in original post

2 Replies
PramodHarithsa1
Occasional Contributor II

I 'snoop'ed the application to check what was causing this, looks like the textwrapping property of text block is set to nowrap instead of wrap. (Not sure Why??) Is there a way this can be fixed, considering that the product is in Mature support not sure if ESRI would help here.

Attaching snapshots.

0Kudos
PramodHarithsa1
Occasional Contributor II

Found a workaround, was able to set the horizontal scrollbar to auto on feature attribute control.

ESRI.ArcGIS.Mobile.Client.Controls.ViewFeatureAttributesControl.ControlCreatingFeatureAttributes+=newEventHandler<ViewFeatureAttributesControlEventArgs>(ViewFeatureAttributesControl_ControlCreatingFeatureAttributes);voidViewFeatureAttributesControl_ControlCreatingFeatureAttributes(objectsender,ViewFeatureAttributesControlEventArgs e){((System.Windows.Controls.ScrollViewer)(((System.Windows.Controls.ContentControl)(e.Control)).Content)).HorizontalScrollBarVisibility=ScrollBarVisibility.Auto;}