AnimatedTabControl Mouseup Event ERROR.

Topics: Prism v2 - WPF 3.5, Prism v2 - WPF 4, Prism v4 - WPF 4
Feb 7, 2012 at 1:39 AM


I'm using AnimatedTabcontrol. I got the code from StockTraderRI. I  use the code from control and resource folder. 

I have a problem.

1. Tab Event

Firstly I explain about Tab Event:

I have 3 tab. In My tabs have many controls. for some reason in my project i need to use tab click event but in Animatedtabcontrol dont have click event. so I chose Mouseup event. At there i got problem

for ex: 

       private void Order_MouseUp(object sender, MouseButtonEventArgs e)

         {            MessageBox.Show("Order_MouseUp");        }

Actually this mouse up event will fire when I click the Order Tab. BUT It fires all the controls in the Order tab.

for ex: In My order tab have controls like datagrid, label, textbox.... when i click datagird or label this order_mouseup is fired.

I never write any code for datagrid and label. why it is fire?

Could you please help to solve this problem? It's easy or complicated i dont know. but for me its complicated.




Feb 7, 2012 at 9:27 AM



I got it.

Sln: add code in datagrid mouseup event.

e.handled = true;