IContentPresenterHost Interface

Summary

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

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.

Methods

Name Value Summary
RegisterContentPresenter(IContentPresenter) void
Registers an IContentPresenter with a host control.

Extension Methods