/ / Błąd XamlReader w WP8.1 - c #, xaml, windows-runtime, windows-phone-8.1

XamlReader błąd w WP8.1 - c#, xaml, środowisko wykonawcze systemu windows, windows telefon-8.1

Skopiowałem ten kod z MSDN Stronie internetowej

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);

Ale rzucam błąd

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

Pomóż mi to naprawić. Dzięki

Odpowiedzi:

1 dla odpowiedzi № 1

Wypróbuj poniższe XAML, wydaje się, że brakuje xmlns.

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