IItemsPresenterHost Interface

Summary

Represents a control which hosts an items presenter.
graph BT Type-.->Interface0["ITemplatedControl"] click Interface0 "/api/Avalonia.Styling/ITemplatedControl" Type-.->Interface1["IAvaloniaObject"] click Interface1 "/api/Avalonia/IAvaloniaObject" Type["IItemsPresenterHost"] class Type type-node Implementing0["TreeView"]-.->Type click Implementing0 "/api/Avalonia.Controls/TreeView" Implementing1["ComboBox"]-.->Type click Implementing1 "/api/Avalonia.Controls/ComboBox" Implementing2["ContextMenu"]-.->Type click Implementing2 "/api/Avalonia.Controls/ContextMenu" Implementing3["ListBox"]-.->Type click Implementing3 "/api/Avalonia.Controls/ListBox" Implementing4["SelectingItemsControl"]-.->Type click Implementing4 "/api/Avalonia.Controls.Primitives/SelectingItemsControl" Implementing5["HeaderedItemsControl"]-.->Type click Implementing5 "/api/Avalonia.Controls.Primitives/HeaderedItemsControl" Implementing6["MenuItem"]-.->Type click Implementing6 "/api/Avalonia.Controls/MenuItem" Implementing7["TabControl"]-.->Type click Implementing7 "/api/Avalonia.Controls/TabControl" Implementing8["Menu"]-.->Type click Implementing8 "/api/Avalonia.Controls/Menu" Implementing9["TreeViewItem"]-.->Type click Implementing9 "/api/Avalonia.Controls/TreeViewItem" Implementing10["HeaderedSelectingItemsControl"]-.->Type click Implementing10 "/api/Avalonia.Controls.Primitives/HeaderedSelectingItemsControl" Implementing11["TabStrip"]-.->Type click Implementing11 "/api/Avalonia.Controls.Primitives/TabStrip" Implementing12["DropDown"]-.->Type click Implementing12 "/api/Avalonia.Controls/DropDown" Implementing13["ItemsControl"]-.->Type click Implementing13 "/api/Avalonia.Controls/ItemsControl" Implementing14["Carousel"]-.->Type click Implementing14 "/api/Avalonia.Controls/Carousel" Implementing15["MenuBase"]-.->Type click Implementing15 "/api/Avalonia.Controls/MenuBase"

Syntax

public interface IItemsPresenterHost : ITemplatedControl, IAvaloniaObject

Remarks

This interface is implemented by ItemsControl which usually contains an ItemsPresenter and exposes it through its Presenter property. ItemsPresenters can be within nested templates or in popups and so are not necessarily created immediately when the parent control's template is instantiated so they register themselves using this interface.

Methods

Name Value Summary
RegisterItemsPresenter(IItemsPresenter) void
Registers an IItemsPresenter with a host control.

Extension Methods