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["ReactiveWindow<TViewModel>"]-.->Type click Implementing0 "/api/Avalonia.ReactiveUI/ReactiveWindow_1" Implementing1["UserControl"]-.->Type click Implementing1 "/api/Avalonia.Controls/UserControl" Implementing2["RadioButton"]-.->Type click Implementing2 "/api/Avalonia.Controls/RadioButton" Implementing3["PopupRoot"]-.->Type click Implementing3 "/api/Avalonia.Controls.Primitives/PopupRoot" Implementing4["ViewModelViewHost"]-.->Type click Implementing4 "/api/Avalonia.ReactiveUI/ViewModelViewHost" Implementing5["HeaderedItemsControl"]-.->Type click Implementing5 "/api/Avalonia.Controls.Primitives/HeaderedItemsControl" Implementing6["MenuItem"]-.->Type click Implementing6 "/api/Avalonia.Controls/MenuItem" Implementing7["ComboBoxItem"]-.->Type click Implementing7 "/api/Avalonia.Controls/ComboBoxItem" Implementing8["TabControl"]-.->Type click Implementing8 "/api/Avalonia.Controls/TabControl" Implementing9["TabItem"]-.->Type click Implementing9 "/api/Avalonia.Controls/TabItem" Implementing10["ListBoxItem"]-.->Type click Implementing10 "/api/Avalonia.Controls/ListBoxItem" Implementing11["ScrollViewer"]-.->Type click Implementing11 "/api/Avalonia.Controls/ScrollViewer" Implementing12["DevTools"]-.->Type click Implementing12 "/api/Avalonia.Diagnostics/DevTools" Implementing13["TreeViewItem"]-.->Type click Implementing13 "/api/Avalonia.Controls/TreeViewItem" Implementing14["DataGridCell"]-.->Type click Implementing14 "/api/Avalonia.Controls/DataGridCell" Implementing15["ButtonSpinner"]-.->Type click Implementing15 "/api/Avalonia.Controls/ButtonSpinner" Implementing16["RepeatButton"]-.->Type click Implementing16 "/api/Avalonia.Controls/RepeatButton" Implementing17["TransitioningContentControl"]-.->Type click Implementing17 "/api/Avalonia.ReactiveUI/TransitioningContentControl" Implementing18["HeaderedSelectingItemsControl"]-.->Type click Implementing18 "/api/Avalonia.Controls.Primitives/HeaderedSelectingItemsControl" Implementing19["Spinner"]-.->Type click Implementing19 "/api/Avalonia.Controls/Spinner" Implementing20["TabStripItem"]-.->Type click Implementing20 "/api/Avalonia.Controls.Primitives/TabStripItem" Implementing21["ToolTip"]-.->Type click Implementing21 "/api/Avalonia.Controls/ToolTip" Implementing22["CalendarButton"]-.->Type click Implementing22 "/api/Avalonia.Controls.Primitives/CalendarButton" Implementing23["DataGridRowHeader"]-.->Type click Implementing23 "/api/Avalonia.Controls.Primitives/DataGridRowHeader" Implementing24["HeaderedContentControl"]-.->Type click Implementing24 "/api/Avalonia.Controls.Primitives/HeaderedContentControl" Implementing25["EmbeddableControlRoot"]-.->Type click Implementing25 "/api/Avalonia.Controls.Embedding/EmbeddableControlRoot" Implementing26["ReactiveUserControl<TViewModel>"]-.->Type click Implementing26 "/api/Avalonia.ReactiveUI/ReactiveUserControl_1" Implementing27["CheckBox"]-.->Type click Implementing27 "/api/Avalonia.Controls/CheckBox" Implementing28["CalendarDayButton"]-.->Type click Implementing28 "/api/Avalonia.Controls.Primitives/CalendarDayButton" Implementing29["ToggleButton"]-.->Type click Implementing29 "/api/Avalonia.Controls.Primitives/ToggleButton" Implementing30["DataGridColumnHeader"]-.->Type click Implementing30 "/api/Avalonia.Controls/DataGridColumnHeader" Implementing31["Expander"]-.->Type click Implementing31 "/api/Avalonia.Controls/Expander" Implementing32["RoutedViewHost"]-.->Type click Implementing32 "/api/Avalonia.ReactiveUI/RoutedViewHost" Implementing33["ContentControl"]-.->Type click Implementing33 "/api/Avalonia.Controls/ContentControl" Implementing34["Button"]-.->Type click Implementing34 "/api/Avalonia.Controls/Button" Implementing35["DropDownItem"]-.->Type click Implementing35 "/api/Avalonia.Controls/DropDownItem" Implementing36["NotificationCard"]-.->Type click Implementing36 "/api/Avalonia.Controls.Notifications/NotificationCard" Implementing37["DataValidationErrors"]-.->Type click Implementing37 "/api/Avalonia.Controls/DataValidationErrors" Implementing38["Window"]-.->Type click Implementing38 "/api/Avalonia.Controls/Window" Implementing39["WindowBase"]-.->Type click Implementing39 "/api/Avalonia.Controls/WindowBase" Implementing40["AboutAvaloniaDialog"]-.->Type click Implementing40 "/api/Avalonia.Dialogs/AboutAvaloniaDialog" Implementing41["OverlayPopupHost"]-.->Type click Implementing41 "/api/Avalonia.Controls.Primitives/OverlayPopupHost" Implementing42["TopLevel"]-.->Type click Implementing42 "/api/Avalonia.Controls/TopLevel"

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