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

public IntelliPromptCompletionList(ICompletionSession session)
Parameter Type Description
session ICompletionSession

The ICompletionSession for which the popup is displayed.

Properties

FilterElement

The UIElement to use as the filter user interface.

public UIElement? FilterElement { get; set; }

Property Value

UIElement

FilterSeparatorStyle

The Style to apply to filter separator controls.

public Style? FilterSeparatorStyle { get; set; }

Property Value

Style

FilterTabPanelStyle

The Style to apply to filter tab panel controls.

public Style? FilterTabPanelStyle { get; set; }

Property Value

Style

FilterToggleButtonStyle

The Style to apply to filter toggle button controls.

public Style? FilterToggleButtonStyle { get; set; }

Property Value

Style

HorizontalOffset

The offset by which to translate the list's popup horizontally.

public double HorizontalOffset { get; set; }

Property Value

double:

The default value is -21.

ItemListItemContainerStyle

The Style to use for the item list items.

public Style? ItemListItemContainerStyle { get; set; }

Property Value

Style

ItemListItemContainerStyleSelector

The StyleSelector to use for the item list items.

public StyleSelector? ItemListItemContainerStyleSelector { get; set; }

Property Value

StyleSelector

ItemListItemTemplate

The DataTemplate to use for the item list items.

public DataTemplate? ItemListItemTemplate { get; set; }

Property Value

DataTemplate

ItemListItemTemplateSelector

The DataTemplateSelector to use for the item list items.

public DataTemplateSelector? ItemListItemTemplateSelector { get; set; }

Property Value

DataTemplateSelector

NoItemsTemplate

The DataTemplate to display when there are no items.

public DataTemplate? NoItemsTemplate { get; set; }

Property Value

DataTemplate

Session

The ICompletionSession for which the popup is displayed.

public ICompletionSession Session { get; }

Property Value

ICompletionSession

Methods

MeasureOverride(Size?)

Called to remeasure a control.

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

The maximum size that the method can return.

Returns

Size:

The size of the control, up to the maximum specified by constraint.

OnApplyTemplate()

When overridden in a derived class, is invoked whenever application code or internal processes call ApplyTemplate().

public override void OnApplyTemplate()

OnCreateAutomationPeer()

Returns class-specific AutomationPeer implementations for the Windows Presentation Foundation (WPF) infrastructure.

protected override AutomationPeer OnCreateAutomationPeer()

Returns

AutomationPeer:

The type-specific AutomationPeer implementation.

Fields

FilterElementProperty

Defines the FilterElement property.

public static readonly DependencyProperty FilterElementProperty

FilterSeparatorStyleProperty

Defines the FilterSeparatorStyle property.

public static readonly DependencyProperty FilterSeparatorStyleProperty

FilterTabPanelStyleProperty

Defines the FilterTabPanelStyle property.

public static readonly DependencyProperty FilterTabPanelStyleProperty

FilterToggleButtonStyleProperty

Defines the FilterToggleButtonStyle property.

public static readonly DependencyProperty FilterToggleButtonStyleProperty

HorizontalOffsetProperty

Defines the HorizontalOffset property.

public static readonly DependencyProperty HorizontalOffsetProperty

ItemListItemContainerStyleProperty

Defines the ItemListItemContainerStyle property.

public static readonly DependencyProperty ItemListItemContainerStyleProperty

ItemListItemContainerStyleSelectorProperty

Defines the ItemListItemContainerStyleSelector property.

public static readonly DependencyProperty ItemListItemContainerStyleSelectorProperty

ItemListItemTemplateProperty

Defines the ItemListItemTemplate property.

public static readonly DependencyProperty ItemListItemTemplateProperty

ItemListItemTemplateSelectorProperty

Defines the ItemListItemTemplateSelector property.

public static readonly DependencyProperty ItemListItemTemplateSelectorProperty

NoItemsTemplateProperty

Defines the NoItemsTemplate property.

public static readonly DependencyProperty NoItemsTemplateProperty

Extension Methods