如何使用Windows服务打开Wpf窗口 [英] How Do I Open Wpf Window Using Windows Service

查看:287
本文介绍了如何使用Windows服务打开Wpf窗口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想用窗口服务打开wpf窗口pelase给我回答这个问题

推荐答案

你没有。期。故事结束。



服务根本没有任何用户界面。



如果您需要为了建立某种界面,你需要一个用户运行的第二个应用程序。此应用程序应通过某些进程间通信(IPC)机制与服务进行通信,例如命名管道或共享内存。然后,第二个应用程序可以提供用户界面以响应从服务发送的某些消息。
You don't. Period. End of story.

Services cannot have any kind of user interface at all.

If you need to put up some kind of interface, you'll need a second application that the user runs. This application should talk to the service over some Inter Process Communication (IPC) mechanism, such as named pipes or shared memory. This second application can then put up the user interface in response to some message sent from the service.


这篇关于如何使用Windows服务打开Wpf窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆