IContentPresenterHost Interface

Summary

Represents a control which hosts a content presenter.
graph BT Type-.->Interface0["ITemplatedControl"] click Interface0 "/api/Avalonia.Styling/ITemplatedControl" Type-.->Interface1["IAvaloniaObject"] click Interface1 "/api/Avalonia/IAvaloniaObject" Type["IContentPresenterHost"] class Type type-node Implementing0["TreeViewItem"]-.->Type click Implementing0 "/api/Avalonia.Controls/TreeViewItem" Implementing1["AboutAvaloniaDialog"]-.->Type click Implementing1 "/api/Avalonia.Dialogs/AboutAvaloniaDialog" Implementing2["TopLevel"]-.->Type click Implementing2 "/api/Avalonia.Controls/TopLevel" Implementing3["ReactiveUserControl<TViewModel>"]-.->Type click Implementing3 "/api/Avalonia.ReactiveUI/ReactiveUserControl_1" Implementing4["DataValidationErrors"]-.->Type click Implementing4 "/api/Avalonia.Controls/DataValidationErrors" Implementing5["TransitioningContentControl"]-.->Type click Implementing5 "/api/Avalonia.ReactiveUI/TransitioningContentControl" Implementing6["CheckBox"]-.->Type click Implementing6 "/api/Avalonia.Controls/CheckBox" Implementing7["OverlayPopupHost"]-.->Type click Implementing7 "/api/Avalonia.Controls.Primitives/OverlayPopupHost" Implementing8["DataGridColumnHeader"]-.->Type click Implementing8 "/api/Avalonia.Controls/DataGridColumnHeader" Implementing9["HeaderedSelectingItemsControl"]-.->Type click Implementing9 "/api/Avalonia.Controls.Primitives/HeaderedSelectingItemsControl" Implementing10["DataGridRowHeader"]-.->Type click Implementing10 "/api/Avalonia.Controls.Primitives/DataGridRowHeader" Implementing11["DropDownItem"]-.->Type click Implementing11 "/api/Avalonia.Controls/DropDownItem" Implementing12["ViewModelViewHost"]-.->Type click Implementing12 "/api/Avalonia.ReactiveUI/ViewModelViewHost" Implementing13["ScrollViewer"]-.->Type click Implementing13 "/api/Avalonia.Controls/ScrollViewer" Implementing14["ReactiveWindow<TViewModel>"]-.->Type click Implementing14 "/api/Avalonia.ReactiveUI/ReactiveWindow_1" Implementing15["SplitView"]-.->Type click Implementing15 "/api/Avalonia.Controls/SplitView" Implementing16["ButtonSpinner"]-.->Type click Implementing16 "/api/Avalonia.Controls/ButtonSpinner" Implementing17["Expander"]-.->Type click Implementing17 "/api/Avalonia.Controls/Expander" Implementing18["TabControl"]-.->Type click Implementing18 "/api/Avalonia.Controls/TabControl" Implementing19["RepeatButton"]-.->Type click Implementing19 "/api/Avalonia.Controls/RepeatButton" Implementing20["ContentControl"]-.->Type click Implementing20 "/api/Avalonia.Controls/ContentControl" Implementing21["Button"]-.->Type click Implementing21 "/api/Avalonia.Controls/Button" Implementing22["Label"]-.->Type click Implementing22 "/api/Avalonia.Controls/Label" Implementing23["NotificationCard"]-.->Type click Implementing23 "/api/Avalonia.Controls.Notifications/NotificationCard" Implementing24["CalendarButton"]-.->Type click Implementing24 "/api/Avalonia.Controls.Primitives/CalendarButton" Implementing25["TabItem"]-.->Type click Implementing25 "/api/Avalonia.Controls/TabItem" Implementing26["ToggleSwitch"]-.->Type click Implementing26 "/api/Avalonia.Controls/ToggleSwitch" Implementing27["EmbeddableControlRoot"]-.->Type click Implementing27 "/api/Avalonia.Controls.Embedding/EmbeddableControlRoot" Implementing28["HeaderedContentControl"]-.->Type click Implementing28 "/api/Avalonia.Controls.Primitives/HeaderedContentControl" Implementing29["TabStripItem"]-.->Type click Implementing29 "/api/Avalonia.Controls.Primitives/TabStripItem" Implementing30["ToolTip"]-.->Type click Implementing30 "/api/Avalonia.Controls/ToolTip" Implementing31["Spinner"]-.->Type click Implementing31 "/api/Avalonia.Controls/Spinner" Implementing32["UserControl"]-.->Type click Implementing32 "/api/Avalonia.Controls/UserControl" Implementing33["RadioButton"]-.->Type click Implementing33 "/api/Avalonia.Controls/RadioButton" Implementing34["RoutedViewHost"]-.->Type click Implementing34 "/api/Avalonia.ReactiveUI/RoutedViewHost" Implementing35["PopupRoot"]-.->Type click Implementing35 "/api/Avalonia.Controls.Primitives/PopupRoot" Implementing36["CalendarDayButton"]-.->Type click Implementing36 "/api/Avalonia.Controls.Primitives/CalendarDayButton" Implementing37["ToggleButton"]-.->Type click Implementing37 "/api/Avalonia.Controls.Primitives/ToggleButton" Implementing38["ComboBoxItem"]-.->Type click Implementing38 "/api/Avalonia.Controls/ComboBoxItem" Implementing39["Window"]-.->Type click Implementing39 "/api/Avalonia.Controls/Window" Implementing40["HeaderedItemsControl"]-.->Type click Implementing40 "/api/Avalonia.Controls.Primitives/HeaderedItemsControl" Implementing41["WindowBase"]-.->Type click Implementing41 "/api/Avalonia.Controls/WindowBase" Implementing42["DataGridCell"]-.->Type click Implementing42 "/api/Avalonia.Controls/DataGridCell" Implementing43["ListBoxItem"]-.->Type click Implementing43 "/api/Avalonia.Controls/ListBoxItem" Implementing44["FlyoutPresenter"]-.->Type click Implementing44 "/api/Avalonia.Controls/FlyoutPresenter" Implementing45["MenuItem"]-.->Type click Implementing45 "/api/Avalonia.Controls/MenuItem"

Syntax

public interface IContentPresenterHost : ITemplatedControl, IAvaloniaObject

Remarks

This interface is implemented by ContentControl which usually contains a ContentPresenter and exposes it through its Presenter property. ContentPresenters 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.

Properties

Name Value Summary
LogicalChildren IAvaloniaList<ILogical>
Gets a collection describing the logical children of the host control.

Methods

Name Value Summary
RegisterContentPresenter(IContentPresenter) bool
Registers an IContentPresenter 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>