|
0
|
1 |
<UserControl
|
|
|
2 |
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
|
3 |
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
|
4 |
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
|
5 |
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
|
6 |
mc:Ignorable="d"
|
|
15
|
7 |
xmlns:Converter="clr-namespace:Iri.Modernisation.Controls.Converter"
|
|
0
|
8 |
xmlns:Input="clr-namespace:SLExtensions.Input;assembly=SLExtensions"
|
|
|
9 |
xmlns:View="clr-namespace:Iri.Modernisation.Controls.View"
|
|
|
10 |
x:Class="Iri.Modernisation.Controls.View.VideoViewer" Width="240">
|
|
|
11 |
<UserControl.Resources>
|
|
15
|
12 |
<Converter:BoolToVisibility x:Key="BoolToVisibility"></Converter:BoolToVisibility>
|
|
|
13 |
</UserControl.Resources>
|
|
0
|
14 |
<StackPanel x:Name="VideoViewerPanel" Margin="0,2,8,0" Background="#FF323232">
|
|
|
15 |
<TextBlock x:Name="textBlock" Text="{Binding Info}" TextWrapping="Wrap"/>
|
|
|
16 |
|
|
|
17 |
<!-- Source="{Binding Source,Mode=TwoWay}" -->
|
|
|
18 |
<MediaElement x:Name="VideoScreen" Position="{Binding Position,Mode=TwoWay}" Source="{Binding USource,Mode=TwoWay}" Margin="8,0" MediaFailed="VideoScreen_MediaFailed" CurrentStateChanged="VideoScreen_CurrentStateChanged" MarkerReached="VideoScreen_MarkerReached" AutoPlay="False">
|
|
|
19 |
|
|
|
20 |
</MediaElement>
|
|
|
21 |
<StackPanel x:Name="VideoViewerControlPanel" Orientation="Horizontal" Margin="8,0" VerticalAlignment="Bottom" HorizontalAlignment="Center">
|
|
15
|
22 |
<Button Visibility="{Binding PlayControl, Converter={StaticResource BoolToVisibility}}" Input:CommandService.Command="PreviousVideo" x:Name="VideoControlPreviousChapter" Content="<<"/>
|
|
|
23 |
<Button Visibility="{Binding RecordControl, Converter={StaticResource BoolToVisibility}}" Input:CommandService.Command="RecordVideo" x:Name="VideoControlRecord" Width="43" Content="O" />
|
|
|
24 |
<Button Visibility="{Binding RecordControl, Converter={StaticResource BoolToVisibility}}" Input:CommandService.Command="LoadVideo" x:Name="VideoControlLoad" Width="30" Content="_" />
|
|
|
25 |
<Button Visibility="{Binding PlayControl, Converter={StaticResource BoolToVisibility}}" Input:CommandService.Command="PlayVideo" Input:CommandService.CommandParameter="{Binding}" x:Name="VideoControlPlay" Content="|>"/>
|
|
|
26 |
<Button Visibility="{Binding PlayControl, Converter={StaticResource BoolToVisibility}}" Input:CommandService.Command="PauseVideo" x:Name="VideoControlPause" Content="||"/>
|
|
|
27 |
<Button Visibility="{Binding PlayControl, Converter={StaticResource BoolToVisibility}}" Input:CommandService.Command="NextVideo" x:Name="VideoControlNextChapter" Content=">>"/>
|
|
|
28 |
<Button Visibility="{Binding RecordControl, Converter={StaticResource BoolToVisibility}}" Input:CommandService.Command="CloseVideo" x:Name="VideoControlClose" Width="25" Content="X"/>
|
|
0
|
29 |
</StackPanel>
|
|
|
30 |
</StackPanel>
|
|
|
31 |
</UserControl> |