Author: jackson
Date: 2007-10-10 12:05:41 -0400 (Wed, 10 Oct 2007)
New Revision: 87276
Modified:
trunk/moon/src/ChangeLog
trunk/moon/src/shape.cpp
Log:
* shape.cpp: We need to do something when line properties are
changed. Fixes test-animation-line.xaml
Modified: trunk/moon/src/ChangeLog
===================================================================
--- trunk/moon/src/ChangeLog 2007-10-10 15:34:03 UTC (rev 87275)
+++ trunk/moon/src/ChangeLog 2007-10-10 16:05:41 UTC (rev 87276)
@@ -1,5 +1,10 @@
2007-10-10 Jackson Harper <[EMAIL PROTECTED]>
+ * shape.cpp: We need to do something when line properties are
+ changed. Fixes test-animation-line.xaml
+
+2007-10-10 Jackson Harper <[EMAIL PROTECTED]>
+
* xaml.cpp: Don't allow the same property to be set twice.
2007-10-09 Jackson Harper <[EMAIL PROTECTED]>
Modified: trunk/moon/src/shape.cpp
===================================================================
--- trunk/moon/src/shape.cpp 2007-10-10 15:34:03 UTC (rev 87275)
+++ trunk/moon/src/shape.cpp 2007-10-10 16:05:41 UTC (rev 87276)
@@ -983,6 +983,27 @@
IntersectBoundsWithClipPath ();
}
+void
+Line::OnPropertyChanged (DependencyProperty *prop)
+{
+ if (prop->type != Type::LINE) {
+ if (prop == Shape::StretchProperty) {
+ InvalidatePathCache ();
+ UpdateBounds (true);
+ }
+ Shape::OnPropertyChanged (prop);
+ return;
+ }
+
+ if ((prop == Line::X1Property) || (prop == Line::X2Property) || prop ==
Line::Y1Property || prop == Line::Y2Property) {
+ InvalidatePathCache ();
+ UpdateBounds (true);
+ }
+
+ Invalidate ();
+ NotifyAttachersOfPropertyChange (prop);
+}
+
double
line_get_x1 (Line *line)
{
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches