/ WP8.1の/ XamlReaderエラー - c#、xaml、windows-runtime、windows-phone-8.1

WP8.1のXamlReaderエラー - c#、xaml、windows-runtime、windows-phone-8.1

私はMSDNからこのコードをコピーします ウェブサイト

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

しかし私はエラーを投げます

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

私がそれを直すのを手伝ってください。ありがとう

回答:

回答№1は1

次のXAMLを試してください。xmlnsが見つからないようです。

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