I used Telerik to convert all the code at that link to VB (Telerik can convert VB to C# also).
Then I had to download
Microsoft SQL Server Compact 3.5 Service Pack 2 for Windows Desktop and it extracts three files which you can extract to your desktop. The readme says if you're on x64 PC install both the x86 and x64 which I did. However a newer version of SQL Server
Compact is available I believe but perhaps the connection string in the app is for 3.5. I don't really know other than before I downloaded and installed the above the app was crashing because it wanted the 3.5 edition for creating and accessing a database.
The code always returns an exception of object not set to an instance (or something similar) when an Item is to be added (a task). Also I added a variable called "CountIt" thinking that a number had to be provided with the item being added.
You will see that in one of the click events.
Also all of the buttons are not being displayed in the designer window which I didn't look into. Only the add button, a listbox and a textbox are displayed. Maybe you can get assistance in resolving that in the WPF forum.
However in the XAML in the designer window I did have to remove any code referencing static resources for Windows Phone. I did find various "mark up" files containing "dictionaries" (I opened them with notepad) in "C:\Program
Files (x86)\Microsoft SDKs\Windows Phone\v8.1\Design" (and some sub folders of it) and attempted to try to use those dictionaries with the app but don't know how to do that or if they would work anyhow. I was hoping doing that the static resource references
could be made to work using the windows phone capabilities even though this is not a windows phone app.
The app does create a database on my desktop with the connection string I finally used though.
The project is on my onedrive at the below link. If you download and open it you should be able to copy all of the code out of the MainWindow.Xaml.Vb file and convert that to C# and the Application.Xaml.Vb file and convert that to C# and just copy the XAML
from the main window in designer to a C# project.
https://onedrive.live.com/redir?resid=B8AB225FA76F270D!181&authkey=!ABgYfDCYzXe4bV8&ithint=file%2czip
La vida loca