10-05-2016 02:37 AM
Code in
PointGraphicsReal.xml
<ni:Graph Grid.Row="0" Grid.Column="0" x:Name="graph" DefaultInteraction="Pan" RenderMode="Hardware" PlotAreaBackground="Black" Interactions="{x:Null}" PlotAreaMouseLeftButtonUp="graph_PlotAreaMouseLeftButtonUp" >
PointGraphicsReal.cs
private void graph_PlotAreaMouseLeftButtonUp(object sender, MouseButtonEventArgs e)
{
// not fire
}
full code in TestMultiThreadMouseEvent.zip
thank you
10-05-2016 01:49 PM
Going back to the links in the original multi-threaded control question, I believe you may need to hookup more WPF infrastructure in order to deliver and receive UI events correctly. For example, see the “Input” section of Hosting WPF UI cross-thread and cross-process (found through Create a WPF “control” that is run in an external process).