client/src/Iri.Modernisation.Controls/View/VideoViewer/VideoViewer.xaml
changeset 0 249d70e7b32d
child 15 3f70aee2432f
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/client/src/Iri.Modernisation.Controls/View/VideoViewer/VideoViewer.xaml	Wed Nov 18 15:30:31 2009 +0100
@@ -0,0 +1,31 @@
+<UserControl
+	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
+	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
+	xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
+	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
+	mc:Ignorable="d"
+	
+    xmlns:Input="clr-namespace:SLExtensions.Input;assembly=SLExtensions"
+	xmlns:View="clr-namespace:Iri.Modernisation.Controls.View"
+	x:Class="Iri.Modernisation.Controls.View.VideoViewer" Width="240">
+	<UserControl.Resources>
+	
+	</UserControl.Resources>
+	<StackPanel x:Name="VideoViewerPanel" Margin="0,2,8,0" Background="#FF323232">
+		<TextBlock x:Name="textBlock" Text="{Binding Info}" TextWrapping="Wrap"/>
+
+<!-- Source="{Binding Source,Mode=TwoWay}" -->
+        <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">
+       
+        </MediaElement>
+            <StackPanel x:Name="VideoViewerControlPanel" Orientation="Horizontal" Margin="8,0" VerticalAlignment="Bottom" HorizontalAlignment="Center">
+			<Button Input:CommandService.Command="PreviousVideo" x:Name="VideoControlPreviousChapter"  Content="&lt;|"/>
+			<Button Input:CommandService.Command="RecordVideo" x:Name="VideoControlRecord"  Width="43" Content="O" />
+			<Button Input:CommandService.Command="LoadVideo" x:Name="VideoControlLoad"  Width="30" Content="_" />
+			<Button Input:CommandService.Command="PlayVideo" Input:CommandService.CommandParameter="{Binding}" x:Name="VideoControlPlay"  Content="|>"/>
+			<Button Input:CommandService.Command="PauseVideo" x:Name="VideoControlPause"  Content="||"/>
+			<Button Input:CommandService.Command="NextVideo" x:Name="VideoControlNextChapter"  Content="&gt;&gt;"/>
+			<Button Input:CommandService.Command="CloseVideo" x:Name="VideoControlClose"  Width="25" Content="X"/>
+		</StackPanel>
+	</StackPanel>
+</UserControl>
\ No newline at end of file