Author: miguel
Date: 2007-06-19 13:57:39 -0400 (Tue, 19 Jun 2007)
New Revision: 80214

Modified:
   trunk/olive/class/agclr/Mono/NativeMethods.cs
   trunk/olive/class/agclr/System.Windows.Documents/Run.cs
Log:
Add missing properties to Run

Modified: trunk/olive/class/agclr/Mono/NativeMethods.cs
===================================================================
--- trunk/olive/class/agclr/Mono/NativeMethods.cs       2007-06-19 17:57:18 UTC 
(rev 80213)
+++ trunk/olive/class/agclr/Mono/NativeMethods.cs       2007-06-19 17:57:39 UTC 
(rev 80214)
@@ -158,6 +158,9 @@
 
                [DllImport("moon")]
                internal extern static IntPtr text_block_new ();
+
+               [DllImport("moon")]
+               internal extern static IntPtr run_new ();
 #endregion
 
 #region Documents

Modified: trunk/olive/class/agclr/System.Windows.Documents/Run.cs
===================================================================
--- trunk/olive/class/agclr/System.Windows.Documents/Run.cs     2007-06-19 
17:57:18 UTC (rev 80213)
+++ trunk/olive/class/agclr/System.Windows.Documents/Run.cs     2007-06-19 
17:57:39 UTC (rev 80214)
@@ -31,9 +31,12 @@
 namespace System.Windows.Documents {
 
        public class Run : Inline {
-               // FIXME: do we need another PInvoke?
-               public Run ()
+               public static readonly DependencyProperty TextProperty =
+                       DependencyProperty.Lookup (Kind.RUN, "Text", typeof 
(string));
+
+               public Run () : base (NativeMethods.run_new ())
                {
+                       NativeMethods.base_ref (native);
                }
                
                internal Run (IntPtr raw) : base (raw)
@@ -44,5 +47,16 @@
                {
                        return Kind.RUN;
                }
+
+               public string Text {
+                       get {
+                               return (string) GetValue (TextProperty);
+                       }
+                       
+                       set {
+                               SetValue (TextProperty, value);
+                       }
+               }
+               
        }
 }

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

Reply via email to