Class ContentPresenter
Implements control which can draw the content
Inherited Members
Namespace: EmptyKeys.UserInterface.Controls
Assembly: EmptyKeys.UserInterface.dll
Syntax
public class ContentPresenter : UIElement
Constructors
ContentPresenter()
Initializes a new instance of the ContentPresenter class.
Declaration
public ContentPresenter()
Fields
ContentProperty
The content property
Declaration
public static readonly DependencyProperty ContentProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
ContentStringFormatProperty
The content string format property
Declaration
public static readonly DependencyProperty ContentStringFormatProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
ContentTemplateProperty
The content template property
Declaration
public static readonly DependencyProperty ContentTemplateProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
Properties
Content
Gets or sets the content.
Declaration
public object Content { get; set; }
Property Value
Type | Description |
---|---|
System.Object | The content. |
ContentStringFormat
Gets or sets the content string format.
Declaration
public string ContentStringFormat { get; set; }
Property Value
Type | Description |
---|---|
System.String | The content string format. |
ContentTemplate
Gets or sets the content template.
Declaration
public DataTemplate ContentTemplate { get; set; }
Property Value
Type | Description |
---|---|
DataTemplate | The content template. |
Methods
ArrangeOverride(Size)
Arrange layout pass - overrider method for children
Declaration
protected override Size ArrangeOverride(Size finalSize)
Parameters
Type | Name | Description |
---|---|---|
EmptyKeys.UserInterface.Size | finalSize | The final size. |
Returns
Type | Description |
---|---|
EmptyKeys.UserInterface.Size |
Overrides
InvalidateIsEnabledOnChildren()
Invalidates the IsEnabled property value on children.
Declaration
protected override void InvalidateIsEnabledOnChildren()
Overrides
MeasureOverride(Size)
Measure layout pass
Declaration
protected override Size MeasureOverride(Size availableSize)
Parameters
Type | Name | Description |
---|---|---|
EmptyKeys.UserInterface.Size | availableSize | available size for element |
Returns
Type | Description |
---|---|
EmptyKeys.UserInterface.Size |
Overrides
OnDraw(Renderer, Double, Single)
Called when [draw].
Declaration
protected override void OnDraw(Renderer spriterenderer, double elapsedGameTime, float opacity)
Parameters
Type | Name | Description |
---|---|---|
EmptyKeys.UserInterface.Renderers.Renderer | spriterenderer | The sprite renderer. |
System.Double | elapsedGameTime | The elapsed game time. |
System.Single | opacity | The opacity. |
Overrides
UpdateVisualTree(Object)
Updates the visual tree.
Declaration
protected void UpdateVisualTree(object value)
Parameters
Type | Name | Description |
---|---|---|
System.Object | value | The value. |