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 […]
All posts by
Styling ContentDialog
Hide surrounding padding area Padding=”0″ and Margin=”0 don’t seem to work, but you can use this:
Styling Button-In definition
Background Transparent background You just need to set the alpha channel to 0, so: Size
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 […]
Navigate To Page
Navigate from a page control (e.g. a button) to another page Navigate from code at a higher level of the App
Getting calling controls name
.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″)
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
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
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 > […]