├── .nuget ├── NuGet.exe ├── NuGet.Config └── NuGet.targets ├── WinPhoneOneNoteServiceSample ├── Assets │ ├── Logo.jpg │ ├── attachment.pdf │ ├── AlignmentGrid.png │ ├── ApplicationIcon.png │ └── Tiles │ │ ├── IconicTileSmall.png │ │ ├── FlipCycleTileLarge.png │ │ ├── FlipCycleTileMedium.png │ │ ├── FlipCycleTileSmall.png │ │ └── IconicTileMediumLarge.png ├── Fonts │ └── LiveSymbol.ttf ├── Resources │ ├── OneNote-MX-logo.png │ ├── AppResources.Designer.cs │ └── AppResources.resx ├── Properties │ ├── AppManifest.xml │ ├── WMAppManifest.xml │ └── AssemblyInfo.cs ├── LocalizedStrings.cs ├── packages.config ├── CodeAnalysisRules.ruleset ├── App.xaml ├── StandardResponse.cs ├── MainPage.xaml ├── App.xaml.cs ├── WinPhoneOneNoteServiceSample.csproj └── MainPage.xaml.cs ├── WinPhoneOneNoteServiceSample.sln ├── README.md └── LICENSE.txt /.nuget/NuGet.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OneNoteDev/OneNoteAPISampleWinPhone/master/.nuget/NuGet.exe -------------------------------------------------------------------------------- /WinPhoneOneNoteServiceSample/Assets/Logo.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OneNoteDev/OneNoteAPISampleWinPhone/master/WinPhoneOneNoteServiceSample/Assets/Logo.jpg -------------------------------------------------------------------------------- /WinPhoneOneNoteServiceSample/Assets/attachment.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OneNoteDev/OneNoteAPISampleWinPhone/master/WinPhoneOneNoteServiceSample/Assets/attachment.pdf -------------------------------------------------------------------------------- /WinPhoneOneNoteServiceSample/Fonts/LiveSymbol.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OneNoteDev/OneNoteAPISampleWinPhone/master/WinPhoneOneNoteServiceSample/Fonts/LiveSymbol.ttf -------------------------------------------------------------------------------- /WinPhoneOneNoteServiceSample/Assets/AlignmentGrid.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OneNoteDev/OneNoteAPISampleWinPhone/master/WinPhoneOneNoteServiceSample/Assets/AlignmentGrid.png -------------------------------------------------------------------------------- /WinPhoneOneNoteServiceSample/Assets/ApplicationIcon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OneNoteDev/OneNoteAPISampleWinPhone/master/WinPhoneOneNoteServiceSample/Assets/ApplicationIcon.png -------------------------------------------------------------------------------- /WinPhoneOneNoteServiceSample/Resources/OneNote-MX-logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OneNoteDev/OneNoteAPISampleWinPhone/master/WinPhoneOneNoteServiceSample/Resources/OneNote-MX-logo.png -------------------------------------------------------------------------------- /WinPhoneOneNoteServiceSample/Assets/Tiles/IconicTileSmall.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OneNoteDev/OneNoteAPISampleWinPhone/master/WinPhoneOneNoteServiceSample/Assets/Tiles/IconicTileSmall.png -------------------------------------------------------------------------------- /.nuget/NuGet.Config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /WinPhoneOneNoteServiceSample/Assets/Tiles/FlipCycleTileLarge.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OneNoteDev/OneNoteAPISampleWinPhone/master/WinPhoneOneNoteServiceSample/Assets/Tiles/FlipCycleTileLarge.png -------------------------------------------------------------------------------- /WinPhoneOneNoteServiceSample/Assets/Tiles/FlipCycleTileMedium.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OneNoteDev/OneNoteAPISampleWinPhone/master/WinPhoneOneNoteServiceSample/Assets/Tiles/FlipCycleTileMedium.png -------------------------------------------------------------------------------- /WinPhoneOneNoteServiceSample/Assets/Tiles/FlipCycleTileSmall.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OneNoteDev/OneNoteAPISampleWinPhone/master/WinPhoneOneNoteServiceSample/Assets/Tiles/FlipCycleTileSmall.png -------------------------------------------------------------------------------- /WinPhoneOneNoteServiceSample/Assets/Tiles/IconicTileMediumLarge.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OneNoteDev/OneNoteAPISampleWinPhone/master/WinPhoneOneNoteServiceSample/Assets/Tiles/IconicTileMediumLarge.png -------------------------------------------------------------------------------- /WinPhoneOneNoteServiceSample/Properties/AppManifest.xml: -------------------------------------------------------------------------------- 1 | 21 | 22 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /WinPhoneOneNoteServiceSample/LocalizedStrings.cs: -------------------------------------------------------------------------------- 1 | //********************************************************* 2 | // Copyright (c) Microsoft Corporation 3 | // All rights reserved. 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the ""License""); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // http://www.apache.org/licenses/LICENSE-2.0 9 | // 10 | // THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT 11 | // WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS 12 | // OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED 13 | // WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR 14 | // PURPOSE, MERCHANTABLITY OR NON-INFRINGEMENT. 15 | // 16 | // See the Apache Version 2.0 License for specific language 17 | // governing permissions and limitations under the License. 18 | //********************************************************* 19 | 20 | using WinPhoneOneNoteServiceSample.Resources; 21 | 22 | namespace WinPhoneOneNoteServiceSample 23 | { 24 | /// 25 | /// Provides access to string resources. 26 | /// 27 | public class LocalizedStrings 28 | { 29 | private static AppResources _localizedResources = new AppResources(); 30 | 31 | public AppResources LocalizedResources { get { return _localizedResources; } } 32 | } 33 | } -------------------------------------------------------------------------------- /WinPhoneOneNoteServiceSample/packages.config: -------------------------------------------------------------------------------- 1 | 2 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /WinPhoneOneNoteServiceSample/CodeAnalysisRules.ruleset: -------------------------------------------------------------------------------- 1 | 2 | 22 | 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /WinPhoneOneNoteServiceSample/App.xaml: -------------------------------------------------------------------------------- 1 | 21 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 38 | 39 | 40 | -------------------------------------------------------------------------------- /WinPhoneOneNoteServiceSample/Properties/WMAppManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Assets\ApplicationIcon.png 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | Assets\Tiles\FlipCycleTileSmall.png 21 | 0 22 | Assets\Tiles\FlipCycleTileMedium.png 23 | WinPhoneOneNoteServiceSample 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | -------------------------------------------------------------------------------- /WinPhoneOneNoteServiceSample.sln: -------------------------------------------------------------------------------- 1 | 2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 2012 4 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WinPhoneOneNoteServiceSample", "WinPhoneOneNoteServiceSample\WinPhoneOneNoteServiceSample.csproj", "{754B7B40-6677-44F6-A396-462677E6C394}" 5 | EndProject 6 | Global 7 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 8 | Debug|Any CPU = Debug|Any CPU 9 | Debug|ARM = Debug|ARM 10 | Debug|x86 = Debug|x86 11 | Release|Any CPU = Release|Any CPU 12 | Release|ARM = Release|ARM 13 | Release|x86 = Release|x86 14 | EndGlobalSection 15 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 16 | {754B7B40-6677-44F6-A396-462677E6C394}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 17 | {754B7B40-6677-44F6-A396-462677E6C394}.Debug|Any CPU.Build.0 = Debug|Any CPU 18 | {754B7B40-6677-44F6-A396-462677E6C394}.Debug|Any CPU.Deploy.0 = Debug|Any CPU 19 | {754B7B40-6677-44F6-A396-462677E6C394}.Debug|ARM.ActiveCfg = Debug|ARM 20 | {754B7B40-6677-44F6-A396-462677E6C394}.Debug|ARM.Build.0 = Debug|ARM 21 | {754B7B40-6677-44F6-A396-462677E6C394}.Debug|ARM.Deploy.0 = Debug|ARM 22 | {754B7B40-6677-44F6-A396-462677E6C394}.Debug|x86.ActiveCfg = Debug|x86 23 | {754B7B40-6677-44F6-A396-462677E6C394}.Debug|x86.Build.0 = Debug|x86 24 | {754B7B40-6677-44F6-A396-462677E6C394}.Debug|x86.Deploy.0 = Debug|x86 25 | {754B7B40-6677-44F6-A396-462677E6C394}.Release|Any CPU.ActiveCfg = Release|Any CPU 26 | {754B7B40-6677-44F6-A396-462677E6C394}.Release|Any CPU.Build.0 = Release|Any CPU 27 | {754B7B40-6677-44F6-A396-462677E6C394}.Release|Any CPU.Deploy.0 = Release|Any CPU 28 | {754B7B40-6677-44F6-A396-462677E6C394}.Release|ARM.ActiveCfg = Release|ARM 29 | {754B7B40-6677-44F6-A396-462677E6C394}.Release|ARM.Build.0 = Release|ARM 30 | {754B7B40-6677-44F6-A396-462677E6C394}.Release|ARM.Deploy.0 = Release|ARM 31 | {754B7B40-6677-44F6-A396-462677E6C394}.Release|x86.ActiveCfg = Release|x86 32 | {754B7B40-6677-44F6-A396-462677E6C394}.Release|x86.Build.0 = Release|x86 33 | {754B7B40-6677-44F6-A396-462677E6C394}.Release|x86.Deploy.0 = Release|x86 34 | EndGlobalSection 35 | GlobalSection(SolutionProperties) = preSolution 36 | HideSolutionNode = FALSE 37 | EndGlobalSection 38 | EndGlobal 39 | -------------------------------------------------------------------------------- /WinPhoneOneNoteServiceSample/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | //********************************************************* 2 | // Copyright (c) Microsoft Corporation 3 | // All rights reserved. 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the ""License""); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // http://www.apache.org/licenses/LICENSE-2.0 9 | // 10 | // THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT 11 | // WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS 12 | // OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED 13 | // WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR 14 | // PURPOSE, MERCHANTABLITY OR NON-INFRINGEMENT. 15 | // 16 | // See the Apache Version 2.0 License for specific language 17 | // governing permissions and limitations under the License. 18 | //********************************************************* 19 | 20 | using System.Reflection; 21 | using System.Runtime.CompilerServices; 22 | using System.Runtime.InteropServices; 23 | using System.Resources; 24 | 25 | // General Information about an assembly is controlled through the following 26 | // set of attributes. Change these attribute values to modify the information 27 | // associated with an assembly. 28 | [assembly: AssemblyTitle("WinPhoneOneNoteServiceSample")] 29 | [assembly: AssemblyDescription("")] 30 | [assembly: AssemblyConfiguration("")] 31 | [assembly: AssemblyCompany("")] 32 | [assembly: AssemblyProduct("WinPhoneOneNoteServiceSample")] 33 | [assembly: AssemblyCopyright("Copyright © 2013")] 34 | [assembly: AssemblyTrademark("")] 35 | [assembly: AssemblyCulture("")] 36 | 37 | // Setting ComVisible to false makes the types in this assembly not visible 38 | // to COM components. If you need to access a type in this assembly from 39 | // COM, set the ComVisible attribute to true on that type. 40 | [assembly: ComVisible(false)] 41 | 42 | // The following GUID is for the ID of the typelib if this project is exposed to COM 43 | [assembly: Guid("dfadc673-1389-4ee5-a542-e4180d8f1c57")] 44 | 45 | // Version information for an assembly consists of the following four values: 46 | // 47 | // Major Version 48 | // Minor Version 49 | // Build Number 50 | // Revision 51 | // 52 | // You can specify all the values or you can default the Revision and Build Numbers 53 | // by using the '*' as shown below: 54 | [assembly: AssemblyVersion("1.0.0.0")] 55 | [assembly: AssemblyFileVersion("1.0.0.0")] 56 | [assembly: NeutralResourcesLanguageAttribute("en-US")] 57 | -------------------------------------------------------------------------------- /WinPhoneOneNoteServiceSample/StandardResponse.cs: -------------------------------------------------------------------------------- 1 | //********************************************************* 2 | // Copyright (c) Microsoft Corporation 3 | // All rights reserved. 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the ""License""); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // http://www.apache.org/licenses/LICENSE-2.0 9 | // 10 | // THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT 11 | // WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS 12 | // OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED 13 | // WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR 14 | // PURPOSE, MERCHANTABLITY OR NON-INFRINGEMENT. 15 | // 16 | // See the Apache Version 2.0 License for specific language 17 | // governing permissions and limitations under the License. 18 | //********************************************************* 19 | 20 | using System.Net; 21 | 22 | namespace WinPhoneOneNoteServiceSample 23 | { 24 | /// 25 | /// Base class representing a simplified response from a service call 26 | /// 27 | public abstract class StandardResponse 28 | { 29 | public HttpStatusCode StatusCode { get; set; } 30 | 31 | /// 32 | /// Per call identifier that can be logged to diagnose issues with Microsoft support 33 | /// 34 | public string CorrelationId { get; set; } 35 | } 36 | 37 | /// 38 | /// Class representing standard error from the service 39 | /// 40 | public class StandardErrorResponse : StandardResponse 41 | { 42 | /// 43 | /// Error message - intended for developer, not end user 44 | /// 45 | public string Message { get; set; } 46 | 47 | /// 48 | /// Constructor 49 | /// 50 | public StandardErrorResponse() 51 | { 52 | this.StatusCode = HttpStatusCode.InternalServerError; 53 | } 54 | } 55 | 56 | /// 57 | /// Class representing a successful create call from the service 58 | /// 59 | public class CreateSuccessResponse : StandardResponse 60 | { 61 | /// 62 | /// URL to launch OneNote rich client 63 | /// 64 | public string OneNoteClientUrl { get; set; } 65 | 66 | /// 67 | /// URL to launch OneNote web experience 68 | /// 69 | public string OneNoteWebUrl { get; set; } 70 | } 71 | } -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | ## OneNote service API Windows Phone Sample README 2 | 3 | Created by Microsoft Corporation, 2014. Provided As-is without warranty. Trademarks mentioned here are the property of their owners. 4 | 5 | 6 | ### API functionality demonstrated in this sample 7 | ###The below code sample should be considered for legacy reasons only. For the most up to date Windows code samples, see the newer and more detailed [Windows Universal code sample](https://github.com/OneNoteDev/OneNoteAPISampleWinUniversal) 8 | 9 | The following aspects of the API are covered in this sample. You can 10 | find additional documentation at the links below. 11 | 12 | * [Log-in the user using the Live SDK](http://msdn.microsoft.com/EN-US/library/office/dn575435.aspx) 13 | * [POST simple HTML to a new OneNote QuickNotes page](http://msdn.microsoft.com/EN-US/library/office/dn575428.aspx) 14 | * [POST page in a specific section](http://msdn.microsoft.com/EN-US/library/office/dn672416.aspx) 15 | * [POST multi-part message with image data included in the request](http://msdn.microsoft.com/EN-US/library/office/dn575432.aspx) 16 | * [POST page with a URL rendered as an image](http://msdn.microsoft.com/EN-US/library/office/dn575431.aspx) 17 | * [POST page with a file attachment](http://msdn.microsoft.com/en-us/library/office/dn575436.aspx) 18 | * [POST page with a PDF file rendered and attached](http://msdn.microsoft.com/EN-US/library/office/dn655137.aspx) 19 | * [Extract the returned oneNoteClientURL and oneNoteWebURL links](http://msdn.microsoft.com/EN-US/library/office/dn575433.aspx) 20 | 21 | ### Prerequisites 22 | 23 | **Tools and Libraries** you will need to download, install, and configure for your development environment. 24 | 25 | * [Visual Studio 2012 or 2013](http://www.visualstudio.com/en-us/downloads). 26 | 27 | Be sure you enable the Windows Phone SDK when you install Visual Studio. 28 | If you don't, you will need to uninstall and re-install Visual Studio to get 29 | those features. 30 | 31 | **NuGet packages** used in the sample. These are handled using the package 32 | manager, as described in the setup instructions. These should update 33 | automatically at build time; if not, make sure your NuGet package manager 34 | is up-to-date. You can learn more about the packages we used at the links below. 35 | 36 | * [Newtonsoft Json.NET package](http://newtonsoft.com/) provides Json parsing utilities. 37 | * [Windows Live Connect SDK](https://github.com/liveservices/LiveSDK-for-Windows) provides the sign-in and authorization libraries 38 | * [.NET Http.client library](https://www.nuget.org/packages/Microsoft.Net.Http/) provides libraries that handle the HTTP request/responses. 39 | * [Microsoft BCL Build components](https://www.nuget.org/packages/Microsoft.Bcl.Build) provide build-infrastructure components. 40 | * [Microsoft BCL Portability Pack](https://www.nuget.org/packages/Microsoft.Bcl/) provides support for down-level data types. 41 | 42 | **Accounts** 43 | 44 | * As the developer, you'll need to [have a Microsoft account and get a client ID string](http://msdn.microsoft.com/EN-US/library/office/dn575426.aspx) 45 | so your app can authenticate with the Microsoft Live connect SDK. 46 | 47 | ### Using the sample 48 | 49 | After you've setup your development tools, and installed the prerequisites listed above,... 50 | 51 | 1. Download the repo as a ZIP file to your local computer, and extract the files. Or, clone the repository into a local copy of Git. 52 | 2. Open the project in Visual Studio. 53 | 3. Get a client ID string and copy it into the file .../MainPage.xaml.cs (~line 63). 54 | 4. Build and run the app (F5). 55 | 56 | (If your copy of NuGet is up-to-date, it should automatically 57 | update the packages. If you get package-not-found errors, update NuGet and rebuild, and that 58 | should fix it.) 59 | 60 | 5. Sign in to your Microsoft account in the running app. 61 | 6. Allow the app to create new pages in OneNote. 62 | 63 | ### Version Info 64 | 65 | This is the initial public release for this code sample. 66 | 67 | ### Learning More 68 | 69 | * Visit the [dev.onenote.com](http://dev.onenote.com) Dev Center 70 | * Contact us on [StackOverflow (tagged OneNote)](http://go.microsoft.com/fwlink/?LinkID=390182) 71 | * Follow us on [Twitter @onenotedev](http://www.twitter.com/onenotedev) 72 | * Read our [OneNote Developer blog](http://go.microsoft.com/fwlink/?LinkID=390183) 73 | * Explore the API using the [apigee.com interactive console](http://go.microsoft.com/fwlink/?LinkID=392871). 74 | Also, see the [short overview/tutorial](http://go.microsoft.com/fwlink/?LinkID=390179). 75 | * [API Reference](http://msdn.microsoft.com/en-us/library/office/dn575437.aspx) documentation 76 | * [Debugging / Troubleshooting](http://msdn.microsoft.com/EN-US/library/office/dn575430.aspx) 77 | * [Getting Started](http://go.microsoft.com/fwlink/?LinkID=331026) with the OneNote service API 78 | 79 | This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments. 80 | -------------------------------------------------------------------------------- /WinPhoneOneNoteServiceSample/Resources/AppResources.Designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Runtime Version:4.0.30319.34003 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | namespace WinPhoneOneNoteServiceSample.Resources { 12 | using System; 13 | 14 | 15 | /// 16 | /// A strongly-typed resource class, for looking up localized strings, etc. 17 | /// 18 | // This class was auto-generated by the StronglyTypedResourceBuilder 19 | // class via a tool like ResGen or Visual Studio. 20 | // To add or remove a member, edit your .ResX file then rerun ResGen 21 | // with the /str option, or rebuild your VS project. 22 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] 23 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 24 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] 25 | public class AppResources { 26 | 27 | private static global::System.Resources.ResourceManager resourceMan; 28 | 29 | private static global::System.Globalization.CultureInfo resourceCulture; 30 | 31 | [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] 32 | internal AppResources() { 33 | } 34 | 35 | /// 36 | /// Returns the cached ResourceManager instance used by this class. 37 | /// 38 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] 39 | public static global::System.Resources.ResourceManager ResourceManager { 40 | get { 41 | if (object.ReferenceEquals(resourceMan, null)) { 42 | global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("WinPhoneOneNoteServiceSample.Resources.AppResources", typeof(AppResources).Assembly); 43 | resourceMan = temp; 44 | } 45 | return resourceMan; 46 | } 47 | } 48 | 49 | /// 50 | /// Overrides the current thread's CurrentUICulture property for all 51 | /// resource lookups using this strongly typed resource class. 52 | /// 53 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] 54 | public static global::System.Globalization.CultureInfo Culture { 55 | get { 56 | return resourceCulture; 57 | } 58 | set { 59 | resourceCulture = value; 60 | } 61 | } 62 | 63 | /// 64 | /// Looks up a localized string similar to add. 65 | /// 66 | public static string AppBarButtonText { 67 | get { 68 | return ResourceManager.GetString("AppBarButtonText", resourceCulture); 69 | } 70 | } 71 | 72 | /// 73 | /// Looks up a localized string similar to Menu Item. 74 | /// 75 | public static string AppBarMenuItemText { 76 | get { 77 | return ResourceManager.GetString("AppBarMenuItemText", resourceCulture); 78 | } 79 | } 80 | 81 | /// 82 | /// Looks up a localized string similar to MY APPLICATION. 83 | /// 84 | public static string ApplicationTitle { 85 | get { 86 | return ResourceManager.GetString("ApplicationTitle", resourceCulture); 87 | } 88 | } 89 | 90 | /// 91 | /// Looks up a localized resource of type System.Byte[]. 92 | /// 93 | public static byte[] OneNote_MX_logo { 94 | get { 95 | object obj = ResourceManager.GetObject("OneNote_MX_logo", resourceCulture); 96 | return ((byte[])(obj)); 97 | } 98 | } 99 | 100 | /// 101 | /// Looks up a localized string similar to LeftToRight. 102 | /// 103 | public static string ResourceFlowDirection { 104 | get { 105 | return ResourceManager.GetString("ResourceFlowDirection", resourceCulture); 106 | } 107 | } 108 | 109 | /// 110 | /// Looks up a localized string similar to en-US. 111 | /// 112 | public static string ResourceLanguage { 113 | get { 114 | return ResourceManager.GetString("ResourceLanguage", resourceCulture); 115 | } 116 | } 117 | } 118 | } 119 | -------------------------------------------------------------------------------- /WinPhoneOneNoteServiceSample/MainPage.xaml: -------------------------------------------------------------------------------- 1 | 14 | 15 | 35 | 36 | 37 | 38 | Insert Your Client Id Here 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 74 | 75 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 |