Event happening twice

I'm building a custom panel and some floating windows
And the weird thing is that in the floatign window every event is happenign twice and I don't know why.

I'm putting the panel that i use in the application in a window wich has this properties:
this.ShowInTaskbar = false;
this.WindowStyle = WindowStyle.None;
this.AllowsTransparency = true;
this.Background = Brushes.Transparent;
this.SizeToContent = SizeToContent.WidthAndHeight;
I have a boolean variable that it tells me when the panel is floating;
so i can handle the event differently and i don't know why every event is happeing twice

any ideeas?

[652 byte] By [ClaudiuChiorean] at [2007-12-24]

Visual Studio Orcas

Site Classified