Commit 64bc64c4 authored by Tigermeet's avatar Tigermeet

Add VideoView's DataContext passthrough to Foreground window's DataContext

This allows video overlaying elements inside XAML <VideoView> tag to be data bound to viewmodel's properties in MVVM scenarios.
parent 7689ed10
......@@ -60,7 +60,8 @@ namespace LibVLCSharp.WPF
ForegroundWindow = new ForegroundWindow(windowsFormsHost)
Content = ViewContent
Content = ViewContent,
DataContext = windowsFormsHost.DataContext
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment