Premium

The UWP Notepad Project (Redux): Find/Replace (Premium)

Avatar
2

And I am pretty proud of that dialog. But since I already wrote about how I designed the Find and Replace dialogs as a single ContentDialog back in The UWP Files: Find Your Way Back (Premium), you can read that if you’re interested. The short version is that we display the entire dialog when the user selects the Replace button, but we hide the middle two rows of controls---the “Replace with” textblock and textbox, the Replace button, and the Replace button---when they select the Find button.

To get started, let’s add the code for this new ContentDialog, called FindReplaceDialog, to our XAML. It should go right below the SavePrompt code and look like so:

Gain unlimited access to Premium articles.

With technology shaping our everyday lives, how could we not dig deeper?

Thurrott Premium delivers an honest and thorough perspective about the technologies we use and rely on everyday. Discover deeper content as a Premium member.

Become a Premium Member Create a Free Account