Report a Silverlight Bughttp://forums.silverlight.net//28.aspx/1?Report+a+Silverlight+BugFound a bug in Silverlight? Use this forum to describe the bug and the code or steps to reproduce it.Mon, 01 Jan 0001 00:00:00 -0500283319http://forums.silverlight.net//p/1412/3319.aspx/1?SetValue+lt+Matrix+gt+bug+SetValue&lt;Matrix&gt;() bug <p>Bug in MatrixTransform.Matrix.set property:</p> <blockquote> <p>Matrix matrix= new Matrix( 1.5, 0, 0, 1.5, 0, 0 ); // simple scale</p> <p>MatrixTransform mt= new MatrixTransform();<br> mt.Matrix= matrix; // BUG, not properly serialized to the Silverlight native engine</p> </blockquote> <p>The problem comes from the fact that a Matrix is converted to text using Matrix.ToString() in XcpImports.SetValue&lt;T&gt;(). If Regional Settings are set to &quot;French&quot;, then the decimal (NumberDecimalSeparator) is a comma (&quot;,&quot;) not a dot (&quot;.&quot;).</p> <p>Therefore, instead of passing the string &quot;<strong>1.5</strong>,0,0,<strong>1.5</strong>,0,0&quot; (6 numbers) to the Silverlight engine, the framework is passing &quot;<strong>1,5</strong>,0,0,<strong>1,5</strong>,0,0&quot;&nbsp;(8 numbers, invalid matrix):</p> <blockquote> <p>// text = &quot;<strong>1,5</strong>,0,0,<strong>1,5</strong>,0,0&quot; instead of &quot;<strong>1.5</strong>,0,0,<strong>1.5</strong>,0,0&quot;<br> string text= matrix.ToString();</p> </blockquote> <p>BTW,&nbsp; could someone tell me a workaround : how to I change the current culture in runtime with Silverlight .NET ?</p> <p>Thanks</p> <p>&nbsp;</p> 2007-05-22T14:16:43-04:003822http://forums.silverlight.net//p/1412/3822.aspx/1?Re+SetValue+lt+Matrix+gt+bugRe: SetValue&lt;Matrix&gt;() bug <p>Any news for this bug?</p> <p>(another post for this bug at <a href="http://silverlight.net/forums/p/1497/3821.aspx"> http://silverlight.net/forums/p/1497/3821.aspx</a>)</p> 2007-05-28T07:21:52-04:004284http://forums.silverlight.net//p/1412/4284.aspx/1?Re+SetValue+lt+Matrix+gt+bugRe: SetValue&lt;Matrix&gt;() bug <p>Noted the bug and it is now in our bug database. Thank you for reporting! </p> <p>-SeemaR@MS</p> 2007-06-04T23:05:12-04:008565http://forums.silverlight.net//p/1412/8565.aspx/1?+SetValue+lt+Matrix+gt+bug SetValue&lt;Matrix&gt;() bug <p>I have the same problem (my Regional options is Russian).</p> <p>To work around this problem I change &quot;Standarts and Formats&quot; options to &quot;English(United States)&quot; (at Control Panel -&gt; Regional and Language Options)<br> </p> 2007-07-26T14:37:02-04:00