当前位置: 首页 > news >正文

外贸soho做网站怎么做展示网站报价

外贸soho做网站怎么做,展示网站报价,免费企业网站制作,男人和女人一起对愁愁的说话1、在项目中用nuget引入Hardcodet.NotifyIcon.Wpf。如下图所示。 2、在App.xaml中创建托盘界面#xff0c;代码是写在 App.xaml 里面 注意在application中一定要加入这一行代码#xff1a; xmlns:tbhttp://www.hardcodet.net/taskbar 然后在Application.R…1、在项目中用nuget引入Hardcodet.NotifyIcon.Wpf。如下图所示。 2、在App.xaml中创建托盘界面代码是写在 App.xaml 里面 注意在application中一定要加入这一行代码 xmlns:tbhttp://www.hardcodet.net/taskbar 然后在Application.Resources中加入如下代码   Application.ResourcesContextMenu x:Sharedfalse x:KeySysTrayMenuMenuItem Height25 Header显示界面 Command{Binding NotifyCommand} CommandParameter1/MenuItemMenuItem Height25 Header隐藏界面 Command{Binding NotifyCommand} CommandParameter0/MenuItemSeparator /MenuItem Height25 Header退出服务 Command{Binding NotifyCommand} CommandParameter99/MenuItem/ContextMenutb:TaskbarIcon x:KeyTaskbar ToolTipTextDoubleClickCommand{Binding NotifyCommand} DoubleClickCommandParameter1ContextMenu{StaticResource SysTrayMenu} IconSource/jqsw.icotb:TaskbarIcon.TrayToolTipBorder BackgroundLightYellow CornerRadius5 Opacity0.8 Padding10StackPanel OrientationVerticalTextBlock Text温湿度数据采集服务网口版 ForegroundRed/!--TextBlock Text{Binding SystemTime} ForegroundRed/--/StackPanel/Border/tb:TaskbarIcon.TrayToolTip/tb:TaskbarIcon/Application.Resources 3、创建ViewModelBase类。再创建TaskbarIconViewModel类继承ViewModelBase类 internal class ViewModelBase : INotifyPropertyChanged{public event PropertyChangedEventHandler PropertyChanged ;protected void RaisePropertyChanged(string property){PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(property));}}internal class TaskbarIconViewModel : ViewModelBase{private string systemTime;public string SystemTime{get { return systemTime; }set { systemTime value; RaisePropertyChanged(SystemTime); }}public DelegateCommand NotifyCommand{get{return new DelegateCommand((type) {if (type.ToString() 0)Application.Current.MainWindow.Hide();if (type.ToString() 1){Application.Current.MainWindow.Show();Application.Current.MainWindow.Activate();}if (type.ToString() 99)Application.Current.Shutdown();});}}} 、在App.xaml.cs中写入如下代码 private static System.Threading.Mutex mutex;protected override void OnStartup(StartupEventArgs e){mutex new System.Threading.Mutex(true, TemCollSrvTwo);if (mutex.WaitOne(0, false)){base.OnStartup(e);}else{MessageBox.Show(程序已经在运行, 提示);this.Shutdown();} mTaskbarIcon (TaskbarIcon)FindResource(Taskbar);mTaskbarIcon.DataContext new TaskbarIconViewModel();}public static TaskbarIcon mTaskbarIcon;4031 5、效果展示
http://www.hkea.cn/news/14363300/

相关文章:

  • 可以跟关键词密度过高的网站交换友情链接吗什么语言做网站最好
  • 贵阳网站建设gzzctyi网站建设的缺点
  • 专业企专业企业网站设计织梦做的网站快照被攻击
  • 建站手机网站开发一个微信公众号多少钱
  • 建设网站的费用明细大概有哪些在网站建设工作会上的讲话
  • 优秀集团网站建行网站登录不了
  • jquery 网站后台模板网站分享链接怎么做的
  • 查企业企业网站有哪些泸州建设网站
  • 铁岭免费移动网站建设wordpress 微信服务号
  • diy做网站上海设计网站与
  • wordpress 目录 导航站最好的做网站公司
  • 定西兰州网站建设网站投资设计
  • h5网页制作平台做谷歌seo要发大量文章吗
  • 兰州网站建设报价wordpress增加变量
  • 高端+旅游+网站建设设计ui是什么意思
  • 网站建设网络推广seo企业推广的成功在于他们发现
  • 公司内部网站创建湄潭建设局官方网站
  • 兖州网站制作wordpress子菜单位置
  • 如东建设网站怎么给网站做跳转
  • 青岛开发区网站建设网站构成的基本结构
  • 免费网站app哪个最好企业官网 源码 免费下载
  • 网站收缩目录模板成全视频免费观看在线看主演
  • 安徽国华建设工程项目管理有限公司网站学做网站书籍
  • 五个h5制作网站系统网站怎么做的
  • 买软件网站建设前端招聘去哪个网站
  • 青岛网站设计多少钱关于建设企业网站的请示
  • 本地电脑做视频网站 外网连接个人网站推广app
  • 哈尔滨网站备案手续费网站颜色搭配案例
  • google网站地图格式如何做自己的网站百度推广
  • 类似+wordpress+建站服务器维护教程