I want to have a mouse over effect when the mose passes a marker of a ScatterSeries preferrable by Code similar as the xamDataChart "Series Highlighting on Legend Hover" example in the WPF Samples Browser.
Regards Horst
Hello Teodosia,
Thank you for the example. I should have been more verbose explaining what I wanted to acheeve…
I wanted the mouse over effect on a single maker the mouse is over. The sample supplied sets the effect to all the markers.
How can the effect be only applied to the marker under the mouse cursor?
<Style x:Key="myStyle" TargetType="{x:Type ig:Marker}" > <EventSetter Event="MouseEnter" Handler="Marker_MouseEnter"></EventSetter> <EventSetter Event="MouseLeave" Handler="Marker_MouseLeave"></EventSetter> </Style>
private void Marker_MouseEnter(object sender, MouseEventArgs e) { (sender as Marker).Opacity = 0.5; } private void Marker_MouseLeave(object sender, MouseEventArgs e) { (sender as Marker).Opacity = 1; }
thank you for the update. It works as expected.
I think the previous Approach did not work with Scatterline because the Style assigned to the marker defined in "generic.shared.xaml" is already defing a VisualStateManager using "MouseOver"
thank you for the update. I do not see any reason why this property should be set local. Your developer Team might rethink this Setting.
Anyway it works with your Approach...
Thank you for your help.
Hello Horst,
I am glad that you managed to achieve your requirement using my approach.
Thank you for using Infragistics components.
Sincerely,Teodosia HristodorovaAssociate Software Developer