Skip to main content

Microsoft Silverlight

Answered Question Path elementRSS Feed

(0)

redjackl
redjackl

Member

Member

69 points

70 Posts

Path element

Is there a Path Element in New silverlight release ?

Does Xaml.Load () method works as same before?

Regards,

redjackl

mchlsync
mchlsync

Star

Star

14606 points

2,730 Posts

Silverlight MVP
Answered Question

Re: Path element

redjackl:
Is there a Path Element in New silverlight release ?
 

Path is still there in SL2.

Example: <Path Height="109.577" HorizontalAlignment="Left" Margin="183.5,102.5,0,0" VerticalAlignment="Top" Width="124.215" Data="M251,103 C372,226 260,211 260,211 C260,211 213.00029,210.99969 184.00052,168.99982" Fill="#FFFFFFFF" Stretch="Fill" Stroke="#FF000000" d:LayoutOverrides="Height"/>

redjackl:
Does Xaml.Load () method works as same before?
 

XamlReader.Load()?

 XamlReader.Load() Requires xmlns

In order to play by XML rules, XamlReader.Load() now requires you to specify an xmlns inside your XAML file.

Before

XamlReader.Load(“<Canvas/>”);

Now

XamlReader.Load("<Canvas xmlns="http://schemas.microsoft.com/client/2007"/>");

 

Hope it helps.

 

(If this has answered your question, please click on "Mark as Answer" on this post. Thank you!)

Regards,
Michael Sync
Silverlight MVP

Blog : http://michaelsync.net


CraigN
CraigN

Member

Member

352 points

89 Posts

Re: Path element

Yeah there is a Path element, System.Windows.Shapes.Path.

XamlReader.Load() has changed slightly as it now requires all XAML fragments to be properly namespaced. That means you need to make sure the correct xmlns declarations are present in the fragment.
 

Microsoft Xbox MVP
  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities