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

中企动力 网站建设 眼镜网站必须做电子认证吗

中企动力 网站建设 眼镜,网站必须做电子认证吗,牡丹江seo,网站的虚拟人怎么做的本文讲述#xff1a;WPF 进度条(ProgressBar)简单的样式修改和使用。 进度显示界面#xff1a;使用UserControl把ProgressBar和进度值以及要显示的内容全部组装在UserControl界面中#xff0c;方便其他界面直接进行使用。 UserControl x:ClassDefProcessBarDemo…本文讲述WPF 进度条(ProgressBar)简单的样式修改和使用。 进度显示界面使用UserControl把ProgressBar和进度值以及要显示的内容全部组装在UserControl界面中方便其他界面直接进行使用。 UserControl x:ClassDefProcessBarDemo.DefProcessBarxmlnshttp://schemas.microsoft.com/winfx/2006/xaml/presentationxmlns:xhttp://schemas.microsoft.com/winfx/2006/xamlxmlns:mchttp://schemas.openxmlformats.org/markup-compatibility/2006xmlns:dhttp://schemas.microsoft.com/expression/blend/2008xmlns:localclr-namespace:DefProcessBarDemomc:Ignorabledx:NameMyWatingViewControlUserControl.BackgroundVisualBrushVisualBrush.VisualBorder x:NameControlBackgroundBackgroundBlackOpacity0.45 //VisualBrush.Visual/VisualBrush/UserControl.BackgroundViewbox x:NamemyViewBoxStretchUniformToFillStretchDirectionDownOnlyUseLayoutRoundingTrueGrid Margin0 0 0 0HorizontalAlignmentCenterVerticalAlignmentCenterMouseDownImage_MouseDownBorder CornerRadius5SnapsToDevicePixelsTrueBorder.EffectDropShadowEffect Color#000000BlurRadius10ShadowDepth3Opacity0.35Direction270 //Border.EffectBorder Background#4a4a4aCornerRadius5Margin5BorderBrush#9196a0BorderThickness1SnapsToDevicePixelsTrueGrid Width500Height150Grid.RowDefinitionsRowDefinition Heightauto /RowDefinition Height35 /RowDefinition Height* /RowDefinition Height30 //Grid.RowDefinitionsImage NameCloseIcoWidth25Height25Margin0,0,0,0MouseDownImage_MouseDownHorizontalAlignmentRightVerticalAlignmentTop /StackPanel Grid.Row1OrientationHorizontalHorizontalAlignmentCenterTextBlock Text{Binding Message,ElementNameMyWatingViewControl}FontSize18ForegroundYellowTextWrappingWrapWithOverflowTextTrimmingCharacterEllipsisMaxWidth450VerticalAlignmentBottom /TextBlock Text(FontSize18ForegroundYellowVerticalAlignmentBottom /TextBlock Text{Binding ElementNameprogressBar, PathValue, StringFormat{}{0:0}%}FontSize18ForegroundYellowFontFamily楷体VerticalAlignmentBottom /TextBlock Text)FontSize18ForegroundYellowVerticalAlignmentBottom //StackPanelGrid Grid.Row2HorizontalAlignmentCenterVerticalAlignmentTopMargin0 10ProgressBar x:NameprogressBarMaximum100Height25Width420ForegroundGreenBackgroundLightGrayHorizontalContentAlignmentCenterVerticalContentAlignmentCenterValue{Binding ProcessBarValue,ElementNameMyWatingViewControl} //Grid/Grid/Border/Border/Grid/Viewbox /UserControl进度显示界面UserControl 后台逻辑实现主要定义了进度值、显示的文本、以及UserControl的大小。 using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Imaging; using System.Windows.Navigation; using System.Windows.Shapes;namespace DefProcessBarDemo {/// summary/// DefProcessBar.xaml 的交互逻辑/// /summarypublic partial class DefProcessBar : UserControl{public DefProcessBar(){InitializeComponent();this.Loaded WaitingView_Loaded;}void WaitingView_Loaded(object sender, RoutedEventArgs e){if (this.Parent ! null){var root (FrameworkElement)this.Parent;if (root ! null){this.Width root.ActualWidth;this.Height root.ActualHeight;ControlBackground.Width root.ActualWidth;ControlBackground.Height root.ActualHeight;}}}#region Propertypublic string Message{get { return (string)GetValue(MessageProperty); }set { SetValue(MessageProperty, value); }}public static readonly DependencyProperty MessageProperty DependencyProperty.Register(Message, typeof(string), typeof(DefProcessBar),new PropertyMetadata());public double ProcessBarValue{get { return (double)GetValue(ProcessBarValueProperty); }set { SetValue(ProcessBarValueProperty, value); }}public static readonly DependencyProperty ProcessBarValueProperty DependencyProperty.Register(ProcessBarValue, typeof(double), typeof(DefProcessBar),new PropertyMetadata(0.0));#endregionprivate void Image_MouseDown(object sender, MouseButtonEventArgs e){this.Visibility Visibility.Hidden;}} }在MainWindow界面中调用[进度显示界面]示例如下 Window x:ClassDefProcessBarDemo.MainWindowxmlnshttp://schemas.microsoft.com/winfx/2006/xaml/presentationxmlns:xhttp://schemas.microsoft.com/winfx/2006/xamlxmlns:dhttp://schemas.microsoft.com/expression/blend/2008xmlns:mchttp://schemas.openxmlformats.org/markup-compatibility/2006xmlns:localclr-namespace:DefProcessBarDemomc:Ignorabled TitleDefProcessBar Width600 Height500WindowStartupLocationCenterScreen x:Namemainwndxmlns:pdbclr-namespace:DefProcessBarDemo BackgroundTealStackPanelButton Height30 Width120 Margin20 Content点击 ClickButton_Click/pdb:DefProcessBar VerticalAlignmentCenterProcessBarValue{Binding ExportValue, ModeTwoWay,UpdateSourceTriggerPropertyChanged}Message{Binding ExportMessage, ModeTwoWay, UpdateSourceTriggerPropertyChanged} / /StackPanel /Window后台模拟进度变化使用Task任务更新进度值代码示例如下 using System; using System.Collections.Generic; using System.ComponentModel; using System.Diagnostics; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Imaging; using System.Windows.Navigation; using System.Windows.Shapes;namespace DefProcessBarDemo {/// summary/// MainWindow.xaml 的交互逻辑/// /summarypublic partial class MainWindow : Window, System.ComponentModel.INotifyPropertyChanged{public MainWindow(){InitializeComponent();this.DataContext this;}private string m_ExportMessage 正在导出请稍后....;/// summary/// /// summarypublic string ExportMessage{get { return m_ExportMessage; }set{m_ExportMessage value;OnPropertyChanged(ExportMessage);}}private double m_ExportValue 0.0;/// summary/// /// summarypublic double ExportValue{get { return m_ExportValue; }set{m_ExportValue value;OnPropertyChanged(ExportValue);}}#region MyRegionpublic event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;protected void OnPropertyChanged(string propertyName){if (PropertyChanged ! null){PropertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));}}#endregionprivate void Button_Click(object sender, RoutedEventArgs e){Task.Run(() {for(int i 1; i 101; i){ExportValue;System.Threading.Thread.Sleep(1000);if (ExportValue 100)ExportMessage 完成;}});string strRes ;bool bRet GetCmdResult(netsh wlan show profiles, out strRes);}} }运行时点击【点击】按钮即可看到进度持续不断地更新界面如下图所示
http://www.w-s-a.com/news/104565/

相关文章:

  • 市级档案网站建设情况分析server2008做DNS与网站
  • 公积金门户网站建设方案网站建设代理平台怎么做
  • 网站建设知识论文抖音开放平台是干什么的
  • 网站建设期末试卷大气简洁网站
  • 电子商务网站建设报告范文单位做网站怎么做
  • 优质的外国网站qq小程序在哪里打开
  • 商务网站建设与推广实训报告免费素材网站无水印
  • 外贸站seoapp开发公司历程概述
  • 沈阳网站推广¥做下拉去118cr陶瓷企业 瓷砖地板公司网站建设
  • 医院网站官方微信精神文明建设我做服装设计师的 求推荐资源网站
  • 微信网站建设需要那些资料昆明cms模板建站
  • 安庆网站建设兼职中企动力是500强吗
  • 网站排名优化技巧基于网站的网络营销方法有哪些
  • 摄影素材网站做知识问答的网站
  • 中小企业网站建设济南兴田德润电话门店管理系统软件排行
  • 昆明工程建设信息网站柳州网站建设公司哪家好
  • 如何分析网站关键词北京门户网站网址
  • 做网站与做游戏那个好网站域名怎么起
  • 有没有做cad单的网站银行网站建设方案视频
  • 和各大网站做视频的工作高校网站群管理系统
  • 中国建设人才服务信息网是正规网站怎么注销自己名下的公司
  • 网站开发新型技术那些网站做任务领q币
  • 海口手机网站建设wordpress微支付宝
  • 做公司网站需要几天深圳自定义网站开发
  • 做网站学多长时间可以学会推广软件公司
  • 网络网站设计培训长沙建站模板大全
  • 站群搭建移动端处理器天梯图
  • 岳池发展建设集团有限公司门户网站湛江seo咨询
  • 手机网站工具关键词排名是什么意思
  • 游民星空是谁做的网站沈阳网站托管公司