User Interface Elements

Land Desktop Map 3D Samples

 
User Interface Elements
 
 
 

The user interface consists of three parts, the class that controls the PaletteSet, the Windows user control placed in the PaletteSet and serves as a container, and the WPF XAML and code that defines all the controls and their behavior.

  • AttributesPalette - AttributesPalette is the class that creates the PaletteSet dockable window from the AutoCAD API. It is designed to be accessed through the Instance static property to assure that only one instance of this class exists as one time. When it is first created, it creates a PaletteSet object and a Panel user control, and places the Panel within the PaletteSet window. This class has one method to make the PalettSet visible or invisible. It also has a property for accessing the features selected in the underlying form called FeatureSelection.
  • Panel - Panel is a Windows Forms user control that serves as a container for a WPF user control. When it is created, the Panel creates an instance of the InspectorForm class and hosts it. It also has a property that allows access to the underlying InspectorForm object. It has no other features, but is required because the PaletteSet can only contain controls of type System.Windows.Forms.Control.
  • InspectorForm - InspectorForm is a Windows Presentation Foundation (WPF) user control which uses XAML to define the visual aspects of constituent controls and a code layer behind to define their behavior. This code layer contains the important functionality of the FeatureExplorer sample.