Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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 1 month ago
JSON representation
Reusable code snippets for the Universal Windows Platform.
- Host: GitHub
- URL: https://github.com/microsoft/Windows-task-snippets
- Owner: microsoft
- License: mit
- Created: 2016-02-01T22:12:36.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2022-11-28T19:13:42.000Z (about 2 years ago)
- Last Synced: 2024-08-02T11:14:02.574Z (4 months ago)
- Size: 77.1 KB
- Stars: 308
- Watchers: 44
- Forks: 66
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Security: SECURITY.md
Awesome Lists containing this project
- awesome-winui - Windows task snippets - ![GitHub stars](https://img.shields.io/github/stars/microsoft/Windows-task-snippets?cacheSeconds=604800) ![GitHub last commit](https://img.shields.io/github/last-commit/microsoft/Windows-task-snippets?cacheSeconds=86000) 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. (Libraries / What We Track)
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)