Inheritance: IDisposable
Esempio n. 1
0
File: Xap.cs Progetto: liquidboy/X
        public async Task<Xap> createFromFile(XamlLoader loader, string filename) {

            var xap_dir = await this.Unpack(filename);
            object element_type = null;
            DependencyObject element = null;

            if (string.IsNullOrEmpty(xap_dir)) return null;

            // Load the AppManifest file
            string manifest = string.Concat(xap_dir, "appmanifest.xaml");
            element = loader.CreateDependencyObjectFromFile(manifest, false, element_type);
            //g_free(manifest);

            if (!(element_type is Deployment))
                return null;

            // TODO: Create a DependencyObject from the root node.

            Xap xap = new Xap(loader, xap_dir, element);
            return xap;


        }
Esempio n. 2
0
File: Xap.cs Progetto: liquidboy/X
        //private ZipArchive zipFile;

        public Xap(XamlLoader loader, string xapDirectory, DependencyObject root) {
            this.loader = loader;
            this.xapDirectory = xapDirectory;
            this.root = root;
        }