IntelliPromptCompletionListBoxItem Class
Represents a ListBoxItem that supports partially-selected item states.
[TemplateVisualState(Name = "PartialSelected", GroupName = "PartialSelectionStates")]
[TemplateVisualState(Name = "PartialUnselected", GroupName = "PartialSelectionStates")]
public class IntelliPromptCompletionListBoxItem : ListBoxItem
- Inheritance:
- object Visual UIElement FrameworkElement Control ContentControl ListBoxItem object
Constructors
IntelliPromptCompletionListBoxItem()
Initializes an instance of the class.
public IntelliPromptCompletionListBoxItem()
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
GetHighlightedCaptures(DependencyObject)
Gets the value of the HighlightedCaptures attached property for the specified object.
public static IList<StringFilterCapture>? GetHighlightedCaptures(DependencyObject obj)
| Parameter | Type | Description |
|---|---|---|
| obj | DependencyObject | The object from which the property value is read. |
Returns
OnApplyTemplate()
When overridden in a derived class, is invoked whenever application code or internal processes call ApplyTemplate().
public override void OnApplyTemplate()
OnMouseLeftButtonDown(MouseButtonEventArgs)
Called when the user presses the right mouse button over the ListBoxItem.
protected override void OnMouseLeftButtonDown(MouseButtonEventArgs e)
| Parameter | Type | Description |
|---|---|---|
| e | MouseButtonEventArgs | The event data. |
SetHighlightedCaptures(DependencyObject, IList<StringFilterCapture>?)
Sets the value of the HighlightedCaptures attached property to the specified object.
public static void SetHighlightedCaptures(DependencyObject obj, IList<StringFilterCapture>? value)
| Parameter | Type | Description |
|---|---|---|
| obj | DependencyObject | The object to which the attached property is written. |
| value | IList<StringFilterCapture> | The value to set. |
Fields
HighlightedCapturesProperty
Defines the HighlightedCaptures property.
public static readonly DependencyProperty HighlightedCapturesProperty
IsPartialSelectionProperty
Defines the IsPartialSelection property.
public static readonly DependencyProperty IsPartialSelectionProperty