In This Article

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 IntelliPromptCompletionListBoxItem class.

public IntelliPromptCompletionListBoxItem()

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

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

IList<StringFilterCapture>:

The object's value.

OnApplyTemplate()

Invoked whenever application code or internal processes call ApplyTemplate.

public override void OnApplyTemplate()

OnMouseLeftButtonDown(MouseButtonEventArgs)

Invoked when an unhandled UIElement.MouseLeftButtonDownEvent attached event is raised on this element. Implement this method to add class handling for this event.

protected override void OnMouseLeftButtonDown(MouseButtonEventArgs e)
Parameter Type Description
e MouseButtonEventArgs

A MouseButtonEventArgs that contains 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

Identifies the HighlightedCaptures dependency property. This field is read-only.

public static readonly DependencyProperty HighlightedCapturesProperty

IsPartialSelectionProperty

Identifies the IsPartialSelection dependency property. This field is read-only.

public static readonly DependencyProperty IsPartialSelectionProperty