aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/Images/thread.png
blob: aa5a461405c8143e49d0687fa5519962ee55c130 (plain) <
<UserControl x:Class="Tango.MachineStudio.DataCapture.Views.PlayingBarView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity"
             xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
             xmlns:mahapps="http://metro.mahapps.com/winfx/xaml/controls"
             xmlns:converters="clr-namespace:Tango.SharedUI.Converters;assembly=Tango.SharedUI"
             xmlns:vm="clr-namespace:Tango.MachineStudio.DataCapture.ViewModels"
             xmlns:video="clr-namespace:Tango.Video.DirectCapture;assembly=Tango.Video"
             xmlns:global="clr-namespace:Tango.MachineStudio.DataCapture"
             xmlns:local="clr-namespace:Tango.MachineStudio.DataCapture.Views"
             mc:Ignorable="d" 
             Width="350" Height="30" Background="{StaticResource AccentColorBrush}" d:DataContext="{d:DesignInstance Type=vm:MainViewVM, IsDesignTimeCreatable=False}">
    <Grid>
        <DockPanel>

            <StackPanel Orientation="Horizontal" DockPanel.Dock="Right">
                <TextBlock VerticalAlignment="Center" FontFamily="{StaticResource digital-7}" Foreground="#F6F6F6" FontSize="20">
                     <Run Text="{Binding Player.CurrentTime,Mode=OneWay,StringFormat=hh\\:mm\\:ss,FallbackValue='00:00:00'}"/>
                     <Run>/</Run>
                     <Run Text="{Binding Player.TotalTime,Mode=OneWay,StringFormat=hh\\:mm\\:ss,FallbackValue='00:00:00'}"/>
                </TextBlock>
            </StackPanel>

            <StackPanel Orientation="Horizontal" DockPanel.Dock="Left">
                <Button Command="{Binding MediaPlayPauseCommand}" Style="{StaticResource MaterialDesignFlatButton}" Padding="0" Width="30" Height="30" Foreground="White">
                    <materialDesign:PackIcon Width="30" Height="30">
                        <materialDesign:PackIcon.Style>
                            <Style TargetType="materialDesign:PackIcon">
                                <Setter Property="Kind" Value="Play"></Setter>
                                <Style.Triggers>
                                    <MultiDataTrigger>
                                        <MultiDataTrigger.Conditions>
                                            <Condition Binding="{Binding Player.IsPlaying}" Value="True" />
                                            <Condition Binding="{Binding Player.IsPaused}" Value="False" />
                                        </MultiDataTrigger.Conditions>
                                        <Setter Property="Kind" Value="Pause"></Setter>
                                    </MultiDataTrigger>
                                </Style.Triggers>
                            </Style>
                        </materialDesign:PackIcon.Style>
                    </materialDesign:PackIcon>
                </Button>
                <Button Command="{Binding MediaStopCommand}" Style="{StaticResource MaterialDesignFlatButton}" Padding="0" Width="30" Height="30" Foreground="White">
                    <materialDesign:PackIcon Kind="Stop" Width="30" Height="30" />
                </Button>
            </StackPanel>

            <Slider x:Name="slider" VerticalAlignment="Center" Margin="10 0 10 0" Foreground="White" Maximum="{Binding Player.TotalFrames}" Value="{Binding Player.CurrentFrame,Mode=OneWay}">
                <i:Interaction.Triggers>
                    <i:EventTrigger EventName="PreviewMouseDown">
                        <i:InvokeCommandAction Command="{Binding MediaSeekHoldCommand}"></i:InvokeCommandAction>
                    </i:EventTrigger>
                    <i:EventTrigger EventName="PreviewMouseUp">
                        <i:InvokeCommandAction Command="{Binding MediaSeekCommand}" CommandParameter="{Binding ElementName=slider,Path=Value}"></i:InvokeCommandAction>
                    </i:EventTrigger>
                </i:Interaction.Triggers>
            </Slider>
        </DockPanel>
    </Grid>
</UserControl>
ofshex dumpascii
0000 89 50 4e 47 0d 0a 1a 0a 00 00 00 0d 49 48 44 52 00 00 00 40 00 00 00 40 08 06 00 00 00 aa 69 71 .PNG........IHDR...@...@......iq
0020 de 00 00 00 04 73 42 49 54 08 08 08 08 7c 08 64 88 00 00 00 09 70 48 59 73 00 00 01 bb 00 00 01 .....sBIT....|.d.....pHYs.......
0040 bb 01 3a ec e3 e2 00 00 00 19 74 45 58 74 53 6f 66 74 77 61 72 65 00 77 77 77 2e 69 6e 6b 73 63 ..:.......tEXtSoftware.www.inksc
0060 61 70 65 2e 6f 72 67 9b ee 3c 1a 00 00 09 69 49 44 41 54 78 da ed 5b 69 6c 54 55 14 c6 5d 63 e2 ape.org..<....iIDATx..[ilTU..]c.
0080 92 18 23 c6 1f 86 32 ad 65 69 81 52 68 29 dd a6 c5 25 fe 51 13 13 d7 c4 25 6a 8c 46 e3 1a 25 a8 ..#...2.ei.Rh)...%.Q....%j.F..%.
00a0 23 76 66 0a 2d 03 85 d2 d2 85 99 21 6a 42 fa 4b a3 10 e8 9b 96 c5 b6 b4 b5 40 f7 95 99 a1 68 db #vf.-......!jB.K.........@....h.
00c0 90 60 48 14 17 dc 9e f7 bb 9d d7 de 77 e7 dd f7 de 48 c9 bc 6a 49 6e 68 5f ef 7b 73 cf 77 cf f9 .`H.........w....H..jInh_.{s.w..
00e0 ce 77 ce 9d 37 4f 96 e5 79 33 31 26 26 26 bc e3 e3 e3 17 c9 90 75 46 fb d8 d8 58 d2 4c 7d e6 4c .w..7O..y31&&&.......uF...X.L}.L
0100 8c 19 79 08 31 2c c7 c0 70 76 54 fc e7 00 20 bb fa 58 0c 00 7c 31 07 c0 1c 00 73 00 cc 5e 00 0a ..y.1,..pvT......X..|1....s..^..
0120 bc a3 8b ec be f0 33 ec 70 37 9e d9 d8 3a 34 d6 c4 8f c6 9e ef 8e 15 ed ef 1d fa f8 eb 9e 61 65
d> 5e 7a 67 8a d3 f7 10 a1 54 d6 ee 62 d7 48 d2 db 3b 91 e7 0c f0 a4 a6 35 16 b8 03 e9 53 19 c4 71 ^zg.....T..b.H..;......5....S..q 07c0 f0 76 5d 00 d6 f9 82 36 ed fc dc 2b 2f e6 be 22 63 74 30 aa f4 01 92 b9 5d 87 27 89 32 82 92 15 .v]....6...+/.."ct0.....].'.2... 07e0 d8 af dc 91 0c b2 9f 5d 63 d2 27 8d 49 e4 fa 6f 91 30 58 af 67 fc 62 47 dd b5 04 b0 ae c8 b3 0e .......]c.'.I..o.0X.g.bG........ 0800 1b a6 41 fb 9e d3 0f 1b 9f fc 48 42 f9 aa fa 12 44 59 47 54 f7 27 53 20 80 a8 62 8c 28 40 fe c4 ..A.......HB....DYGT.'S...b.(@.. 0820 88 3c ab 2e 9a d4 02 6f 46 e6 5d 84 47 68 e9 02 a8 3f 5b 91 b4 4f 49 81 5a 6a 32 ba 04 f6 87 3f .<.....oF.].Gh...?[..OI.Zj2....? 0840 64 d3 94 56 99 6a 54 fb 83 c9 93 b9 1a 00 65 b2 5e 89 3c d9 42 6f 50 7b 89 c2 27 de 50 bf c6 c2 d..V.jT.......e.^.<.BoP{..'.P... 0860 af 60 8c 93 e9 2e 17 05 9c 44 2b 3c 42 a4 ef f3 09 4e a9 92 5c 57 d4 ec 5f e4 fa b3 a6 a4 b0 d2 .`.......D+<B....N..\W.._....... 0880 06 e7 4f 78 93 75 4e 72 d8 de 3e 94 21 0b 18 ee d3 e3 07 80 c9 aa 45 4d 2f f1 87 fe 40 83 36 6a ..Ox.uNr..>.!.........EM/...@.6j 08a0 f1 44 07 24 38 eb df 22 f7 fd 2a d2 21 04 88 41 02 48 a6 e9 62 88 94 a9 a7 63 39 e1 65 d3 21 7b .D.$8.."..*.!..A.H..b....c9.e.!{ 08c0 9f f1 09 50 f4 f7 84 68 58 09 bc 04 df 53 16 19 01 4e 88 a8 c4 2f c9 18 23 a3 87 e4 7d 6f 82 33 ...P...hX....S...N.../..#...}o.3 08e0 f0 e2 5d 1e fd f3 05 75 35 55 dc 71 b3 d9 6f 72 b0 83 3f f0 c4 8e 8a 0e 48 a9 08 aa ea 53 11 23 ..]....u5U.q..or..?.....H....S.# 0900 04 90 9e 97 5c ce 36 b9 ea 97 95 5b db 1e a7 b9 b9 a4 49 b7 8b 23 72 5f 1b 77 cc ad 55 f0 f0 e7 ....\.6....[......I..#r_.w..U... 0920 84 e9 62 01 a4 3e 30 f5 05 8b 2f 3b 00 69 3b 4e b8 32 75 e4 ab 6a d7 89 a1 fc b1 b8 9e 08 a2 25 ..b..>0.../;.i;N.2u..j.........% 0940 31 c3 29 93 f3 63 6a a4 7e 7d d9 01 20 1f b2 de b0 f5 45 16 cd 1e 67 19 9d fb 61 3e 8c 35 3b 5f 1.)..cj.~}........E...g...a>.5;_ 0960 67 74 5f 76 00 d6 7e 3e 7a 2b de 09 e0 5f 69 51 46 be 2f f8 1c 49 8b e5 a9 9e b6 da 57 ea 3a 9b gt_v..~>z+..._iQF./..I......W.:. 0980 f0 0a cc c1 ae 33 ad 5a af cb 60 34 0f 7c df ec 3e d0 37 a8 bc 2e b3 91 8c fa 6e f5 7c d1 67 45 .....3.Z..`4.|..>.7.......n.|.gE 09a0 7d b6 0e 09 c6 e5 a5 a9 89 89 89 bd 31 bc 28 25 1c b3 f6 ad b1 39 00 e6 00 f8 9f 03 40 16 ef 99 }...........1.(%.....9......@... 09c0 01 00 c6 67 2d 00 67 cf 9e 5d 40 bc a0 e5 52 8c 27 ff 9e 88 37 00 ff 00 60 ce 24 7f 11 20 a4 b3 ...g-.g..]@...R.'...7...`.$..... 09e0 00 00 00 00 49 45 4e 44 ae 42 60 82 ....IEND.B`.