Travail sur le control List Video et comunication entre ListVideo et FingersDance
<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"
x:Class="FingersDance.Control.ListVideo.UserControlListVideo"
x:Name="UserControl"
Width="404" Height="272.56" xmlns:Custom="http://schemas.microsoft.com/surface/2008" Background="{x:Null}">
<Grid x:Name="LayoutRoot" Width="{Binding Path=ActualWidth, ElementName=UserControl, Mode=Default}" Height="{Binding Path=ActualHeight, ElementName=UserControl, Mode=Default}">
<Custom:SurfaceListBox IsSynchronizedWithCurrentItem="True" Background="{x:Null}" ScrollViewer.VerticalScrollBarVisibility="Hidden" Width="{Binding Path=ActualWidth, ElementName=UserControl, Mode=Default}" Height="{Binding Path=ActualHeight, ElementName=UserControl, Mode=Default}" x:Name="ListBoxVideos">
<StackPanel Width="404" Height="272.56" Orientation="Horizontal" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" x:Name="StackPanel">
<Custom:SurfaceListBoxItem Width="200" Height="200" Background="#00FFFFFF" x:Name="ItemVideo1" ContactDown="ItemVideo1_ContactDown" Selected="ItemVideo1_Selected" ContactTapGesture="ItemVideo1_ContactTapGesture">
<Image Width="200" Height="200" Source="Butterfly.jpg"/>
</Custom:SurfaceListBoxItem>
<Custom:SurfaceListBoxItem Width="200" Height="200" x:Name="ItemVideo2" ContactDown="ItemVideo2_ContactDown">
<Image Width="200" Height="200" Source="Lake.jpg"/>
</Custom:SurfaceListBoxItem>
</StackPanel>
</Custom:SurfaceListBox>
</Grid>
</UserControl>