add buttons to taskbar thumbnail WPF

48

add buttons to taskbar thumbnail WPF -

<Window.TaskbarItemInfo>
    <TaskbarItemInfo>
        <TaskbarItemInfo.ThumbButtonInfos>
            <ThumbButtonInfo ImageSource="/IconProgressDemo;component/Icon1.ico" Description="Play!" Click="ThumbButtonInfo_Click" />
            <ThumbButtonInfo ImageSource="/IconProgressDemo;component/Icon2.ico" Description="Stop!" Click="ThumbButtonInfo_Click" />
        </TaskbarItemInfo.ThumbButtonInfos>
    </TaskbarItemInfo>
</Window.TaskbarItemInfo>

add buttons to taskbar thumbnail WPF -

private void ThumbButtonInfo_Click(object sender, EventArgs e)
{
    MessageBox.Show((sender as System.Windows.Shell.ThumbButtonInfo).Description);
}

Comments

Submit
0 Comments