/ / XamlReader error en WP8.1 - c #, xaml, windows-runtime, windows-phone-8.1

Error de XamlReader en WP8.1 - c #, xaml, windows-runtime, windows-phone-8.1

Copio este código de MSDN Sitio web

string xaml = "<Ellipse Name="EllipseAdded" Width="300.5" Height="200" Fill="Red"       "http://schemas.microsoft.com/winfx/2006/xaml/presentation"/>";
object ellipse = XamlReader.Load(xaml);

Pero lanzo un error

The text associated with this error code could not be found. illegal
qualified name character [Line: 1 Position: 68]

Por favor ayúdame a arreglarlo. Gracias

Respuestas

1 para la respuesta № 1

Por favor, intente el siguiente XAML, parece que faltan los xmlns.

string xaml = "<Ellipse Name="EllipseAdded" Width="300.5" Height="200" Fill="Red"       xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"/>";