Created
October 15, 2013 15:34
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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