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
Properties
Content
public object Content { get; set; }
Property Value
ContentTemplate
public DataTemplate ContentTemplate { get; set; }
Property Value
HorizontalContentAlignment
public HorizontalAlignment HorizontalContentAlignment { get; set; }
Property Value
VerticalContentAlignment
public VerticalAlignment VerticalContentAlignment { get; set; }
Property Value
Methods
AddChild(Control)
public override void AddChild(Control child)
Parameters
childControl
OnTemplateApplied()
protected override void OnTemplateApplied()