Creating a new class Menu > Project > Add Class In the new .cs file add the following: The namespace can be a distinct name, or for classes that are part of a main ap you can just use the ap’s namespace name. using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; //—– NOTES —– […]
All posts by
Create New Page
Menu > Project > Add New Item > Visual C# > Blank Page Give it a name (Using a nameing convention like “Page#####.xaml” can be useful so keep your pages grouped together in the solution explorer and easily identifiable. Nice Things To Do Add this before the constructor
.Grid
Grid Properties Background By default the <Page> has a background defined: But you can set a grid background if you want: Columns Rows Placing Objects In The Grid Grid Example 1
App Background Colour
It can be important to set the apps background colour, for instance if you are using page transitions. In App.xmal.cs add this in the OnLaunched() function:
Grid background
Setting background colour <Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}"> <Grid Background="Black">
Page Transitions
Good Resources http://amadeusw.com/xaml/animated-navigation-universal-app Setting a complete page transition Add this before <Grid Animation types https://docs.microsoft.com/en-us/uwp/api/windows.ui.xaml.media.animation.transition https://docs.microsoft.com/en-us/windows/uwp/design/motion/xaml-animation
Theme Transition Types
Theme Transitions AddDeleteThemeTransition Fades in and grows after a short delay. Fades out and shrinks after a short delay. Glides when repositioned. Intended for: A collection of elements ContentThemeTransition Glides slightly from the right with a quick fade in. Quickly fades out. Intended for: Large controls with changing content, such as Frame. EdgeUIThemeTransition Slides in […]
Running on target device doesn’t run with your changes
2016-11 – We've found that when changing XAML and then running on remote device our changes are not deployed to the remote device, resulting in an old version of our app being run. Its very odd as the build deploy text says its deploying, but it isn't. Our solution initially was to select menu > […]
.TextBlock General
Simple Label With a name so you can change it Newline Use the hexadecimal encoded value 
 which represents the line feed.
Labels general
Use a TextBlock