我想使用wp工具包中的CustomMessageBox
,但我不确定我是否能够完成我需要的工作。我希望单独添加一些单独的文本作为消息,但我无法完成此任务
CustomMessageBox messageBox = new CustomMessageBox()
{
Caption = AppResources.WelcomePage_Title,
Message = AppResources.WelcomePage_Message1
+ "1) " + AppResources.WelcomePage_Message2
+ "2) " + AppResources.WelcomePage_Message3
+ "3) " + AppResources.WelcomePage_Message4
+ "4) " + AppResources.WelcomePage_Message6,
LeftButtonContent = AppResources.WelcomePage_WelcomeButton,
IsLeftButtonEnabled = true
};
messageBox.Dismissed += (s1, e1) =>
{
switch (e1.Result)
{
case CustomMessageBoxResult.LeftButton:
// Do something.
break;
case CustomMessageBoxResult.None:
// Do something.
break;
default:
break;
}
};
messageBox.Show();