Answer the question
In order to leave comments, you need to log in
WPF, how to correctly throw a MediaElement into a VM for testing?
Hello everyone,
Technologies: C#, WPF, Moq, NUnit, MVVM and some TDD :)
There is a MediaElement that plays a bit of video (logo and demo) a little. It is done following the example from StackOverflow.
XAML:
<ContentControl
x:Name="MediaElement"
Content="{Binding MediaElementObject}"/>
public MediaElement MediaElementObject
{
get { return _mediaElementObject; }
set { _mediaElementObject = value; OnPropertyChanged(); }
}
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