﻿<?xml version="1.0" encoding="utf-8"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><title>Intersoft Community - WinRT</title><link>http://www.intersoftsolutions.com/Community/Tags/WinRT/</link><description /><generator>http://www.intersoftsolutions.com</generator><language>en</language><copyright>Copyright 2002 - 2015 Intersoft Solutions Corp. All rights reserved.</copyright><ttl>60</ttl><item><title>Porting Win RT app using Crosslight for backend code to iOS/Android - is Xamarin.Forms viable?</title><link>http://www.intersoftsolutions.com/Community/Tags/WinRT/</link><pubDate>Mon, 07 Mar 2016 21:38:34 GMT</pubDate><dc:creator>jan.eeckhout@globis.be</dc:creator><category>WinRT</category><category>Xamarin.Forms</category><description>At our company, we developed a WinRT app (Windows 8.1) that uses our main application as a backend. This code is written in C#, using Crosslight to access our internal SQLite database (for offline usage), for IoC and as a base for the ViewModels (and thus supporting navigation between the different ViewModels).&lt;div&gt;One of our customers is asking for a version for iPad and/or Android devices. We are willing to develop a port of this app, but are wondering if we could do this with the use of Xamarin.Forms, as we would like to have a minimum of code differences between the different platforms.&amp;nbsp;&lt;/div&gt;&lt;div&gt;Can we re-use the currently existing backend code (IoC, Database layer, ...) and the viewmodels using Crosslight, and have the frontend built with Xamarin.Forms?&lt;/div&gt;</description></item><item><title>Using Sqlite in WinRT App</title><link>http://www.intersoftsolutions.com/Community/Tags/WinRT/</link><pubDate>Tue, 02 Sep 2014 10:13:01 GMT</pubDate><dc:creator>Jeankie</dc:creator><category>Sqlite</category><category>WinRT</category><description>&lt;p&gt;Hi all,&lt;/p&gt;&lt;p&gt;I've recently started a trial of crosslight mobile studio for a proof of concept.&lt;/p&gt;&lt;p&gt;What i'm trying to do is creating a simple Windows 8.1 app with local database access using SQLite. But i'm having some trouble with the SQLite part :)&lt;/p&gt;&lt;p&gt;I have 2 projects, "App.Core" and "App.WinRT".&amp;nbsp;&lt;/p&gt;&lt;p&gt;In the core project I've made a reference with the following assemblies:&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;.NET&lt;/li&gt;&lt;li&gt;Intersoft.AppFramework&lt;/li&gt;&lt;li&gt;Intersoft.Crosslight&lt;/li&gt;&lt;li&gt;Intersoft.Crosslight.Data&lt;/li&gt;&lt;li&gt;Intersoft.Crosslight.Data.ComponentModel&lt;/li&gt;&lt;li&gt;Intersoft.Crosslight.Data.SQLite&lt;/li&gt;&lt;li&gt;Several Nuget packages to get this project to build (Some Microsoft Bcl packages.&lt;/li&gt;&lt;/ul&gt;In the WinRT project I've made references to same intersoft assemblies. I also made a reference to the Intersoft.Crosslight.Data.SQLite.WinRT assembly (which is the platform specific assembly) and an SDK extension package called SQLite for Windows Runtime (Windows 8.1)&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;In the AppService class constructor in the Core project I've added some Appsettings and a SQLiteService.&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; AppSettings settings = new AppSettings();&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-size: 10pt;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; settings.RequiresInternetConnection = false;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; settings.LocalDatabaseName = "database.db3";&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; settings.LocalDatabaseLocation = LocalFolderKind.Data;&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; settings.DataSynchronizationMode = DataSynchronizationMode.LoadPartial;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; this.GetService&amp;lt;ITypeResolverService&amp;gt;().Register(typeof(CrosslightAppAppService).Assembly);&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //Container.Current.RegisterInstance(settings);&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Container.Current.Register&amp;lt;IEntityContainer&amp;gt;("Default", c =&amp;gt; new EntityContainer()).WithLifetimeManager(new ContainerLifetime());&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ServiceProvider.AddService&amp;lt;ISQLiteService, SQLiteService&amp;gt;();&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;In the OnStart method i've added the following lines.&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ISQLiteService service = ServiceProvider.GetService&amp;lt;ISQLiteService&amp;gt;();&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ISQLiteAsyncConnection connection = service.OpenConnection("database.db3");&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;These lines throws the following error:&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;System.Exception: The SQLite platform service is not initialized. Please make sure the Intersoft.Crosslight.Data.SQLite.[platform] is referenced in your project.&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp;at Intersoft.AppFramework.Services.SQLiteService.OpenConnection(String dbName)&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp;at CrosslightApp2.Infrastructure.CrosslightAppAppService.OnStart(StartParameter parameter)&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp;at Intersoft.Crosslight.ApplicationServiceBase.Intersoft.Crosslight.IApplicationService.OnStart(StartParameter parameter)&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp;at Intersoft.Crosslight.WinRT.Application.&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;I've added a sample solution to this thread. Can someone please tell me what to do in order to create a local SQLite database and access it from the windows RT app.&lt;/p&gt;&lt;p&gt;Thanks!&lt;/p&gt;&lt;p&gt;Kind regards,&lt;/p&gt;&lt;p&gt;Jan&lt;/p&gt;&lt;/div&gt;</description></item></channel></rss>