ContentControl Class
Namespace: Stride.UI.ControlsAssembly: Stride.UI.dll
Represents a control with a single piece of content of any type.
[DataContract("ContentControl")]
public abstract class ContentControl : Control, IUIElementUpdate, IUIElementChildren, IIdentifiable
Name | Description | |
---|---|---|
Fields | ||
ContentArrangeMatrixPropertyKey | The key to the ContentArrangeMatrix dependency property. |
|
Properties | ||
Content | Gets or sets the content of the ContentControl. |
|
VisualContent | Gets the visual content of the ContentControl. |
|
Methods | ||
ArrangeOverride(Vector3) | ||
EnumerateChildren() | Enumerates the children of this element. |
|
MeasureOverride(Vector3) | ||
UpdateWorldMatrix(ref Matrix, Boolean) |
Fields
ContentArrangeMatrixPropertyKey
The key to the ContentArrangeMatrix dependency property.
protected static readonly PropertyKey<Matrix> ContentArrangeMatrixPropertyKey
Field Value
Type | Description |
---|---|
PropertyKey<Matrix> |
Properties
Content
Gets or sets the content of the ContentControl.
[DataMember]
public virtual UIElement Content { get; set; }
Property Value
Type | Description |
---|---|
UIElement |
Exceptions
Type | Condition |
---|---|
System.InvalidOperationException | The value passed has already a parent. |
VisualContent
Gets the visual content of the ContentControl.
public UIElement VisualContent { get; protected set; }
Property Value
Type | Description |
---|---|
UIElement |
Methods
ArrangeOverride(Vector3)
protected override Vector3 ArrangeOverride(Vector3 finalSizeWithoutMargins)
Parameters
Type | Name | Description |
---|---|---|
Vector3 | finalSizeWithoutMargins |
Returns
Type | Description |
---|---|
Vector3 |
Overrides
EnumerateChildren()
Enumerates the children of this element.
protected override IEnumerable<IUIElementChildren> EnumerateChildren()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<IUIElementChildren> | A sequence containing all the children of this element. |
Overrides
Remarks
This method is used by the implementation of the IUIElementChildren interface.
MeasureOverride(Vector3)
protected override Vector3 MeasureOverride(Vector3 availableSizeWithoutMargins)
Parameters
Type | Name | Description |
---|---|---|
Vector3 | availableSizeWithoutMargins |
Returns
Type | Description |
---|---|
Vector3 |
Overrides
UpdateWorldMatrix(ref Matrix, Boolean)
protected override void UpdateWorldMatrix(ref Matrix parentWorldMatrix, bool parentWorldChanged)
Parameters
Type | Name | Description |
---|---|---|
Matrix | parentWorldMatrix | |
System.Boolean | parentWorldChanged |