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.
Solved! Go to Solution.
Found a workaround, was able to set the horizontal scrollbar to auto on feature attribute control.
ESRI.ArcGIS.Mobile.Client.Controls.ViewFeatureAttributesControl.ControlCreatingFeatureAttributes += new EventHandler<ViewFeatureAttributesControlEventArgs>(ViewFeatureAttributesControl_ControlCreatingFeatureAttributes);
void ViewFeatureAttributesControl_ControlCreatingFeatureAttributes(object sender, ViewFeatureAttributesControlEventArgs e)
{
((System.Windows.Controls.ScrollViewer)(((System.Windows.Controls.ContentControl)(e.Control)).Content)).HorizontalScrollBarVisibility = ScrollBarVisibility.Auto;
}
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.
Found a workaround, was able to set the horizontal scrollbar to auto on feature attribute control.
ESRI.ArcGIS.Mobile.Client.Controls.ViewFeatureAttributesControl.ControlCreatingFeatureAttributes += new EventHandler<ViewFeatureAttributesControlEventArgs>(ViewFeatureAttributesControl_ControlCreatingFeatureAttributes);
void ViewFeatureAttributesControl_ControlCreatingFeatureAttributes(object sender, ViewFeatureAttributesControlEventArgs e)
{
((System.Windows.Controls.ScrollViewer)(((System.Windows.Controls.ContentControl)(e.Control)).Content)).HorizontalScrollBarVisibility = ScrollBarVisibility.Auto;
}