Skip to content

Instantly share code, notes, and snippets.

@maskaravivek
Created April 17, 2014 14:39
Show Gist options
  • Save maskaravivek/10988511 to your computer and use it in GitHub Desktop.
Save maskaravivek/10988511 to your computer and use it in GitHub Desktop.
Using custom message box in windows phone app
CustomMessageBox msg=new CustomMessageBox()
{
Caption="Location Settings",
Message="Location seems to be disabled on your device. Do your want to change your settings?",
LeftButtonContent="yes",
RightButtonContent="no"
};
msg.Dismissed += (s1, e1) =>
{
switch (e1.Result)
{
case CustomMessageBoxResult.LeftButton:
// Do something.
break;
case CustomMessageBoxResult.RightButton:
NavigationService.Navigate(new Uri("/SelectCircle.xaml", UriKind.Relative));
break;
case CustomMessageBoxResult.None:
// Do something.
break;
default:
break;
}
};
msg.Show();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment