for that you have to create a user control that is your pop up screen. and that is displayed in our home screen in windows phone.
// Place your Design of your User Control here
And this is the code behind of User Control as MyUserControl.xaml.cs.
public partial class MyPopUpScreen : UserControl
public MyPopUpScreen(String message)
txtMessage.Text = message;
txtMessageShadow.Text = message;
public void btnYes_Click(object sender, RoutedEventArgs e)
// Code that will fire when user clicks Yes button.
public void btnNotNow_Click(object sender, RoutedEventArgs e)
// Code that will fire when user clicks Not Now button.
private void ClosePopup()
Popup buyPop = this.Parent as Popup;
buyPop.IsOpen = false;
So, Now open HomePage.xaml.cs for display pop up at specific location and you have to handle that pop up. This code helps you.
Popup MusicPlaying = new Popup();
MusicPlaying.Child = new MyPopUpScreen("Do you want to Stop Music Player");
MusicPlaying.IsOpen = true;
MusicPlaying.VerticalOffset = 100;
MusicPlaying.HorizontalOffset = 25;
MusicPlaying.Closed += (s1, e1) =>
// Add you code here to do something
// when the Popup is closed
Please see the namespace also that i have used in my project;
And, yup its Done Easily...!!