A cross-platform UI framework for .NET
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

20 lines
496 B

using System.Xml.Linq;
namespace Avalonia.Build.Tasks
{
public class XamlFileInfo
{
public string XClass { get; set; }
public static XamlFileInfo Parse(string data)
{
var xdoc = XDocument.Parse(data);
var xclass = xdoc.Root.Attribute(XName.Get("Class", "http://schemas.microsoft.com/winfx/2006/xaml"));
return new XamlFileInfo
{
XClass = xclass?.Value
};
}
}
}