Skip to content

Instantly share code, notes, and snippets.

@DeeJayTC DeeJayTC/status.cs
Last active Feb 21, 2019

Embed
What would you like to do?
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
You can’t perform that action at this time.