b2科目四模拟试题多少题驾考考爆了怎么补救
b2科目四模拟试题多少题 驾考考爆了怎么补救

NotifyIcon

电脑杂谈  发布时间:2016-05-12 21:27:18  来源:网络整理

你是否正在寻找关于notifyicon的内容?让我把最高级的东西奉献给你:

WPF控件--notifyicon

1.在什么地方找到notifyicon

普通的WPF控件基本上都是在该命名空间下:System.Windows.Controls,该命名空间在C:\Program Files\Reference Assemblies\Microsoft\Framework\v3.0\PresentationFramework.dll下。也就是说是.net framework3.0之后才支持的。

那难道在WPF下就不能使用notifyicon了吗?

在MSDN上有以下关于通知图标的示例:(VS.90).aspx

using System; using System.Windows; using System.Windows.Forms; // NotifyIcon control using System.Drawing; // Icon public partial class MainWindow : Window { NotifyIcon notifyIcon; public MainWindow() { InitializeComponent(); } void click(object sender, RoutedEventArgs e) { // Configure and show a notification icon in the system tray this.notifyIcon = new NotifyIcon(); this.notifyIcon.BalloonTipText = "Hello, NotifyIcon!"; this.notifyIcon.Text = "Hello, NotifyIcon!"; this.notifyIcon.Icon = new System.Drawing.Icon("NotifyIcon.ico"); this.notifyIcon.Visible = true; this.notifyicon.ShowBalloonTip(1000); } }

其中包含NotifyIcon控件,请注意它的命名空间:System.Windows.Forms; ,该命名空间是在C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.Windows.Forms.dll下。所以说此处使用的notifyicon控件其实是.net framework 2.0就提供的在winform下面是用的控件,。

2.怎么使用notifyicon

App.xaml

="NotifyIconStd.App" xmlns="" ="" ="ApplicationExit"> <Application.Resources>

以上就是关于notifyicon的全部内容,相信你一定会非常满意。


本文来自电脑杂谈,转载请注明本文网址:
http://www.pc-fly.com/a/jisuanjixue/article-4699-1.html

    相关阅读
      发表评论  请自觉遵守互联网相关的政策法规,严禁发布、暴力、反动的言论

      热点图片
      拼命载入中...