Git Product home page Git Product logo

uwp-trayicon's Introduction

Show an icon in the tray for UWP/为UWP显示托盘图标

It will stay running in the tray after you close the UWP main window.

在关闭UWP的主窗口后,托盘图标将继续运行,常驻于托盘。

How does it work/如何工作

By declaring the runFullTrust capability in Package.appxmanifest, we can launch a bundled non-UWP executable when launching the app. We rely on that non-UWP exe to show the tray icon and its context menu. They use AppService to communicate with each other.

We also declared a command line alias for this UWP, so we can use command line to launch the UWP part in the non-UWP part after the UWP is closed.

通过在Package.appxmanifest里声明runFullTrust能力,我们可以在应用启动的同时启动一个非UWP的可执行文件;我们依赖它显示托盘图标和上下文菜单。二者通过AppService交流。

我们同时为应用声明了一个命令行别名,以便于我们在UWP关闭后唤起它。

uwp-trayicon's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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.