Created
April 17, 2014 14:39
-
-
Save maskaravivek/10988511 to your computer and use it in GitHub Desktop.
Using custom message box in windows phone app
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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