diff --git a/.gitignore b/.gitignore
index 2780560..cbca87a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -165,5 +165,4 @@ $RECYCLE.BIN/
# =========================
PocketSharp.Console/
-PocketSharp.WpfTests/
!PocketSharp.Website/Release/
diff --git a/PocketSharp.Examples/PocketSharp.Wpf/App.xaml b/PocketSharp.Examples/PocketSharp.Wpf/App.xaml
new file mode 100644
index 0000000..1e02642
--- /dev/null
+++ b/PocketSharp.Examples/PocketSharp.Wpf/App.xaml
@@ -0,0 +1,8 @@
+
+
+
+
+
diff --git a/PocketSharp.Examples/PocketSharp.Wpf/App.xaml.cs b/PocketSharp.Examples/PocketSharp.Wpf/App.xaml.cs
new file mode 100644
index 0000000..008b664
--- /dev/null
+++ b/PocketSharp.Examples/PocketSharp.Wpf/App.xaml.cs
@@ -0,0 +1,16 @@
+using System;
+using System.Collections.Generic;
+using System.Configuration;
+using System.Data;
+using System.Linq;
+using System.Windows;
+
+namespace PocketSharp.Wpf
+{
+ ///
+ /// Interaction logic for App.xaml
+ ///
+ public partial class App : Application
+ {
+ }
+}
diff --git a/PocketSharp.Examples/PocketSharp.Wpf/MainWindow.xaml b/PocketSharp.Examples/PocketSharp.Wpf/MainWindow.xaml
new file mode 100644
index 0000000..4fb7ccb
--- /dev/null
+++ b/PocketSharp.Examples/PocketSharp.Wpf/MainWindow.xaml
@@ -0,0 +1,18 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/PocketSharp.Examples/PocketSharp.Wpf/MainWindow.xaml.cs b/PocketSharp.Examples/PocketSharp.Wpf/MainWindow.xaml.cs
new file mode 100644
index 0000000..d5157fc
--- /dev/null
+++ b/PocketSharp.Examples/PocketSharp.Wpf/MainWindow.xaml.cs
@@ -0,0 +1,64 @@
+using System.Windows;
+using System.Windows.Controls;
+using System.Collections.ObjectModel;
+using System.Diagnostics;
+using System.Collections.Generic;
+using System;
+
+namespace PocketSharp.Wpf
+{
+ ///
+ /// Interaction logic for MainWindow.xaml
+ ///
+ public partial class MainWindow : Window
+ {
+ ObservableCollection _Sites = new ObservableCollection();
+
+ public ObservableCollection Sites { get { return _Sites; } }
+
+ public class Site
+ {
+ public string Url { get; set; }
+ public string Content { get; set; }
+ }
+
+
+ public MainWindow()
+ {
+ 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()
+ });
+ });
+ }
+ catch (PocketException ex)
+ {
+ Debug.Write(ex.Message);
+ }
+ }
+ }
+}
diff --git a/PocketSharp.Examples/PocketSharp.Wpf/PocketSharp.Wpf.csproj b/PocketSharp.Examples/PocketSharp.Wpf/PocketSharp.Wpf.csproj
new file mode 100644
index 0000000..d7c9915
--- /dev/null
+++ b/PocketSharp.Examples/PocketSharp.Wpf/PocketSharp.Wpf.csproj
@@ -0,0 +1,143 @@
+
+
+
+
+ Debug
+ AnyCPU
+ {775569C2-987F-4AC4-8BA5-A315A21ED1B7}
+ WinExe
+ Properties
+ PocketSharp.Wpf
+ PocketSharp.Wpf
+ v4.5
+ 512
+ {60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}
+ 4
+
+ ..\..\
+ true
+
+
+ AnyCPU
+ true
+ full
+ false
+ bin\Debug\
+ DEBUG;TRACE
+ prompt
+ 4
+ false
+
+
+ AnyCPU
+ pdbonly
+ true
+ bin\Release\
+ TRACE
+ prompt
+ 4
+ false
+
+
+
+ ..\..\packages\Microsoft.Bcl.Async.1.0.16\lib\net45\Microsoft.Threading.Tasks.dll
+
+
+ ..\..\packages\Microsoft.Bcl.Async.1.0.16\lib\net45\Microsoft.Threading.Tasks.Extensions.dll
+
+
+
+
+
+
+ ..\..\packages\Microsoft.Net.Http.2.2.13\lib\net45\System.Net.Http.Extensions.dll
+
+
+ False
+ ..\..\packages\Microsoft.Net.Http.2.2.13\lib\net45\System.Net.Http.Primitives.dll
+
+
+
+
+
+
+
+
+ 4.0
+
+
+
+
+
+
+
+ MSBuild:Compile
+ Designer
+
+
+
+ MSBuild:Compile
+ Designer
+
+
+ App.xaml
+ Code
+
+
+ MainWindow.xaml
+ Code
+
+
+
+
+ Code
+
+
+ True
+ True
+ Resources.resx
+
+
+ True
+ Settings.settings
+ True
+
+
+ ResXFileCodeGenerator
+ Resources.Designer.cs
+
+
+
+
+ SettingsSingleFileGenerator
+ Settings.Designer.cs
+
+
+
+
+
+ {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}.
+
+
+
+
+
+
+
+
+
+
diff --git a/PocketSharp.Examples/PocketSharp.Wpf/Properties/AssemblyInfo.cs b/PocketSharp.Examples/PocketSharp.Wpf/Properties/AssemblyInfo.cs
new file mode 100644
index 0000000..5d53e83
--- /dev/null
+++ b/PocketSharp.Examples/PocketSharp.Wpf/Properties/AssemblyInfo.cs
@@ -0,0 +1,55 @@
+using System.Reflection;
+using System.Resources;
+using System.Runtime.CompilerServices;
+using System.Runtime.InteropServices;
+using System.Windows;
+
+// 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.Wpf")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("")]
+[assembly: AssemblyProduct("PocketSharp.Wpf")]
+[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)]
+
+//In order to begin building localizable applications, set
+//CultureYouAreCodingWith in your .csproj file
+//inside a . For example, if you are using US english
+//in your source files, set the to en-US. Then uncomment
+//the NeutralResourceLanguage attribute below. Update the "en-US" in
+//the line below to match the UICulture setting in the project file.
+
+//[assembly: NeutralResourcesLanguage("en-US", UltimateResourceFallbackLocation.Satellite)]
+
+
+[assembly: ThemeInfo(
+ ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located
+ //(used if a resource is not found in the page,
+ // or application resource dictionaries)
+ ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located
+ //(used if a resource is not found in the page,
+ // app, or any theme specific resource dictionaries)
+)]
+
+
+// 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 Build and Revision Numbers
+// by using the '*' as shown below:
+// [assembly: AssemblyVersion("1.0.*")]
+[assembly: AssemblyVersion("1.0.0.0")]
+[assembly: AssemblyFileVersion("1.0.0.0")]
diff --git a/PocketSharp.Examples/PocketSharp.Wpf/Properties/Resources.Designer.cs b/PocketSharp.Examples/PocketSharp.Wpf/Properties/Resources.Designer.cs
new file mode 100644
index 0000000..909c416
--- /dev/null
+++ b/PocketSharp.Examples/PocketSharp.Wpf/Properties/Resources.Designer.cs
@@ -0,0 +1,63 @@
+//------------------------------------------------------------------------------
+//
+// This code was generated by a tool.
+// Runtime Version:4.0.30319.18213
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//
+//------------------------------------------------------------------------------
+
+namespace PocketSharp.Wpf.Properties {
+ using System;
+
+
+ ///
+ /// A strongly-typed resource class, for looking up localized strings, etc.
+ ///
+ // This class was auto-generated by the StronglyTypedResourceBuilder
+ // class via a tool like ResGen or Visual Studio.
+ // To add or remove a member, edit your .ResX file then rerun ResGen
+ // with the /str option, or rebuild your VS project.
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
+ internal class Resources {
+
+ private static global::System.Resources.ResourceManager resourceMan;
+
+ private static global::System.Globalization.CultureInfo resourceCulture;
+
+ [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
+ internal Resources() {
+ }
+
+ ///
+ /// Returns the cached ResourceManager instance used by this class.
+ ///
+ [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
+ internal static global::System.Resources.ResourceManager ResourceManager {
+ get {
+ if (object.ReferenceEquals(resourceMan, null)) {
+ global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("PocketSharp.Wpf.Properties.Resources", typeof(Resources).Assembly);
+ resourceMan = temp;
+ }
+ return resourceMan;
+ }
+ }
+
+ ///
+ /// Overrides the current thread's CurrentUICulture property for all
+ /// resource lookups using this strongly typed resource class.
+ ///
+ [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
+ internal static global::System.Globalization.CultureInfo Culture {
+ get {
+ return resourceCulture;
+ }
+ set {
+ resourceCulture = value;
+ }
+ }
+ }
+}
diff --git a/PocketSharp.Examples/PocketSharp.Wpf/Properties/Resources.resx b/PocketSharp.Examples/PocketSharp.Wpf/Properties/Resources.resx
new file mode 100644
index 0000000..af7dbeb
--- /dev/null
+++ b/PocketSharp.Examples/PocketSharp.Wpf/Properties/Resources.resx
@@ -0,0 +1,117 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
\ No newline at end of file
diff --git a/PocketSharp.Examples/PocketSharp.Wpf/Properties/Settings.Designer.cs b/PocketSharp.Examples/PocketSharp.Wpf/Properties/Settings.Designer.cs
new file mode 100644
index 0000000..55791c2
--- /dev/null
+++ b/PocketSharp.Examples/PocketSharp.Wpf/Properties/Settings.Designer.cs
@@ -0,0 +1,26 @@
+//------------------------------------------------------------------------------
+//
+// This code was generated by a tool.
+// Runtime Version:4.0.30319.18213
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//
+//------------------------------------------------------------------------------
+
+namespace PocketSharp.Wpf.Properties {
+
+
+ [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")]
+ internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
+
+ private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
+
+ public static Settings Default {
+ get {
+ return defaultInstance;
+ }
+ }
+ }
+}
diff --git a/PocketSharp.Examples/PocketSharp.Wpf/Properties/Settings.settings b/PocketSharp.Examples/PocketSharp.Wpf/Properties/Settings.settings
new file mode 100644
index 0000000..033d7a5
--- /dev/null
+++ b/PocketSharp.Examples/PocketSharp.Wpf/Properties/Settings.settings
@@ -0,0 +1,7 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/PocketSharp.Examples/PocketSharp.Wpf/Site.cs b/PocketSharp.Examples/PocketSharp.Wpf/Site.cs
new file mode 100644
index 0000000..b935d82
--- /dev/null
+++ b/PocketSharp.Examples/PocketSharp.Wpf/Site.cs
@@ -0,0 +1,14 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace PocketSharp.Wpf
+{
+ public class Site
+ {
+ public string Url { get; set; }
+ public string Content { get; set; }
+ }
+}
diff --git a/PocketSharp.Examples/PocketSharp.Wpf/app.config b/PocketSharp.Examples/PocketSharp.Wpf/app.config
new file mode 100644
index 0000000..daec333
--- /dev/null
+++ b/PocketSharp.Examples/PocketSharp.Wpf/app.config
@@ -0,0 +1,12 @@
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/PocketSharp.Examples/PocketSharp.Wpf/packages.config b/PocketSharp.Examples/PocketSharp.Wpf/packages.config
new file mode 100644
index 0000000..63fcfd1
--- /dev/null
+++ b/PocketSharp.Examples/PocketSharp.Wpf/packages.config
@@ -0,0 +1,7 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/PocketSharp.Tests/PocketSharp.Tests.csproj b/PocketSharp.Tests/PocketSharp.Tests.csproj
index 3d65f9b..35505de 100644
--- a/PocketSharp.Tests/PocketSharp.Tests.csproj
+++ b/PocketSharp.Tests/PocketSharp.Tests.csproj
@@ -95,12 +95,6 @@
-
-
- {1a291041-add8-467c-a6e4-0aca26328cdf}
- PocketSharp
-
-
diff --git a/PocketSharp.sln b/PocketSharp.sln
index f49bca5..45fdd64 100644
--- a/PocketSharp.sln
+++ b/PocketSharp.sln
@@ -4,11 +4,13 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PocketSharp.Tests", "Pocket
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PocketSharp", "PocketSharp\PocketSharp.csproj", "{817200C3-A327-4E35-9B5F-63A51C088577}"
EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PocketSharp.WpfTests", "PocketSharp.WpfTests\PocketSharp.WpfTests.csproj", "{775569C2-987F-4AC4-8BA5-A315A21ED1B7}"
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PocketSharp.Wpf", "PocketSharp.Examples\PocketSharp.Wpf\PocketSharp.Wpf.csproj", "{775569C2-987F-4AC4-8BA5-A315A21ED1B7}"
ProjectSection(ProjectDependencies) = postProject
{817200C3-A327-4E35-9B5F-63A51C088577} = {817200C3-A327-4E35-9B5F-63A51C088577}
EndProjectSection
EndProject
+Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "PocketSharp.Examples", "PocketSharp.Examples", "{AFD4E3F1-B23C-4924-BA5B-D917FBADB8FA}"
+EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
@@ -31,4 +33,7 @@ Global
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
+ GlobalSection(NestedProjects) = preSolution
+ {775569C2-987F-4AC4-8BA5-A315A21ED1B7} = {AFD4E3F1-B23C-4924-BA5B-D917FBADB8FA}
+ EndGlobalSection
EndGlobal
diff --git a/PocketSharp/PocketSharp.csproj b/PocketSharp/PocketSharp.csproj
index 6bb2303..b3370d4 100644
--- a/PocketSharp/PocketSharp.csproj
+++ b/PocketSharp/PocketSharp.csproj
@@ -45,7 +45,6 @@
-