ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

wpf multh thread ui , not fire graph PlotAreaMouseLeftButtonUp

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

0 Kudos
Message 1 of 2
(3,392 Views)

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).

~ Paul H
0 Kudos
Message 2 of 2
(3,372 Views)