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 IntelliPromptCompletionListBox
class.
public IntelliPromptCompletionListBox()
Properties
IsPartialSelection
Gets or sets whether the selection in the listbox is a partial selection.
public bool IsPartialSelection { get; set; }
Property Value
- bool:
true
if the selection in the listbox is a partial selection; otherwise,false
.
Methods
ClearContainerForItemOverride(DependencyObject, object)
Removes the effects of a PrepareContainerForItemOverride(DependencyObject, object) call.
protected override void ClearContainerForItemOverride(DependencyObject element, object item)
Parameter | Type | Description |
---|---|---|
element | DependencyObject | The System.Windows.DependencyObject that is the wrapper element. |
item | object | The item that is being wrapped. |
GetContainerForItemOverride()
Creates or identifies the element used to display the specified item.
protected override DependencyObject GetContainerForItemOverride()
Returns
- DependencyObject:
The element that is used to display the given item.
IsItemItsOwnContainerOverride(object)
Determines if the specified item is (or is eligible to be) its own item container.
protected override bool IsItemItsOwnContainerOverride(object item)
Parameter | Type | Description |
---|---|---|
item | object | Specified item. |
Returns
- bool:
true
if the item is its own item container; otherwise,false
.
MeasureOverride(Size)
Measures the size required for the element and its child elements.
protected override Size MeasureOverride(Size availableSize)
Parameter | Type | Description |
---|---|---|
availableSize | Size | The available size. |
Returns
- Size:
The desired size.
OnCreateAutomationPeer()
Returns an AutomationPeer object for this control instance.
protected override AutomationPeer OnCreateAutomationPeer()
Returns
- AutomationPeer:
An AutomationPeer instance.
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 | The System.Windows.DependencyObject that is the wrapper element. |
item | object | The item that is being wrapped. |
Fields
IsPartialSelectionProperty
Identifies the IsPartialSelection
dependency property. This field is read-only.
public static readonly DependencyProperty IsPartialSelectionProperty