diff --git a/PocketSharp.Examples/PocketSharp.Silverlight/App.xaml b/PocketSharp.Examples/PocketSharp.Silverlight/App.xaml
new file mode 100644
index 0000000..3d26bdd
--- /dev/null
+++ b/PocketSharp.Examples/PocketSharp.Silverlight/App.xaml
@@ -0,0 +1,8 @@
+
+
+
+
+
diff --git a/PocketSharp.Examples/PocketSharp.Silverlight/App.xaml.cs b/PocketSharp.Examples/PocketSharp.Silverlight/App.xaml.cs
new file mode 100644
index 0000000..16f84b6
--- /dev/null
+++ b/PocketSharp.Examples/PocketSharp.Silverlight/App.xaml.cs
@@ -0,0 +1,68 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Net;
+using System.Windows;
+using System.Windows.Controls;
+using System.Windows.Documents;
+using System.Windows.Input;
+using System.Windows.Media;
+using System.Windows.Media.Animation;
+using System.Windows.Shapes;
+
+namespace PocketSharp.Silverlight
+{
+ public partial class App : Application
+ {
+
+ public App()
+ {
+ this.Startup += this.Application_Startup;
+ this.Exit += this.Application_Exit;
+ this.UnhandledException += this.Application_UnhandledException;
+
+ InitializeComponent();
+ }
+
+ private void Application_Startup(object sender, StartupEventArgs e)
+ {
+ this.RootVisual = new MainPage();
+ }
+
+ private void Application_Exit(object sender, EventArgs e)
+ {
+
+ }
+
+ private void Application_UnhandledException(object sender, ApplicationUnhandledExceptionEventArgs e)
+ {
+ // If the app is running outside of the debugger then report the exception using
+ // the browser's exception mechanism. On IE this will display it a yellow alert
+ // icon in the status bar and Firefox will display a script error.
+ if (!System.Diagnostics.Debugger.IsAttached)
+ {
+
+ // NOTE: This will allow the application to continue running after an exception has been thrown
+ // but not handled.
+ // For production applications this error handling should be replaced with something that will
+ // report the error to the website and stop the application.
+ e.Handled = true;
+ Deployment.Current.Dispatcher.BeginInvoke(delegate { ReportErrorToDOM(e); });
+ }
+ }
+
+ private void ReportErrorToDOM(ApplicationUnhandledExceptionEventArgs e)
+ {
+ try
+ {
+ string errorMsg = e.ExceptionObject.Message + e.ExceptionObject.StackTrace;
+ errorMsg = errorMsg.Replace('"', '\'').Replace("\r\n", @"\n");
+
+ System.Windows.Browser.HtmlPage.Window.Eval("throw new Error(\"Unhandled Error in Silverlight Application " + errorMsg + "\");");
+ }
+ catch (Exception)
+ {
+ }
+ }
+ }
+}
diff --git a/PocketSharp.Examples/PocketSharp.Silverlight/MainPage.xaml b/PocketSharp.Examples/PocketSharp.Silverlight/MainPage.xaml
new file mode 100644
index 0000000..0e9b987
--- /dev/null
+++ b/PocketSharp.Examples/PocketSharp.Silverlight/MainPage.xaml
@@ -0,0 +1,16 @@
+
+
+
+
+
+
+
+
+
diff --git a/PocketSharp.Examples/PocketSharp.Silverlight/MainPage.xaml.cs b/PocketSharp.Examples/PocketSharp.Silverlight/MainPage.xaml.cs
new file mode 100644
index 0000000..66c6a57
--- /dev/null
+++ b/PocketSharp.Examples/PocketSharp.Silverlight/MainPage.xaml.cs
@@ -0,0 +1,70 @@
+using System;
+using System.Collections.Generic;
+using System.Collections.ObjectModel;
+using System.Diagnostics;
+using System.Linq;
+using System.Net;
+using System.Windows;
+using System.Windows.Controls;
+using System.Windows.Documents;
+using System.Windows.Input;
+using System.Windows.Media;
+using System.Windows.Media.Animation;
+using System.Windows.Shapes;
+
+namespace PocketSharp.Silverlight
+{
+ public partial class MainPage : UserControl
+ {
+ ObservableCollection _Sites = new ObservableCollection();
+
+ public ObservableCollection Sites { get { return _Sites; } }
+
+ public class Site
+ {
+ public string Url { get; set; }
+ public string Content { get; set; }
+ }
+
+
+ public MainPage()
+ {
+ InitializeComponent();
+ }
+
+
+ private async void Button_Click(object sender, RoutedEventArgs e)
+ {
+ // User: pocketsharp-tests
+ // PW: pocketsharp
+ // !! please don't misuse this account !!
+ PocketClient client = new PocketClient(
+ consumerKey: "15396-f6f92101d72c8e270a6c9bb3",
+ callbackUri: "http://frontendplay.com",
+ accessCode: "2c62cd50-b78a-5558-918b-65adae"
+ );
+
+ List items = null;
+
+ try
+ {
+ items = await client.Retrieve();
+
+ items.ForEach(item =>
+ {
+ Sites.Add(new Site()
+ {
+ Content = item.Title,
+ Url = item.Uri.ToString()
+ });
+ });
+
+ Content.ItemsSource = Sites;
+ }
+ catch (PocketException ex)
+ {
+ Debug.WriteLine(ex.Message);
+ }
+ }
+ }
+}
diff --git a/PocketSharp.Examples/PocketSharp.Silverlight/PocketSharp.Silverlight.csproj b/PocketSharp.Examples/PocketSharp.Silverlight/PocketSharp.Silverlight.csproj
new file mode 100644
index 0000000..d7b1ae7
--- /dev/null
+++ b/PocketSharp.Examples/PocketSharp.Silverlight/PocketSharp.Silverlight.csproj
@@ -0,0 +1,151 @@
+
+
+
+ Debug
+ AnyCPU
+ 8.0.50727
+ 2.0
+ {656345D2-AF4C-4F88-9C9F-EBF54D7691DB}
+ {A1591282-1198-4647-A2B1-27E5FF5F6F3B};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}
+ Library
+ Properties
+ PocketSharp.Silverlight
+ PocketSharp.Silverlight
+ Silverlight
+ v5.0
+ $(TargetFrameworkVersion)
+ true
+
+
+ true
+ true
+ PocketSharp.Silverlight.xap
+ Properties\AppManifest.xml
+ PocketSharp.Silverlight.App
+ PocketSharp.SilverlightTestPage.html
+ true
+ true
+ false
+ Properties\OutOfBrowserSettings.xml
+ false
+ true
+
+
+ 12.0.40612.10
+ ..\..\
+ true
+
+
+
+ v3.5
+
+
+ true
+ full
+ false
+ Bin\Debug
+ DEBUG;TRACE;SILVERLIGHT
+ true
+ true
+ prompt
+ 4
+
+
+ pdbonly
+ true
+ Bin\Release
+ TRACE;SILVERLIGHT
+ true
+ true
+ prompt
+ 4
+
+
+
+ ..\..\packages\Microsoft.Bcl.Async.1.0.16\lib\sl4\Microsoft.Threading.Tasks.dll
+
+
+ ..\..\packages\Microsoft.Bcl.Async.1.0.16\lib\sl4\Microsoft.Threading.Tasks.Extensions.dll
+
+
+ ..\..\packages\Microsoft.Bcl.Async.1.0.16\lib\sl4\Microsoft.Threading.Tasks.Extensions.Silverlight.dll
+
+
+
+
+ ..\..\packages\Microsoft.Bcl.1.0.19\lib\sl5\System.Runtime.dll
+
+
+ ..\..\packages\Microsoft.Bcl.1.0.19\lib\sl5\System.Threading.Tasks.dll
+
+
+
+
+ $(TargetFrameworkDirectory)System.Core.dll
+
+
+
+
+
+
+
+
+
+
+ App.xaml
+
+
+ MainPage.xaml
+
+
+
+
+
+ Designer
+ MSBuild:Compile
+
+
+ Designer
+ MSBuild:Compile
+
+
+
+
+
+
+
+
+ {817200c3-a327-4e35-9b5f-63a51c088577}
+ PocketSharp
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ This project references NuGet package(s) that are missing on this computer. Enable NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/PocketSharp.Examples/PocketSharp.Silverlight/Properties/AppManifest.xml b/PocketSharp.Examples/PocketSharp.Silverlight/Properties/AppManifest.xml
new file mode 100644
index 0000000..6712a11
--- /dev/null
+++ b/PocketSharp.Examples/PocketSharp.Silverlight/Properties/AppManifest.xml
@@ -0,0 +1,6 @@
+
+
+
+
diff --git a/PocketSharp.Examples/PocketSharp.Silverlight/Properties/AssemblyInfo.cs b/PocketSharp.Examples/PocketSharp.Silverlight/Properties/AssemblyInfo.cs
new file mode 100644
index 0000000..c507cb5
--- /dev/null
+++ b/PocketSharp.Examples/PocketSharp.Silverlight/Properties/AssemblyInfo.cs
@@ -0,0 +1,35 @@
+using System.Reflection;
+using System.Runtime.CompilerServices;
+using System.Runtime.InteropServices;
+
+// General Information about an assembly is controlled through the following
+// set of attributes. Change these attribute values to modify the information
+// associated with an assembly.
+[assembly: AssemblyTitle("PocketSharp.Silverlight")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("")]
+[assembly: AssemblyProduct("PocketSharp.Silverlight")]
+[assembly: AssemblyCopyright("Copyright © 2013")]
+[assembly: AssemblyTrademark("")]
+[assembly: AssemblyCulture("")]
+
+// Setting ComVisible to false makes the types in this assembly not visible
+// to COM components. If you need to access a type in this assembly from
+// COM, set the ComVisible attribute to true on that type.
+[assembly: ComVisible(false)]
+
+// The following GUID is for the ID of the typelib if this project is exposed to COM
+[assembly: Guid("656345d2-af4c-4f88-9c9f-ebf54d7691db")]
+
+// Version information for an assembly consists of the following four values:
+//
+// Major Version
+// Minor Version
+// Build Number
+// Revision
+//
+// You can specify all the values or you can default the Revision and Build Numbers
+// by using the '*' as shown below:
+[assembly: AssemblyVersion("1.0.0.0")]
+[assembly: AssemblyFileVersion("1.0.0.0")]
diff --git a/PocketSharp.Examples/PocketSharp.Silverlight/packages.config b/PocketSharp.Examples/PocketSharp.Silverlight/packages.config
new file mode 100644
index 0000000..ac524f4
--- /dev/null
+++ b/PocketSharp.Examples/PocketSharp.Silverlight/packages.config
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file