示例#1
0
        public void AddAction(SuggestedActionDataItem action)
        {
            SuggestedActionElement suggestedActionElement = this.ChatElement.ChatFactory.CreateSuggestedActionElement(action);

            this.ItemsLayout.Children.Add((RadElement)suggestedActionElement);
            suggestedActionElement.Click += new EventHandler(this.Element_Click);
        }
示例#2
0
 public SuggestedActionElement(SuggestedActionDataItem dataItem)
 {
     this.dataItem = dataItem;
     this.Text     = dataItem.Text;
     this.Image    = dataItem.Image;
     this.Tag      = dataItem.UserData;
 }
 public SuggestedActionEventArgs(SuggestedActionDataItem action)
 {
     this.action = action;
 }