Styling An AXML Object

Style assignment in the axml file Style definition if in App.xaml It needs to be in a Application.Resources section, like this: Style definition if in the axml file Typically placed before the <grid>

Read More

Passing Page AXML Objects To Methods

You may want to setup page objects using global methods you can call from within your page, for instance maybe you have a bespoke button you are using in some particular way across many pages in your application. So you want to be able to call a method, passing a pages Button object to the […]

Read More

Creating A Custom Preview Window Size

For instance, if you are using say the Rapberry Pi 7″ screen you’ll want to preview it as a 800 x 480 pixel screen, but there isn’t one. To create a new custom size open the following folder in Windows Explorer C:\Program Files (x86)\Windows Kits\10\DesignTime\UAP\Devices\1033\ Copy one of the existing display .xml definition files.Name it, […]

Read More

Layout methods in a page

You don’t have to use a grid based layout, the <grid> can be replaced with different methods – see here: https://docs.microsoft.com/en-us/windows/uwp/design/layout/layout-panels Grid positioning Use a <Grid> – The default method Absolute positioning Use a <Canvas>

Read More

Defining Styles Using Visual Studio

Right-click on a control on the XAML design surface and select Edit Style or Edit Template (depending on the control you are right-clicking on). You can then apply an existing style by selecting Apply Resource, or define a new style by selecting Create Empty. If you create an empty style, you are given the option […]

Read More