Likes

Windows App Lab@Home 11.

Ryan has developed the Notes app. The app allows a user to add, edit, and view notes. Now, Ryan wants to enable the users to take a backup of all the notes that are added in the app.

Ryan has developed the Notes app. The app allows a user to add, edit, and view notes. Now,
Ryan wants to enable the users to take a backup of all the notes that are added in the app. The
backup of the notes should be stored in a single plain text file named Notes.txt in Documents
Library when the user taps the Save to File button in the app bar of the Notes page.
Help Ryan to implement the preceding functionality.

Solution;








Charles has been assigned a task to develop the WritingPad app. He has created the interface of the app, as shown in the following figure.

Charles has been assigned a task to develop the WritingPad app. He has created the interface of
the app, as shown in the following figure.
The Interface of the App

The app contains a text box, where a user can type content. In addition, it must keep the data
provided by the user, even if it is terminated by the user or OS.
For this, Charles uses the LocalSettings property of the ApplicationDataContainer object to keep
the text box content. Further, the content from the LocalSettings property of the
ApplicationDataContainer object will be retrieved in the OnNavigatedTo() method. However, when
Charles executes the app, it throws an exception.
Help Charles to identify the reason and the solution to the problem.

Solution;




No comments: