Windows 7 以降ではタスクバーアイコンにプログレス表示ができるようになりましたが、その実装例。
XAML 側。ProgressState を Normal にすることで表示されるようになります。
<Window x:Class="MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="MainWindow"
Height="350"
Width="525">
<Window.TaskbarItemInfo>
<TaskbarItemInfo x:Name="TaskBarItemInfo1"
ProgressState="Normal"/>
</Window.TaskbarItemInfo>
</Window>
コードビハインド側。特に DoEvents 的な何かを入れなくても更新される模様。
For i = 0.1 To 1.0 Step 0.1
Me.TaskBarItemInfo1.ProgressValue = i
System.Threading.Thread.Sleep(1000)
Next