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
Initializes a new instance of the AIPromptButtonsContainer class.
public AIPromptButtonsContainer()
Properties
public StackLayoutElementLite LeftElementsStack { get; }
public RadItemOwnerCollection LeftItems { get; }
public StackLayoutElementLite RightElementsStack { get; }
public RadItemOwnerCollection RightItems { get; }
Methods
Arranges the AIPromptOutputVisualItem to its final location. The element must call the Arrange method of each of its children.
protected override SizeF ArrangeOverride(SizeF 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:
In this method call to the Arrange method of each child must be made.
Called by the element when constructed. Allows inheritors to build the element tree.
protected override void CreateChildElements()
Overrides:
Creates an element stack positioned in the near end - in the left position.
protected virtual StackLayoutElementLite CreateLeftElementsStack()
Creates a new items collection positioned in the near end - left position.
protected virtual RadItemOwnerCollection CreateLeftItemsCollection()
The items collection.
Creates an element stack positioned in the far end - in the right position.
protected virtual StackLayoutElementLite CreateRightElementsStack()
Creates a new items collection positioned in the far end - right position.
protected virtual RadItemOwnerCollection CreateRightItemsCollection()
The items collection.
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.
protected override void InitializeFields()
Overrides:
Measures the space required by the AIPromptOutputVisualItem
Used by the layout system.
protected override SizeF MeasureOverride(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:The minimum size required by the element to be completely visible. Cannot be infinity.
Overrides:
In this method call to the Measure method of each child must be made.
Determines whether a given child should be arranged. For example when base.ArrangeOverride() is called, but we have custom layout logic for current element.
protected override bool ShouldArrangeChild(RadElement 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:
Gets a value indicating, whether a child will be measured during the MeasureOverride.
protected override bool ShouldMeasureChild(RadElement child)
The child.
Returns:Whether the child will be measured in MeasureOverride.
Overrides: