Class AIPromptButtonsContainer
A class used to hold the buttons of the OutputItem in two element collections - Left and Right.
Inheritance
Inherited Members
Namespace: Telerik.WinControls.UI.AIPrompt
Assembly: Telerik.WinControls.UI.dll
Syntax
public class AIPromptButtonsContainer : LightVisualElement, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IComponent, IDisposable, IBindableComponent, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IPrimitiveElement, IShapedElement, IFillElement, IBorderElement, IBoxStyle, IBoxElement, IImageElement, ITextPrimitive, ITextProvider
Constructors
AIPromptButtonsContainer()
Initializes a new instance of the AIPromptButtonsContainer class.
Declaration
public AIPromptButtonsContainer()
Properties
LeftElementsStack
Declaration
public StackLayoutElementLite LeftElementsStack { get; }
Property Value
StackLayoutElementLite
|
LeftItems
RightElementsStack
Declaration
public StackLayoutElementLite RightElementsStack { get; }
Property Value
StackLayoutElementLite
|
RightItems
Methods
ArrangeOverride(SizeF)
Arranges the AIPromptOutputVisualItem to its final location. The element must call the Arrange method of each of its children.
Declaration
protected override SizeF ArrangeOverride(SizeF finalSize)
Parameters
System.Drawing.SizeF
finalSize
The size that is available for element. |
Returns
System.Drawing.SizeF
The rectangle occupied by the element. Usually |
Overrides
Remarks
In this method call to the Arrange method of each child must be made.
CreateChildElements()
Called by the element when constructed. Allows inheritors to build the element tree.
Declaration
protected override void CreateChildElements()
Overrides
CreateLeftElementsStack()
Creates an element stack positioned in the near end - in the left position.
Declaration
protected virtual StackLayoutElementLite CreateLeftElementsStack()
Returns
StackLayoutElementLite
|
CreateLeftItemsCollection()
Creates a new items collection positioned in the near end - left position.
Declaration
protected virtual RadItemOwnerCollection CreateLeftItemsCollection()
Returns
RadItemOwnerCollection
The items collection. |
CreateRightElementsStack()
Creates an element stack positioned in the far end - in the right position.
Declaration
protected virtual StackLayoutElementLite CreateRightElementsStack()
Returns
StackLayoutElementLite
|
CreateRightItemsCollection()
Creates a new items collection positioned in the far end - right position.
Declaration
protected virtual RadItemOwnerCollection CreateRightItemsCollection()
Returns
RadItemOwnerCollection
The items collection. |
InitializeFields()
Initializes member fields to their default values. This method is called prior the CreateChildItems one and allows for initialization of members on which child elements depend.
Declaration
protected override void InitializeFields()
Overrides
MeasureOverride(SizeF)
Measures the space required by the AIPromptOutputVisualItem
Used by the layout system.
Declaration
protected override SizeF MeasureOverride(SizeF availableSize)
Parameters
System.Drawing.SizeF
availableSize
The size that is available to the AIPromptOutputVisualItem. The available size can be infinity (to take the full size of the element) |
Returns
System.Drawing.SizeF
The minimum size required by the element to be completely visible. Cannot be infinity. |
Overrides
Remarks
In this method call to the Measure method of each child must be made.
ShouldArrangeChild(RadElement)
Determines whether a given child should be arranged. For example when base.ArrangeOverride() is called, but we have custom layout logic for current element.
Declaration
protected override bool ShouldArrangeChild(RadElement child)
Parameters
RadElement
child
The child that is going to be arranged. |
Returns
System.Boolean
A value indicating whether the base class layout will be executed for the given child. |
Overrides
ShouldMeasureChild(RadElement)
Gets a value indicating, whether a child will be measured during the MeasureOverride.
Declaration
protected override bool ShouldMeasureChild(RadElement child)
Parameters
RadElement
child
The child. |
Returns
System.Boolean
Whether the child will be measured in MeasureOverride. |