Class ContentControl

Namespace
Forma
Assembly
Forma.dll

Presents an object through a content template with configurable horizontal and vertical alignment.

[TemplatePart("PART_ContentPresenter", typeof(ContentPresenter), false)]
public class ContentControl : TemplatedControl, IAddChild<Control>, IAddChild, INotifyPropertyChanged, IDisposable
Inheritance
ContentControl
Implements
Derived
Inherited Members

Constructors

ContentControl()

public ContentControl()

Fields

ContentPresenterPartName

public const string ContentPresenterPartName = "PART_ContentPresenter"

Field Value

string

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

VerticalContentAlignment

public VerticalAlignment VerticalContentAlignment { get; set; }

Property Value

VerticalAlignment

Methods

AddChild(Control)

public override void AddChild(Control child)

Parameters

child Control

OnTemplateApplied()

protected override void OnTemplateApplied()