A
A
Alexander Ter2017-05-17 19:26:42
WPF
Alexander Ter, 2017-05-17 19:26:42

WPF video is displayed on one monitor out of three, how to expand the image to all?

There are three monitors connected by nvidia surround, here is the code:

<Window x:Class="Motion.MainWindow"
        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"
        xmlns:local="clr-namespace:Motion"
        mc:Ignorable="d"
        Title="MainWindow" 
        WindowState="Maximized"
        WindowStyle="None"
        KeyDown="OnKeyDownHandler"
        Loaded="Window_Loaded">
    <Border Background="Black">
        <MediaElement Name="myMediaElement" 
                  Volume="1" 
                  LoadedBehavior="Manual"
                  UnloadedBehavior="Manual"  
                  Stretch="Uniform"
                  MediaEnded="myMediaElement_MediaEnded"/>
    </Border>
</Window>

Start is carried out
myMediaElement.Source = new Uri(_paths[0]);         
myMediaElement.Play();

But the image is only on one monitor. Tried on winForm + vlc , but it's the same there.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question