Powered by MSDN

US - English
NEW! Silverlight 5 is available Learn More

  • Iván

    Iván

    0 Points

    1 Post

    Problem with local configuration

    Aug 27, 2007 02:24 PM | LINK

    I am developing silverlight applications using both XAML an C# languages. I've found the following problem:

    I've computer local configuration in spanish (dot as thousands separator, and comma as decimal point), when I run the following code, it runs fine ([ 1 ])

    MyArcSegment.Size = new Point(27 , 27); [ 1 ]

    However, when I use floating point numbers, this stops working.([ 2 ])

    MyArcSegment.Size = new Point(27.5 , 27.5); [ 2 ]

    If I change the local configuration from spanish to english(dot as decimal, and comma as thousands separator), it works fine.

    There seems to be a problem with Point Class when used in local configurations other than english.

    Best regards

     

     

    Regional language options problem