client/src/Iri.Modernisation.Controls/View/VideoViewer/VideoViewer.xaml
author totetm <>
Fri, 12 Feb 2010 16:22:57 +0100
changeset 47 9b26023b8c83
parent 34 4d9ebc6fbbe8
permissions -rw-r--r--
Fixed| bug si on ferme un livre en le lisant ReFixed|faire fonctionner le seek, même quand play n'est pas activer

<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:Converter="clr-namespace:Iri.Modernisation.Controls.Converter"
    xmlns:Input="clr-namespace:SLExtensions.Input;assembly=SLExtensions"
	xmlns:View="clr-namespace:Iri.Modernisation.Controls.View"
	x:Class="Iri.Modernisation.Controls.View.VideoViewer" Height="173">
	<UserControl.Resources>
        <Converter:BoolToVisibility x:Key="BoolToVisibility"></Converter:BoolToVisibility>
    </UserControl.Resources>
	<StackPanel x:Name="VideoViewerPanel" Margin="0,2,0,0" Background="#FF323232" HorizontalAlignment="Left">
		<TextBlock x:Name="textBlock"  TextWrapping="Wrap"/>

<!-- Source="{Binding Source,Mode=TwoWay}" -->
        <MediaElement AutoPlay="{Binding AutoPlay}" x:Name="VideoScreen" Position="{Binding Position,Mode=TwoWay}" Source="{Binding USource,Mode=TwoWay}"  Margin="8,0" MediaFailed="VideoScreen_MediaFailed"  MarkerReached="VideoScreen_MarkerReached" VerticalAlignment="Top" />
            <StackPanel x:Name="VideoViewerControlPanel" Orientation="Horizontal" Margin="8,0" VerticalAlignment="Bottom" HorizontalAlignment="Center">
			<Button Visibility="{Binding PlayControl, Converter={StaticResource BoolToVisibility}}" Input:CommandService.Command="PreviousVideo" x:Name="VideoControlPreviousChapter"  Content="&lt;&lt;"/>
			<Button Visibility="{Binding RecordControl, Converter={StaticResource BoolToVisibility}}" Input:CommandService.Command="RecordVideo" x:Name="VideoControlRecord"  Width="43" Content="O" />
			<Button Visibility="{Binding RecordControl, Converter={StaticResource BoolToVisibility}}" Input:CommandService.Command="LoadVideo" x:Name="VideoControlLoad"  Width="30" Content="_" />
			<Button Visibility="{Binding PlayControl, Converter={StaticResource BoolToVisibility}}" Input:CommandService.Command="PlayVideo" Input:CommandService.CommandParameter="{Binding}" x:Name="VideoControlPlay"  Content="|&gt;"/>
			<Button Visibility="{Binding PlayControl, Converter={StaticResource BoolToVisibility}}" Input:CommandService.Command="PauseVideo"  Input:CommandService.CommandParameter="{Binding}" x:Name="VideoControlPause"  Content="||"/>
			<Button Visibility="{Binding PlayControl, Converter={StaticResource BoolToVisibility}}" Input:CommandService.Command="NextVideo" x:Name="VideoControlNextChapter"  Content="&gt;&gt;"/>
			<Button Visibility="{Binding RecordControl, Converter={StaticResource BoolToVisibility}}" Input:CommandService.Command="CloseVideo" x:Name="VideoControlClose"  Width="25" Content="X"/>
		</StackPanel>
	</StackPanel>
</UserControl>