Author: alanmc
Date: 2008-02-05 16:12:06 -0500 (Tue, 05 Feb 2008)
New Revision: 94951

Modified:
   trunk/lunareclipse/Model/Draw/Selector.cs
Log:
Workaround for issue where events don't fire if stroke is not set

Modified: trunk/lunareclipse/Model/Draw/Selector.cs
===================================================================
--- trunk/lunareclipse/Model/Draw/Selector.cs   2008-02-05 21:03:53 UTC (rev 
94950)
+++ trunk/lunareclipse/Model/Draw/Selector.cs   2008-02-05 21:12:06 UTC (rev 
94951)
@@ -344,6 +344,11 @@
                                        if(e == null)
                                                continue;
                                        
+                                       if (e.GetValue (Shape.FillProperty) == 
null)
+                                               e.SetValue (Shape.FillProperty, 
new SolidColorBrush(Colors.Transparent));
+                                       if (e.GetValue (Shape.StrokeProperty) 
== null)
+                                               e.SetValue 
(Shape.StrokeProperty, new SolidColorBrush(Colors.Transparent));
+                                       
                                        Console.WriteLine("Hooking into: {0}", 
e.Name);
                                        e.MouseLeftButtonDown += new 
MouseEventHandler(ClickedOnVisual);
                                }

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to