我需要在HeroCard中显示格式化文本
card = new HeroCard
{
Title = taskEntity.SourceEntityName + " : " + taskEntity.SourceEntityInstanceName,
Subtitle = taskEntity.Description + " : " + $"{taskEntity.CreatedOn:D}",
Text = await GetDetails(taskEntity),
Buttons = new List<CardAction>
{
new CardAction {Value = "Approve " + taskEntity.Id, Title = "Approve", Type = ActionTypes.PostBack},
new CardAction {Value = "Reject " + taskEntity.Id, Title = "Reject", Type = ActionTypes.PostBack}
}
};
GetDetails通过使用'Environment.NewLine'返回带有'\ r \ n'的格式化字符串,以便每个细节都在新行上,但它不起作用。有没有办法不使用自适应卡?
修改 1.我正在测试的频道是Skype