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 № 1Por 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"/>";