In This Article

IntelliPromptCompletionList Class

Represents a default implementation of an IntelliPrompt completion list.

[TemplatePart(Name = "PART_ItemListBox", Type = typeof(ListBox))]
[TemplateVisualState(Name = "HasItems", GroupName = "ContentStates")]
[TemplateVisualState(Name = "NoItems", GroupName = "ContentStates")]
public class IntelliPromptCompletionList : Control
Inheritance:
object Visual UIElement FrameworkElement Control object

Constructors

IntelliPromptCompletionList(ICompletionSession)

Initializes an instance of the IntelliPromptCompletionList class.

public IntelliPromptCompletionList(ICompletionSession session)
Parameter Type Description
session ICompletionSession

The ICompletionSession for which the popup is displayed.

Properties

FilterElement

Gets or sets the UIElement to use as the filter user interface.

public UIElement FilterElement { get; set; }

Property Value

UIElement:

The UIElement to use as the filter user interface.

FilterSeparatorStyle

Gets or sets the Style to apply to filter separator controls.

public Style FilterSeparatorStyle { get; set; }

Property Value

Style:

The Style to apply to filter separator controls.

FilterTabPanelStyle

Gets or sets the Style to apply to filter tab panel controls.

public Style FilterTabPanelStyle { get; set; }

Property Value

Style:

The Style to apply to filter tab panel controls.

FilterToggleButtonStyle

Gets or sets the Style to apply to filter toggle button controls.

public Style FilterToggleButtonStyle { get; set; }

Property Value

Style:

The Style to apply to filter toggle button controls.

HorizontalOffset

Gets or sets the offset by which to translate the list's popup horizontally.

public double HorizontalOffset { get; set; }

Property Value

double:

The offset by which to translate the list's popup horizontally. The default value is -21.

ItemListItemContainerStyle

Gets or sets the Style to use for the item list items.

public Style ItemListItemContainerStyle { get; set; }

Property Value

Style:

The Style to use for the item list items.

ItemListItemContainerStyleSelector

Gets or sets the StyleSelector to use for the item list items.

public StyleSelector ItemListItemContainerStyleSelector { get; set; }

Property Value

StyleSelector:

The StyleSelector to use for the item list items.

ItemListItemTemplate

Gets or sets the DataTemplate to use for the item list items.

public DataTemplate ItemListItemTemplate { get; set; }

Property Value

DataTemplate:

The DataTemplate to use for the item list items.

ItemListItemTemplateSelector

Gets or sets the DataTemplateSelector to use for the item list items.

public DataTemplateSelector ItemListItemTemplateSelector { get; set; }

Property Value

DataTemplateSelector:

The DataTemplateSelector to use for the item list items.

NoItemsTemplate

Gets or sets the DataTemplate to display when there are no items.

public DataTemplate NoItemsTemplate { get; set; }

Property Value

DataTemplate:

The DataTemplate to display when there are no items.

Session

Gets the ICompletionSession for which the popup is displayed.

public ICompletionSession Session { get; }

Property Value

ICompletionSession:

The ICompletionSession for which the popup is displayed.

Methods

MeasureOverride(Size)

When overridden in a derived class, measures the size in layout required for child elements and determines a size for the FrameworkElement-derived class.

protected override Size MeasureOverride(Size constraint)
Parameter Type Description
constraint Size

The available size that this element can give to child elements. Infinity can be specified as a value to indicate that the element will size to whatever content is available.

Returns

Size:

The size that this element determines it needs during layout, based on its calculations of child element sizes.

OnApplyTemplate()

Invoked whenever application code or internal processes call ApplyTemplate.

public override void OnApplyTemplate()

OnCreateAutomationPeer()

Returns an AutomationPeer object for this control instance.

protected override AutomationPeer OnCreateAutomationPeer()

Returns

AutomationPeer:

An AutomationPeer instance.

Fields

FilterElementProperty

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

public static readonly DependencyProperty FilterElementProperty

FilterSeparatorStyleProperty

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

public static readonly DependencyProperty FilterSeparatorStyleProperty

FilterTabPanelStyleProperty

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

public static readonly DependencyProperty FilterTabPanelStyleProperty

FilterToggleButtonStyleProperty

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

public static readonly DependencyProperty FilterToggleButtonStyleProperty

HorizontalOffsetProperty

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

public static readonly DependencyProperty HorizontalOffsetProperty

ItemListItemContainerStyleProperty

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

public static readonly DependencyProperty ItemListItemContainerStyleProperty

ItemListItemContainerStyleSelectorProperty

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

public static readonly DependencyProperty ItemListItemContainerStyleSelectorProperty

ItemListItemTemplateProperty

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

public static readonly DependencyProperty ItemListItemTemplateProperty

ItemListItemTemplateSelectorProperty

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

public static readonly DependencyProperty ItemListItemTemplateSelectorProperty

NoItemsTemplateProperty

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

public static readonly DependencyProperty NoItemsTemplateProperty