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["TreeViewItem"]-.->Type click Implementing0 "/api/Avalonia.Controls/TreeViewItem" Implementing1["DropDown"]-.->Type click Implementing1 "/api/Avalonia.Controls/DropDown" Implementing2["ContextMenu"]-.->Type click Implementing2 "/api/Avalonia.Controls/ContextMenu" Implementing3["ListBox"]-.->Type click Implementing3 "/api/Avalonia.Controls/ListBox" Implementing4["TreeView"]-.->Type click Implementing4 "/api/Avalonia.Controls/TreeView" Implementing5["ComboBox"]-.->Type click Implementing5 "/api/Avalonia.Controls/ComboBox" Implementing6["Carousel"]-.->Type click Implementing6 "/api/Avalonia.Controls/Carousel" Implementing7["HeaderedSelectingItemsControl"]-.->Type click Implementing7 "/api/Avalonia.Controls.Primitives/HeaderedSelectingItemsControl" Implementing8["TabStrip"]-.->Type click Implementing8 "/api/Avalonia.Controls.Primitives/TabStrip" Implementing9["TabControl"]-.->Type click Implementing9 "/api/Avalonia.Controls/TabControl" Implementing10["ItemsControl"]-.->Type click Implementing10 "/api/Avalonia.Controls/ItemsControl" Implementing11["MenuFlyoutPresenter"]-.->Type click Implementing11 "/api/Avalonia.Controls/MenuFlyoutPresenter" Implementing12["MenuBase"]-.->Type click Implementing12 "/api/Avalonia.Controls/MenuBase" Implementing13["SelectingItemsControl"]-.->Type click Implementing13 "/api/Avalonia.Controls.Primitives/SelectingItemsControl" Implementing14["HeaderedItemsControl"]-.->Type click Implementing14 "/api/Avalonia.Controls.Primitives/HeaderedItemsControl" Implementing15["Menu"]-.->Type click Implementing15 "/api/Avalonia.Controls/Menu" Implementing16["MenuItem"]-.->Type click Implementing16 "/api/Avalonia.Controls/MenuItem"

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

Name Value Summary
Bind(AvaloniaProperty, IObservable<BindingValue<object>>, BindingPriority) IDisposable
Binds a AvaloniaProperty to an observable.
Bind<T>(AvaloniaProperty<T>, IObservable<BindingValue<T>>, BindingPriority) IDisposable
Binds a AvaloniaProperty to an observable.
GetBindingObservable(AvaloniaProperty) IObservable<BindingValue<object>>
Gets an observable for a AvaloniaProperty.
GetBindingObservable<T>(AvaloniaProperty<T>) IObservable<BindingValue<T>>
Gets an observable for a AvaloniaProperty.
GetBindingSubject(AvaloniaProperty, BindingPriority) ISubject<BindingValue<object>>
Gets a subject for a AvaloniaProperty.
GetBindingSubject<T>(AvaloniaProperty<T>, BindingPriority) ISubject<BindingValue<T>>
Gets a subject for a AvaloniaProperty.
GetObservable(AvaloniaProperty) IObservable<object>
Gets an observable for a AvaloniaProperty.
GetObservable<T>(AvaloniaProperty<T>) IObservable<T>
Gets an observable for a AvaloniaProperty.
GetPropertyChangedObservable(AvaloniaProperty) IObservable<AvaloniaPropertyChangedEventArgs>
Gets an observable that listens for property changed events for an AvaloniaProperty.
GetSubject(AvaloniaProperty, BindingPriority) ISubject<object>
Gets a subject for a AvaloniaProperty.
GetSubject<T>(AvaloniaProperty<T>, BindingPriority) ISubject<T>
Gets a subject for a AvaloniaProperty.
GetTemplateChildren() IEnumerable<IControl>