Items Controls

Items controls display collections of child controls. These controls have inherent behaviors that manage the appearance of their child controls.

Items controls can contain strings or any other control; for example, a list box can contain a radio button. Often an items control is used with a specific child control; for example, a tab control contains tab items.

The following sections describe the controls available in the Items Controls list.

Items Controls Property Usage

The following table shows the properties used by each control:
PropertyCombo BoxCombo Item [add]Group BoxItems ControlList BoxList Box Item [add]List ViewList View Item [add]MenuMenu Item [add]SeparatorStatus BarStatus Bar Item [add]TabTab Item [add]Tool BarTool Bar TrayTree ViewTree View Item [add]
AllowDropXXXXXXXXXXXXXXXXXXX
AlternationCountXXXXXXXXX
BackgroundXXXXXXXXXXXXXXXXXXX
BandX
BandIndexX
BorderBrushXXXXXXXXXXXXXXXXXX
BorderThicknessXXXXXXXXXXXXXXXXXX
CacheModeX
CharacterSpacingX
ClipX
ClipToBoundsXXXXXXXXXXXXXXXXXX
ColumnXXXXXXXXXXXXXXXXXXX
ColumnSpanXXXXXXXXXXXXXXXXXXX
CommandParameterX
CommandTargetX
ContentXXXXXX
ContentStringFormatXXXXXXX
CursorX
DataContextX
DisplayMemberPathXXXXXXXXXXX
EffectXXXXXXXXXXXXXXXXXXX
FlowDirectionXXXXXXXXXXXXXXXXXXX
FocusableXXXXXXXXXXXXXXXXXX
FocusVisualStyleXXXXXXXXXXXXXXXXXX
FontFamilyXXXXXXXXXXXXXXXXXXX
FontSizeXXXXXXXXXXXXXXXXXXX
FontStretchXXXXXXXXXXXXXXXXXXX
FontStyleXXXXXXXXXXXXXXXXXXX
FontWeightXXXXXXXXXXXXXXXXXXX
ForceCursorXXXXXXXXXXXXXXXXXX
ForegroundXXXXXXXXXXXXXXXXXX
HeaderXXXXX
HeaderStringFormatXXXXX
HeightXXXXXXXXXXXXXXXXXXX
HorizontalAlignmentXXXXXXXXXXXXXXXXXXX
HorizontalContentAlignmentXXXXXXXXXXXXXXXXXX
IconX
InputGestureTextX
IsCheckableX
IsCheckedX
IsDropDownOpenX
IsEditableX
IsEnabledXXXXXXXXXXXXXXXXXXX
IsExpandedX
IsHitTestVisibleXXXXXXXXXXXXXXXXXXX
IsLockedX
IsMainMenuX
IsManipulationEnabledXXXXXXXXXXXXXXXXXX
IsOverflowOpenX
IsReadOnlyX
IsSelectedXXXXX
IsSharedSizeScopeXXXXXXXXXXXXXXXXXX
IsSubmenuOpenX
IsSynchronizedWithCurrentItemXXXX
IsTabStopXXXXXXXXXXXXXXXXXX
IsTextSearchCaseSensitiveXXXXXXXXX
IsTextSearchEnabledXXXXXXXXX
ItemPanelX
ItemsX
ItemsSourceXXXXXXXXXXX
ItemStringFormatXXXXXXXXXX
ItemTemplateX
LanguageX
LocalizationXXXXXXXXXXXXXXXXXXX
MarginXXXXXXXXXXXXXXXXXX
MaxDropDownHeightX
MaxHeightXXXXXXXXXXXXXXXXXXX
MaxWidthXXXXXXXXXXXXXXXXXXX
MinHeightXXXXXXXXXXXXXXXXXXX
MinWidthXXXXXXXXXXXXXXXXXXX
NameXXXXXXXXXXXXXXXXXXX
OpacityXXXXXXXXXXXXXXXXXXX
OpacityMaskXXXXXXXXXXXXXXXXXXX
OverridesDefaultStyleXXXXXXXXXXXXXXXXXX
PaddingXXXXXXXXXXXXXXXXXX
ProjectionX
RenderTransformOriginXXXXXXXXXXXXXXXXXXX
RowXXXXXXXXXXXXXXXXXXX
RowSpanXXXXXXXXXXXXXXXXXXX
SelectedIndexXXXX
SelectedItemXXX
SelectedValueXXXX
SelectedValuePathXXXXXX
SnapsToDevicePixelsXXXXXXXXXXXXXXXXX
StaysOpenOnClickXXX
StaysOpenOnEditX
StyleXXXXXXXXXXXXXXXXXXX
TabIndexXXXXXXXXXXXXXXXXXX
TabNavigationX
TabStripPlacementX
TagXXXXXXXXXXXXXXXXXXX
TemplateXXXXXXXXXXXXXXXXXX
TextX
ToolTipXXXXXXXXXXXXXXXXXXX
UidXXXXXXXXXXXXXXXXXX
UseLayoutRoundingXXXXXXXXXXXXXXXXXXX
VerticalAlignmentXXXXXXXXXXXXXXXXXXX
VerticalContentAlignmentXXXXXXXXXXXXXXXXXX
VisibilityXXXXXXXXXXXXXXXXXXX
WidthXXXXXXXXXXXXXXXXXXX

Items Controls Property Descriptions

The following table shows the properties descriptions used by all control:
PropertyDescription
AllowDropSelect this check box to indicate that the control can accept data that is dragged onto it.
AlternationCountSpecifies the number of alternating item containers or rows to display.
BackgroundExpand this field to select the background color of the selected control.
BandSpecifies where the toolbar should be located in the toolbar tray.
BandIndexSpecifies the band index number that indicates the position of the toolbar on the band.
BorderBrushExpand this field to select the border color of the selected control.
BorderThicknessSpecifies the border thickness of a control, in pixels.
CacheModeSpecifies a value that indicates that rendered content should be cached when possible.
CharacterSpacingSpecifies the distance between characters of text in the contol, measured in 1000ths of the font size.
ClipSpecifies the geometric shape used to define the outline of the image. Selections are:
  • Hover
  • Press
  • Release
ClipToBoundsSelect this check box to clip the content of this control (or content coming from the child elements of this control) to fit into the size of the containing control.
ColumnSpecifies the column within the grid where the control is located.
ColumnSpanSpecifies the total number of columns that child content spans within a grid.
CommandParameterSpecifies the parameter to pass to the Command property.
CommandTargetSpecifies the element on which to raise the specified command.
ContentSpecifies the content displayed on the control.
ContentStringFormatSpecifies a composite string that determines how to format the Content property if it is displayed as a string.
CursorSpecifies the cursor image to display when the mouse pointer hovers over an object.
DataContextSpecifies the data context for a control when it participates in data binding.
DisplayMemberPathSpecifies a path to a value on the source control to serve as the visual representation of the control.
EffectClick the arrow to expand the property, select the effect you want to apply to the control, and then configure the specific values for the effect. Valid values to select are:
  • Blur
    • Kernel Type
    • Radius
  • Drop Shadow
    • Color
    • Direction
    • Opactiy
    • Shadow Depth
FlowDirectionSpecifies the direction that text and other user interface (UI) elements flow within any parent control. Selections are:
  • Left to Right
  • Right to Left
FocusableSelect this check box to indicate that the control can receive focus.
FocusVisualStyleSpecifies a property that enables customization of appearance, effects, or other style characteristics that apply to this control when it has focus.
FontFamilySpecifies the font family for the control.
FontSizeSpecifies the font size for the control.
FontStretchSpecifies the degree to which a font is condensed or expanded on the screen.
FontStyleSpecifies the font style for the control.
FontWeightSpecifies the weight or thickness of the specified font.
ForceCursorSelect this check box to indicate that the user interface (UI) renders the cursor as declared by the Cursor property.
ForegroundExpand this field to select the foreground color.
HeaderSpecifies the header text to display on the control.
HeaderStringFormatSpecifies a composite string that indicates how to format the header if it is displayed as a string
HeightSpecifies the height of the control, in pixels.
HorizontalAlignmentSpecifies the horizontal alignment characteristics applied to this control. Selections are:
  • Left
  • Center
  • Right
  • Stretch
HorizontalContentAlignmentSpecifies the horizontal alignment of the control's content. Selections are:
  • Left
  • Center
  • Right
  • Stretch
IconSpecifies the icon that displays for a Menu Item.
ImageStretchSpecifies how the image should be stretched to fill the destination rectangle. Selections are:
  • Fill
  • None
  • Uniform
  • UniformToFill
IsCheckableSelect this check box to indicate that a Menu Item can be checked by default.
IsCheckedSelect this check box to indicate that the control is checked.
IsDropDownOpenSelect this check box to indicate that the drop-down area for a combo box is open.
IsEditableSelect this check box to indicate that the text in the Combo Box can be edited.
IsEnabledSelect this check box to indicate that this control is enabled in the user interface (UI).
IsExpandedSelect this check box to indicate that the expander content window is visible.
IsHitTestVisibleSelect this check box to indicate that the control can possibly be returned as a hit test result from some portion of its rendered content.
IsLockedSelect this check box to indicate that a Tool Bar control cannot be moved inside a Tool Bar Tray.
IsMainMenuSpecifies whether the menu control gains focus if the F10 or Alt key is pressed on the keyboard. If there are multiple menu controls in a form, then only one of the controls should have its check box selected; the IsMainMenu property check box for the other menu control(s) should be cleared.
IsManipulationEnabledSelect this check box to indicate that the manipulation events for the control are enabled.
IsOverflowOpenSelect this check box to indicate that the Tool Bar overflow area is visible.
IsReadOnlyCaretVisibleSpecifies whether a read-only text box displays a caret. If the IsReadOnly check box is selected, you can still select and copy text. If the IsReadOnlyCaretVisible check box is also selected, a caret appears in the text box when the text box has keyboard focus. When the IsReadOnly check box is cleared, selecting the IsReadOnlyCaretVisible check box has no effect.
IsSelectedSelect this check box to indicate that the item is selected.
IsSharedSizeScopeSelect this check box to indicate that controls are sharing size information.
IsSubmenuOpenSelect this check box to indicate that the submenu of the Menu Item is open.
IsSynchronizedWithCurrentItemSelect this check box to indicate that a selector should keep the selected item synchronized with the current item in the Items property.
IsTabStopSelect this check box to indicate that a control is included in tab navigation.
IsTextSearchCaseSensitiveSelect this check box to indicate that text searches are case sensitive.
IsTextSearchEnabledSelect this check box to indicate that text search is enabled on the control.
ItemPanelSpecifies the template that defines the panel that controls the layout of items.
ItemsSpecifies the collection used to generate the content of the control.
ItemsSourceSpecifies the collection used to generate the content of the control.
ItemStringFormatSpecifies a composite string that determines how to format the items in the control if they are displayed as strings.
ItemTemplateClick the ellipsis button to open the Open dialog box to select the data template used to display each item.
LanguageSpecifies the localization language that applies to an object.
LocalizationClick the ellipsis button to open the Localization Configuration dialog box where you can configure the property to localize, the language to use for localization, and the text to localize.
MarginSpecifies the outer margin of a control.
MaxDropDownHeightSpecifies the maximum height for a combo box drop-down.
MaxHeightSpecifies the maximum height of a control.
MaxWidthSpecifies the maximum width of a control.
MinHeightSpecifies the minimum height of a control.
MinWidthSpecifies the minimum width of a control.
NameSpecifies the identifying name of the control. The name provides a reference so that code behind, such as event handler code, can refer to a markup element during processing by a XAML processor.
OpacitySpecifies the opacity factor applied to the entire control. Valid values are 0 through 1, with up to 15 decimal places.
OpacityMaskExpand this field to select a color for the opacity mask, which is applied to any alpha-channel masking for the rendered content of this control.
OverridesDefaultStyleSelect this check box to indicate that this control incorporates style properties from theme styles.
PaddingSpecifies the amount of padding to apply to the inside edge of each side of a control.
ProjectionSpecifies the 3-D effect to apply to the current object.
RenderTransformOriginSpecifies the center point of any possible render transform, relative to the bounds of the element.
  • X is the horizontal origin factor, given as a value between 0 and 1.
  • Y is the vertical origin factor, given as a value between 0 and 1.
RowRowBackground
RowSpanSpecifies the total number of rows that child content spans within a grid.
SelectedIndexSpecifies the index of the first item in the current selection, or returns negative one (-1) if the selection is empty.
SelectedItemSpecifies the first item in the current selection or returns null if the selection is empty.
SelectedValueSpecifies the value of the SelectedItem property, obtained by using the SelectedValuePath property.
SelectedValuePathSpecifies the path that is used to get the SelectedValue property from the SelectedItem property.
SnapsToDevicePixelsSelect this check box to indicate that rendering for this control uses device-specific pixel settings.
StaysOpenOnEditSelect this check box to indicate that a Combo Box that is open and displaying a drop-down control, remains open when you click in the text box.
StyleSpecifies the style used by this control when it is rendered.
TabIndexSpecifies the order in which controls receive focus when the Tab key is pressed.
TabNavigationSpecifies a value that modifies how tabbing and the TabIndex property work for this control.
TabStripPlacementSpecifies how tab headers align relative to the tab content. Selections are:
  • Top
  • Right
  • Bottom
TagSpecifies an arbitrary object value that can be used to store custom information about this control.
TemplateClick the ellipsis button to open the Open dialog box to select a template to use.
TextSpecifies the text contents of a control.
ToolTipSpecifies the tool-tip that displays for this control in the user interface (UI).
UidSpecifies the unique identifier (for localization) for this control.
UseLayoutRoundingSpecifies a value that determines whether rendering for the object and its visual subtree should use rounding behavior that aligns rendering to whole pixels.
VerticalAlignmentSpecifies the vertical alignment characteristics applied to this control. Selections are:
  • Bottom
  • Center
  • Top
  • Stretch
VerticalContentAlignmentSpecifies the vertical alignment of the control's content. Selections are:
  • Bottom
  • Center
  • Top
  • Stretch
VisiblilitySpecifies the visibility of this control. Selections are:
  • Collapsed
  • Hidden
  • Visible
WidthSpecifies the width of the control, in pixels.