private void SetSource(string value) { try { var flacidLayout = (Layout)XamlLoader.Load(ReadMixin.ReadText(value)); new TemplateInflator().Inflate(flacidLayout, ControlTemplates); Layout = flacidLayout; Layout.DataContext = DataContext; } catch (Exception e) { Exception = e; this.SetNeedsDisplay(); } }
private ResourceStore CreateContainer(string containerAsset) { return((ResourceStore)XamlLoader.Load(ReadMixin.ReadText(containerAsset))); }