Property DropDownItemsSource
| Improve this Doc View SourceDropDownItemsSource
Gets or sets a collection used to generate the content of the drop-down context menu.
Declaration
[Bindable(true)]
public IEnumerable DropDownItemsSource { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.IEnumerable | A collection that is used to generate the content of the drop-down context menu. The default is null. |
Remarks
You can assign a System.Windows.Controls.ContextMenu to DropDown property directly, or assign a collection to DropDownItemsSource to generate a context menu, and use DropDownItemStyle property to apply a System.Windows.Style to the generated System.Windows.Controls.MenuItem. The DropDown property takes precedence over DropDownItemsSource property.