Author: spouliot
Date: 2007-06-01 10:47:47 -0400 (Fri, 01 Jun 2007)
New Revision: 78410

Added:
   trunk/olive/class/agclr/System.Windows.Shapes/
   trunk/olive/class/agclr/System.Windows.Shapes/Ellipse.cs
   trunk/olive/class/agclr/System.Windows.Shapes/Rectangle.cs
   trunk/olive/class/agclr/System.Windows.Shapes/Shape.cs
Log:


Added: trunk/olive/class/agclr/System.Windows.Shapes/Ellipse.cs
===================================================================
--- trunk/olive/class/agclr/System.Windows.Shapes/Ellipse.cs    2007-06-01 
14:36:14 UTC (rev 78409)
+++ trunk/olive/class/agclr/System.Windows.Shapes/Ellipse.cs    2007-06-01 
14:47:47 UTC (rev 78410)
@@ -0,0 +1,37 @@
+//
+// System.Windows.Shapes.Ellipse
+//
+// Authors:
+//     Sebastien Pouliot  <[EMAIL PROTECTED]>
+//
+// Copyright (C) 2007 Novell, Inc (http://www.novell.com)
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+//
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+
+namespace System.Windows.Shapes {
+
+       public class Ellipse : Shape {
+
+               public Ellipse ()
+               {
+               }
+       }
+}

Added: trunk/olive/class/agclr/System.Windows.Shapes/Rectangle.cs
===================================================================
--- trunk/olive/class/agclr/System.Windows.Shapes/Rectangle.cs  2007-06-01 
14:36:14 UTC (rev 78409)
+++ trunk/olive/class/agclr/System.Windows.Shapes/Rectangle.cs  2007-06-01 
14:47:47 UTC (rev 78410)
@@ -0,0 +1,50 @@
+//
+// System.Windows.Shapes.Rectangle
+//
+// Authors:
+//     Sebastien Pouliot  <[EMAIL PROTECTED]>
+//
+// Copyright (C) 2007 Novell, Inc (http://www.novell.com)
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+//
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+
+namespace System.Windows.Shapes {
+
+       public class Rectangle : Shape {
+
+               public static readonly DependencyProperty RadiusXProperty = 
DependencyProperty.Register ("RadiusXProperty", typeof (double), typeof 
(Rectangle));
+               public static readonly DependencyProperty RadiusYProperty = 
DependencyProperty.Register ("RadiusYProperty", typeof (double), typeof 
(Rectangle));
+
+               public Rectangle ()
+               {
+               }
+
+               public double RadiusX {
+                       get { return (double) GetValue (RadiusXProperty); }
+                       set { SetValue (RadiusXProperty, value); }
+               }
+
+               public double RadiusY {
+                       get { return (double) GetValue (RadiusYProperty); }
+                       set { SetValue (RadiusYProperty, value); }
+               }
+       }
+}

Added: trunk/olive/class/agclr/System.Windows.Shapes/Shape.cs
===================================================================
--- trunk/olive/class/agclr/System.Windows.Shapes/Shape.cs      2007-06-01 
14:36:14 UTC (rev 78409)
+++ trunk/olive/class/agclr/System.Windows.Shapes/Shape.cs      2007-06-01 
14:47:47 UTC (rev 78410)
@@ -0,0 +1,58 @@
+//
+// System.Windows.Shapes.Shape
+//
+// Authors:
+//     Sebastien Pouliot  <[EMAIL PROTECTED]>
+//
+// Copyright (C) 2007 Novell, Inc (http://www.novell.com)
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+//
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+
+using System.Windows.Media;
+
+namespace System.Windows.Shapes {
+
+       public abstract class Shape : FrameworkElement {
+
+               public static readonly DependencyProperty FillProperty = 
DependencyProperty.Register ("Fill", typeof (Brush), typeof (Shape));
+               public static readonly DependencyProperty StrokeProperty = 
DependencyProperty.Register ("Stroke", typeof (Brush), typeof (Shape));
+               public static readonly DependencyProperty 
StrokeThicknessProperty = DependencyProperty.Register ("StrokeThickness", 
typeof (double), typeof (Shape));
+
+               public Shape ()
+               {
+               }
+
+               public Brush Fill {
+                       get { return (Brush) GetValue (FillProperty); }
+                       set { SetValue (FillProperty, value); }
+               }
+
+               public Brush Stroke {
+                       get { return (Brush) GetValue (StrokeProperty); }
+                       set { SetValue (StrokeProperty, value); }
+               }
+
+               public double StrokeThickness {
+                       get { return (double) GetValue 
(StrokeThicknessProperty); }
+                       set { SetValue (StrokeThicknessProperty, value); }
+               }
+       }
+}

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

Reply via email to