Answer the question
In order to leave comments, you need to log in
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>
myMediaElement.Source = new Uri(_paths[0]);
myMediaElement.Play();
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question