Exemplo n.º 1
0
 protected override void CreateChildElements()
 {
     base.CreateChildElements();
     this.stack = this.CreateStackLayoutElement();
     this.messagesViewElement     = this.CreateMessagesListView();
     this.overlayPopupElement     = this.CreateOverlayPopupElement();
     this.suggestedActionsElement = this.CreateSuggestedActionsElement();
     this.inputTextBox            = this.CreateInputTextBox();
     this.toolbarElement          = this.CreateToolbarElement();
     this.typingIndicator         = this.CreateTypingIndicatorElement();
     this.showToolbarButton       = this.CreateShowToolbarButton();
     this.sendButton = this.CreateSendButton();
     this.inputTextBox.ButtonsStack.Children.Add((RadElement)this.showToolbarButton);
     this.inputTextBox.ButtonsStack.Children.Add((RadElement)this.sendButton);
     this.stack.Children.Add((RadElement)this.messagesViewElement);
     this.stack.Children.Add((RadElement)this.overlayPopupElement);
     this.stack.Children.Add((RadElement)this.suggestedActionsElement);
     this.stack.Children.Add((RadElement)this.typingIndicator);
     this.stack.Children.Add((RadElement)this.inputTextBox);
     this.stack.Children.Add((RadElement)this.toolbarElement);
     this.Children.Add((RadElement)this.stack);
     this.overlayElement            = new LightVisualElement();
     this.overlayElement.Visibility = ElementVisibility.Collapsed;
     this.Children.Add((RadElement)this.overlayElement);
 }
Exemplo n.º 2
0
        protected virtual ChatSuggestedActionsElement CreateSuggestedActionsElement()
        {
            ChatSuggestedActionsElement suggestedActionsElement = new ChatSuggestedActionsElement(this);

            suggestedActionsElement.StretchVertically = false;
            suggestedActionsElement.Visibility        = ElementVisibility.Collapsed;
            return(suggestedActionsElement);
        }