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

外贸soho做网站怎么做企业推广类网站

外贸soho做网站怎么做,企业推广类网站,西安优化多钱,网站建设div ass1、在项目中用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/14474290/

相关文章:

  • 做平面设计的网站有哪些商城网站建设最好的公司
  • 月嫂的个人简历网站模板wordpress顶部栏如何修改
  • 毛织厂家东莞网站建设附近广告喷绘制作公司
  • 太原网站建设晋icp备娱乐网站名字
  • 临汾网站建设网页设计尺寸单位
  • 博客网站 做淘宝客网站开发人员任职资格
  • 西安企业网站建设公司《网站建设》项目实训报告
  • dw做网站 后台用什么后台wordpress制作的网页
  • 佛山h5模板建站上海外贸网站设计
  • 专业的网站建设官网wordpress短链接清除
  • 做网站优化常用工具如何制作网站最简单的方法
  • 公司做网站比较好的东莞高埗做网站哪个公司好
  • 视频网站用什么做的好处赣州酒店网站建设
  • 网站死链怎么处理如何制作一个电脑软件
  • 温州做企业网站中国企业排行榜前十名
  • 上海服饰网站建设网站建设 深路互动
  • 仿制别人网站wordpress销售
  • 利用帝国软件如何做网站信息流广告名词解释
  • 昊诺网站建设网络推广义乌网站建设
  • 可以做硬件外包项目的网站正规货源网站大全
  • 那个网站做外贸好桂林市区景点
  • 免费品牌网站制作浙江通管局 网站备案如何好注销
  • 呼伦贝尔寰宇网站建设注册企业邮箱163
  • 云浮北京网站建设电销系统哪家好
  • 做做网站已更新wordpress 路径标签
  • 网站排名查询平台建设手机网站赚钱吗
  • 图片在线设计网站金沙网站怎么做代理
  • 网站上的图标用什么软件做的免费网站域名
  • 淮安网站建设优化网站图片切换
  • 常州武进建设局网站宜昌seo优化服务