Giter Club home page Giter Club logo

lightweightconsoletoast's Introduction

Lightweight Console Toast

A lightweight console application showing a toast notification.

I somehow found pleasure in the "Windows Toast Notifications". You know, those little notes in the bottom right corner, when windows wants to tell you something.

image

When I started researching and trying to get things running, my goal was to get those toasts show up using a console application in the most lightweight way to start off of that. Eventually after lots of desperate documentation reading and so on, I found just the right post by Karen Payne: https://dev.to/karenpayneoregon/using-toast-notifications-in-windows-forms-1dbe

My repo shows you get Windows Toasts running for console applications in the most basic way:

  1. Create a console application in Visual Studio

  2. Download this NuGet: https://www.nuget.org/packages/Microsoft.Toolkit.Uwp.Notifications/

    image

  3. Add "-windows10.0.19041.0" to the "TargetFramework" property in the .csproj file

  4. Add a new ToastContentBuilder to your Program.cs file

    image

  5. Run the application

  6. Success

lightweightconsoletoast's People

Contributors

molukkenberg avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.