I'm developing this multitouch app in WPF with visual studio 2010.
I have the follow problem:
I'm trying to use the rotate,scaling and other effect with multitouch (like gallery in ipad style).
Can anyone tell me how to do that with a MEDIA ELEMENT?For the image as you see i haven't problem,and the rotate/scaling works fine.
The source is the follow:
<Window x:Class="TouchRect.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="clr-namespace:TouchRect"
Title="MainWindow" Height="600" Width="800">
<Grid Width="auto">
<local:RulerCanvas x:Name="canvas" >
<!--<ListBox ScrollViewer.HorizontalScrollBarVisibility="Disabled" Height="215" Width="736">
<ListBox.ItemsPanel>
<ItemsPanelTemplate>
<UniformGrid Columns="3" HorizontalAlignment="Center" VerticalAlignment="Stretch"/>
</ItemsPanelTemplate>
</ListBox.ItemsPanel>-->
<Image x:Name="image3" Width="74" Height="49" IsManipulationEnabled="True" Source="flower3.jpg" Canvas.Left="239" Canvas.Top="-273">
<Image.RenderTransform>
<MatrixTransform Matrix="2.41806325085411,0,0,2.41806325085411,280.737615796121,292.420001677231" />
</Image.RenderTransform>
</Image>
<Image x:Name="image2" Width="64" Height="49" IsManipulationEnabled="True" Source="flower2.jpg" VerticalAlignment="Stretch" Canvas.Left="-236" Canvas.Top="-272">
<Image.RenderTransform>
<MatrixTransform Matrix="2.41806325085411,0,0,2.41806325085411,280.737615796121,292.420001677231"/>
</Image.RenderTransform>
</Image>
<StackPanel Orientation="Horizontal" Margin="0,10,0,0"></StackPanel>
<Image x:Name="image" Width="74" Height="49" IsManipulationEnabled="True" Source="flower.jpg" Stretch="Fill" HorizontalAlignment="Center" Canvas.Left="-7" Canvas.Top="-271">
<Image.RenderTransform>
<MatrixTransform Matrix="2.41806325085411,0,0,2.41806325085411,280.737615796121,292.420001677231" />
</Image.RenderTransform>
</Image>
<MediaElement x:Name="media" Source="C:\Users\Public\Videos\Sample Videos\Wildlife.wmv" Width="633" Height="366" Canvas.Left="65" Canvas.Top="164" LoadedBehavior="Manual" IsManipulationEnabled="True" />
<!--</ListBox>-->
</local:RulerCanvas>
</Grid>
Thanks a lot!