Author: miguel
Date: 2007-06-09 16:38:37 -0400 (Sat, 09 Jun 2007)
New Revision: 79071
Modified:
trunk/olive/class/agclr/Mono/Kind.cs
trunk/olive/class/agclr/System.Windows.Media/LineGeometry.cs
trunk/olive/class/agclr/System.Windows.Media/LineSegment.cs
trunk/olive/class/agclr/System.Windows.Media/LinearGradientBrush.cs
trunk/olive/class/agclr/System.Windows.Media/MatrixTransform.cs
trunk/olive/class/agclr/System.Windows.Media/PathFigure.cs
trunk/olive/class/agclr/System.Windows.Media/PathGeometry.cs
trunk/olive/class/agclr/System.Windows.Media/PolyBezierSegment.cs
trunk/olive/class/agclr/System.Windows.Media/PolyLineSegment.cs
trunk/olive/class/agclr/System.Windows.Media/PolyQuadraticBezierSegment.cs
trunk/olive/class/agclr/System.Windows.Media/QuadraticBezierSegment.cs
trunk/olive/class/agclr/System.Windows.Media/RotateTransform.cs
trunk/olive/class/agclr/System.Windows.Media/ScaleTransform.cs
trunk/olive/class/agclr/System.Windows.Media/TranslateTransform.cs
Log:
Do most of these, more are missing
Modified: trunk/olive/class/agclr/Mono/Kind.cs
===================================================================
--- trunk/olive/class/agclr/Mono/Kind.cs 2007-06-09 20:38:24 UTC (rev
79070)
+++ trunk/olive/class/agclr/Mono/Kind.cs 2007-06-09 20:38:37 UTC (rev
79071)
@@ -91,6 +91,7 @@
SOLIDCOLORBRUSH,
IMAGEBRUSH,
VIDEOBRUSH,
+ LINEARGRADIENTBRUSH,
GRADIENTBRUSH,
GRADIENTSTOP,
PATHFIGURE,
Modified: trunk/olive/class/agclr/System.Windows.Media/LineGeometry.cs
===================================================================
--- trunk/olive/class/agclr/System.Windows.Media/LineGeometry.cs
2007-06-09 20:38:24 UTC (rev 79070)
+++ trunk/olive/class/agclr/System.Windows.Media/LineGeometry.cs
2007-06-09 20:38:37 UTC (rev 79071)
@@ -25,13 +25,16 @@
// 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 Mono;
namespace System.Windows.Media {
public class LineGeometry : Geometry {
- public static readonly DependencyProperty EndPointProperty =
DependencyProperty.Register ("EndPoint", typeof (Point), typeof (LineGeometry));
- public static readonly DependencyProperty StartPointProperty =
DependencyProperty.Register ("StartPoint", typeof (Point), typeof
(LineGeometry));
+ public static readonly DependencyProperty EndPointProperty =
+ DependencyProperty.Lookup (Kind.LINEGEOMETRY,
"EndPoint");
+ public static readonly DependencyProperty StartPointProperty =
+ DependencyProperty.Lookup (Kind.LINEGEOMETRY,
"StartPoint");
public LineGeometry ()
{
Modified: trunk/olive/class/agclr/System.Windows.Media/LineSegment.cs
===================================================================
--- trunk/olive/class/agclr/System.Windows.Media/LineSegment.cs 2007-06-09
20:38:24 UTC (rev 79070)
+++ trunk/olive/class/agclr/System.Windows.Media/LineSegment.cs 2007-06-09
20:38:37 UTC (rev 79071)
@@ -25,14 +25,14 @@
// 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 Mono;
namespace System.Windows.Media {
public sealed class LineSegment : PathSegment {
static LineSegment ()
{
- PointProperty = DependencyProperty.Register (
- "Point", typeof (Point), typeof (LineSegment));
+ PointProperty = DependencyProperty.Lookup
(Kind.LINESEGMENT, "Point");
}
public LineSegment ()
Modified: trunk/olive/class/agclr/System.Windows.Media/LinearGradientBrush.cs
===================================================================
--- trunk/olive/class/agclr/System.Windows.Media/LinearGradientBrush.cs
2007-06-09 20:38:24 UTC (rev 79070)
+++ trunk/olive/class/agclr/System.Windows.Media/LinearGradientBrush.cs
2007-06-09 20:38:37 UTC (rev 79071)
@@ -25,13 +25,15 @@
// 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 Mono;
namespace System.Windows.Media {
public class LinearGradientBrush : GradientBrush {
- public static readonly DependencyProperty StartPointProperty =
DependencyProperty.Register ("StartPoint", typeof (Point), typeof
(LinearGradientBrush));
- public static readonly DependencyProperty EndPointProperty =
DependencyProperty.Register ("EndPoint", typeof (Point), typeof
(LinearGradientBrush));
+ public static readonly DependencyProperty StartPointProperty =
+ DependencyProperty.Lookup (Kind.LINEARGRADIENTBRUSH,
"StartPoint");
+ public static readonly DependencyProperty EndPointProperty =
+ DependencyProperty.Lookup (Kind.LINEARGRADIENTBRUSH,
"EndPoint");
public LinearGradientBrush ()
Modified: trunk/olive/class/agclr/System.Windows.Media/MatrixTransform.cs
===================================================================
--- trunk/olive/class/agclr/System.Windows.Media/MatrixTransform.cs
2007-06-09 20:38:24 UTC (rev 79070)
+++ trunk/olive/class/agclr/System.Windows.Media/MatrixTransform.cs
2007-06-09 20:38:37 UTC (rev 79071)
@@ -25,12 +25,13 @@
// 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 Mono;
namespace System.Windows.Media {
public class MatrixTransform : Transform {
- public static readonly DependencyProperty MatrixProperty =
DependencyProperty.Register ("Matrix", typeof (double), typeof
(MatrixTransform));
+ public static readonly DependencyProperty MatrixProperty =
+ DependencyProperty.Lookup (Kind.MATRIXTRANSFORM,
"Matrix");
public MatrixTransform ()
{
Modified: trunk/olive/class/agclr/System.Windows.Media/PathFigure.cs
===================================================================
--- trunk/olive/class/agclr/System.Windows.Media/PathFigure.cs 2007-06-09
20:38:24 UTC (rev 79070)
+++ trunk/olive/class/agclr/System.Windows.Media/PathFigure.cs 2007-06-09
20:38:37 UTC (rev 79071)
@@ -30,10 +30,14 @@
public class PathFigure : DependencyObject {
- public static readonly DependencyProperty IsClosedProperty =
DependencyProperty.Register ("IsClosed", typeof (bool), typeof (PathFigure));
- public static readonly DependencyProperty IsFilledProperty =
DependencyProperty.Register ("IsFilled", typeof (bool), typeof (PathFigure));
- public static readonly DependencyProperty SegmentsProperty =
DependencyProperty.Register ("Segments", typeof (PathSegmentCollection), typeof
(PathFigure));
- public static readonly DependencyProperty StartPointProperty =
DependencyProperty.Register ("StartPoint", typeof (Point), typeof (PathFigure));
+ public static readonly DependencyProperty IsClosedProperty =
+ DependencyProperty.Lookup (Kind.PATHFIGURE, "IsClosed");
+ public static readonly DependencyProperty IsFilledProperty =
+ DependencyProperty.Lookup (Kind.PATHFIGURE, "IsFilled");
+ public static readonly DependencyProperty SegmentsProperty =
+ DependencyProperty.Lookup (Kind.PATHFIGURE, "Segments");
+ public static readonly DependencyProperty StartPointProperty =
+ DependencyProperty.Lookup (Kind.PATHFIGURE,
"StartPoint");
public PathFigure ()
{
Modified: trunk/olive/class/agclr/System.Windows.Media/PathGeometry.cs
===================================================================
--- trunk/olive/class/agclr/System.Windows.Media/PathGeometry.cs
2007-06-09 20:38:24 UTC (rev 79070)
+++ trunk/olive/class/agclr/System.Windows.Media/PathGeometry.cs
2007-06-09 20:38:37 UTC (rev 79071)
@@ -25,12 +25,13 @@
// 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 Mono;
namespace System.Windows.Media {
public class PathGeometry : Geometry {
- public static readonly DependencyProperty FiguresProperty =
DependencyProperty.Register ("Figures", typeof (PathFigureCollection), typeof
(PathGeometry));
+ public static readonly DependencyProperty FiguresProperty =
+ DependencyProperty.Lookup (Kind.PATHGEOMETRY,
"Figures");
public PathGeometry ()
{
Modified: trunk/olive/class/agclr/System.Windows.Media/PolyBezierSegment.cs
===================================================================
--- trunk/olive/class/agclr/System.Windows.Media/PolyBezierSegment.cs
2007-06-09 20:38:24 UTC (rev 79070)
+++ trunk/olive/class/agclr/System.Windows.Media/PolyBezierSegment.cs
2007-06-09 20:38:37 UTC (rev 79071)
@@ -31,8 +31,7 @@
static PolyBezierSegment ()
{
- PointsProperty = DependencyProperty.Register (
- "Points", typeof (Point []), typeof
(PolyBezierSegment));
+ PointsProperty = DependencyProperty.Lookup
(Kind.POLYBEZIERSEGMENT, "Points");
}
public PolyBezierSegment ()
Modified: trunk/olive/class/agclr/System.Windows.Media/PolyLineSegment.cs
===================================================================
--- trunk/olive/class/agclr/System.Windows.Media/PolyLineSegment.cs
2007-06-09 20:38:24 UTC (rev 79070)
+++ trunk/olive/class/agclr/System.Windows.Media/PolyLineSegment.cs
2007-06-09 20:38:37 UTC (rev 79071)
@@ -32,8 +32,7 @@
static PolyLineSegment ()
{
- PointsProperty = DependencyProperty.Register (
- "Points", typeof (Point []), typeof
(PolyLineSegment));
+ PointsProperty = DependencyProperty.Lookup
(Kind.POLYLINESEGMENT, "Points");
}
public PolyLineSegment ()
Modified:
trunk/olive/class/agclr/System.Windows.Media/PolyQuadraticBezierSegment.cs
===================================================================
--- trunk/olive/class/agclr/System.Windows.Media/PolyQuadraticBezierSegment.cs
2007-06-09 20:38:24 UTC (rev 79070)
+++ trunk/olive/class/agclr/System.Windows.Media/PolyQuadraticBezierSegment.cs
2007-06-09 20:38:37 UTC (rev 79071)
@@ -25,14 +25,14 @@
// 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 Mono;
namespace System.Windows.Media {
public sealed class PolyQuadraticBezierSegment : PathSegment {
static PolyQuadraticBezierSegment ()
{
- PointsProperty = DependencyProperty.Register (
- "Points", typeof (Point []), typeof
(PolyQuadraticBezierSegment));
+ PointsProperty = DependencyProperty.Lookup (
+ Kind.POLYQUADRATICBEZIERSEGMENT, "Points");
}
public PolyQuadraticBezierSegment ()
Modified: trunk/olive/class/agclr/System.Windows.Media/QuadraticBezierSegment.cs
===================================================================
--- trunk/olive/class/agclr/System.Windows.Media/QuadraticBezierSegment.cs
2007-06-09 20:38:24 UTC (rev 79070)
+++ trunk/olive/class/agclr/System.Windows.Media/QuadraticBezierSegment.cs
2007-06-09 20:38:37 UTC (rev 79071)
@@ -25,13 +25,15 @@
// 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 Mono;
namespace System.Windows.Media {
public class QuadraticBezierSegment : PathSegment {
- public static readonly DependencyProperty Point1Property =
DependencyProperty.Register ("Point1", typeof (Point), typeof
(QuadraticBezierSegment));
- public static readonly DependencyProperty Point2Property =
DependencyProperty.Register ("Point2", typeof (Point), typeof
(QuadraticBezierSegment));
+ public static readonly DependencyProperty Point1Property =
+ DependencyProperty.Lookup (Kind.QUADRATICBEZIERSEGMENT,
"Point1");
+ public static readonly DependencyProperty Point2Property =
+ DependencyProperty.Lookup (Kind.QUADRATICBEZIERSEGMENT,
"Point2");
public QuadraticBezierSegment ()
{
Modified: trunk/olive/class/agclr/System.Windows.Media/RotateTransform.cs
===================================================================
--- trunk/olive/class/agclr/System.Windows.Media/RotateTransform.cs
2007-06-09 20:38:24 UTC (rev 79070)
+++ trunk/olive/class/agclr/System.Windows.Media/RotateTransform.cs
2007-06-09 20:38:37 UTC (rev 79071)
@@ -25,16 +25,19 @@
// 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 Mono;
namespace System.Windows.Media {
public class RotateTransform : Transform {
- public static readonly DependencyProperty AngleProperty =
DependencyProperty.Register ("Angle", typeof (double), typeof
(RotateTransform));
- public static readonly DependencyProperty CenterXProperty =
DependencyProperty.Register ("CenterX", typeof (double), typeof
(RotateTransform));
- public static readonly DependencyProperty CenterYProperty =
DependencyProperty.Register ("CenterY", typeof (double), typeof
(RotateTransform));
+ public static readonly DependencyProperty AngleProperty =
+ DependencyProperty.Lookup (Kind.ROTATETRANSFORM,
"Angle");
+ public static readonly DependencyProperty CenterXProperty =
+ DependencyProperty.Lookup (Kind.ROTATETRANSFORM,
"CenterX");
+ public static readonly DependencyProperty CenterYProperty =
+ DependencyProperty.Lookup (Kind.ROTATETRANSFORM,
"CenterY");
-
public RotateTransform ()
{
native = Mono.NativeMethods.rotate_transform_new ();
Modified: trunk/olive/class/agclr/System.Windows.Media/ScaleTransform.cs
===================================================================
--- trunk/olive/class/agclr/System.Windows.Media/ScaleTransform.cs
2007-06-09 20:38:24 UTC (rev 79070)
+++ trunk/olive/class/agclr/System.Windows.Media/ScaleTransform.cs
2007-06-09 20:38:37 UTC (rev 79071)
@@ -25,17 +25,20 @@
// 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 Mono;
namespace System.Windows.Media {
public class ScaleTransform : Transform {
- public static readonly DependencyProperty CenterXProperty =
DependencyProperty.Register ("CenterX", typeof (double), typeof
(ScaleTransform));
- public static readonly DependencyProperty CenterYProperty =
DependencyProperty.Register ("CenterY", typeof (double), typeof
(ScaleTransform));
- public static readonly DependencyProperty ScaleXProperty =
DependencyProperty.Register ("ScaleX", typeof (double), typeof
(ScaleTransform));
- public static readonly DependencyProperty ScaleYProperty =
DependencyProperty.Register ("ScaleY", typeof (double), typeof
(ScaleTransform));
+ public static readonly DependencyProperty CenterXProperty =
+ DependencyProperty.Lookup (Kind.SCALETRANSFORM,
"CenterX");
+ public static readonly DependencyProperty CenterYProperty =
+ DependencyProperty.Lookup (Kind.SCALETRANSFORM,
"CenterY");
+ public static readonly DependencyProperty ScaleXProperty =
+ DependencyProperty.Lookup (Kind.SCALETRANSFORM,
"ScaleX");
+ public static readonly DependencyProperty ScaleYProperty =
+ DependencyProperty.Lookup (Kind.SCALETRANSFORM,
"ScaleY");
-
public ScaleTransform ()
{
native = Mono.NativeMethods.scale_transform_new ();
Modified: trunk/olive/class/agclr/System.Windows.Media/TranslateTransform.cs
===================================================================
--- trunk/olive/class/agclr/System.Windows.Media/TranslateTransform.cs
2007-06-09 20:38:24 UTC (rev 79070)
+++ trunk/olive/class/agclr/System.Windows.Media/TranslateTransform.cs
2007-06-09 20:38:37 UTC (rev 79071)
@@ -25,13 +25,16 @@
// 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 Mono;
namespace System.Windows.Media {
public class TranslateTransform : Transform {
- public static readonly DependencyProperty XProperty =
DependencyProperty.Register ("X", typeof (double), typeof (TranslateTransform));
- public static readonly DependencyProperty YProperty =
DependencyProperty.Register ("Y", typeof (double), typeof (TranslateTransform));
+ public static readonly DependencyProperty XProperty =
+ DependencyProperty.Lookup (Kind.TRANSLATETRANSFORM,
"X");
+ public static readonly DependencyProperty YProperty =
+ DependencyProperty.Lookup (Kind.TRANSLATETRANSFORM,
"Y");
public TranslateTransform ()
{
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches