windows Windows 11
番茄系统家园 · 2021-09-01 00:04:34

方法
在类中有三种不同方式使用方法来设置进度条当前位置,其中为进度条当前位置的参数,为最大参数:
//设置当前窗口
(,){();TaskbarList.SetProgressValue(OwnerHandle,Convert.ToUInt32(currentValue),
Convert.ToUInt32(maximumValue));}//设置指定窗口
publicvoidSetProgressValue(intcurrentValue,intmaximumValue,
IntPtrwindowHandle){CoreHelpers.ThrowIfNotWin7();TaskbarList.SetProgressValue(windowHandle,Convert.ToUInt32(currentValue),
Convert.ToUInt32(maximumValue));}//设置指定WPF窗口
publicvoidSetProgressValue(intcurrentValue,intmaximumValue,
System.Windows.Windowwindow){CoreHelpers.ThrowIfNotWin7();TaskbarList.SetProgressValue((newWindowInteropHelper(window)).Handle,Convert.ToUInt32(currentValue),Convert.ToUInt32(maximumValue));}
免责声明: 凡标注转载/编译字样内容并非本站原创,转载目的在于传递更多信息,并不代表本网赞同其观点和对其真实性负责。如果你觉得本文好,欢迎推荐给朋友阅读;本文链接: https://m.nndssk.com/post/55966.html。猜你喜欢
最新应用
热门应用

