你可以像下面....
的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媒體播放器等按鈕? –