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=82869 --- shadow/82869 2007-09-14 20:19:00.000000000 -0400 +++ shadow/82869.tmp.26894 2007-09-14 20:19:00.000000000 -0400 @@ -0,0 +1,52 @@ +Bug#: 82869 +Product: Moonlight +Version: 1_0 +OS: +OS Details: +Status: NEW +Resolution: +Severity: +Priority: Major +Component: engine +AssignedTo: [EMAIL PROTECTED] +ReportedBy: [EMAIL PROTECTED] +QAContact: [EMAIL PROTECTED] +TargetMilestone: --- +URL: +Cc: +Summary: TopBanana: SetValue<string> (Brush, string_value) fails. + +Topbanana does this: + +TextBlock n; +n.SetValue(TextBlock.ForegroundProperty, "#FF626262"); + +This produces this crash: +Unhandled Exception: System.InvalidCastException: Unknown target conversion +type from System.String to System.Windows.Media.Brush + at System.Convert.ToType (System.Object value, System.Type +conversionType, IFormatProvider provider) [0x00219] in +/home/cvs/mcs/class/corlib/System/Convert.cs:2917 + at System.Convert.ChangeType (System.Object value, System.Type +conversionType) [0x00040] in /home/cvs/mcs/class/corlib/System/Convert.cs:2482 + at Mono.Helper.ChangeType (System.Object obj, System.Type type) [0x00000] +in /home/cvs/olive/class/agmono/Mono/Helper.cs:106 + at System.Windows.DependencyObject.SetValue[String] +(System.Windows.DependencyProperty property, System.String obj) [0x00076] +in /home/cvs/olive/class/agclr/System.Windows/DependencyObject.cs:652 + at TopBanana.Controls.ClipBinClip.OnMouseEnter (System.Object sender, +System.Windows.Input.MouseEventArgs args) [0x00000] + at System.Windows.UIElement.InvokeMouseEnter +(System.Windows.Input.MouseEventArgs m) [0x0001c] in +/home/cvs/olive/class/agclr/System.Windows/UIElement.cs:398 + at Mono.Events.mouse_enter_callback (IntPtr target, IntPtr calldata, +IntPtr closure) [0x00014] in /home/cvs/olive/class/agclr/Mono/Events.cs:136 + at (wrapper native-to-managed) Mono.Events:mouse_enter_callback +(intptr,intptr,intptr) + + + +To reproduce: +svn co ..../sldemos +cd sldemos/topbanana/original +firefox default.html _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
