Author: miguel
Date: 2007-06-09 19:26:23 -0400 (Sat, 09 Jun 2007)
New Revision: 79086
Modified:
trunk/olive/class/agclr/System.Windows.Controls/Canvas.cs
trunk/olive/class/agclr/System.Windows.Controls/Panel.cs
trunk/olive/class/agclr/System.Windows.Media/ArcSegment.cs
trunk/olive/class/agclr/System.Windows.Media/BezierSegment.cs
trunk/olive/class/agclr/System.Windows.Media/Brush.cs
trunk/olive/class/agclr/System.Windows.Media/EllipseGeometry.cs
trunk/olive/class/agclr/System.Windows.Media/Geometry.cs
trunk/olive/class/agclr/System.Windows.Media/GeometryGroup.cs
trunk/olive/class/agclr/System.Windows.Media/GradientBrush.cs
trunk/olive/class/agclr/System.Windows.Media/GradientStop.cs
trunk/olive/class/agclr/System.Windows.Media/ImageBrush.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/SolidColorBrush.cs
trunk/olive/class/agclr/System.Windows.Media/TranslateTransform.cs
trunk/olive/class/agclr/System.Windows.Media/VideoBrush.cs
trunk/olive/class/agclr/System.Windows.Shapes/Rectangle.cs
trunk/olive/class/agclr/System.Windows.Shapes/Shape.cs
trunk/olive/class/agclr/System.Windows/DependencyObject.cs
trunk/olive/class/agclr/System.Windows/DependencyProperty.cs
trunk/olive/class/agclr/System.Windows/FrameworkElement.cs
trunk/olive/class/agclr/System.Windows/UIElement.cs
Log:
Ok, fix Lookup so that we register the proper type, and can
use this to perform type conversion in SetValue
Modified: trunk/olive/class/agclr/System.Windows/DependencyObject.cs
===================================================================
--- trunk/olive/class/agclr/System.Windows/DependencyObject.cs 2007-06-09
23:09:41 UTC (rev 79085)
+++ trunk/olive/class/agclr/System.Windows/DependencyObject.cs 2007-06-09
23:26:23 UTC (rev 79086)
@@ -268,6 +268,7 @@
return value;
}
+
//
// This signature seems incredibly painful, why make
// it generic if we still have to dig into its
@@ -275,6 +276,15 @@
// awesome about it. Perhaps for derived classes it
// would be awesome? as it stands its just annoying.
//
+
+ //
+ // SetValue differs from SetValue in that the caller
+ // code has ensured the proper type is being passed (which
+ // is already the case for anything that is a setter as the
+ // setters are strongly typed)
+ //
+ // External users go through SetValue that can do conversions.
+ //
public virtual void SetValue<T> (DependencyProperty property, T
obj)
{
if (property == null)
@@ -290,7 +300,12 @@
return;
}
- Value v = GetAsValue (obj);
+ Value v;
+ if (obj.GetType () == property.type)
+ v = GetAsValue (obj);
+ else
+ v = GetAsValue (Convert.ChangeType (obj,
property.type));
+
NativeMethods.dependency_object_set_value (native,
property.native, ref v);
}
Modified: trunk/olive/class/agclr/System.Windows/DependencyProperty.cs
===================================================================
--- trunk/olive/class/agclr/System.Windows/DependencyProperty.cs
2007-06-09 23:09:41 UTC (rev 79085)
+++ trunk/olive/class/agclr/System.Windows/DependencyProperty.cs
2007-06-09 23:26:23 UTC (rev 79086)
@@ -33,7 +33,8 @@
namespace System.Windows {
public class DependencyProperty {
internal IntPtr native;
-
+ internal Type type;
+
static DependencyProperty ()
{
NativeMethods.runtime_init ();
@@ -44,12 +45,13 @@
// useless constructor.
}
- internal DependencyProperty (IntPtr handle)
+ internal DependencyProperty (IntPtr handle, Type t)
{
native = handle;
+ type = t;
}
- internal static DependencyProperty Lookup (Kind type, string
name)
+ internal static DependencyProperty Lookup (Kind type, string
name, Type t)
{
IntPtr handle =
NativeMethods.dependency_property_lookup (type, name);
@@ -57,7 +59,7 @@
throw new Exception (
String.Format
("DependencyProperty.Lookup: {0} lacks {1}", type, name));
- return new DependencyProperty (handle);
+ return new DependencyProperty (handle, t);
}
internal static DependencyProperty Register (string name, Type
propertyType, Type ownerType)
Modified: trunk/olive/class/agclr/System.Windows/FrameworkElement.cs
===================================================================
--- trunk/olive/class/agclr/System.Windows/FrameworkElement.cs 2007-06-09
23:09:41 UTC (rev 79085)
+++ trunk/olive/class/agclr/System.Windows/FrameworkElement.cs 2007-06-09
23:26:23 UTC (rev 79086)
@@ -33,8 +33,8 @@
static FrameworkElement ()
{
- WidthProperty = DependencyProperty.Lookup
(Kind.FRAMEWORKELEMENT, "Width");
- HeightProperty = DependencyProperty.Lookup
(Kind.FRAMEWORKELEMENT, "Height");
+ WidthProperty = DependencyProperty.Lookup
(Kind.FRAMEWORKELEMENT, "Width", typeof (double));
+ HeightProperty = DependencyProperty.Lookup
(Kind.FRAMEWORKELEMENT, "Height", typeof (double));
}
public FrameworkElement ()
Modified: trunk/olive/class/agclr/System.Windows/UIElement.cs
===================================================================
--- trunk/olive/class/agclr/System.Windows/UIElement.cs 2007-06-09 23:09:41 UTC
(rev 79085)
+++ trunk/olive/class/agclr/System.Windows/UIElement.cs 2007-06-09 23:26:23 UTC
(rev 79086)
@@ -47,16 +47,16 @@
static UIElement ()
{
- OpacityProperty = DependencyProperty.Lookup
(Kind.UIELEMENT, "Opacity");
- ClipProperty = DependencyProperty.Lookup
(Kind.UIELEMENT, "Clip");
- RenderTransformProperty = DependencyProperty.Lookup
(Kind.UIELEMENT, "RenderTransform");
- TriggersProperty = DependencyProperty.Lookup
(Kind.UIELEMENT, "Triggers");
- OpacityMaskProperty = DependencyProperty.Lookup
(Kind.UIELEMENT, "OpacityMask");
- RenderTransformOriginProperty =
DependencyProperty.Lookup (Kind.UIELEMENT, "RenderTransformOrigin");
- CursorProperty = DependencyProperty.Lookup
(Kind.UIELEMENT, "Cursor");
- IsHitTestVisibleProperty = DependencyProperty.Lookup
(Kind.UIELEMENT, "IsHitTestVisible");
- VisibilityProperty = DependencyProperty.Lookup
(Kind.UIELEMENT, "Visibility");
- ResourcesProperty = DependencyProperty.Lookup
(Kind.UIELEMENT, "Resources");
+ OpacityProperty = DependencyProperty.Lookup
(Kind.UIELEMENT, "Opacity", typeof (double));
+ ClipProperty = DependencyProperty.Lookup
(Kind.UIELEMENT, "Clip", typeof (Geometry));
+ RenderTransformProperty = DependencyProperty.Lookup
(Kind.UIELEMENT, "RenderTransform", typeof (Transform));
+ TriggersProperty = DependencyProperty.Lookup
(Kind.UIELEMENT, "Triggers", typeof (TriggerCollection));
+ OpacityMaskProperty = DependencyProperty.Lookup
(Kind.UIELEMENT, "OpacityMask", typeof (Brush));
+ RenderTransformOriginProperty =
DependencyProperty.Lookup (Kind.UIELEMENT, "RenderTransformOrigin", typeof
(Point));
+ CursorProperty = DependencyProperty.Lookup
(Kind.UIELEMENT, "Cursor", typeof (Cursors));
+ IsHitTestVisibleProperty = DependencyProperty.Lookup
(Kind.UIELEMENT, "IsHitTestVisible", typeof (bool));
+ VisibilityProperty = DependencyProperty.Lookup
(Kind.UIELEMENT, "Visibility", typeof (Visibility));
+ ResourcesProperty = DependencyProperty.Lookup
(Kind.UIELEMENT, "Resources", typeof (ResourceCollection));
}
public UIElement ()
Modified: trunk/olive/class/agclr/System.Windows.Controls/Canvas.cs
===================================================================
--- trunk/olive/class/agclr/System.Windows.Controls/Canvas.cs 2007-06-09
23:09:41 UTC (rev 79085)
+++ trunk/olive/class/agclr/System.Windows.Controls/Canvas.cs 2007-06-09
23:26:23 UTC (rev 79086)
@@ -35,8 +35,8 @@
static Canvas ()
{
- LeftProperty = DependencyProperty.Lookup (Kind.CANVAS,
"Left");
- TopProperty = DependencyProperty.Lookup (Kind.CANVAS,
"Top");
+ LeftProperty = DependencyProperty.Lookup (Kind.CANVAS,
"Left", typeof (double));
+ TopProperty = DependencyProperty.Lookup (Kind.CANVAS,
"Top", typeof (double));
}
public Canvas ()
Modified: trunk/olive/class/agclr/System.Windows.Controls/Panel.cs
===================================================================
--- trunk/olive/class/agclr/System.Windows.Controls/Panel.cs 2007-06-09
23:09:41 UTC (rev 79085)
+++ trunk/olive/class/agclr/System.Windows.Controls/Panel.cs 2007-06-09
23:26:23 UTC (rev 79086)
@@ -37,8 +37,8 @@
static Panel ()
{
- ChildrenProperty = DependencyProperty.Lookup
(Kind.PANEL, "Children");
- BackgroundProperty = DependencyProperty.Lookup
(Kind.PANEL, "Background");
+ ChildrenProperty = DependencyProperty.Lookup
(Kind.PANEL, "Children", typeof (VisualCollection));
+ BackgroundProperty = DependencyProperty.Lookup
(Kind.PANEL, "Background", typeof (Brush));
}
public Panel ()
Modified: trunk/olive/class/agclr/System.Windows.Media/ArcSegment.cs
===================================================================
--- trunk/olive/class/agclr/System.Windows.Media/ArcSegment.cs 2007-06-09
23:09:41 UTC (rev 79085)
+++ trunk/olive/class/agclr/System.Windows.Media/ArcSegment.cs 2007-06-09
23:26:23 UTC (rev 79086)
@@ -32,11 +32,11 @@
static ArcSegment ()
{
- PointProperty = DependencyProperty.Lookup
(Kind.ARCSEGMENT, "Point");
- SizeProperty = DependencyProperty.Lookup
(Kind.ARCSEGMENT, "Size");
- RotationAngleProperty = DependencyProperty.Lookup
(Kind.ARCSEGMENT, "RotationAngle");
- IsLargeArcProperty = DependencyProperty.Lookup
(Kind.ARCSEGMENT, "IsLargeArc");
- SweepDirectionProperty = DependencyProperty.Lookup
(Kind.ARCSEGMENT, "SweepDirection");
+ PointProperty = DependencyProperty.Lookup
(Kind.ARCSEGMENT, "Point", typeof (Point));
+ SizeProperty = DependencyProperty.Lookup
(Kind.ARCSEGMENT, "Size", typeof (Point));
+ RotationAngleProperty = DependencyProperty.Lookup
(Kind.ARCSEGMENT, "RotationAngle", typeof (double));
+ IsLargeArcProperty = DependencyProperty.Lookup
(Kind.ARCSEGMENT, "IsLargeArc", typeof (bool));
+ SweepDirectionProperty = DependencyProperty.Lookup
(Kind.ARCSEGMENT, "SweepDirection", typeof (SweepDirection));
}
Modified: trunk/olive/class/agclr/System.Windows.Media/BezierSegment.cs
===================================================================
--- trunk/olive/class/agclr/System.Windows.Media/BezierSegment.cs
2007-06-09 23:09:41 UTC (rev 79085)
+++ trunk/olive/class/agclr/System.Windows.Media/BezierSegment.cs
2007-06-09 23:26:23 UTC (rev 79086)
@@ -31,9 +31,9 @@
static BezierSegment ()
{
- Point1Property = DependencyProperty.Lookup
(Kind.BEZIERSEGMENT, "Point1");
- Point2Property = DependencyProperty.Lookup
(Kind.BEZIERSEGMENT, "Point2");
- Point3Property = DependencyProperty.Lookup
(Kind.BEZIERSEGMENT, "Point3");
+ Point1Property = DependencyProperty.Lookup
(Kind.BEZIERSEGMENT, "Point1", typeof (Point));
+ Point2Property = DependencyProperty.Lookup
(Kind.BEZIERSEGMENT, "Point2", typeof (Point));
+ Point3Property = DependencyProperty.Lookup
(Kind.BEZIERSEGMENT, "Point3", typeof (Point));
}
public BezierSegment ()
Modified: trunk/olive/class/agclr/System.Windows.Media/Brush.cs
===================================================================
--- trunk/olive/class/agclr/System.Windows.Media/Brush.cs 2007-06-09
23:09:41 UTC (rev 79085)
+++ trunk/olive/class/agclr/System.Windows.Media/Brush.cs 2007-06-09
23:26:23 UTC (rev 79086)
@@ -35,9 +35,9 @@
static Brush ()
{
- OpacityProperty = DependencyProperty.Lookup
(Kind.BRUSH, "Opacity");
- TransformProperty = DependencyProperty.Lookup
(Kind.BRUSH, "Transform");
- RelativeTransformProperty = DependencyProperty.Lookup
(Kind.BRUSH, "RelativeTransform");
+ OpacityProperty = DependencyProperty.Lookup
(Kind.BRUSH, "Opacity", typeof (double));
+ TransformProperty = DependencyProperty.Lookup
(Kind.BRUSH, "Transform", typeof (TransformGroup));
+ RelativeTransformProperty = DependencyProperty.Lookup
(Kind.BRUSH, "RelativeTransform", typeof (TransformGroup));
}
public Brush ()
Modified: trunk/olive/class/agclr/System.Windows.Media/EllipseGeometry.cs
===================================================================
--- trunk/olive/class/agclr/System.Windows.Media/EllipseGeometry.cs
2007-06-09 23:09:41 UTC (rev 79085)
+++ trunk/olive/class/agclr/System.Windows.Media/EllipseGeometry.cs
2007-06-09 23:26:23 UTC (rev 79086)
@@ -32,11 +32,11 @@
public class EllipseGeometry : Geometry {
public static readonly DependencyProperty CenterProperty =
- DependencyProperty.Lookup (Kind.ELLIPSEGEOMETRY,
"Center");
+ DependencyProperty.Lookup (Kind.ELLIPSEGEOMETRY,
"Center", typeof (Point));
public static readonly DependencyProperty RadiusXProperty =
- DependencyProperty.Lookup (Kind.ELLIPSEGEOMETRY,
"RadiusX");
+ DependencyProperty.Lookup (Kind.ELLIPSEGEOMETRY,
"RadiusX", typeof (double));
public static readonly DependencyProperty RadiusYProperty =
- DependencyProperty.Lookup (Kind.ELLIPSEGEOMETRY,
"RadiusY");
+ DependencyProperty.Lookup (Kind.ELLIPSEGEOMETRY,
"RadiusY", typeof (double));
public EllipseGeometry ()
{
Modified: trunk/olive/class/agclr/System.Windows.Media/Geometry.cs
===================================================================
--- trunk/olive/class/agclr/System.Windows.Media/Geometry.cs 2007-06-09
23:09:41 UTC (rev 79085)
+++ trunk/olive/class/agclr/System.Windows.Media/Geometry.cs 2007-06-09
23:26:23 UTC (rev 79086)
@@ -33,8 +33,8 @@
static Geometry ()
{
- FillRuleProperty = DependencyProperty.Lookup
(Kind.GEOMETRY, "FillRule");
- TransformProperty = DependencyProperty.Lookup
(Kind.GEOMETRY, "Transform");
+ FillRuleProperty = DependencyProperty.Lookup
(Kind.GEOMETRY, "FillRule", typeof (FillRule));
+ TransformProperty = DependencyProperty.Lookup
(Kind.GEOMETRY, "Transform", typeof (TransformGroup));
}
public Geometry ()
Modified: trunk/olive/class/agclr/System.Windows.Media/GeometryGroup.cs
===================================================================
--- trunk/olive/class/agclr/System.Windows.Media/GeometryGroup.cs
2007-06-09 23:09:41 UTC (rev 79085)
+++ trunk/olive/class/agclr/System.Windows.Media/GeometryGroup.cs
2007-06-09 23:26:23 UTC (rev 79086)
@@ -32,7 +32,7 @@
public class GeometryGroup : Geometry {
public static readonly DependencyProperty ChildrenProperty =
- DependencyProperty.Lookup (Kind.GEOMETRYGROUP,
"Children");
+ DependencyProperty.Lookup (Kind.GEOMETRYGROUP,
"Children", typeof (GeometryCollection));
public GeometryGroup ()
{
Modified: trunk/olive/class/agclr/System.Windows.Media/GradientBrush.cs
===================================================================
--- trunk/olive/class/agclr/System.Windows.Media/GradientBrush.cs
2007-06-09 23:09:41 UTC (rev 79085)
+++ trunk/olive/class/agclr/System.Windows.Media/GradientBrush.cs
2007-06-09 23:26:23 UTC (rev 79086)
@@ -32,13 +32,13 @@
public class GradientBrush : Brush {
public static readonly DependencyProperty
ColorInterpretationModeProperty =
- DependencyProperty.Lookup (Kind.GRADIENTBRUSH,
"ColorInterpretationMode");
+ DependencyProperty.Lookup (Kind.GRADIENTBRUSH,
"ColorInterpretationMode", typeof (ColorInterpretationMode));
public static readonly DependencyProperty GradientStopsProperty
=
- DependencyProperty.Lookup (Kind.GRADIENTBRUSH,
"GradientStops");
+ DependencyProperty.Lookup (Kind.GRADIENTBRUSH,
"GradientStops", typeof (GradientStopCollection));
public static readonly DependencyProperty MappingModeProperty =
- DependencyProperty.Lookup (Kind.GRADIENTBRUSH,
"MappingMode");
+ DependencyProperty.Lookup (Kind.GRADIENTBRUSH,
"MappingMode", typeof (BrushMappingMode));
public static readonly DependencyProperty SpreadMethodProperty =
- DependencyProperty.Lookup (Kind.GRADIENTBRUSH,
"SpreadMethod");
+ DependencyProperty.Lookup (Kind.GRADIENTBRUSH,
"SpreadMethod", typeof (GradientSpreadMethod));
public GradientBrush ()
Modified: trunk/olive/class/agclr/System.Windows.Media/GradientStop.cs
===================================================================
--- trunk/olive/class/agclr/System.Windows.Media/GradientStop.cs
2007-06-09 23:09:41 UTC (rev 79085)
+++ trunk/olive/class/agclr/System.Windows.Media/GradientStop.cs
2007-06-09 23:26:23 UTC (rev 79086)
@@ -31,9 +31,9 @@
public class GradientStop : DependencyObject {
public static readonly DependencyProperty ColorProperty =
- DependencyProperty.Lookup (Kind.GRADIENTSTOP, "Color");
+ DependencyProperty.Lookup (Kind.GRADIENTSTOP, "Color",
typeof (Color));
public static readonly DependencyProperty OffsetProperty =
- DependencyProperty.Lookup (Kind.GRADIENTSTOP, "Offset");
+ DependencyProperty.Lookup (Kind.GRADIENTSTOP, "Offset",
typeof (double));
public GradientStop ()
Modified: trunk/olive/class/agclr/System.Windows.Media/ImageBrush.cs
===================================================================
--- trunk/olive/class/agclr/System.Windows.Media/ImageBrush.cs 2007-06-09
23:09:41 UTC (rev 79085)
+++ trunk/olive/class/agclr/System.Windows.Media/ImageBrush.cs 2007-06-09
23:26:23 UTC (rev 79086)
@@ -32,9 +32,9 @@
public class ImageBrush : Brush {
public static readonly DependencyProperty
DownloadProgressProperty =
- DependencyProperty.Lookup (Kind.IMAGEBRUSH,
"DownloadProgress");
+ DependencyProperty.Lookup (Kind.IMAGEBRUSH,
"DownloadProgress", typeof (double));
public static readonly DependencyProperty ImageSourceProperty =
- DependencyProperty.Lookup (Kind.IMAGEBRUSH,
"ImageSource");
+ DependencyProperty.Lookup (Kind.IMAGEBRUSH,
"ImageSource", typeof (Uri));
public ImageBrush ()
Modified: trunk/olive/class/agclr/System.Windows.Media/LineGeometry.cs
===================================================================
--- trunk/olive/class/agclr/System.Windows.Media/LineGeometry.cs
2007-06-09 23:09:41 UTC (rev 79085)
+++ trunk/olive/class/agclr/System.Windows.Media/LineGeometry.cs
2007-06-09 23:26:23 UTC (rev 79086)
@@ -32,9 +32,9 @@
public class LineGeometry : Geometry {
public static readonly DependencyProperty EndPointProperty =
- DependencyProperty.Lookup (Kind.LINEGEOMETRY,
"EndPoint");
+ DependencyProperty.Lookup (Kind.LINEGEOMETRY,
"EndPoint", typeof (Point));
public static readonly DependencyProperty StartPointProperty =
- DependencyProperty.Lookup (Kind.LINEGEOMETRY,
"StartPoint");
+ DependencyProperty.Lookup (Kind.LINEGEOMETRY,
"StartPoint", typeof (Point));
public LineGeometry ()
{
Modified: trunk/olive/class/agclr/System.Windows.Media/LineSegment.cs
===================================================================
--- trunk/olive/class/agclr/System.Windows.Media/LineSegment.cs 2007-06-09
23:09:41 UTC (rev 79085)
+++ trunk/olive/class/agclr/System.Windows.Media/LineSegment.cs 2007-06-09
23:26:23 UTC (rev 79086)
@@ -32,7 +32,7 @@
static LineSegment ()
{
- PointProperty = DependencyProperty.Lookup
(Kind.LINESEGMENT, "Point");
+ PointProperty = DependencyProperty.Lookup
(Kind.LINESEGMENT, "Point", typeof (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 23:09:41 UTC (rev 79085)
+++ trunk/olive/class/agclr/System.Windows.Media/LinearGradientBrush.cs
2007-06-09 23:26:23 UTC (rev 79086)
@@ -31,9 +31,9 @@
public class LinearGradientBrush : GradientBrush {
public static readonly DependencyProperty StartPointProperty =
- DependencyProperty.Lookup (Kind.LINEARGRADIENTBRUSH,
"StartPoint");
+ DependencyProperty.Lookup (Kind.LINEARGRADIENTBRUSH,
"StartPoint", typeof (Point));
public static readonly DependencyProperty EndPointProperty =
- DependencyProperty.Lookup (Kind.LINEARGRADIENTBRUSH,
"EndPoint");
+ DependencyProperty.Lookup (Kind.LINEARGRADIENTBRUSH,
"EndPoint", typeof (Point));
public LinearGradientBrush ()
Modified: trunk/olive/class/agclr/System.Windows.Media/MatrixTransform.cs
===================================================================
--- trunk/olive/class/agclr/System.Windows.Media/MatrixTransform.cs
2007-06-09 23:09:41 UTC (rev 79085)
+++ trunk/olive/class/agclr/System.Windows.Media/MatrixTransform.cs
2007-06-09 23:26:23 UTC (rev 79086)
@@ -31,14 +31,14 @@
public class MatrixTransform : Transform {
public static readonly DependencyProperty MatrixProperty =
- DependencyProperty.Lookup (Kind.MATRIXTRANSFORM,
"Matrix");
+ DependencyProperty.Lookup (Kind.MATRIXTRANSFORM,
"Matrix", typeof (Matrix));
public MatrixTransform ()
{
native = Mono.NativeMethods.matrix_transform_new ();
}
- public Matrix X {
+ public Matrix Matrix {
get { return (Matrix) GetValue (MatrixProperty); }
set { SetValue (MatrixProperty, value); }
}
Modified: trunk/olive/class/agclr/System.Windows.Media/PathFigure.cs
===================================================================
--- trunk/olive/class/agclr/System.Windows.Media/PathFigure.cs 2007-06-09
23:09:41 UTC (rev 79085)
+++ trunk/olive/class/agclr/System.Windows.Media/PathFigure.cs 2007-06-09
23:26:23 UTC (rev 79086)
@@ -31,13 +31,13 @@
public class PathFigure : DependencyObject {
public static readonly DependencyProperty IsClosedProperty =
- DependencyProperty.Lookup (Kind.PATHFIGURE, "IsClosed");
+ DependencyProperty.Lookup (Kind.PATHFIGURE, "IsClosed",
typeof (bool));
public static readonly DependencyProperty IsFilledProperty =
- DependencyProperty.Lookup (Kind.PATHFIGURE, "IsFilled");
+ DependencyProperty.Lookup (Kind.PATHFIGURE, "IsFilled",
typeof (bool));
public static readonly DependencyProperty SegmentsProperty =
- DependencyProperty.Lookup (Kind.PATHFIGURE, "Segments");
+ DependencyProperty.Lookup (Kind.PATHFIGURE, "Segments",
typeof (PathSegmentCollection));
public static readonly DependencyProperty StartPointProperty =
- DependencyProperty.Lookup (Kind.PATHFIGURE,
"StartPoint");
+ DependencyProperty.Lookup (Kind.PATHFIGURE,
"StartPoint", typeof (Point));
public PathFigure ()
{
Modified: trunk/olive/class/agclr/System.Windows.Media/PathGeometry.cs
===================================================================
--- trunk/olive/class/agclr/System.Windows.Media/PathGeometry.cs
2007-06-09 23:09:41 UTC (rev 79085)
+++ trunk/olive/class/agclr/System.Windows.Media/PathGeometry.cs
2007-06-09 23:26:23 UTC (rev 79086)
@@ -31,7 +31,7 @@
public class PathGeometry : Geometry {
public static readonly DependencyProperty FiguresProperty =
- DependencyProperty.Lookup (Kind.PATHGEOMETRY,
"Figures");
+ DependencyProperty.Lookup (Kind.PATHGEOMETRY,
"Figures", typeof (PathFigureCollection));
public PathGeometry ()
{
Modified: trunk/olive/class/agclr/System.Windows.Media/PolyBezierSegment.cs
===================================================================
--- trunk/olive/class/agclr/System.Windows.Media/PolyBezierSegment.cs
2007-06-09 23:09:41 UTC (rev 79085)
+++ trunk/olive/class/agclr/System.Windows.Media/PolyBezierSegment.cs
2007-06-09 23:26:23 UTC (rev 79086)
@@ -31,7 +31,7 @@
static PolyBezierSegment ()
{
- PointsProperty = DependencyProperty.Lookup
(Kind.POLYBEZIERSEGMENT, "Points");
+ PointsProperty = DependencyProperty.Lookup
(Kind.POLYBEZIERSEGMENT, "Points", typeof (Point []));
}
public PolyBezierSegment ()
Modified: trunk/olive/class/agclr/System.Windows.Media/PolyLineSegment.cs
===================================================================
--- trunk/olive/class/agclr/System.Windows.Media/PolyLineSegment.cs
2007-06-09 23:09:41 UTC (rev 79085)
+++ trunk/olive/class/agclr/System.Windows.Media/PolyLineSegment.cs
2007-06-09 23:26:23 UTC (rev 79086)
@@ -32,7 +32,7 @@
static PolyLineSegment ()
{
- PointsProperty = DependencyProperty.Lookup
(Kind.POLYLINESEGMENT, "Points");
+ PointsProperty = DependencyProperty.Lookup
(Kind.POLYLINESEGMENT, "Points", typeof (Point[]));
}
public PolyLineSegment ()
Modified:
trunk/olive/class/agclr/System.Windows.Media/PolyQuadraticBezierSegment.cs
===================================================================
--- trunk/olive/class/agclr/System.Windows.Media/PolyQuadraticBezierSegment.cs
2007-06-09 23:09:41 UTC (rev 79085)
+++ trunk/olive/class/agclr/System.Windows.Media/PolyQuadraticBezierSegment.cs
2007-06-09 23:26:23 UTC (rev 79086)
@@ -32,7 +32,7 @@
static PolyQuadraticBezierSegment ()
{
PointsProperty = DependencyProperty.Lookup (
- Kind.POLYQUADRATICBEZIERSEGMENT, "Points");
+ Kind.POLYQUADRATICBEZIERSEGMENT, "Points",
typeof (Point[]));
}
public PolyQuadraticBezierSegment ()
Modified: trunk/olive/class/agclr/System.Windows.Media/QuadraticBezierSegment.cs
===================================================================
--- trunk/olive/class/agclr/System.Windows.Media/QuadraticBezierSegment.cs
2007-06-09 23:09:41 UTC (rev 79085)
+++ trunk/olive/class/agclr/System.Windows.Media/QuadraticBezierSegment.cs
2007-06-09 23:26:23 UTC (rev 79086)
@@ -31,9 +31,9 @@
public class QuadraticBezierSegment : PathSegment {
public static readonly DependencyProperty Point1Property =
- DependencyProperty.Lookup (Kind.QUADRATICBEZIERSEGMENT,
"Point1");
+ DependencyProperty.Lookup (Kind.QUADRATICBEZIERSEGMENT,
"Point1", typeof (Point));
public static readonly DependencyProperty Point2Property =
- DependencyProperty.Lookup (Kind.QUADRATICBEZIERSEGMENT,
"Point2");
+ DependencyProperty.Lookup (Kind.QUADRATICBEZIERSEGMENT,
"Point2", typeof (Point));
public QuadraticBezierSegment ()
{
Modified: trunk/olive/class/agclr/System.Windows.Media/RotateTransform.cs
===================================================================
--- trunk/olive/class/agclr/System.Windows.Media/RotateTransform.cs
2007-06-09 23:09:41 UTC (rev 79085)
+++ trunk/olive/class/agclr/System.Windows.Media/RotateTransform.cs
2007-06-09 23:26:23 UTC (rev 79086)
@@ -32,11 +32,11 @@
public class RotateTransform : Transform {
public static readonly DependencyProperty AngleProperty =
- DependencyProperty.Lookup (Kind.ROTATETRANSFORM,
"Angle");
+ DependencyProperty.Lookup (Kind.ROTATETRANSFORM,
"Angle", typeof (double));
public static readonly DependencyProperty CenterXProperty =
- DependencyProperty.Lookup (Kind.ROTATETRANSFORM,
"CenterX");
+ DependencyProperty.Lookup (Kind.ROTATETRANSFORM,
"CenterX", typeof (double));
public static readonly DependencyProperty CenterYProperty =
- DependencyProperty.Lookup (Kind.ROTATETRANSFORM,
"CenterY");
+ DependencyProperty.Lookup (Kind.ROTATETRANSFORM,
"CenterY", typeof (double));
public RotateTransform ()
{
Modified: trunk/olive/class/agclr/System.Windows.Media/ScaleTransform.cs
===================================================================
--- trunk/olive/class/agclr/System.Windows.Media/ScaleTransform.cs
2007-06-09 23:09:41 UTC (rev 79085)
+++ trunk/olive/class/agclr/System.Windows.Media/ScaleTransform.cs
2007-06-09 23:26:23 UTC (rev 79086)
@@ -31,13 +31,13 @@
public class ScaleTransform : Transform {
public static readonly DependencyProperty CenterXProperty =
- DependencyProperty.Lookup (Kind.SCALETRANSFORM,
"CenterX");
+ DependencyProperty.Lookup (Kind.SCALETRANSFORM,
"CenterX", typeof (double));
public static readonly DependencyProperty CenterYProperty =
- DependencyProperty.Lookup (Kind.SCALETRANSFORM,
"CenterY");
+ DependencyProperty.Lookup (Kind.SCALETRANSFORM,
"CenterY", typeof (double));
public static readonly DependencyProperty ScaleXProperty =
- DependencyProperty.Lookup (Kind.SCALETRANSFORM,
"ScaleX");
+ DependencyProperty.Lookup (Kind.SCALETRANSFORM,
"ScaleX", typeof (double));
public static readonly DependencyProperty ScaleYProperty =
- DependencyProperty.Lookup (Kind.SCALETRANSFORM,
"ScaleY");
+ DependencyProperty.Lookup (Kind.SCALETRANSFORM,
"ScaleY", typeof (double));
public ScaleTransform ()
{
Modified: trunk/olive/class/agclr/System.Windows.Media/SolidColorBrush.cs
===================================================================
--- trunk/olive/class/agclr/System.Windows.Media/SolidColorBrush.cs
2007-06-09 23:09:41 UTC (rev 79085)
+++ trunk/olive/class/agclr/System.Windows.Media/SolidColorBrush.cs
2007-06-09 23:26:23 UTC (rev 79086)
@@ -31,7 +31,8 @@
public class SolidColorBrush : Brush {
- public static readonly DependencyProperty ColorProperty =
DependencyProperty.Lookup (Kind.SOLIDCOLORBRUSH, "Color");
+ public static readonly DependencyProperty ColorProperty =
+ DependencyProperty.Lookup (Kind.SOLIDCOLORBRUSH,
"Color", typeof (Color));
public SolidColorBrush ()
{
Modified: trunk/olive/class/agclr/System.Windows.Media/TranslateTransform.cs
===================================================================
--- trunk/olive/class/agclr/System.Windows.Media/TranslateTransform.cs
2007-06-09 23:09:41 UTC (rev 79085)
+++ trunk/olive/class/agclr/System.Windows.Media/TranslateTransform.cs
2007-06-09 23:26:23 UTC (rev 79086)
@@ -32,9 +32,9 @@
public class TranslateTransform : Transform {
public static readonly DependencyProperty XProperty =
- DependencyProperty.Lookup (Kind.TRANSLATETRANSFORM,
"X");
+ DependencyProperty.Lookup (Kind.TRANSLATETRANSFORM,
"X", typeof (double));
public static readonly DependencyProperty YProperty =
- DependencyProperty.Lookup (Kind.TRANSLATETRANSFORM,
"Y");
+ DependencyProperty.Lookup (Kind.TRANSLATETRANSFORM,
"Y", typeof (double));
public TranslateTransform ()
{
Modified: trunk/olive/class/agclr/System.Windows.Media/VideoBrush.cs
===================================================================
--- trunk/olive/class/agclr/System.Windows.Media/VideoBrush.cs 2007-06-09
23:09:41 UTC (rev 79085)
+++ trunk/olive/class/agclr/System.Windows.Media/VideoBrush.cs 2007-06-09
23:26:23 UTC (rev 79086)
@@ -31,7 +31,7 @@
public class VideoBrush : TileBrush {
public static readonly DependencyProperty SourceNameProperty =
- DependencyProperty.Lookup (Kind.VIDEOBRUSH,
"SourceName");
+ DependencyProperty.Lookup (Kind.VIDEOBRUSH,
"SourceName", typeof (string));
public VideoBrush ()
{
Modified: trunk/olive/class/agclr/System.Windows.Shapes/Rectangle.cs
===================================================================
--- trunk/olive/class/agclr/System.Windows.Shapes/Rectangle.cs 2007-06-09
23:09:41 UTC (rev 79085)
+++ trunk/olive/class/agclr/System.Windows.Shapes/Rectangle.cs 2007-06-09
23:26:23 UTC (rev 79086)
@@ -31,9 +31,9 @@
public class Rectangle : Shape {
public static readonly DependencyProperty RadiusXProperty =
- DependencyProperty.Lookup (Kind.RECTANGLE, "RadiusX");
+ DependencyProperty.Lookup (Kind.RECTANGLE, "RadiusX",
typeof (double));
public static readonly DependencyProperty RadiusYProperty =
- DependencyProperty.Lookup (Kind.RECTANGLE, "RadiusY");
+ DependencyProperty.Lookup (Kind.RECTANGLE, "RadiusY",
typeof (double));
public Rectangle ()
{
Modified: trunk/olive/class/agclr/System.Windows.Shapes/Shape.cs
===================================================================
--- trunk/olive/class/agclr/System.Windows.Shapes/Shape.cs 2007-06-09
23:09:41 UTC (rev 79085)
+++ trunk/olive/class/agclr/System.Windows.Shapes/Shape.cs 2007-06-09
23:26:23 UTC (rev 79086)
@@ -33,27 +33,27 @@
public abstract class Shape : FrameworkElement {
public static readonly DependencyProperty FillProperty =
- DependencyProperty.Lookup (Kind.SHAPE, "Fill");
+ DependencyProperty.Lookup (Kind.SHAPE, "Fill", typeof
(Brush));
public static readonly DependencyProperty StretchProperty =
- DependencyProperty.Lookup (Kind.SHAPE, "Stretch");
+ DependencyProperty.Lookup (Kind.SHAPE, "Stretch",
typeof (Stretch));
public static readonly DependencyProperty StrokeProperty =
- DependencyProperty.Lookup (Kind.SHAPE, "Stroke");
+ DependencyProperty.Lookup (Kind.SHAPE, "Stroke", typeof
(Brush));
public static readonly DependencyProperty
StrokeDashArrayProperty =
- DependencyProperty.Lookup (Kind.SHAPE,
"StrokeDashArray");
+ DependencyProperty.Lookup (Kind.SHAPE,
"StrokeDashArray", typeof (double []));
public static readonly DependencyProperty StrokeDashCapProperty
=
- DependencyProperty.Lookup (Kind.SHAPE, "StrokeDashCap");
+ DependencyProperty.Lookup (Kind.SHAPE, "StrokeDashCap",
typeof (PenLineCap));
public static readonly DependencyProperty
StrokeDashOffsetProperty =
- DependencyProperty.Lookup (Kind.SHAPE,
"StrokeDashOffset");
+ DependencyProperty.Lookup (Kind.SHAPE,
"StrokeDashOffset", typeof (double));
public static readonly DependencyProperty
StrokeEndLineCapProperty =
- DependencyProperty.Lookup (Kind.SHAPE,
"StrokeEndLineCap");
+ DependencyProperty.Lookup (Kind.SHAPE,
"StrokeEndLineCap", typeof (PenLineCap));
public static readonly DependencyProperty
StrokeLineJoinProperty =
- DependencyProperty.Lookup (Kind.SHAPE,
"StrokeLineJoin");
+ DependencyProperty.Lookup (Kind.SHAPE,
"StrokeLineJoin", typeof (PenLineJoin));
public static readonly DependencyProperty
StrokeMiterLimitProperty =
- DependencyProperty.Lookup (Kind.SHAPE,
"StrokeMiterLimit");
+ DependencyProperty.Lookup (Kind.SHAPE,
"StrokeMiterLimit", typeof (double));
public static readonly DependencyProperty
StrokeStartLineCapProperty =
- DependencyProperty.Lookup (Kind.SHAPE,
"StrokeStartLineCap");
+ DependencyProperty.Lookup (Kind.SHAPE,
"StrokeStartLineCap", typeof (PenLineCap));
public static readonly DependencyProperty
StrokeThicknessProperty =
- DependencyProperty.Lookup (Kind.SHAPE,
"StrokeThickness");
+ DependencyProperty.Lookup (Kind.SHAPE,
"StrokeThickness", typeof (double));
public Shape ()
{
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches