Welcome toVigges Developer Community-Open, Learning,Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.2k views
in Technique[技术] by (71.8m points)

wpf - Mahapps metro: How to add an extra button to ShowInputAsync() dialog

In my WPF app I am using MahApps Metro framework. For a test, I am using ShowInputAsync(...) dialog (as shown below) to have user enter product key. I would like to add another button or a link to this dialog so that when a user clicks on that button (or link) the app takes the user to a page that explains how to get a product key. Question: How can we add an extra button or link to Mahapps metro's this input dialog?

private async void BtnEnterProdKey_Click(object sender, RoutedEventArgs e)
{
        var result = await this.ShowInputAsync("Trail Expired:", "Please enter product key and click ok.");

        if (result == null)
            return;
        else
           {
             //code to process product key
           }
}

Current display of the dialog

enter image description here

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to Vigges Developer Community for programmer and developer-Open, Learning and Share
...