.Styles General

You can define a style inline in the XAML for a control, or as a reusable resource. Defining styles as a reusable resource Style definition locations An individual page’s XAML file (will override a same named resource in App.xaml) Will override a same named resource in App.xaml if present. In the App.xaml file In a […]

Read More

Fixed Size ContentDialog

Menu > Project > Add new item > Visual C# > Content Dialog You need to set min and max as well as the required Width and Height: Setting its location on the screen You can use the margin to do this: Detect a touch outside of ContentDialog A ContentDialog is placed in PopupRoot. Behind […]

Read More

.Content Dialog General

Set dialog box name Close dialog box Width and height It looks like you have to leave space around a content dialog. In our test using a 800×1280 screen the max width and height was 750 x 700 (Margin=”0,0,0,0″)

Read More

Creating a pop up menu dialog box

Menu > Project > Add new item > Visual C# > Content Dialog We delete the following default ContentDialog options to remove them: PrimaryButtonText=SecondaryButtonText=PrimaryButtonClick=SecondaryButtonClick= The xaml code The xmal.cs code Using the dialog box Note – make the _Click method “private async” as it will be doing an async call

Read More

Scrolling Page

Simply use a ScrollViewer Vertical scrolling page example Programmatically scroll a page Name your ScrollViewer and ensure scrolling is enabled The .cs code to scroll it More ScrollViewer resources FOR MORE SEE SECTION: Scroll Viewer

Read More

Issues – Getting Project To Run

Setting target version (to match the OS version running on your device) Right click project > Properties > Application > Targeting If you need a new version Visual Studio > Menu > Tools > Extensions & Updates > Online Visual Studio Can’t find device Right click project > Properties > Debug > Start options > […]

Read More