Example #1
0
        protected virtual ChatSendButtonElement CreateSendButton()
        {
            ChatSendButtonElement sendButtonElement = new ChatSendButtonElement();

            sendButtonElement.Padding = new Padding(5);
            return(sendButtonElement);
        }
Example #2
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);
 }