Skip to content

ivorb/Windows-task-snippets

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Windows task snippets

This repo collects snippets of ready-to-use code that accomplish small but useful tasks of interest to Universal Windows Platform (UWP) app developers. These snippets represent simple solutions to common problems, and simple recipes to help you implement new app features.

Each snippet includes the using statements that it requires, which you can add to the top of your file as needed.

Each snippet is written in C# unless otherwise indicated.

For more UWP samples, see Windows on GitHub.

Snippets

Files and folders

File exists
Preserve access to a folder
Launch executable

Colors

Colors as a collection
Convert hex to color
Convert RGB to HSV

UI thread

UI thread access from background thread
UI thread task await from background thread
UI updates with a timer

Sockets

Socket programming with TCP
Socket programming with UDP

Popups

Show pop-up asking user to rate app
Show dialog box

Miscellaneous

App version and title
Bing image-of-the-day URI
Clipboard text
Convert the DPI of rectangles (C++)
Data binding change notification
Play sound once or looped

About

Reusable code snippets for the Universal Windows Platform.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published