The UWP Notepad Project (Redux): New, Save, and Save As (Premium)

Let’s start with the New button.

As with the Open button, we can’t just reset everything and present a new empty document to the user; we need to make sure that there isn’t something that needs to be saved first. And that means we can simply use the same basic code structure that we created for OpenButton_Click in NewButton_Click. But NewButton_Click doesn’t exist yet, so create that now. (I assume you know how by now.)

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