Last active
February 21, 2019 15:36
-
-
Save DeeJayTC/2f439a2f2cb4a276da8768966ce1762f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using AdaptiveCards; | |
// ... | |
AdaptiveCard card = new AdaptiveCard(); | |
var container = new AdaptiveContainer(); | |
var column = new AdaptiveColumn(){Width=Auto}; | |
column.Items.Add(new AdaptiveImage( | |
{ | |
Style="Person", | |
Url = Status.Person.ProfileImage | |
})); | |
container.Items.Add(column); | |
column = new AdaptiveColumn() { Width = Auto }; | |
column.Items.Add(new AdaptiveTextBlock() | |
{ | |
Text = $"The Status for {Status.Person.FirstName} {Status.Person.LastName} was updated" | |
})); | |
container.Items.Add(column); | |
// etc etc to keep the sample small | |
// serialize the card to JSON | |
string json = card.ToJson(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment