你可以像下面....
的ThumbButtonInfo还允许您设置图像和点击,你可以调用的功能
<Window
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="clr-namespace:WpfApplication4" x:Class="WpfApplication4.MainWindow"
Title="MainWindow" Height="350" Width="525">
<Window.TaskbarItemInfo>
<TaskbarItemInfo>
<TaskbarItemInfo.ThumbButtonInfos>
<ThumbButtonInfo Description="Play!" Click="ThumbButtonInfo_Click"/>
<ThumbButtonInfo Description="Stop!" Click="ThumbButtonInfo_Click_1" />
</TaskbarItemInfo.ThumbButtonInfos>
</TaskbarItemInfo>
</Window.TaskbarItemInfo>
<Grid>
</Grid>
</Window>
和按钮点击事件
private void ThumbButtonInfo_Click(object sender, EventArgs e)
{
MessageBox.Show("Clicked");
}
private void ThumbButtonInfo_Click_1(object sender, EventArgs e)
{
MessageBox.Show("Clicked");
}
您可以显示在...
<TaskbarItemInfo.ProgressValue></TaskbarItemInfo.ProgressValue>
进度信息和状态信息在...
<TaskbarItemInfo.Description></TaskbarItemInfo.Description>
我想你忘了问一个问题。 –
我想知道它是如何实现的。 – user2185985
如果我理解的很好 - 你想在任务栏中运行的应用程序的缩略图视图中显示Windows媒体播放器等按钮? –