Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/microsoft/Windows-task-snippets

Reusable code snippets for the Universal Windows Platform.
https://github.com/microsoft/Windows-task-snippets

Last synced: about 2 months ago
JSON representation

Reusable code snippets for the Universal Windows Platform.

Awesome Lists containing this project

README

        

# 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](http://microsoft.github.io/windows/).

## Snippets

### Data binding

[Data binding change notification](tasks/Data-binding-change-notification.md)
[Data-bind an InkCanvas control](tasks/InkCanvas-data-binding.md)

### Files and folders

[File exists](tasks/File-exists.md)
[Preserve access to a folder](tasks/Folder-access-preservation.md)
[Launch executable](tasks/Launch-executable.md)

### Colors

[Color names and contrasting foregrounds](tasks/Color-names-and-contrasting-foregrounds.md)
[Colors as a collection](tasks/Colors-as-a-collection.md)
[Convert hex to color](tasks/Convert-hex-to-color.md)
[Convert RGB to HSV](tasks/Convert-RGB-to-HSV.md)

### Images

[Bing image-of-the-day URI](tasks/Bing-image-of-the-day-URI.md)
[Capture an image](tasks/Capture-an-image.md)

### Media

[Concatenate media files](tasks/Media-file-concatenation.md)
[Play sound once or looped](tasks/Play-sound-once-or-looped.md)

### UI thread

[UI thread access from background thread](tasks/UI-thread-access-from-background-thread.md)
[UI thread task await from background thread](tasks/UI-thread-task-await-from-background-thread.md)
[UI update after a delay](tasks/UI-update-after-delay.md)
[UI updates with a timer](tasks/UI-updates-with-a-timer.md)
[Thread switching within a task](tasks/Thread-switching-within-a-task.md)

### Tasks

[Cancelling a task after a delay](tasks/Cancelling-a-task-after-a-delay.md)

### Sockets

[Socket programming with TCP](tasks/Socket-programming-with-TCP.md)
[Socket programming with UDP](tasks/Socket-programming-with-UDP.md)

### Popups
[Show pop-up asking user to rate app](tasks/Store-app-rating-pop-up.md)
[Show dialog box](tasks/Show-dialog-box.md)

### Miscellaneous

[App version and title](tasks/App-version-and-title.md)
[Clipboard text](tasks/Clipboard-text.md)
[Get user info](tasks/User-info.md)
[Convert the DPI of rectangles (C++)](tasks/Convert-DPI-rectangles.md)
[Get a device's current location](tasks/Location-of-device.md)
[Time-specific salutation](tasks/Time-specific-salutation.md)