I'm developing a text editor for Windows Phone 8.1, I want to know how to add a dialog to enter search query

I'm very new to Windows Phone 8.1 developing, so step by step answer is preferable