ESRI.ArcGIS.Mobile.Client
FeatureTypeListControl Class
Members  See Also  Send Feedback
ESRI.ArcGIS.Mobile.Client.Controls Namespace : FeatureTypeListControl Class

Control used to display a number of feature types for selection.

Object Model



Syntax

Visual Basic (Declaration) 
Public Class FeatureTypeListControl 
   Inherits UserControl
C# 
public class FeatureTypeListControl : UserControl 

Remarks

I encountered a problem with toggling the grouping of the ListBox at runtime, having to do with using a WrapPanel inside the ListBox. I found that if I updated the ICollectionView.GroupDescriptions at runtime the WrapPanel would stop wrapping and display one item per line. I found that I could update (Clear() or Add()) the ListBox.GroupStyle that would fix this problem, but then the UI would 'hang' for 3-5 seconds while it updated/refreshed (I noticed numerous data binding error messages in the output window during this update). Ultimately I decided to use two ListBox controls--one for grouping; one for no grouping--and simply toggle their visibility based upon the GroupByLayer property.

Inheritance Hierarchy

System.Object
   System.Windows.Threading.DispatcherObject
      System.Windows.DependencyObject
         System.Windows.Media.Visual
            System.Windows.UIElement
               System.Windows.FrameworkElement
                  System.Windows.Controls.Control
                     System.Windows.Controls.ContentControl
                        System.Windows.Controls.UserControl
                           ESRI.ArcGIS.Mobile.Client.Controls.FeatureTypeListControl

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also