Please do not reply to this email- if you want to comment on the bug, go to the URL shown below and enter your comments there.
Changed by [EMAIL PROTECTED] http://bugzilla.ximian.com/show_bug.cgi?id=82530 --- shadow/82530 2007-08-22 12:47:35.000000000 -0400 +++ shadow/82530.tmp.21888 2007-08-27 09:51:00.000000000 -0400 @@ -68,6 +68,31 @@ FrameworkElement::WidthProperty resets cache FrameworkElement::HeightProperty sets cache So for rectangles we compute three times instead of one (or zero, since ideally the path doesn't really need to be computed at xaml load time). + +------- Additional Comments From [EMAIL PROTECTED] 2007-08-27 09:51 ------- +using a simple, crude and potentially bad (it may mess with other +stuff) hack I can avoid 154 rectangles cairo path being "built" when +starting monotone. + +void +Shape::OnLoaded () +{ + // based on path-caching (won't really work on SVN right now) + if (!path) { + Invalidate (); + } + FrameworkElement::OnLoaded (); +} + +Rectangle::Draw (cairo_t *cr) +{ + if (!IsLoaded ()) { +g_warning ("avoided building Rectangle path"); + return; + } + +This hack, if working, would be useful when both loading XAML and +under "normal" (code) circumstances. _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
