C# 以编程方式关闭WP7 Coding4Fun toolkit MessagePrompt控件

C# 以编程方式关闭WP7 Coding4Fun toolkit MessagePrompt控件,c#,windows-phone-7,C#,Windows Phone 7,我正在使用Coding4Fun工具包中的MessagePrompt控件在我的应用程序中显示“Rate and Review”对话框 我用自定义按钮替换了默认按钮,并清除了现有按钮(以消除记号和叉号),但无法确定调用哪个方法来关闭提示 这是我正在使用的代码,我想关闭cancel按钮的click方法中的提示 var messagePrompt = new MessagePrompt { Title = "Rate and Review", IsAppBarVisible = fals

我正在使用Coding4Fun工具包中的MessagePrompt控件在我的应用程序中显示“Rate and Review”对话框

我用自定义按钮替换了默认按钮,并清除了现有按钮(以消除记号和叉号),但无法确定调用哪个方法来关闭提示

这是我正在使用的代码,我想关闭cancel按钮的click方法中的提示

var messagePrompt = new MessagePrompt
{
    Title = "Rate and Review",
    IsAppBarVisible = false,
    Body = new TextBlock
    {
        Text = "PLS REVIEW MY APP K THNX",
        TextWrapping = TextWrapping.Wrap
    }
};

var rateButton = new Button() { Content = "Rate and Review" };
rateButton.Click += (sender, e) =>
{
    var m = new MarketplaceDetailTask
    {
        ContentIdentifier = PhoneState.AppID,
        ContentType = MarketplaceContentType.Applications
    };

    m.Show();
};

var cancelButton = new Button() { Content = "Dismiss" };
cancelButton.Click += (sender, e) =>
{
    //todo close messagePrompt here
};

messagePrompt.ActionPopUpButtons.Clear();
messagePrompt.ActionPopUpButtons.Add(rateButton);
messagePrompt.ActionPopUpButtons.Add(cancelButton);

messagePrompt.Show();

工具箱的最新签入公开了解决此问题的Hide()方法

cancelButton.Click += (sender, e) =>
{
    messagePrompt.Hide();
};

我使用atm的解决方案是使用查询字符串param导航到同一页面,但不是idea