|
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Windows.Foundation;
using Windows.UI.Popups;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
using Windows.UI.Xaml.Data;
using Windows.UI.Xaml.Input;
namespace Application3
{
partial class MainPage
{
public MainPage()
{
InitializeComponent();
this.DataContext = new VM();
}
}
public class VM
{
public DelegateCommand TestCommand
{
get
{
return new DelegateCommand(p =>
{
MessageDialog messageDialog = new MessageDialog("Testing dialog");
var op = messageDialog.ShowAsync();
op.Start();
});
}
}
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.