public static void loadViewToScene(String path, RenderScene scene) { scene.removeAllChild(); String absPath = UIProject.Instance().GetRealFile(path); String content = FileHelper.GetFullContent(absPath); XElement xml = XmlHelper.Parse(content); if (xml == null) { return; } scene.getAttrByXml(xml); scene.Refresh(); }
public static void loadViewToScene(XElement xml, RenderScene scene) { scene.removeAllChild(); scene.getAttrByXml(xml); scene.Refresh(); }