ClassAIPromptButtonsContainer
A class used to hold the buttons of the OutputItem in two element collections - Left and Right.
Definition
Namespace:Telerik.WinControls.UI.AIPrompt
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class AIPromptButtonsContainer : LightVisualElement, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IBindableComponent, IComponent, IDisposable, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IPrimitiveElement, IShapedElement, IFillElement, IBorderElement, IBoxStyle, IBoxElement, IDrawFillElement, IImageElement, ITextPrimitive, ITextProvider
Inheritance: objectDisposableObjectRadObjectRadElementVisualElementRadComponentElementRadItemUIItemBaseLightVisualElementAIPromptButtonsContainer
Implements:
Inherited Members
Constructors
AIPromptButtonsContainer()
Initializes a new instance of the AIPromptButtonsContainer class.
Declaration
public AIPromptButtonsContainer()
Properties
LeftElementsStack
Declaration
public StackLayoutElementLite LeftElementsStack { get; }
Property Value
LeftItems
Declaration
public RadItemOwnerCollection LeftItems { get; }
Property Value
RightElementsStack
Declaration
public StackLayoutElementLite RightElementsStack { get; }
Property Value
RightItems
Declaration
public RadItemOwnerCollection RightItems { get; }
Property Value
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
finalSize
The size that is available for element.
Returns
The rectangle occupied by the element. Usually finalSize. Should you return different size, the Layout system will restart measuring and rearranging the items. That could lead to infinite recursion.
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
CreateLeftItemsCollection()
Creates a new items collection positioned in the near end - left position.
Declaration
protected virtual RadItemOwnerCollection CreateLeftItemsCollection()
Returns
The items collection.
CreateRightElementsStack()
Creates an element stack positioned in the far end - in the right position.
Declaration
protected virtual StackLayoutElementLite CreateRightElementsStack()
Returns
CreateRightItemsCollection()
Creates a new items collection positioned in the far end - right position.
Declaration
protected virtual RadItemOwnerCollection CreateRightItemsCollection()
Returns
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
availableSize
The size that is available to the AIPromptOutputVisualItem. The available size can be infinity (to take the full size of the element)
Returns
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
child
The child that is going to be arranged.
Returns
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
child
The child.
Returns
Whether the child will be measured in MeasureOverride.
Overrides