IntelliPromptCompletionListBox Class
Represents a ListBox that supports partially-selected item states.
public class IntelliPromptCompletionListBox : ListBox
- Inheritance:
- object Visual UIElement FrameworkElement Control ItemsControl Selector ListBox object
Constructors
IntelliPromptCompletionListBox()
Initializes an instance of the class.
public IntelliPromptCompletionListBox()
Properties
IsPartialSelection
Indicates whether the selection in the listbox is a partial selection.
public bool IsPartialSelection { get; set; }
Property Value
- bool:
trueif the selection in the listbox is a partial selection; otherwise,false.
Methods
ClearContainerForItemOverride(DependencyObject, object)
Returns an item container to the state it was in before PrepareContainerForItemOverride(DependencyObject, object).
protected override void ClearContainerForItemOverride(DependencyObject element, object item)
| Parameter | Type | Description |
|---|---|---|
| element | DependencyObject | The item container element. |
| item | object | The data item. |
GetContainerForItemOverride()
Creates or identifies the element used to display a specified item.
protected override DependencyObject GetContainerForItemOverride()
Returns
- DependencyObject:
The element used to display a specified item.
IsItemItsOwnContainerOverride(object)
Determines if the specified item is (or is eligible to be) its own ItemContainer.
protected override bool IsItemItsOwnContainerOverride(object item)
| Parameter | Type | Description |
|---|---|---|
| item | object | Specified item. |
Returns
- bool:
trueif the item is its ownItemContainer; otherwise,false.
MeasureOverride(Size)
Called to remeasure a control.
protected override Size MeasureOverride(Size availableSize)
| Parameter | Type | Description |
|---|---|---|
| availableSize | Size |
Returns
- Size:
The size of the control, up to the maximum specified by
constraint.
OnCreateAutomationPeer()
Provides an appropriate ListBoxAutomationPeer implementation for this control, as part of the WPF automation infrastructure.
protected override AutomationPeer OnCreateAutomationPeer()
Returns
- AutomationPeer:
The type-specific AutomationPeer implementation.
PrepareContainerForItemOverride(DependencyObject, object)
Prepares the specified element to display the specified item.
protected override void PrepareContainerForItemOverride(DependencyObject element, object item)
| Parameter | Type | Description |
|---|---|---|
| element | DependencyObject | Element used to display the specified item. |
| item | object | Specified item. |
Fields
IsPartialSelectionProperty
Defines the IsPartialSelection property.
public static readonly DependencyProperty IsPartialSelectionProperty