如何停靠在Windows桌面上的应用程序? [英] How to dock an application in the Windows desktop?

查看:472
本文介绍了如何停靠在Windows桌面上的应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想开发的Windows .NET中一个小的通知应用程序,在屏幕的右侧/左侧码头(不消耗超过300像素),应该始终是可见和窗口的其余部分强制不重叠该应用程序(像老任的任务栏或Vista的侧边栏)。我不知道从哪里开始。它可以通过使用XAML / WPF?因为我还没开始编写任何选项是有效的,在这一点上。

I would like to develop a small notifications application for Windows in .NET that docks on the right/left side of the screen (not consuming more than 300px), should always be visible and force the rest of windows to not overlap this application (something like the old Office taskbar or Vista's Sidebar). I have no idea where to start. Can it be done using XAML/WPF? Since I haven't even started coding any option is valid at this point.

谢谢!

推荐答案

最可靠的方法是将注册您的应用程序作为一个应用程序桌面工具栏(AppBar)。

The most reliable way would be to register your application as an Application Desktop Toolbar (AppBar).

您需要互操作要做到这一点,这里是用C#这样一个code项目的文章,它应该是一个公平的起点。 <一href="http://www.$c$cproject.com/KB/dotnet/AppBar.aspx">http://www.$c$cproject.com/KB/dotnet/AppBar.aspx

You will need to interop to do this, here is a Code Project article on doing this with C#, it should be a fair starting point. http://www.codeproject.com/KB/dotnet/AppBar.aspx

这篇关于如何停靠在Windows桌面上的应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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