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); }
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; }