locked
Paths garbled in Blend 2.5 beta (no error message) RRS feed

  • Question

  • All paths are garbled / all over the place when I open a control or past it from the latest Exp Design. When my app is build and has the control placed on any surface it displays correctly. There's no error message. Editing or animating is impossible cause i can't see what I'm doing... has anybody seen this behavior?

    example path: F1M554964;289671L554964;315923C642245;315923;713;245168;713;157887C713;706056;642245;-1492;554964;-1492L554964;261026C627747;261026;686748;851041;686748;157887C686748;230669;627747;289671;554964;289671z
    Monday, March 10, 2008 10:41 PM

Answers

  • Looking at the first post I do believe that the original issue was due to the locale. The path data that you provided had no decimal separators and also has semicolons in it. (some locales use ',' for decimal separator and ';' for list separator)

    Also, The XAML that you provided in the last post did not have a closing tag for the Path element and also the Path had no Fill so it could not be seen.

    Once I closed the tag and gave it a Fill then it looks fine and I can select and edit it in the design view.

    Here is the XAML

    <Canvas Height="316.634" Width="713.227">
    <Path Width="158.036" Height="316.071" Canvas.Left="554.964" Canvas.Top="-0.14859" Stretch="Fill" Data="F1 M 554.964,26.1032L 554.964,-0.14859C 642.245,-0.14859 713,70.6062 713,157.887C 713,245.168 642.245,315.923 554.964,315.923L 554.964,289.671C 627.748,289.671 686.748,230.67 686.748,157.887C 686.748,85.1047 627.748,26.1032 554.964,26.1032 Z " x:Name="RightRound" Fill="#FFFF0000" />
    </Canvas>

    Thanks,
    Jeetendra Kukreja
    Wednesday, March 19, 2008 3:39 AM

All replies

  • Hi,

    Which version of Expression Blend and which type of projects (Wpf, Silverligh 1, Silverlight 2) are you using?

    Thanks,
    Adrian

    - Adrian Vinca [MSFT]
    Content is provided "AS IS" with no warranties and confers no rights. Opinions are my own and do not represent those of my employer.
    Monday, March 10, 2008 11:11 PM
  • Thanks for the speedy reply!
    the blend version is in the title, its Expression Blend 2.5 beta and a Silverlight 2.0 project,

    grtz,

    Michaud
    Monday, March 10, 2008 11:19 PM
  • Do you use regional settings other than English? If so, could you try using English (US) regional settings? (control panel -> Regional and language options)

    Expression Blend 2.5 March 2008 Preview may run into some conversion issues if the current regional settings are not English for Silverlight 2 projects

    Does this issue happen only for Silverlight 2 projects or also for WPF projects?

    I've tried inserting the path you specified (using <Path Data="..." />), but I couldn't get it parsed in Blend. Could you copy paste the xaml for the path?

    Thanks,
    Adrian

    - Adrian Vinca [MSFT]
    Content is provided "AS IS" with no warranties and confers no rights. Opinions are my own and do not represent those of my employer.
    Tuesday, March 11, 2008 2:53 AM
  • <UserControl x:Class="YourClass"
    xmlns="http://schemas.microsoft.com/client/2007"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Width="713.227" Height="316.634" xmlns:YourNS="clr-namespace:YourNS">
    <Canvas Height="316.634" Width="713.227">
    <Path Width="158.036" Height="316.071" Canvas.Left="554.964" Canvas.Top="-0.14859" Stretch="Fill" Data="F1 M 554.964,26.1032L 554.964,-0.14859C 642.245,-0.14859 713,70.6062 713,157.887C 713,245.168 642.245,315.923 554.964,315.923L 554.964,289.671C 627.748,289.671 686.748,230.67 686.748,157.887C 686.748,85.1047 627.748,26.1032 554.964,26.1032 Z " x:Name="RightRound">
    </Canvas>
    </UserControl>
    this is the usercontrol i've made. It's a different path but it's just as garbled :). I've tried to switch the regional setting but that didn't help. The problem does not occur in a WPF project with the same path.


    Tuesday, March 11, 2008 6:51 PM
  • Looking at the first post I do believe that the original issue was due to the locale. The path data that you provided had no decimal separators and also has semicolons in it. (some locales use ',' for decimal separator and ';' for list separator)

    Also, The XAML that you provided in the last post did not have a closing tag for the Path element and also the Path had no Fill so it could not be seen.

    Once I closed the tag and gave it a Fill then it looks fine and I can select and edit it in the design view.

    Here is the XAML

    <Canvas Height="316.634" Width="713.227">
    <Path Width="158.036" Height="316.071" Canvas.Left="554.964" Canvas.Top="-0.14859" Stretch="Fill" Data="F1 M 554.964,26.1032L 554.964,-0.14859C 642.245,-0.14859 713,70.6062 713,157.887C 713,245.168 642.245,315.923 554.964,315.923L 554.964,289.671C 627.748,289.671 686.748,230.67 686.748,157.887C 686.748,85.1047 627.748,26.1032 554.964,26.1032 Z " x:Name="RightRound" Fill="#FFFF0000" />
    </Canvas>

    Thanks,
    Jeetendra Kukreja
    Wednesday, March 19, 2008 3:39 AM