1
我需要显示格式化文本在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的
哪一个是你在使用“IT渠道不起作用“? –
在Skype上不起作用。 – Ash