Premium

The UWP Notepad Project (Redux): Text Zoom, App Name, App Icon (Premium)

Avatar

Text zoom

Because the TextBox control in the Universal Windows Platform (UWP) doesn’t support zoom natively---the versions in Windows Forms or the Windows Presentation Foundation (WPF) didn’t either---we’ll need to employ the same workaround we used in previous versions of the app. That is, rather than mapping the font size chosen by the user to the textbox, we’ll instead map it to a global variable named MasterFontSize. Then, we can adjust the font size in the textbox according to the user’s zooming needs without impacting the font size that will be saved and reloaded during each app session.

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