Skip to content

Instantly share code, notes, and snippets.

@xdumaine
Created October 15, 2013 15:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xdumaine/6993533 to your computer and use it in GitHub Desktop.
Save xdumaine/6993533 to your computer and use it in GitHub Desktop.
xaml for progress bar and controls in a Taskbar definition for a WPF application in Windows 7.
<Window.TaskbarItemInfo>
<TaskbarItemInfo Description="My Taskbar Sample" ProgressState="Normal">
<TaskbarItemInfo.ProgressValue>
<MultiBinding Converter="{StaticResource ProgressBarConverter}">
<Binding Path="SongsUsed" Mode="OneWay" Converter="{StaticResource ListToCountConverter}"/>
<Binding Path="NumberOfSongs"/>
</MultiBinding>
</TaskbarItemInfo.ProgressValue>
<TaskbarItemInfo.ThumbButtonInfos>
<ThumbButtonInfoCollection>
<ThumbButtonInfo x:Name="_ThumbnailBackButton"
Description="Previous"
ImageSource="Resources\Backward.ico"
Command="{Binding Backtrack}"/>
<ThumbButtonInfo x:Name="_ThumbnailPauseButton"
ImageSource="{Binding Path=PlayState, Converter={StaticResource BooleanToPlayStateIconConverter}}"
DismissWhenClicked="False"
Command="{Binding PlayPause}"/>
<ThumbButtonInfo x:Name="_ThumbnailForwardButton"
Description="Next"
ImageSource="Resources\Forward.ico"
Command="{Binding ForwardTrack}"/>
</ThumbButtonInfoCollection>
</TaskbarItemInfo.ThumbButtonInfos>
</TaskbarItemInfo>
</Window.TaskbarItemInfo>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment