Class ContentPresenter

Namespace
Forma
Assembly
Forma.dll

Realizes a content object as a control or data template and aligns the resulting visual.

public sealed class ContentPresenter : Control, IAddChild<Control>, IAddChild, INotifyPropertyChanged, IDisposable
Inheritance
ContentPresenter
Implements
Inherited Members

Constructors

ContentPresenter()

public ContentPresenter()

Properties

Content

public object Content { get; set; }

Property Value

object

ContentTemplate

public DataTemplate ContentTemplate { get; set; }

Property Value

DataTemplate

HorizontalContentAlignment

public HorizontalAlignment HorizontalContentAlignment { get; set; }

Property Value

HorizontalAlignment

PresentedControl

public Control PresentedControl { get; }

Property Value

Control

VerticalContentAlignment

public VerticalAlignment VerticalContentAlignment { get; set; }

Property Value

VerticalAlignment

Methods

ArrangeChildren()

protected override void ArrangeChildren()

Dispose()

public void Dispose()

GetMinimumSize()

public override Vector2 GetMinimumSize()

Returns

Vector2