Author: rolf
Date: 2007-10-10 13:50:48 -0400 (Wed, 10 Oct 2007)
New Revision: 87285

Modified:
   trunk/olive/class/agclr/System.Windows.Media/ChangeLog
   trunk/olive/class/agclr/System.Windows.Media/Visual.cs
Log:
* System.Windows.Media/Visual.cs: Set the surface of the visual upon
  creation.

Modified: trunk/olive/class/agclr/System.Windows.Media/ChangeLog
===================================================================
--- trunk/olive/class/agclr/System.Windows.Media/ChangeLog      2007-10-10 
17:48:25 UTC (rev 87284)
+++ trunk/olive/class/agclr/System.Windows.Media/ChangeLog      2007-10-10 
17:50:48 UTC (rev 87285)
@@ -1,3 +1,7 @@
+2007-10-10  Rolf Bjarne Kvinge <[EMAIL PROTECTED]> 
+
+       * Visual.cs: Set the surface of the visual upon creation.
+
 2007-09-27  Rolf Bjarne Kvinge <[EMAIL PROTECTED]> 
 
        * RadialGradientBrush.cs, PolyLineSegment.cs, GradientStopCollection.cs,

Modified: trunk/olive/class/agclr/System.Windows.Media/Visual.cs
===================================================================
--- trunk/olive/class/agclr/System.Windows.Media/Visual.cs      2007-10-10 
17:48:25 UTC (rev 87284)
+++ trunk/olive/class/agclr/System.Windows.Media/Visual.cs      2007-10-10 
17:50:48 UTC (rev 87285)
@@ -26,16 +26,19 @@
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
 using Mono;
+using Mono.Xaml;
 
 namespace System.Windows.Media {
        public abstract class Visual : DependencyObject {
 
                internal Visual (IntPtr raw) : base (raw)
                {
+                       NativeMethods.visual_set_surface (raw, 
XamlLoader.SurfaceInDomain);
                }
                
                public Visual () : base (NativeMethods.visual_new ())
                {
+                       NativeMethods.visual_set_surface (native, 
XamlLoader.SurfaceInDomain);
                }
 
                public bool CaptureMouse ()

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

Reply via email to