Click here to Skip to main content
15,921,697 members
Home / Discussions / WPF
   

WPF

 
QuestionWindows Appl Pin
RishiKasnia20-Nov-08 1:35
RishiKasnia20-Nov-08 1:35 
AnswerRe: Windows Appl Pin
Pete O'Hanlon20-Nov-08 2:26
mvePete O'Hanlon20-Nov-08 2:26 
QuestionMultiple views Pin
Jozef Hopko19-Nov-08 0:00
Jozef Hopko19-Nov-08 0:00 
AnswerRe: Multiple views Pin
Gideon Engelberth19-Nov-08 3:25
Gideon Engelberth19-Nov-08 3:25 
GeneralRe: Multiple views Pin
Jozef Hopko19-Nov-08 11:52
Jozef Hopko19-Nov-08 11:52 
GeneralRe: Multiple views Pin
ColinM12319-Nov-08 17:40
ColinM12319-Nov-08 17:40 
QuestionCheckedComboBox Control in WPF Pin
aruna_koride18-Nov-08 16:18
aruna_koride18-Nov-08 16:18 
QuestionSilverLIght Initialization Error Pin
abeesmuhammed17-Nov-08 19:10
abeesmuhammed17-Nov-08 19:10 
AnswerRe: SilverLIght Initialization Error Pin
Ravi Bhavnani26-Nov-08 12:43
professionalRavi Bhavnani26-Nov-08 12:43 
QuestionWPF faster DrawingVisuals initialization. Pin
Polykar17-Nov-08 2:01
Polykar17-Nov-08 2:01 
AnswerRe: WPF faster DrawingVisuals initialization. Pin
lneir17-Nov-08 19:48
lneir17-Nov-08 19:48 
GeneralRe: WPF faster DrawingVisuals initialization. Pin
Polykar17-Nov-08 20:54
Polykar17-Nov-08 20:54 
QuestionGet element positions Pin
Not Active16-Nov-08 18:33
mentorNot Active16-Nov-08 18:33 
AnswerRe: Get element positions Pin
Michael Sync16-Nov-08 18:57
Michael Sync16-Nov-08 18:57 
GeneralRe: Get element positions Pin
Not Active16-Nov-08 18:59
mentorNot Active16-Nov-08 18:59 
GeneralLearning WPF Pin
ColinM12316-Nov-08 11:11
ColinM12316-Nov-08 11:11 
GeneralRe: Learning WPF Pin
Pete O'Hanlon16-Nov-08 11:18
mvePete O'Hanlon16-Nov-08 11:18 
QuestionDataGrid Pin
VisualLive16-Nov-08 5:33
VisualLive16-Nov-08 5:33 
QuestionAdvanced masking - Interlacing 3 video inputs into a single image [modified] Pin
Graeme_Grant16-Nov-08 2:14
mvaGraeme_Grant16-Nov-08 2:14 
AnswerRe: Advanced masking - Interlacing 3 video inputs into a single image Pin
Insincere Dave16-Nov-08 8:57
Insincere Dave16-Nov-08 8:57 
GeneralRe: Advanced masking - Interlacing 3 video inputs into a single image Pin
Graeme_Grant16-Nov-08 9:39
mvaGraeme_Grant16-Nov-08 9:39 
GeneralRe: Advanced masking - Interlacing 3 video inputs into a single image Pin
Insincere Dave18-Nov-08 5:56
Insincere Dave18-Nov-08 5:56 
GeneralRe: Advanced masking - Interlacing 3 video inputs into a single image [modified] Pin
Graeme_Grant19-Nov-08 1:35
mvaGraeme_Grant19-Nov-08 1:35 
Insincere Dave wrote:
If you replace the coloured rectangles with mediaelements you should be able to do it. I don't know about the performance though.


I've changed your initial sample code to mediaelemets and added video. When run in 1200 x 600 (due to my Notebook PC screen resolution limitation) with a LayoutTransform applied to rotate the video from landscape to portrait, the CPU load when run in the IDE in Debug Mode is 42~47%... I'll load up FHD (1920 x 1080) video in the office tomorrow and will measure the load again... Somehow I don't think it will be a problem.

Revised test XAML used:

<Window x:Class="TestWPF___TripleView.Window1"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="Window1" Width="1200" Height="600" 
    WindowStyle="None" ResizeMode="NoResize" WindowStartupLocation="CenterScreen" Background="Black">
    <Canvas SnapsToDevicePixels="True" Loaded="WindowLoaded">
        <MediaElement Width="600" Height="1200" 
                      Source=".\Video\1.mpg" 
                      x:Name="r" 
                      Stretch="Fill">
            <MediaElement.LayoutTransform>
                <TransformGroup>
                    <ScaleTransform ScaleX="1" ScaleY="1"/>
                    <RotateTransform Angle="-90"/>
                </TransformGroup>
            </MediaElement.LayoutTransform>
        </MediaElement>
        <MediaElement Width="600" Height="1200" 
                      Source=".\Video\2.wmv" 
                      x:Name="g" 
                      Stretch="Fill">
            <MediaElement.LayoutTransform>
                <TransformGroup>
                    <ScaleTransform ScaleX="1" ScaleY="1"/>
                    <RotateTransform Angle="-90"/>
                </TransformGroup>
            </MediaElement.LayoutTransform>
        </MediaElement>
        <MediaElement Width="600" Height="1200" 
                      Source=".\Video\3.mpg" 
                      x:Name="b" 
                      Stretch="Fill">
            <MediaElement.LayoutTransform>
                <TransformGroup>
                    <ScaleTransform ScaleX="1" ScaleY="1"/>
                    <RotateTransform Angle="-90"/>
                </TransformGroup>
            </MediaElement.LayoutTransform>
        </MediaElement>
    </Canvas>
</Window>


Mate... You are an absolute legend! Big Grin | :-D

Graeme

modified on Wednesday, November 19, 2008 7:47 AM

QuestionWPF Binding to an attached property from a DataTemplate [modified] Pin
Mark Salsbery14-Nov-08 13:13
Mark Salsbery14-Nov-08 13:13 
AnswerRe: WPF Binding to an attached property from a DataTemplate Pin
Timmy Kokke14-Nov-08 13:46
Timmy Kokke14-Nov-08 13:46 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.