在CustomMessageBox中创建项目符号行

时间:2014-01-12 05:26:50

标签: c# windows-phone-7 windows-phone-8 wptoolkit

我想使用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();

0 个答案:

没有答案