diff --git a/README.md b/README.md index 190805833c..ee266f8f02 100644 --- a/README.md +++ b/README.md @@ -180,47 +180,45 @@ For additional Windows samples, see [Windows on GitHub](http://microsoft.github. Data virtualization - Disabling selection Display orientation + Downloadable fonts (DirectWrite) - Downloadable fonts (DirectWrite) Downloadable fonts (XAML) Drag and drop + Focus visuals - Focus visuals Full screen mode Gamepad-style navigation (XAML) + Line spacing (DirectWrite) - Line spacing (DirectWrite) ListView and GridView Lock screen apps + Message dialog - Message dialog Multiple views OCR + Printing - Printing Scaling according to DPI Secondary windows + Splash screen - Splash screen State triggers Tailored multiple views + Title bar - Title bar UI basics (XAML) User interaction mode + WebView control (XAML) - WebView control (HTML) - WebView control (XAML) Window resizing @@ -234,12 +232,11 @@ For additional Windows samples, see [Windows on GitHub](http://microsoft.github. Ink analysis - Inking Low latency input Simple inking + Touch keyboard - Touch keyboard Touch keyboard text input @@ -248,13 +245,8 @@ For additional Windows samples, see [Windows on GitHub](http://microsoft.github. - - - - - @@ -409,20 +401,16 @@ For additional Windows samples, see [Windows on GitHub](http://microsoft.github.
Blobs Compression Content indexer
Form validation (HTML)IndexedDB Logging
- + - - - - - +
Animated GIF playback (XAML)Animation library (HTML) Animation metricsComposition visual without framework
Composition visual without framework Direct2D advanced color image rendering Direct2D custom image effects
Direct2D gradient meshDirect2D SVG image renderingEfficient animations (HTML)
Direct2D SVG image rendering Transform3D animations
@@ -514,7 +502,6 @@ For additional Windows samples, see [Windows on GitHub](http://microsoft.github. Projection - XHR, handling navigation errors, and URL schemes @@ -533,7 +520,6 @@ For additional Windows samples, see [Windows on GitHub](http://microsoft.github. Radios - RSS reader end-to-end (JavaScript) Socket activity trigger stream socket @@ -575,14 +561,6 @@ For additional Windows samples, see [Windows on GitHub](http://microsoft.github. -### Threading - - - - - -
JavaScript Web Workers app multithreading
- ### Tiles, toasts, and notifications diff --git a/Samples/Accelerometer/README.md b/Samples/Accelerometer/README.md index 28fa90daef..cafeaf7968 100644 --- a/Samples/Accelerometer/README.md +++ b/Samples/Accelerometer/README.md @@ -4,7 +4,6 @@ languages: - csharp - cpp - cppcx -- js - vb products: - windows @@ -69,7 +68,8 @@ When you choose the **Enable** button for the **Data Events** option, the app be ### Samples -[Display orientation sample](../DisplayOrientation) +* [Display orientation sample](../DisplayOrientation) +* [Accelerometer sample](/archived/Accelerometer/) for JavaScript (archived) ### Reference @@ -83,17 +83,13 @@ When you choose the **Enable** button for the **Data Events** option, the app be ## System requirements -**Client:** Windows 10 build 14295 - -**Server:** Windows Server 2016 Technical Preview - -**Phone:** Windows 10 build 14295 +* Windows 10 build 14393 ## Build the sample 1. If you download the samples ZIP, be sure to unzip the entire archive, not just the folder with the sample you want to build. 2. Start Microsoft Visual Studio 2017 and select **File** \> **Open** \> **Project/Solution**. -3. Starting in the folder where you unzipped the samples, go to the Samples subfolder, then the subfolder for this specific sample, then the subfolder for your preferred language (C++, C#, or JavaScript). Double-click the Visual Studio Solution (.sln) file. +3. Starting in the folder where you unzipped the samples, go to the Samples subfolder, then the subfolder for this specific sample, then the subfolder for your preferred language. Double-click the Visual Studio Solution (.sln) file. 4. Press Ctrl+Shift+B, or select **Build** \> **Build Solution**. ## Run the sample diff --git a/Samples/ActivitySensor/README.md b/Samples/ActivitySensor/README.md index 100a3419f3..bca4e2e7d0 100644 --- a/Samples/ActivitySensor/README.md +++ b/Samples/ActivitySensor/README.md @@ -4,7 +4,6 @@ languages: - csharp - cpp - cppcx -- js - vb products: - windows @@ -51,19 +50,21 @@ Subscribes to reading changed events and displays the updated activity reading. Registers a background task for activity changes. The background task runs whenever the most likely activity changes to/from any of the subscribed activities. -## System requirements +## Reference + +### Samples -**Client:** Windows 10 +* [ActivitySensor sample](/archived/ActivitySensor/) for JavaScript (archived) -**Server:** Windows Server 2016 Technical Preview +## System requirements -**Phone:** Windows 10 +* Windows 10 ## Build the sample 1. If you download the samples ZIP, be sure to unzip the entire archive, not just the folder with the sample you want to build. 2. Start Microsoft Visual Studio 2017 and select **File** \> **Open** \> **Project/Solution**. -3. Starting in the folder where you unzipped the samples, go to the Samples subfolder, then the subfolder for this specific sample, then the subfolder for your preferred language (C++, C#, or JavaScript). Double-click the Visual Studio Solution (.sln) file. +3. Starting in the folder where you unzipped the samples, go to the Samples subfolder, then the subfolder for this specific sample, then the subfolder for your preferred language. Double-click the Visual Studio Solution (.sln) file. 4. Press Ctrl+Shift+B, or select **Build** \> **Build Solution**. ## Run the sample diff --git a/Samples/Advertising/README.md b/Samples/Advertising/README.md index 21bc0f2d26..e115433c06 100644 --- a/Samples/Advertising/README.md +++ b/Samples/Advertising/README.md @@ -4,7 +4,6 @@ languages: - csharp - cpp - cppcx -- js products: - windows - windows-uwp @@ -48,7 +47,8 @@ for more details. ### Samples -[Microsoft Store in-app purchase](/Samples/Store) +* [Microsoft Store in-app purchase](/Samples/Store) +* [Advertising sample](/archived/Advertising/) for JavaScript (archived) ## Reference @@ -62,9 +62,7 @@ for more details. ## System requirements -**Client:** Windows 10 - -**Phone:** Windows 10 +* Windows 10 ## Build the sample diff --git a/Samples/AllJoyn/ConsumerExperiences/README.md b/Samples/AllJoyn/ConsumerExperiences/README.md index ee0f51dd54..987f4f39f7 100644 --- a/Samples/AllJoyn/ConsumerExperiences/README.md +++ b/Samples/AllJoyn/ConsumerExperiences/README.md @@ -2,7 +2,6 @@ topic: sample languages: - csharp -- js products: - windows - windows-uwp @@ -44,8 +43,9 @@ To obtain information about Microsoft Visual Studio and the tools for developing ### Samples -[AllJoyn Producer Experiences](http://go.microsoft.com/fwlink/p/?LinkId=534025) -[AllJoyn Consumer Experiences](http://go.microsoft.com/fwlink/p/?LinkID=534021) +* [AllJoyn Producer Experiences](http://go.microsoft.com/fwlink/p/?LinkId=534025) +* [AllJoyn Consumer Experiences](http://go.microsoft.com/fwlink/p/?LinkID=534021) +* [AllJoyn Consumer Experiences](/archived/AllJoyn/ConsumerExperiences/) for JavaScript (archived) The AllSeen Alliance has samples in [Windows SDK](https://allseenalliance.org/developers/download) @@ -57,13 +57,7 @@ The AllSeen Alliance has samples in [Windows SDK](https://allseenalliance.org/de ## System requirements -ARM, ARM64, x86, or amd64 system - -**Client:** Windows 10 - -**Server:** Windows Server 2016 Technical Preview - -**Phone:** Windows 10 +* Windows 10 ## Build the sample diff --git a/Samples/AllJoyn/ProducerExperiences/README.md b/Samples/AllJoyn/ProducerExperiences/README.md index 5d30d8fa11..89bcceb927 100644 --- a/Samples/AllJoyn/ProducerExperiences/README.md +++ b/Samples/AllJoyn/ProducerExperiences/README.md @@ -2,7 +2,6 @@ topic: sample languages: - csharp -- js products: - windows - windows-uwp @@ -44,8 +43,9 @@ To obtain information about Microsoft Visual Studio and the tools for developing ### Samples -[AllJoyn Producer Experiences](http://go.microsoft.com/fwlink/p/?LinkId=534025) -[AllJoyn Consumer Experiences](http://go.microsoft.com/fwlink/p/?LinkID=534021) +* [AllJoyn Producer Experiences](http://go.microsoft.com/fwlink/p/?LinkId=534025) +* [AllJoyn Consumer Experiences](http://go.microsoft.com/fwlink/p/?LinkID=534021) +* [AllJoyn Producer Experiences](/archived/AllJoyn/ProducerExperiences/) for JavaScript (archived) The AllSeen Alliance has samples in [Windows SDK](https://allseenalliance.org/developers/download) @@ -57,13 +57,7 @@ The AllSeen Alliance has samples in [Windows SDK](https://allseenalliance.org/de ## System requirements -ARM, ARM64, x86, or amd64 system - -**Client:** Windows 10 - -**Server:** Windows Server 2016 Technical Preview - -**Phone:** Windows 10 +* Windows 10 ## Build the sample diff --git a/Samples/Altimeter/README.md b/Samples/Altimeter/README.md index 4f66e7dc90..f0c9dd14b8 100644 --- a/Samples/Altimeter/README.md +++ b/Samples/Altimeter/README.md @@ -4,7 +4,6 @@ languages: - csharp - cpp - cppcx -- js - vb products: - windows @@ -40,13 +39,15 @@ When you choose the **Enable** button for the **Data Events** option, the app wi When you choose the **Get Data** button for the **Polling** option, the app will retrieve the current sensor readings. -## System requirements +## Related topics + +### Related samples -**Client:** Windows 10 +* [Altimeter sample](/archived/Altimeter/) for JavaScript (archived) -**Server:** Windows Server 2016 Technical Preview +## System requirements -**Phone:** Windows 10 +* Windows 10 ## Build the sample diff --git a/Samples/AnimationMetrics/README.md b/Samples/AnimationMetrics/README.md index fb37df4a87..0e766250a7 100644 --- a/Samples/AnimationMetrics/README.md +++ b/Samples/AnimationMetrics/README.md @@ -3,7 +3,6 @@ topic: sample languages: - csharp - cpp -- js - vb products: - windows @@ -42,21 +41,18 @@ To obtain information about Microsoft Visual Studio and the tools for developing ## Related topics -### Samples - -[AnimationLibrary](/Samples/AnimationLibrary) - ### Reference [AnimationMetrics namespace](https://msdn.microsoft.com/library/windows/apps/windows.ui.core.animationmetrics.aspx) -## System requirements +### Related samples -**Client:** Windows 10 +* [AnimationLibrary](/Samples/AnimationLibrary) +* [AnimationMetrics sample](/archived/AnimationMetrics/) for JavaScript (archived) -**Server:** Windows Server 2016 Technical Preview +## System requirements -**Phone:** Not supported +* Windows 10 Desktop ## Build the sample diff --git a/Samples/AppWindow/cppwinrt/AppWindow.sln b/Samples/AppWindow/cppwinrt/AppWindow.sln index 6e01207782..2c78facd6b 100644 --- a/Samples/AppWindow/cppwinrt/AppWindow.sln +++ b/Samples/AppWindow/cppwinrt/AppWindow.sln @@ -3,7 +3,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio 15 VisualStudioVersion = 15.0.28307.438 MinimumVisualStudioVersion = 10.0.40219.1 -Project("{A00EEFA7-7045-4B0E-969B-84B534020D69}") = "AppWindow", "AppWindow.vcxproj", "{A00EEFA7-7045-4B0E-969B-84B534020D69}" +Project("{F2EE7569-2AFA-53F7-89E6-93447D31465A}") = "AppWindow", "AppWindow.vcxproj", "{F2EE7569-2AFA-53F7-89E6-93447D31465A}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution @@ -15,24 +15,24 @@ Global Release|x86 = Release|x86 EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution - {A00EEFA7-7045-4B0E-969B-84B534020D69}.Debug|ARM.ActiveCfg = Debug|ARM - {A00EEFA7-7045-4B0E-969B-84B534020D69}.Debug|ARM.Build.0 = Debug|ARM - {A00EEFA7-7045-4B0E-969B-84B534020D69}.Debug|ARM.Deploy.0 = Debug|ARM - {A00EEFA7-7045-4B0E-969B-84B534020D69}.Debug|x64.ActiveCfg = Debug|x64 - {A00EEFA7-7045-4B0E-969B-84B534020D69}.Debug|x64.Build.0 = Debug|x64 - {A00EEFA7-7045-4B0E-969B-84B534020D69}.Debug|x64.Deploy.0 = Debug|x64 - {A00EEFA7-7045-4B0E-969B-84B534020D69}.Debug|x86.ActiveCfg = Debug|Win32 - {A00EEFA7-7045-4B0E-969B-84B534020D69}.Debug|x86.Build.0 = Debug|Win32 - {A00EEFA7-7045-4B0E-969B-84B534020D69}.Debug|x86.Deploy.0 = Debug|Win32 - {A00EEFA7-7045-4B0E-969B-84B534020D69}.Release|ARM.ActiveCfg = Release|ARM - {A00EEFA7-7045-4B0E-969B-84B534020D69}.Release|ARM.Build.0 = Release|ARM - {A00EEFA7-7045-4B0E-969B-84B534020D69}.Release|ARM.Deploy.0 = Release|ARM - {A00EEFA7-7045-4B0E-969B-84B534020D69}.Release|x64.ActiveCfg = Release|x64 - {A00EEFA7-7045-4B0E-969B-84B534020D69}.Release|x64.Build.0 = Release|x64 - {A00EEFA7-7045-4B0E-969B-84B534020D69}.Release|x64.Deploy.0 = Release|x64 - {A00EEFA7-7045-4B0E-969B-84B534020D69}.Release|x86.ActiveCfg = Release|Win32 - {A00EEFA7-7045-4B0E-969B-84B534020D69}.Release|x86.Build.0 = Release|Win32 - {A00EEFA7-7045-4B0E-969B-84B534020D69}.Release|x86.Deploy.0 = Release|Win32 + {F2EE7569-2AFA-53F7-89E6-93447D31465A}.Debug|ARM.ActiveCfg = Debug|ARM + {F2EE7569-2AFA-53F7-89E6-93447D31465A}.Debug|ARM.Build.0 = Debug|ARM + {F2EE7569-2AFA-53F7-89E6-93447D31465A}.Debug|ARM.Deploy.0 = Debug|ARM + {F2EE7569-2AFA-53F7-89E6-93447D31465A}.Debug|x64.ActiveCfg = Debug|x64 + {F2EE7569-2AFA-53F7-89E6-93447D31465A}.Debug|x64.Build.0 = Debug|x64 + {F2EE7569-2AFA-53F7-89E6-93447D31465A}.Debug|x64.Deploy.0 = Debug|x64 + {F2EE7569-2AFA-53F7-89E6-93447D31465A}.Debug|x86.ActiveCfg = Debug|Win32 + {F2EE7569-2AFA-53F7-89E6-93447D31465A}.Debug|x86.Build.0 = Debug|Win32 + {F2EE7569-2AFA-53F7-89E6-93447D31465A}.Debug|x86.Deploy.0 = Debug|Win32 + {F2EE7569-2AFA-53F7-89E6-93447D31465A}.Release|ARM.ActiveCfg = Release|ARM + {F2EE7569-2AFA-53F7-89E6-93447D31465A}.Release|ARM.Build.0 = Release|ARM + {F2EE7569-2AFA-53F7-89E6-93447D31465A}.Release|ARM.Deploy.0 = Release|ARM + {F2EE7569-2AFA-53F7-89E6-93447D31465A}.Release|x64.ActiveCfg = Release|x64 + {F2EE7569-2AFA-53F7-89E6-93447D31465A}.Release|x64.Build.0 = Release|x64 + {F2EE7569-2AFA-53F7-89E6-93447D31465A}.Release|x64.Deploy.0 = Release|x64 + {F2EE7569-2AFA-53F7-89E6-93447D31465A}.Release|x86.ActiveCfg = Release|Win32 + {F2EE7569-2AFA-53F7-89E6-93447D31465A}.Release|x86.Build.0 = Release|Win32 + {F2EE7569-2AFA-53F7-89E6-93447D31465A}.Release|x86.Deploy.0 = Release|Win32 EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/Samples/AppWindow/cppwinrt/AppWindow.vcxproj b/Samples/AppWindow/cppwinrt/AppWindow.vcxproj index ad54c4b609..b0c207fd0a 100644 --- a/Samples/AppWindow/cppwinrt/AppWindow.vcxproj +++ b/Samples/AppWindow/cppwinrt/AppWindow.vcxproj @@ -3,7 +3,7 @@ true - {A00EEFA7-7045-4B0E-969B-84B534020D69} + {F2EE7569-2AFA-53F7-89E6-93447D31465A} AppWindow SDKTemplate en-US diff --git a/Samples/ApplicationResources/README.md b/Samples/ApplicationResources/README.md index 8dc173feb8..b06f3927ed 100644 --- a/Samples/ApplicationResources/README.md +++ b/Samples/ApplicationResources/README.md @@ -4,7 +4,6 @@ languages: - csharp - cpp - cppcx -- js - vb products: - windows @@ -40,6 +39,8 @@ To obtain information about Microsoft Visual Studio and the tools for developing ## Related topics +### Reference + [Creating and retrieving resources in Windows apps](http://go.microsoft.com/fwlink/p/?linkid=251463) [ResourceLoader class](http://msdn.microsoft.com/library/windows/apps/br206014) [ResourceManager class](http://msdn.microsoft.com/library/windows/apps/br206078) @@ -48,13 +49,13 @@ To obtain information about Microsoft Visual Studio and the tools for developing [Windows 8 app samples](http://go.microsoft.com/fwlink/p/?LinkID=227694) [WinJS.Resources namespace](http://msdn.microsoft.com/library/windows/apps/br229779) -## System requirements +### Related samples -**Client:** Windows 10 +* [ApplicationResources sample](/archived/ApplicationResources/) for JavaScript (archived) -**Server:** Windows Server 2016 Technical Preview +## System requirements -**Phone:** Windows 10 +* Windows 10 ## Build the sample diff --git a/Samples/AudioCategory/README.md b/Samples/AudioCategory/README.md index 5dc2d31efd..b8acd4bedb 100644 --- a/Samples/AudioCategory/README.md +++ b/Samples/AudioCategory/README.md @@ -2,7 +2,6 @@ topic: sample languages: - csharp -- js - vb products: - windows @@ -25,12 +24,15 @@ Shows how to create apps that use various audio categories. > the samples collection, and GitHub, see [Get the UWP samples from GitHub](https://aka.ms/ovu2uq). > For more samples, see the [Samples portal](https://aka.ms/winsamples) on the Windows Dev Center. -System requirements ------------------------------ +## Related topics -**Client:** Windows 10 +### Related samples -**Phone:** Windows 10 +* [AudioCategory sample](/archived/AudioCategory/) for JavaScript (archived) + +## System requirements + +* Windows 10 Build the sample ---------------- diff --git a/Samples/BackgroundMediaPlayback/README.md b/Samples/BackgroundMediaPlayback/README.md index 414e8aa55e..4cb09f74b9 100644 --- a/Samples/BackgroundMediaPlayback/README.md +++ b/Samples/BackgroundMediaPlayback/README.md @@ -2,7 +2,6 @@ topic: sample languages: - csharp -- js products: - windows - windows-uwp @@ -326,19 +325,22 @@ an AppMemoryLimitChanging event and then a LeavingBackground event. ✓ **Do** use the LeavingBackground event to recreate UI resources that your app discarded when moving into the background. -Related topics --------------- +## Related topics + +### Reference + * [Background Activity With the Single Process Model](https://blogs.windows.com/buildingapps/2016/06/07/background-activity-with-the-single-process-model/) * [BackgroundActivation sample](/Samples/BackgroundActivation) * Old [BackgroundAudio sample](http://go.microsoft.com/fwlink/p/?LinkId=619997), no longer recommended but available for reference. -System requirements ------------------------------ +### Related samples + +* [BackgroundMediaPlayback sample](/archived/BackgroundMediaPlayback/) for JavaScript (archived) -**Client:** Windows 10 version 14332 +## System requirements -**Phone:** Windows 10 version 14332 +* Windows 10 build 14393 or higher Build the sample ---------------- diff --git a/Samples/BackgroundTransfer/README.md b/Samples/BackgroundTransfer/README.md index ecbc7b8e44..a2a0142035 100644 --- a/Samples/BackgroundTransfer/README.md +++ b/Samples/BackgroundTransfer/README.md @@ -4,7 +4,6 @@ languages: - csharp - cpp - cppcx -- js - vb products: - windows @@ -73,13 +72,13 @@ For more information on network capabilities, see [How to set network capabiliti [Windows.Storage](http://msdn.microsoft.com/library/windows/apps/br227346) [XHR](http://msdn.microsoft.com/library/windows/apps/br229787) -## System requirements +### Related samples -**Client:** Windows 10 +* [BackgroundTransfer sample](/archived/BackgroundTransfer/) for JavaScript (archived) -**Server:** Windows Server 2016 +## System requirements -**Phone:** Windows 10 +* Windows 10 ## Build the sample diff --git a/Samples/BarcodeScanner/README.md b/Samples/BarcodeScanner/README.md index c5c8586af1..389bfdb22e 100644 --- a/Samples/BarcodeScanner/README.md +++ b/Samples/BarcodeScanner/README.md @@ -4,7 +4,6 @@ languages: - csharp - cpp - cppcx -- js - vb products: - windows @@ -84,13 +83,13 @@ To obtain information about Microsoft Visual Studio and the tools for developing [USB HID POS Scanner specification](http://go.microsoft.com/fwlink/p/?linkid=309230) [Windows app samples](http://go.microsoft.com/fwlink/p/?LinkID=227694) -## System requirements +### Related samples -**Client:** Windows 10 +* [BarcodeScanner sample](/archived/BarcodeScanner/) for JavaScript (archived) -**Server:** Windows Server 2016 Technical Preview +## System requirements -**Phone:** Windows 10 +* Windows 10 ## Build the sample diff --git a/Samples/Barometer/README.md b/Samples/Barometer/README.md index e38f8d3ceb..ffa25ca76a 100644 --- a/Samples/Barometer/README.md +++ b/Samples/Barometer/README.md @@ -4,7 +4,6 @@ languages: - csharp - cpp - cppcx -- js - vb products: - windows @@ -40,13 +39,15 @@ When you choose the **Enable** button for the **Data Events** option, the app wi When you choose the **Get Data** button for the **Polling** option, the app will retrieve the current sensor readings. -## System requirements +## Related topics + +### Related samples -**Client:** Windows 10 +* [Barometer sample](/archived/Barometer/) for JavaScript (archived) -**Server:** Windows Server 2016 Technical Preview +## System requirements -**Phone:** Windows 10 +* Windows 10 ## Build the sample diff --git a/Samples/BluetoothAdvertisement/README.md b/Samples/BluetoothAdvertisement/README.md index 83887448d4..f0487f0e6f 100644 --- a/Samples/BluetoothAdvertisement/README.md +++ b/Samples/BluetoothAdvertisement/README.md @@ -2,7 +2,6 @@ topic: sample languages: - csharp -- js - vb products: - windows @@ -34,13 +33,15 @@ This sample allows the user to publish and watch for Bluetooth Low Energy advert **Note:** A working Bluetooth dongle/radio is needed in order to test this sample's functionality. The VS Emulator is a valid target, but since there's technically no valid Bluetooth, the app will treat it as if there's no Bluetooth radio and beacon functionality cannot be used. -## System requirements +## Related topics + +### Related samples -**Client:** Windows 10 +* [BluetoothAdvertisement sample](/archived/BluetoothAdvertisement/) for JavaScript (archived) -**Server:** Windows Server 2016 Technical Preview +## System requirements -**Phone:** Windows 10 +* Windows 10 ## Build the sample diff --git a/Samples/Calendar/README.md b/Samples/Calendar/README.md index bca548004e..cca845c105 100644 --- a/Samples/Calendar/README.md +++ b/Samples/Calendar/README.md @@ -4,7 +4,6 @@ languages: - csharp - cpp - cppcx -- js - vb products: - windows @@ -65,25 +64,22 @@ This scenario also demonstrates converting from a language-specific date type to ## Related topics -### Samples - -[DateTimeFormatting sample](../DateTimeFormatting) -[GlobalizationPreferences sample](../GlobalizationPreferences) -[NumberFormatting sample](../NumberFormatting) - ### Reference [Windows.Globalization.Calendar](http://msdn.microsoft.com/library/windows/apps/br206724) [Windows.Globalization.CalendarIdentifiers](http://msdn.microsoft.com/library/windows/apps/br229460) [Windows.Globalization.ClockIdentifiers](http://msdn.microsoft.com/library/windows/apps/br229462) -## System requirements +### Related samples -**Client:** Windows 10 +* [DateTimeFormatting sample](../DateTimeFormatting) +* [GlobalizationPreferences sample](../GlobalizationPreferences) +* [NumberFormatting sample](../NumberFormatting) +* [Calendar sample](/archived/Calendar/) for JavaScript (archived) -**Server:** Windows Server 2016 Technical Preview +## System requirements -**Phone:** Windows 10 +* Windows 10 ## Build the sample diff --git a/Samples/CameraAdvancedCapture/README.md b/Samples/CameraAdvancedCapture/README.md index b22604be4c..26a24029e8 100644 --- a/Samples/CameraAdvancedCapture/README.md +++ b/Samples/CameraAdvancedCapture/README.md @@ -4,7 +4,6 @@ languages: - csharp - cpp - cppcx -- js - vb products: - windows @@ -48,11 +47,7 @@ This sample also implements a custom UI to better simulate the experience that a ## Related topics -**Samples** - -[CameraStarterKit](/Samples/CameraStarterKit) - -**Conceptual** +### Conceptual [Capture photos and video with MediaCapture](https://msdn.microsoft.com/library/windows/apps/mt243896) @@ -62,7 +57,7 @@ This sample also implements a custom UI to better simulate the experience that a [Using the Scene Analysis effect](http://go.microsoft.com/fwlink/?LinkId=627231) -**Reference** +### Reference [Windows.Media.Capture.MediaCapture namespace](https://msdn.microsoft.com/library/windows/apps/windows.media.devices.aspx) @@ -84,15 +79,15 @@ This sample also implements a custom UI to better simulate the experience that a [Windows.Graphics.Imaging.BitmapEncoder class](https://msdn.microsoft.com/library/windows/apps/windows.graphics.imaging.bitmapencoder.aspx) -## System requirements +### Related samples -**Hardware:** Camera +* [CameraStarterKit](/Samples/CameraStarterKit) +* [CameraAdvancedCapture sample](/archived/CameraAdvancedCapture/) for JavaScript (archived) -**Client:** Windows 10 - -**Server:** Windows Server 2016 Technical Preview +## System requirements -**Phone:** Windows 10 +* Windows 10 +* Camera ## Build the sample diff --git a/Samples/CameraFaceDetection/README.md b/Samples/CameraFaceDetection/README.md index 407a3886bb..5789ad16a7 100644 --- a/Samples/CameraFaceDetection/README.md +++ b/Samples/CameraFaceDetection/README.md @@ -4,7 +4,6 @@ languages: - csharp - cpp - cppcx -- js - vb products: - windows @@ -44,18 +43,13 @@ This sample also implements a custom UI to better simulate the experience that a ## Related topics -**Samples** - -[CameraStarterKit](/Samples/CameraStarterKit) -[Family Notes sample](https://github.com/Microsoft/Windows-appsample-familynotes) - -**Conceptual** +### Conceptual [Capture photos and video with MediaCapture](https://msdn.microsoft.com/library/windows/apps/mt243896) [Media capture using capture device](https://code.msdn.microsoft.com/windowsapps/Media-Capture-Sample-adf87622) [Using the Face Detection effect](http://go.microsoft.com/fwlink/?LinkId=627228) -**Reference** +### Reference [Windows.Media.Capture.MediaCapture namespace](https://msdn.microsoft.com/library/windows/apps/windows.media.devices.aspx) [Windows.Media.Capture.MediaCaptureInitializationSettings constructor](https://msdn.microsoft.com/library/windows/apps/windows.media.capture.mediacaptureinitializationsettings.mediacaptureinitializationsettings.aspx) @@ -68,15 +62,16 @@ This sample also implements a custom UI to better simulate the experience that a [Windows.Graphics.Imaging.BitmapDecoder class](https://msdn.microsoft.com/library/windows/apps/windows.graphics.imaging.bitmapdecoder.aspx) [Windows.Graphics.Imaging.BitmapEncoder class](https://msdn.microsoft.com/library/windows/apps/windows.graphics.imaging.bitmapencoder.aspx) -## System requirements +### Related samples -**Hardware:** Camera +* [CameraStarterKit](/Samples/CameraStarterKit) +* [Family Notes sample](https://github.com/Microsoft/Windows-appsample-familynotes) +* [CameraFaceDetection sample](/archived/CameraFaceDetection/) for JavaScript (archived) -**Client:** Windows 10 - -**Server:** Windows Server 2016 Technical Preview +## System requirements -**Phone:** Windows 10 +* Windows 10 +* Camera ## Build the sample diff --git a/Samples/CameraGetPreviewFrame/README.md b/Samples/CameraGetPreviewFrame/README.md index 2beb1f0f73..f4033600c8 100644 --- a/Samples/CameraGetPreviewFrame/README.md +++ b/Samples/CameraGetPreviewFrame/README.md @@ -4,7 +4,6 @@ languages: - csharp - cpp - cppcx -- js products: - windows - windows-uwp @@ -42,12 +41,12 @@ Due to the custom UI that this sample implements, any messages intended for the ## Related topics -**Conceptual** +### Conceptual [Capture photos and video with MediaCapture](https://msdn.microsoft.com/library/windows/apps/mt243896) [Get a preview frame](http://go.microsoft.com/fwlink/?LinkId=627229) -**Reference** +### Reference [Windows.Media.Capture.MediaCapture namespace](https://msdn.microsoft.com/library/windows/apps/windows.media.devices.aspx) [Windows.Media.Capture.MediaCaptureInitializationSettings constructor](https://msdn.microsoft.com/library/windows/apps/windows.media.capture.mediacaptureinitializationsettings.mediacaptureinitializationsettings.aspx) @@ -58,15 +57,14 @@ Due to the custom UI that this sample implements, any messages intended for the [Windows.Graphics.Display.DisplayInformation class](https://msdn.microsoft.com/library/windows/apps/windows.graphics.display.displayinformation.aspx) [Windows.UI.Xaml.Media.Imaging.WriteableBitmap class](https://msdn.microsoft.com/library/windows/apps/windows.ui.xaml.media.imaging.writeablebitmap.aspx) -## System requirements - -**Hardware:** Camera +### Related samples -**Client:** Windows 10 +* [CameraGetPreviewFrame sample](/archived/CameraGetPreviewFrame/) for JavaScript (archived) -**Server:** Windows Server 2016 Technical Preview +## System requirements -**Phone:** Windows 10 +* Windows 10 +* Camera ## Build the sample diff --git a/Samples/CameraProfile/README.md b/Samples/CameraProfile/README.md index fa61c946dd..95830a4e59 100644 --- a/Samples/CameraProfile/README.md +++ b/Samples/CameraProfile/README.md @@ -4,7 +4,6 @@ languages: - csharp - cpp - cppcx -- js products: - windows - windows-uwp @@ -68,28 +67,28 @@ Note that for the Surface Pro 4 and Surface Book 1, the latest 4731 camera drivers publish profiles, but the factory image drivers do not. -Related topics --------------- -[Windows.Media.Capture.MediaCapture namespace](https://msdn.microsoft.com/library/windows/apps/windows.media.devices.aspx) -[Windows.Devices.Enumeration namespace](https://msdn.microsoft.com/library/windows/apps/windows.devices.enumeration.aspx) +## Related topics -**Conceptual** +### Conceptual [How to use Camera Profiles](http://go.microsoft.com/fwlink/?LinkId=627233) -**Reference** +### Reference +[Windows.Media.Capture.MediaCapture namespace](https://msdn.microsoft.com/library/windows/apps/windows.media.devices.aspx) +[Windows.Devices.Enumeration namespace](https://msdn.microsoft.com/library/windows/apps/windows.devices.enumeration.aspx) [Windows.Media.Capture.MediaCaptureInitializationSettings](https://msdn.microsoft.com/library/windows/apps/windows.media.capture.mediacaptureinitializationsettings.mediacaptureinitializationsettings.aspx) [Windows.Media.Capture.MediaCaptureInitilizationSettings.VideoDeviceId](https://msdn.microsoft.com/library/windows/apps/windows.media.capture.mediacaptureinitializationsettings.videodeviceid.aspx) [Windows.Devices.Enumeration.DeviceInformation class](https://msdn.microsoft.com/library/windows/apps/windows.devices.enumeration.deviceinformation.aspx) -System requirements ------------------------------ -Camera that supports Video Profiles +### Related samples + +* [CameraProfile sample](/archived/CameraProfile/) for JavaScript (archived) -**Client:** Windows 10 +### System requirements -**Phone:** Windows 10 +* Windows 10 +* Camera that supports Video Profiles Build the sample ---------------- diff --git a/Samples/CameraResolution/README.md b/Samples/CameraResolution/README.md index 87a923f612..56b7fd4ef8 100644 --- a/Samples/CameraResolution/README.md +++ b/Samples/CameraResolution/README.md @@ -4,7 +4,6 @@ languages: - csharp - cpp - cppcx -- js products: - windows - windows-uwp @@ -66,11 +65,6 @@ the changes will be reflected in any videos taken with the video button. ## Related topics -### Samples - -[Basic camera app sample](/Samples/CameraStarterKit) -[Media capture using capture device](https://code.msdn.microsoft.com/windowsapps/Media-Capture-Sample-adf87622) - ### Reference [Windows.Media.Devices namespace](https://msdn.microsoft.com/library/windows/apps/windows.media.devices.aspx) @@ -82,13 +76,15 @@ the changes will be reflected in any videos taken with the video button. [Windows.Graphics.Imaging.BitmapEncoder class](https://msdn.microsoft.com/library/windows/apps/windows.graphics.imaging.bitmapencoder.aspx) [Capture photos and video with MediaCapture](https://msdn.microsoft.com/library/windows/apps/mt243896) -### System requirements +### Related samples -**Client:** Windows 10 +* [Basic camera app sample](/Samples/CameraStarterKit) +* [Media capture using capture device](https://code.msdn.microsoft.com/windowsapps/Media-Capture-Sample-adf87622) +* [CameraResolution sample](/archived/CameraResolution/) for JavaScript (archived) -**Server:** Windows Server 2016 Technical Preview +## System requirements -**Phone:** Windows 10 +* Windows 10 ## Build the sample diff --git a/Samples/CameraStarterKit/README.md b/Samples/CameraStarterKit/README.md index ec715fc947..0d1ef2e562 100644 --- a/Samples/CameraStarterKit/README.md +++ b/Samples/CameraStarterKit/README.md @@ -4,7 +4,6 @@ languages: - csharp - cpp - cppcx -- js - vb products: - windows @@ -45,13 +44,13 @@ For apps that are interested in capturing a photo or video without requiring acc ## Related topics -**Conceptual** +### Conceptual [Capture photos and video with MediaCapture](http://go.microsoft.com/fwlink/?LinkId=627234) [Capture photos and video with CameraCaptureUI](https://msdn.microsoft.com/library/windows/apps/mt282142) [Media capture using capture device](https://code.msdn.microsoft.com/windowsapps/Media-Capture-Sample-adf87622) -**Reference** +### Reference [Windows.Media.Capture.MediaCapture namespace](https://msdn.microsoft.com/library/windows/apps/windows.media.devices.aspx) [Windows.Media.Capture.MediaCaptureInitializationSettings constructor](https://msdn.microsoft.com/library/windows/apps/windows.media.capture.mediacaptureinitializationsettings.mediacaptureinitializationsettings.aspx) @@ -65,19 +64,15 @@ For apps that are interested in capturing a photo or video without requiring acc [Windows.Graphics.Imaging.BitmapDecoder class](https://msdn.microsoft.com/library/windows/apps/windows.graphics.imaging.bitmapdecoder.aspx) [Windows.Graphics.Imaging.BitmapEncoder class](https://msdn.microsoft.com/library/windows/apps/windows.graphics.imaging.bitmapencoder.aspx) -## Related samples +### Related samples -[Family Notes sample](https://github.com/Microsoft/Windows-appsample-familynotes) +* [Family Notes sample](https://github.com/Microsoft/Windows-appsample-familynotes) +* [CameraStarterKit sample](/archived/CameraStarterKit/) for JavaScript (archived) ## System requirements -**Hardware:** Camera - -**Client:** Windows 10 - -**Server:** Windows Server 2016 Technical Preview - -**Phone:** Windows 10 +* Windows 10 +* Camera ## Build the sample diff --git a/Samples/CameraVideoStabilization/README.md b/Samples/CameraVideoStabilization/README.md index ff16f60604..b905b36792 100644 --- a/Samples/CameraVideoStabilization/README.md +++ b/Samples/CameraVideoStabilization/README.md @@ -4,7 +4,6 @@ languages: - csharp - cpp - cppcx -- js - vb products: - windows @@ -44,11 +43,7 @@ This sample also implements a custom UI to better simulate the experience that a ## Related topics -**Samples** - -[CameraStarterKit](/Samples/CameraStarterKit) - -**Conceptual** +### Conceptual [Capture photos and video with MediaCapture](https://msdn.microsoft.com/library/windows/apps/mt243896) @@ -56,7 +51,7 @@ This sample also implements a custom UI to better simulate the experience that a [Using the Video Stabilization effect](http://go.microsoft.com/fwlink/?LinkId=627235) -**Reference** +### Reference [Windows.Media.Capture.MediaCapture namespace](https://msdn.microsoft.com/library/windows/apps/windows.media.devices.aspx) @@ -78,15 +73,15 @@ This sample also implements a custom UI to better simulate the experience that a [Windows.Graphics.Imaging.BitmapEncoder class](https://msdn.microsoft.com/library/windows/apps/windows.graphics.imaging.bitmapencoder.aspx) -## System requirements +### Related samples -**Hardware:** Camera +* [CameraStarterKit](/Samples/CameraStarterKit) +* [CameraVideoStabilization sample](/archived/CameraVideoStabilization/) for JavaScript (archived) -**Client:** Windows 10 - -**Server:** Windows Server 2016 Technical Preview +## System requirements -**Phone:** Windows 10 +* Windows 10 +* Camera ## Build the sample diff --git a/Samples/CashDrawer/README.md b/Samples/CashDrawer/README.md index 957e254dcb..dd3699c226 100644 --- a/Samples/CashDrawer/README.md +++ b/Samples/CashDrawer/README.md @@ -4,7 +4,6 @@ languages: - csharp - cpp - cppcx -- js - vb products: - windows @@ -50,23 +49,19 @@ To obtain information about Microsoft Visual Studio and the tools for developing ## Related topics -### Samples - -[Cash Drawer sample](/Samples/CashDrawer) - ### Reference [Windows.Devices.PointOfService](http://msdn.microsoft.com/library/windows/apps/dn298071) [Windows app samples](http://go.microsoft.com/fwlink/p/?LinkID=227694) -## System requirements +### Related samples -**Client:** Windows 10 +* [CashDrawer sample](/archived/CashDrawer/) for JavaScript (archived) -**Server:** Windows Server 2016 Technical Preview +## System requirements -**Phone:** Windows 10 +* Windows 10 ## Build the sample diff --git a/Samples/ClientDeviceInformation/README.md b/Samples/ClientDeviceInformation/README.md index def8932678..ba3a6adbd5 100644 --- a/Samples/ClientDeviceInformation/README.md +++ b/Samples/ClientDeviceInformation/README.md @@ -4,7 +4,6 @@ languages: - csharp - cpp - cppcx -- js products: - windows - windows-uwp @@ -28,15 +27,17 @@ Shows how to retrieve device information such as operating system and manufactur ## Related Topics +### Reference + [EasClientDeviceInformation class](https://msdn.microsoft.com/library/windows/apps/windows.security.exchangeactivesyncprovisioning.easclientdeviceinformation) -## Operating system requirements +### Related samples -*Client*: Windows 10 +* [ClientDeviceInformation sample](/archived/ClientDeviceInformation/) for JavaScript (archived) -**Server:** Windows Server 2016 Technical Preview +## System requirements -**Phone:** Windows 10 +* Windows 10 ## Build the sample diff --git a/Samples/Clipboard/README.md b/Samples/Clipboard/README.md index 2547f9d8d1..886f48d18b 100644 --- a/Samples/Clipboard/README.md +++ b/Samples/Clipboard/README.md @@ -4,7 +4,6 @@ languages: - csharp - cpp - cppcx -- js - vb products: - windows @@ -54,13 +53,13 @@ To obtain information about Microsoft Visual Studio and the tools for developing [QuickStart: Clipboard basics](http://msdn.microsoft.com/library/windows/apps/hh750308) [Windows.ApplicationModel.DataTransfer](http://msdn.microsoft.com/library/windows/apps/br205967) -## System requirements +### Related samples -**Client:** Windows 10 +* [Clipboard sample](/archived/Clipboard/) for JavaScript (archived) -**Server:** Windows Server 2016 Technical Preview +## System requirements -**Phone:** Windows 10 +* Windows 10 ## Build the sample diff --git a/Samples/Compass/README.md b/Samples/Compass/README.md index 46f2f94b41..8114edbe53 100644 --- a/Samples/Compass/README.md +++ b/Samples/Compass/README.md @@ -4,7 +4,6 @@ languages: - csharp - cpp - cppcx -- js - vb products: - windows @@ -47,15 +46,17 @@ Allows the user to simulate sensor accuracy and demonstrates usage of the calibr ## Related topics -[Windows.Devices.Sensors namespace](http://go.microsoft.com/fwlink/p/?linkid=241981) +### Reference -## System requirements +* [Windows.Devices.Sensors namespace](http://go.microsoft.com/fwlink/p/?linkid=241981) + +### Related samples -**Client:** Windows 10 +* [Compass sample](/archived/Compass/) for JavaScript (archived) -**Server:** Windows Server 2016 Technical Preview +## System requirements -**Phone:** Windows 10 +* Windows 10 ## Build the sample diff --git a/Samples/Compression/README.md b/Samples/Compression/README.md index 7368cf421c..4afdaa1206 100644 --- a/Samples/Compression/README.md +++ b/Samples/Compression/README.md @@ -4,7 +4,6 @@ languages: - csharp - cpp - cppcx -- js products: - windows - windows-uwp @@ -45,19 +44,15 @@ Specifically, this sample shows the following: To obtain information about Microsoft Visual Studio and the tools for developing Windows apps, go to [Visual Studio](http://go.microsoft.com/fwlink/?LinkID=532422) -## Operating system requirements +## Related topics -Client +### Related samples -Windows 10 +* [Compression sample](/archived/Compression/) for JavaScript (archived) -Server +## System requirements -Windows Server 2012 R2 - -Phone - -Windows 10 Mobile +* Windows 10 ## Build the sample diff --git a/Samples/ContactCards/README.md b/Samples/ContactCards/README.md index 64a80a7490..a69c2a4ac7 100644 --- a/Samples/ContactCards/README.md +++ b/Samples/ContactCards/README.md @@ -4,7 +4,6 @@ languages: - csharp - cpp - cppcx -- js products: - windows - windows-uwp @@ -63,23 +62,20 @@ To obtain information about Microsoft Visual Studio and the tools for developing ## Related topics -### Samples - -[ContactPicker](../ContactPicker) - ### Reference [Contact](http://msdn.microsoft.com/library/windows/apps/br224849) [ContactCardDelayedDataLoader](http://msdn.microsoft.com/library/windows/apps/dn297400) [Windows.ApplicationModel.Contacts](http://msdn.microsoft.com/library/windows/apps/br225002) -## System requirements +### Related samples -**Client:** Windows 10 +* [ContactPicker](../ContactPicker) +* [ContactCards sample](/archived/ContactCards/) for JavaScript (archived) -**Server:** Windows Server 2016 Technical Preview +## System requirements -**Phone:** Windows 10 (full contact cards only) +* Windows 10 ## Build the sample diff --git a/Samples/ContactPicker/README.md b/Samples/ContactPicker/README.md index 1c545dcdf2..687e02e245 100644 --- a/Samples/ContactPicker/README.md +++ b/Samples/ContactPicker/README.md @@ -4,7 +4,6 @@ languages: - csharp - cpp - cppcx -- js products: - windows - windows-uwp @@ -42,22 +41,19 @@ To obtain information about Microsoft Visual Studio and the tools for developing ## Related topics -### Samples - -[ContactCards](/Samples/ContactCards) - ### Reference [ContactPicker class](http://msdn.microsoft.com/library/windows/apps/br224913) [Contacts and calendar](https://msdn.microsoft.com/library/windows/apps/mt269388) -## System requirements +### Related samples -**Client:** Windows 10 +* [ContactCards](/Samples/ContactCards) +* [ContactPicker sample](/archived/ContactPicker/) for JavaScript (archived) -**Server:** Windows Server 2016 Technical Preview +## System requirements -**Phone:** Windows 10 +* Windows 10 ## Build the sample diff --git a/Samples/ContentIndexer/README.md b/Samples/ContentIndexer/README.md index 8c2c8310a3..41455b6039 100644 --- a/Samples/ContentIndexer/README.md +++ b/Samples/ContentIndexer/README.md @@ -4,7 +4,6 @@ languages: - csharp - cpp - cppcx -- js products: - windows - windows-uwp @@ -75,13 +74,13 @@ To obtain information about Microsoft Visual Studio and the tools for developing [CreateFileQuery](http://msdn.microsoft.com/library/windows/apps/br227252) [CreateFileQueryWithOptions](http://msdn.microsoft.com/library/windows/apps/br211591) -## System requirements +### Related samples -**Client:** Windows 10 +* [ContentIndexer sample](/archived/ContentIndexer/) for JavaScript (archived) -**Server:** Windows Server 2016 Technical Preview +## System requirements -**Phone:** Windows 10 +* Windows 10 ## Build the sample diff --git a/Samples/ContextMenu/README.md b/Samples/ContextMenu/README.md index c2f54367fd..23a5f73428 100644 --- a/Samples/ContextMenu/README.md +++ b/Samples/ContextMenu/README.md @@ -4,7 +4,6 @@ languages: - csharp - cpp - cppcx -- js products: - windows - windows-uwp @@ -59,13 +58,13 @@ To obtain information about Microsoft Visual Studio and the tools for developing [Windows.UI.Popups](http://msdn.microsoft.com/library/windows/apps/br242180) -## System requirements +### Related samples -**Client:** Windows 10 +* [ContextMenu sample](/archived/ContextMenu/) for JavaScript (archived) -**Server:** Windows Server 2016 Technical Preview +## System requirements -**Phone:** Windows 10 +* Windows 10 ## Build the sample diff --git a/Samples/CortanaVoiceCommand/README.md b/Samples/CortanaVoiceCommand/README.md index ab89f4f17f..583557db14 100644 --- a/Samples/CortanaVoiceCommand/README.md +++ b/Samples/CortanaVoiceCommand/README.md @@ -4,7 +4,6 @@ languages: - csharp - cpp - cppcx -- js products: - windows - windows-uwp @@ -41,20 +40,6 @@ Specifically, this sample covers: - Implements progress screens, ensuring that Cortana does not time out during lengthy I/O operations (AdventureWorksVoiceCommandService.cs:ShowProgressScreen()) - Infix/Suffix Voice Command support, allowing for more natural phrases to be used. - -**WinJS:** - -- Installing a VCD file. (installVCD.js, AdventureWorksCommands.xml) -- Using a WebWorker to install the VCD in the background, speeding up app initialization (default.js, installVCD.js) -- Updating a phrase list within a VCD file at runtime. (installVCD.js, tripDetails.js) -- Registration of a background task and protocol handler for Cortana (Package.appxmanifest, AdventureWorksCommands.xml) -- Implement a background task and Voice Command services for Cortana (voiceCommandService.js), including: - - Simple headless Cortana background activation for displaying content within Cortana (when is my trip to *destination*) - - Confirmation dialogs (cancel trip to *destination*) - - Disambiguation of multiple items with automatic reprompting. - - Resolution scaling images - - Progress dialogs for lengthy operations. - **C++/CX** - Installing a VCD file. (adventureworkscommands.xml, App.xaml.cpp:OnLaunched() ) @@ -97,31 +82,24 @@ Duplicates can also be handled. For an example of handling disambiguation, add a - "Adventure Works, cancel trip to London" -## Known Issues - -* WinJS version of the sample app is not localized. It should handle dates correctly in alternate regions, but currently does not install a localized VCD, or provide localized strings to Cortana. - ## Related topics +### Conceptual + [Cortana design guidelines](https://msdn.microsoft.com/library/windows/apps/xaml/dn974233.aspx) [Cortana interactions (XAML)](https://msdn.microsoft.com/library/windows/apps/mt185598) [Cortana interactions (HTML)](https://msdn.microsoft.com/library/windows/apps/dn974231.aspx) -## See also +### Related samples -[Family Notes sample](https://github.com/Microsoft/Windows-appsample-familynotes) -[Hue Lights sample](https://github.com/Microsoft/Windows-appsample-huelightcontroller) -[WebWorkers](https://msdn.microsoft.com/library/hh673568.aspx) +* [Family Notes sample](https://github.com/Microsoft/Windows-appsample-familynotes) +* [Hue Lights sample](https://github.com/Microsoft/Windows-appsample-huelightcontroller) +* [CortanaVoiceCommand sample](/archived/CortanaVoiceCommand/) for JavaScript (archived) ## System requirements -**Client:** Windows 10 - -**Server:** Windows Server 2016 Technical Preview - -**Phone:** Windows 10 - -Cortana requires an appropriate recording device, and the system must be associated with a Microsoft Account in order for Cortana to function. +* Windows 10 +* Cortana requires an appropriate recording device, and the system must be associated with a Microsoft Account in order for Cortana to function. ## Build the sample diff --git a/Samples/CredentialPicker/README.md b/Samples/CredentialPicker/README.md index 4cbdb93e9d..9efc998dd1 100644 --- a/Samples/CredentialPicker/README.md +++ b/Samples/CredentialPicker/README.md @@ -4,7 +4,6 @@ languages: - csharp - cpp - cppcx -- js products: - windows - windows-uwp @@ -32,10 +31,15 @@ This sample allows the user launch different types of credential prompts. You ca - Message and Caption - Message, Caption, Save Credential Option, and a type of protocol. -Operating system requirements ------------------------------ +## Related topics -Windows 10 +### Related samples + +* [CredentialPicker sample](/archived/CredentialPicker/) for JavaScript (archived) + +## System requirements + +* Windows 10 Related topics --------------- diff --git a/Samples/CustomCapability/README.md b/Samples/CustomCapability/README.md index 01001fff78..b579b903c9 100644 --- a/Samples/CustomCapability/README.md +++ b/Samples/CustomCapability/README.md @@ -4,7 +4,6 @@ languages: - csharp - cpp - cppcx -- js products: - windows - windows-uwp @@ -166,15 +165,6 @@ To obtain information about Microsoft Visual Studio and the tools for developing ## Related topics -### Samples - -* [IoT-GPIO](/Samples/IoT-GPIO) -* [IoT-I2C](/Samples/IoT-I2C) -* [IoT-SPI](/Samples/IoT-SPI) -* [Custom HID device access](/Samples/CustomHidDeviceAccess) -* [Custom serial device access](/Samples/CustomSerialDeviceAccess) -* [Custom USB device access](/Samples/CustomUsbDeviceAccess) - ### Reference * [Windows.Devices.Custom.CustomDevice runtime class](https://msdn.microsoft.com/library/windows/apps/windows.devices.custom.customdevice.aspx) class @@ -184,13 +174,19 @@ To obtain information about Microsoft Visual Studio and the tools for developing * [Custom Capabilities for Universal Windows Platform apps](https://msdn.microsoft.com/windows/hardware/drivers/devapps/custom-capabilities-for-universal-windows-platform-apps) * [Hardware access for Universal Windows Platform apps](https://msdn.microsoft.com/windows/hardware/drivers/devapps/hardware-access-for-universal-windows-platform-apps) -## System requirements +### Related samples -**Client:** Windows 10 version 1703 +* [IoT-GPIO](/Samples/IoT-GPIO) +* [IoT-I2C](/Samples/IoT-I2C) +* [IoT-SPI](/Samples/IoT-SPI) +* [Custom HID device access](/Samples/CustomHidDeviceAccess) +* [Custom serial device access](/Samples/CustomSerialDeviceAccess) +* [Custom USB device access](/Samples/CustomUsbDeviceAccess) +* [CustomCapability sample](/archived/CustomCapability/) for JavaScript (archived) -**Server:** Windows Server 2016 Technical Preview +## System requirements -**Phone:** Windows 10 version 1703 +* Windows 10 build 15063 or higher ## Build the sample diff --git a/Samples/CustomSensors/README.md b/Samples/CustomSensors/README.md index c714cfe36b..754f668bb7 100644 --- a/Samples/CustomSensors/README.md +++ b/Samples/CustomSensors/README.md @@ -4,7 +4,6 @@ languages: - csharp - cpp - cppcx -- js products: - windows - windows-uwp @@ -39,13 +38,15 @@ When you click on the **Enable** button for the **Data Events** option, the app When you click on the **Get CO2 level** button for the **Polling** option, the app will retrieve the current sensor readings. -## System requirements +## Related topics + +### Related samples -**Client:** Windows 10 +* [CustomSensors sample](/archived/CustomSensors/) for JavaScript (archived) -**Server:** Windows Server 2016 Technical Preview +## System requirements -**Phone:** Windows 10 +* Windows 10 ## Build the sample diff --git a/Samples/CustomSerialDeviceAccess/README.md b/Samples/CustomSerialDeviceAccess/README.md index 5b482c1094..e02bed10e3 100644 --- a/Samples/CustomSerialDeviceAccess/README.md +++ b/Samples/CustomSerialDeviceAccess/README.md @@ -2,7 +2,6 @@ topic: sample languages: - csharp -- js products: - windows - windows-uwp @@ -48,11 +47,15 @@ This scenario demonstrates the use of Input and Output streams on the SerialDevi This scenario demonstrates the use of event notification APIs provided by Windows.Devices.SerialCommunication for **Pin Changed** and **Error Received** event types. -## Operating system requirements +## Related topics -**Client:** Windows 10 +### Related samples -**Server:** Windows Server 2016 Technical Preview +* [CustomSerialDeviceAccess sample](/archived/CustomSerialDeviceAccess/) for JavaScript (archived) + +## System requirements + +* Windows 10 ## Build the sample diff --git a/Samples/CustomUsbDeviceAccess/README.md b/Samples/CustomUsbDeviceAccess/README.md index a168c5dd15..c1e3e32d19 100644 --- a/Samples/CustomUsbDeviceAccess/README.md +++ b/Samples/CustomUsbDeviceAccess/README.md @@ -2,7 +2,6 @@ topic: sample languages: - csharp -- js products: - windows - windows-uwp @@ -128,7 +127,9 @@ The sample adds the [DeviceCapability](http://msdn.microsoft.com/library/windows ``` -## Related technologies +## Related topics + +### References * [Windows.Devices.Usb](http://msdn.microsoft.com/library/windows/apps/dn278466) @@ -154,11 +155,13 @@ The sample adds the [DeviceCapability](http://msdn.microsoft.com/library/windows Writes data to an output stream. Used for writing data to a USB pipe. -## Operating system requirements +### Related samples + +* [CustomUsbDeviceAccess sample](/archived/CustomUsbDeviceAccess/) for JavaScript (archived) -**Client:** Windows 10 +## System requirements -**Server:** Windows Server 2016 Technical Preview +* Windows 10 ## Driver requirements diff --git a/Samples/DataReaderWriter/README.md b/Samples/DataReaderWriter/README.md index 5d9a09e374..e05e91ad3a 100644 --- a/Samples/DataReaderWriter/README.md +++ b/Samples/DataReaderWriter/README.md @@ -4,7 +4,6 @@ languages: - csharp - cpp - cppcx -- js products: - windows - windows-uwp @@ -40,6 +39,8 @@ To obtain information about Microsoft Visual Studio and the tools for developing ## Related topics +### Other topics + [DataReader](http://msdn.microsoft.com/library/windows/apps/br208119) [DataWriter](http://msdn.microsoft.com/library/windows/apps/br208154) [OpenSequentialReadAsync](http://msdn.microsoft.com/library/windows/apps/hh701853) @@ -49,13 +50,13 @@ To obtain information about Microsoft Visual Studio and the tools for developing [Streams](http://msdn.microsoft.com/library/windows/apps/br241791) -## System requirements +### Related samples -**Client:** Windows 10 +* [DataReaderWriter sample](/archived/DataReaderWriter/) for JavaScript (archived) -**Server:** Windows Server 2016 Technical Preview +## System requirements -**Phone:** Windows 10 +* Windows 10 ## Build the sample diff --git a/Samples/DatagramSocket/README.md b/Samples/DatagramSocket/README.md index ef969f28b7..bcf8f86c51 100644 --- a/Samples/DatagramSocket/README.md +++ b/Samples/DatagramSocket/README.md @@ -4,7 +4,6 @@ languages: - csharp - cpp - cppcx -- js products: - windows - windows-uwp @@ -70,11 +69,6 @@ This sample requires that network capabilities be set in the *Package.appxmanife [Windows.Storage.Streams.DataWriter](http://msdn.microsoft.com/library/windows/apps/br208154) [SocketActivityTrigger](https://msdn.microsoft.com/library/windows/apps/windows.applicationmodel.background.socketactivitytrigger.aspx) -### Samples - -[StreamSocket sample](/Samples/StreamSocket) -[SocketActivityTrigger StreamSocket Sample](/Samples/SocketActivityStreamSocket) - ### Other - C\#/VB/C++ and XAML [Adding support for networking (XAML)](http://msdn.microsoft.com/library/windows/apps/hh452751) @@ -84,22 +78,15 @@ This sample requires that network capabilities be set in the *Package.appxmanife [How to use advanced socket controls (XAML)](http://msdn.microsoft.com/library/windows/apps/jj150598) [Troubleshooting and debugging network connections](http://msdn.microsoft.com/library/windows/apps/hh770534) -### Other - JavaScript and HTML +### Related samples -[Adding support for networking (HTML)](http://msdn.microsoft.com/library/windows/apps/hh452752) -[Connecting to network services (HTML)](http://msdn.microsoft.com/library/windows/apps/hh452977) -[How to send and receive network data with a datagram socket (HTML)](http://msdn.microsoft.com/library/windows/apps/hh452986) -[How to set network capabilities (HTML)](http://msdn.microsoft.com/library/windows/apps/hh770532) -[How to use advanced socket controls (HTML)](http://msdn.microsoft.com/library/windows/apps/hh780596) -[Troubleshooting and debugging network connections](http://msdn.microsoft.com/library/windows/apps/hh770534) +* [StreamSocket sample](/Samples/StreamSocket) +* [SocketActivityTrigger StreamSocket Sample](/Samples/SocketActivityStreamSocket) +* [DatagramSocket sample](/archived/DatagramSocket/) for JavaScript (archived) ## System requirements -**Client:** Windows 10 - -**Server:** Windows Server 2016 Technical Preview - -**Phone:** Windows 10 +* Windows 10 ## Build the sample diff --git a/Samples/DateTimeFormatting/README.md b/Samples/DateTimeFormatting/README.md index 9367b9790b..6d4feb25c1 100644 --- a/Samples/DateTimeFormatting/README.md +++ b/Samples/DateTimeFormatting/README.md @@ -4,7 +4,6 @@ languages: - csharp - cpp - cppcx -- js products: - windows - windows-uwp @@ -49,25 +48,22 @@ This sample contains scenarios that demonstrate: ## Related topics -### Samples - -[Calendar sample](../Calendar) -[GlobalizationPreferences sample](../GlobalizationPreferences) -[NumberFormatting sample](../NumberFormatting) - ### Reference [Windows.Globalization.CalendarIdentifiers](http://msdn.microsoft.com/library/windows/apps/br229460) [Windows.Globalization.ClockIdentifiers](http://msdn.microsoft.com/library/windows/apps/br229462) [Windows.Globalization.DateTimeFormatting.DateTimeFormatter](http://msdn.microsoft.com/library/windows/apps/br206828) -## System requirements +### Related samples -**Client:** Windows 10 +* [Calendar sample](../Calendar) +* [GlobalizationPreferences sample](../GlobalizationPreferences) +* [NumberFormatting sample](../NumberFormatting) +* [DateTimeFormatting sample](/archived/DateTimeFormatting/) for JavaScript (archived) -**Server:** Windows Server 2016 Technical Preview +## System requirements -**Phone:** Windows 10 +* Windows 10 ## Build the sample diff --git a/Samples/DeviceEnumerationAndPairing/README.md b/Samples/DeviceEnumerationAndPairing/README.md index 3ae9e1f3e6..86b6aa1a1d 100644 --- a/Samples/DeviceEnumerationAndPairing/README.md +++ b/Samples/DeviceEnumerationAndPairing/README.md @@ -4,7 +4,6 @@ languages: - csharp - cpp - cppcx -- js products: - windows - windows-uwp @@ -55,14 +54,13 @@ The sample demonstrates eight scenarios: [Enumerating devices article](http://msdn.microsoft.com/library/windows/apps/Hh464977) [Windows.Devices.Enumeration namespace](http://msdn.microsoft.com/library/windows/apps/windows.devices.enumeration.aspx) -## System requirements - -**Client:** Windows 10 +### Related samples -**Server:** Windows Server 2016 Technical Preview +* [DeviceEnumerationAndPairing sample](/archived/DeviceEnumerationAndPairing/) for JavaScript (archived) -**Phone:** Windows 10 +## System requirements +* Windows 10 ## Build the sample diff --git a/Samples/DeviceEnumerationAndPairing/cppwinrt/DeviceEnumeration.sln b/Samples/DeviceEnumerationAndPairing/cppwinrt/DeviceEnumeration.sln index fcf092698e..486968bc57 100644 --- a/Samples/DeviceEnumerationAndPairing/cppwinrt/DeviceEnumeration.sln +++ b/Samples/DeviceEnumerationAndPairing/cppwinrt/DeviceEnumeration.sln @@ -3,9 +3,9 @@ Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio Version 16 VisualStudioVersion = 16.0.28922.388 MinimumVisualStudioVersion = 10.0.40219.1 -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "DeviceEnumeration", "DeviceEnumeration.vcxproj", "{278B9682-93F2-4D05-AD65-6DC66741EA23}" +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "DeviceEnumeration", "DeviceEnumeration.vcxproj", "{A7A13311-34DE-5237-BE22-0C645620E635}" EndProject -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Tasks", "Tasks\Tasks.vcxproj", "{CD990FF6-89C2-4665-B89F-FB481521AA38}" +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Tasks", "Tasks\Tasks.vcxproj", "{6310ADC7-3868-5423-AE2B-B5EDB4AA4F70}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution @@ -17,36 +17,36 @@ Global Release|x86 = Release|x86 EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution - {278B9682-93F2-4D05-AD65-6DC66741EA23}.Debug|ARM.ActiveCfg = Debug|ARM - {278B9682-93F2-4D05-AD65-6DC66741EA23}.Debug|ARM.Build.0 = Debug|ARM - {278B9682-93F2-4D05-AD65-6DC66741EA23}.Debug|ARM.Deploy.0 = Debug|ARM - {278B9682-93F2-4D05-AD65-6DC66741EA23}.Debug|x64.ActiveCfg = Debug|x64 - {278B9682-93F2-4D05-AD65-6DC66741EA23}.Debug|x64.Build.0 = Debug|x64 - {278B9682-93F2-4D05-AD65-6DC66741EA23}.Debug|x64.Deploy.0 = Debug|x64 - {278B9682-93F2-4D05-AD65-6DC66741EA23}.Debug|x86.ActiveCfg = Debug|Win32 - {278B9682-93F2-4D05-AD65-6DC66741EA23}.Debug|x86.Build.0 = Debug|Win32 - {278B9682-93F2-4D05-AD65-6DC66741EA23}.Debug|x86.Deploy.0 = Debug|Win32 - {278B9682-93F2-4D05-AD65-6DC66741EA23}.Release|ARM.ActiveCfg = Release|ARM - {278B9682-93F2-4D05-AD65-6DC66741EA23}.Release|ARM.Build.0 = Release|ARM - {278B9682-93F2-4D05-AD65-6DC66741EA23}.Release|ARM.Deploy.0 = Release|ARM - {278B9682-93F2-4D05-AD65-6DC66741EA23}.Release|x64.ActiveCfg = Release|x64 - {278B9682-93F2-4D05-AD65-6DC66741EA23}.Release|x64.Build.0 = Release|x64 - {278B9682-93F2-4D05-AD65-6DC66741EA23}.Release|x64.Deploy.0 = Release|x64 - {278B9682-93F2-4D05-AD65-6DC66741EA23}.Release|x86.ActiveCfg = Release|Win32 - {278B9682-93F2-4D05-AD65-6DC66741EA23}.Release|x86.Build.0 = Release|Win32 - {278B9682-93F2-4D05-AD65-6DC66741EA23}.Release|x86.Deploy.0 = Release|Win32 - {CD990FF6-89C2-4665-B89F-FB481521AA38}.Debug|ARM.ActiveCfg = Debug|ARM - {CD990FF6-89C2-4665-B89F-FB481521AA38}.Debug|ARM.Build.0 = Debug|ARM - {CD990FF6-89C2-4665-B89F-FB481521AA38}.Debug|x64.ActiveCfg = Debug|x64 - {CD990FF6-89C2-4665-B89F-FB481521AA38}.Debug|x64.Build.0 = Debug|x64 - {CD990FF6-89C2-4665-B89F-FB481521AA38}.Debug|x86.ActiveCfg = Debug|Win32 - {CD990FF6-89C2-4665-B89F-FB481521AA38}.Debug|x86.Build.0 = Debug|Win32 - {CD990FF6-89C2-4665-B89F-FB481521AA38}.Release|ARM.ActiveCfg = Release|ARM - {CD990FF6-89C2-4665-B89F-FB481521AA38}.Release|ARM.Build.0 = Release|ARM - {CD990FF6-89C2-4665-B89F-FB481521AA38}.Release|x64.ActiveCfg = Release|x64 - {CD990FF6-89C2-4665-B89F-FB481521AA38}.Release|x64.Build.0 = Release|x64 - {CD990FF6-89C2-4665-B89F-FB481521AA38}.Release|x86.ActiveCfg = Release|Win32 - {CD990FF6-89C2-4665-B89F-FB481521AA38}.Release|x86.Build.0 = Release|Win32 + {A7A13311-34DE-5237-BE22-0C645620E635}.Debug|ARM.ActiveCfg = Debug|ARM + {A7A13311-34DE-5237-BE22-0C645620E635}.Debug|ARM.Build.0 = Debug|ARM + {A7A13311-34DE-5237-BE22-0C645620E635}.Debug|ARM.Deploy.0 = Debug|ARM + {A7A13311-34DE-5237-BE22-0C645620E635}.Debug|x64.ActiveCfg = Debug|x64 + {A7A13311-34DE-5237-BE22-0C645620E635}.Debug|x64.Build.0 = Debug|x64 + {A7A13311-34DE-5237-BE22-0C645620E635}.Debug|x64.Deploy.0 = Debug|x64 + {A7A13311-34DE-5237-BE22-0C645620E635}.Debug|x86.ActiveCfg = Debug|Win32 + {A7A13311-34DE-5237-BE22-0C645620E635}.Debug|x86.Build.0 = Debug|Win32 + {A7A13311-34DE-5237-BE22-0C645620E635}.Debug|x86.Deploy.0 = Debug|Win32 + {A7A13311-34DE-5237-BE22-0C645620E635}.Release|ARM.ActiveCfg = Release|ARM + {A7A13311-34DE-5237-BE22-0C645620E635}.Release|ARM.Build.0 = Release|ARM + {A7A13311-34DE-5237-BE22-0C645620E635}.Release|ARM.Deploy.0 = Release|ARM + {A7A13311-34DE-5237-BE22-0C645620E635}.Release|x64.ActiveCfg = Release|x64 + {A7A13311-34DE-5237-BE22-0C645620E635}.Release|x64.Build.0 = Release|x64 + {A7A13311-34DE-5237-BE22-0C645620E635}.Release|x64.Deploy.0 = Release|x64 + {A7A13311-34DE-5237-BE22-0C645620E635}.Release|x86.ActiveCfg = Release|Win32 + {A7A13311-34DE-5237-BE22-0C645620E635}.Release|x86.Build.0 = Release|Win32 + {A7A13311-34DE-5237-BE22-0C645620E635}.Release|x86.Deploy.0 = Release|Win32 + {6310ADC7-3868-5423-AE2B-B5EDB4AA4F70}.Debug|ARM.ActiveCfg = Debug|ARM + {6310ADC7-3868-5423-AE2B-B5EDB4AA4F70}.Debug|ARM.Build.0 = Debug|ARM + {6310ADC7-3868-5423-AE2B-B5EDB4AA4F70}.Debug|x64.ActiveCfg = Debug|x64 + {6310ADC7-3868-5423-AE2B-B5EDB4AA4F70}.Debug|x64.Build.0 = Debug|x64 + {6310ADC7-3868-5423-AE2B-B5EDB4AA4F70}.Debug|x86.ActiveCfg = Debug|Win32 + {6310ADC7-3868-5423-AE2B-B5EDB4AA4F70}.Debug|x86.Build.0 = Debug|Win32 + {6310ADC7-3868-5423-AE2B-B5EDB4AA4F70}.Release|ARM.ActiveCfg = Release|ARM + {6310ADC7-3868-5423-AE2B-B5EDB4AA4F70}.Release|ARM.Build.0 = Release|ARM + {6310ADC7-3868-5423-AE2B-B5EDB4AA4F70}.Release|x64.ActiveCfg = Release|x64 + {6310ADC7-3868-5423-AE2B-B5EDB4AA4F70}.Release|x64.Build.0 = Release|x64 + {6310ADC7-3868-5423-AE2B-B5EDB4AA4F70}.Release|x86.ActiveCfg = Release|Win32 + {6310ADC7-3868-5423-AE2B-B5EDB4AA4F70}.Release|x86.Build.0 = Release|Win32 EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/Samples/DeviceEnumerationAndPairing/cppwinrt/DeviceEnumeration.vcxproj b/Samples/DeviceEnumerationAndPairing/cppwinrt/DeviceEnumeration.vcxproj index 2ea42df0a0..a9f6b09227 100644 --- a/Samples/DeviceEnumerationAndPairing/cppwinrt/DeviceEnumeration.vcxproj +++ b/Samples/DeviceEnumerationAndPairing/cppwinrt/DeviceEnumeration.vcxproj @@ -3,7 +3,7 @@ true - {278B9682-93F2-4D05-AD65-6DC66741EA23} + {A7A13311-34DE-5237-BE22-0C645620E635} DeviceEnumeration SDKTemplate en-US diff --git a/Samples/DeviceEnumerationAndPairing/cppwinrt/Tasks/Tasks.vcxproj b/Samples/DeviceEnumerationAndPairing/cppwinrt/Tasks/Tasks.vcxproj index 4612f06360..2857a78e05 100644 --- a/Samples/DeviceEnumerationAndPairing/cppwinrt/Tasks/Tasks.vcxproj +++ b/Samples/DeviceEnumerationAndPairing/cppwinrt/Tasks/Tasks.vcxproj @@ -1,10 +1,10 @@ - + true true - {cd990ff6-89c2-4665-b89f-fb481521aa38} + {6310adc7-3868-5423-ae2b-b5edb4aa4f70} Tasks BackgroundDeviceWatcherTask en-US diff --git a/Samples/DisablingScreenCapture/README.md b/Samples/DisablingScreenCapture/README.md index 70b792d6ec..c2cba39f0e 100644 --- a/Samples/DisablingScreenCapture/README.md +++ b/Samples/DisablingScreenCapture/README.md @@ -4,7 +4,6 @@ languages: - csharp - cpp - cppcx -- js products: - windows - windows-uwp @@ -49,13 +48,13 @@ To obtain information about Microsoft Visual Studio and the tools for developing [ApplicationView class](https://msdn.microsoft.com/library/windows/apps/windows.ui.viewmanagement.applicationview.aspx) -## System requirements +### Related samples -**Client:** Windows 10 +* [DisablingScreenCapture sample](/archived/DisablingScreenCapture/) for JavaScript (archived) -**Server:** Windows Server 2016 Technical Preview +## System requirements -**Phone:** Windows 10 +* Windows 10 ## Build the sample diff --git a/Samples/DisplayOrientation/README.md b/Samples/DisplayOrientation/README.md index 3efe302d77..4b422f9b4f 100644 --- a/Samples/DisplayOrientation/README.md +++ b/Samples/DisplayOrientation/README.md @@ -4,7 +4,6 @@ languages: - csharp - cpp - cppcx -- js products: - windows - windows-uwp @@ -47,22 +46,19 @@ To obtain information about Microsoft Visual Studio and the tools for developing ## Related topics -### Samples - -[Accelerometer](../Accelerometer) - ### Reference [Windows.Graphics.Display namespace](http://msdn.microsoft.com/library/windows/apps/windows.graphics.display.aspx) [DisplayInformation class](http://msdn.microsoft.com/library/windows/apps/dn264258) -## System requirements +### Related samples -**Client:** Windows 10 +* [Accelerometer](../Accelerometer) +* [DisplayOrientation sample](/archived/DisplayOrientation/) for JavaScript (archived) -**Server:** Windows Server 2016 Technical Preview +## System requirements -**Phone:** Windows 10 +* Windows 10 ## Build the sample diff --git a/Samples/DpiScaling/README.md b/Samples/DpiScaling/README.md index c5c18f42fa..788552e4fd 100644 --- a/Samples/DpiScaling/README.md +++ b/Samples/DpiScaling/README.md @@ -4,7 +4,6 @@ languages: - csharp - cpp - cppcx -- js products: - windows - windows-uwp @@ -47,13 +46,15 @@ To obtain information about Windows 10 development, go to the [Windows Dev Cente To obtain information about Microsoft Visual Studio and the tools for developing Windows apps, go to [Visual Studio](http://go.microsoft.com/fwlink/?LinkID=532422) -## System requirements +## Related topics + +### Related samples -**Client:** Windows 10 +* [DpiScaling sample](/archived/DpiScaling/) for JavaScript (archived) -**Server:** Windows Server 2016 Technical Preview +## System requirements -**Phone:** Windows 10 +* Windows 10 ## Build the sample diff --git a/Samples/FileAccess/README.md b/Samples/FileAccess/README.md index 25652061ef..7a4981188e 100644 --- a/Samples/FileAccess/README.md +++ b/Samples/FileAccess/README.md @@ -5,7 +5,6 @@ languages: - cpp - cppcx - cppwinrt -- js products: - windows - windows-uwp @@ -94,17 +93,6 @@ To obtain information about Microsoft Visual Studio and the tools for developing *Note**  If you want to learn about accessing files using a file picker, see [Open files and folders with a picker](https://msdn.microsoft.com/library/windows/apps/mt186456). -### Samples - -[File picker sample](http://go.microsoft.com/fwlink/p/?linkid=231464) -[Folder enumeration sample](http://go.microsoft.com/fwlink/p/?linkid=231512) -[Programmatic file search sample](http://go.microsoft.com/fwlink/p/?linkid=231532) -[File and folder thumbnail sample](http://go.microsoft.com/fwlink/p/?linkid=231522) -[RSS reader sample](https://github.com/Microsoft/Windows-appsample-rssreader) -[Family Notes sample](https://github.com/Microsoft/Windows-appsample-familynotes) -[Coloring Book app sample](https://github.com/Microsoft/Windows-appsample-coloringbook) -[Traffic App sample](https://github.com/microsoft/windows-appsample-trafficapp/) - ## Reference [Windows.Storage namespace](http://msdn.microsoft.com/library/windows/apps/br227346) @@ -112,13 +100,21 @@ To obtain information about Microsoft Visual Studio and the tools for developing [Windows.Storage.FileProperties](http://msdn.microsoft.com/library/windows/apps/br207831) [Windows.Storage.Streams namespace](http://msdn.microsoft.com/library/windows/apps/br241791) -## System requirements +### Related samples -**Client:** Windows 10 build 10500 or higher +* [File picker sample](http://go.microsoft.com/fwlink/p/?linkid=231464) +* [Folder enumeration sample](http://go.microsoft.com/fwlink/p/?linkid=231512) +* [Programmatic file search sample](http://go.microsoft.com/fwlink/p/?linkid=231532) +* [File and folder thumbnail sample](http://go.microsoft.com/fwlink/p/?linkid=231522) +* [RSS reader sample](https://github.com/Microsoft/Windows-appsample-rssreader) +* [Family Notes sample](https://github.com/Microsoft/Windows-appsample-familynotes) +* [Coloring Book app sample](https://github.com/Microsoft/Windows-appsample-coloringbook) +* [Traffic App sample](https://github.com/microsoft/windows-appsample-trafficapp/) +* [FileAccess sample](/archived/FileAccess/) for JavaScript (archived) -**Server:** Windows Server 2016 Technical Preview build 10500 or higher +## System requirements -**Phone:** Windows 10 build 10500 or higher +* Windows 10 build 10586 or higher ## Build the sample diff --git a/Samples/FilePicker/README.md b/Samples/FilePicker/README.md index 6009ac24ff..559c2631c5 100644 --- a/Samples/FilePicker/README.md +++ b/Samples/FilePicker/README.md @@ -5,7 +5,6 @@ languages: - cpp - cppcx - cppwinrt -- js products: - windows - windows-uwp @@ -70,24 +69,20 @@ To obtain information about Microsoft Visual Studio and the tools for developing ## Related topics -## Samples - -[File access sample](http://go.microsoft.com/fwlink/p/?linkid=231445) -[Using a Blob to save and load content sample](http://go.microsoft.com/fwlink/p/?linkid=231615) -[File and folder thumbnail sample](http://go.microsoft.com/fwlink/p/?linkid=231522) -[File picker contracts sample](http://go.microsoft.com/fwlink/p/?linkid=231536) - -## Reference +### Reference [Windows.Storage.Pickers namespace](http://msdn.microsoft.com/library/windows/apps/br207928) -## System requirements +### Related samples -**Client:** Windows 10 +* [File access sample](http://go.microsoft.com/fwlink/p/?linkid=231445) +* [File and folder thumbnail sample](http://go.microsoft.com/fwlink/p/?linkid=231522) +* [File picker contracts sample](http://go.microsoft.com/fwlink/p/?linkid=231536) +* [FilePicker sample](/archived/FilePicker/) for JavaScript (archived) -**Server:** Windows Server 2016 Technical Preview +## System requirements -**Phone:** Windows 10 +* Windows 10 ## Build the sample diff --git a/Samples/FileSearch/README.md b/Samples/FileSearch/README.md index b6e6a733ec..c5c3fc7c23 100644 --- a/Samples/FileSearch/README.md +++ b/Samples/FileSearch/README.md @@ -5,7 +5,6 @@ languages: - cpp - cppcx - cppwinrt -- js products: - windows - windows-uwp @@ -44,23 +43,20 @@ To obtain information about Microsoft Visual Studio and the tools for developing ## Related topics -### Samples - -[File access sample](http://go.microsoft.com/fwlink/p/?linkid=231445) -[Folder enumeration sample](http://go.microsoft.com/fwlink/p/?linkid=231512) - ### Reference [Windows.Storage namespace](http://msdn.microsoft.com/library/windows/apps/br227346) [Windows.Storage.Search namespace](http://msdn.microsoft.com/library/windows/apps/br208106) -## System requirements +### Related samples -**Client:** Windows 10 build 10500 or higher +* [File access sample](http://go.microsoft.com/fwlink/p/?linkid=231445) +* [Folder enumeration sample](http://go.microsoft.com/fwlink/p/?linkid=231512) +* [FileSearch sample](/archived/FileSearch/) for JavaScript (archived) -**Server:** Windows Server 2016 Technical Preview build 10500 or higher +## System requirements -**Phone:** Windows 10 build 10500 or higher +* Windows 10 build 10586 or higher ## Build the sample diff --git a/Samples/FileThumbnails/README.md b/Samples/FileThumbnails/README.md index 8bf8232d13..0ef6401cbb 100644 --- a/Samples/FileThumbnails/README.md +++ b/Samples/FileThumbnails/README.md @@ -5,7 +5,6 @@ languages: - cpp - cppcx - cppwinrt -- js products: - windows - windows-uwp @@ -61,25 +60,22 @@ To obtain information about Microsoft Visual Studio and the tools for developing ## Related topics -## Samples - -[File access sample](http://go.microsoft.com/fwlink/p/?linkid=231445) -[File picker sample](http://go.microsoft.com/fwlink/p/?linkid=231464) -[Folder enumeration sample](http://go.microsoft.com/fwlink/p/?linkid=231512) -[Programmatic file search sample](http://go.microsoft.com/fwlink/p/?linkid=231532) - -## Reference +### Reference [Windows.Storage namespace](http://msdn.microsoft.com/library/windows/apps/br227346) [Windows.Storage.FileProperties namespace](http://msdn.microsoft.com/library/windows/apps/br207831) -## System requirements +### Related samples -**Client:** Windows 10 +* [File access sample](http://go.microsoft.com/fwlink/p/?linkid=231445) +* [File picker sample](http://go.microsoft.com/fwlink/p/?linkid=231464) +* [Folder enumeration sample](http://go.microsoft.com/fwlink/p/?linkid=231512) +* [Programmatic file search sample](http://go.microsoft.com/fwlink/p/?linkid=231532) +* [FileThumbnails sample](/archived/FileThumbnails/) for JavaScript (archived) -**Server:** Windows Server 2016 Technical Preview +## System requirements -**Phone:** Windows 10 +* Windows 10 ## Build the sample diff --git a/Samples/FolderEnumeration/README.md b/Samples/FolderEnumeration/README.md index b68b0add54..81195a9319 100644 --- a/Samples/FolderEnumeration/README.md +++ b/Samples/FolderEnumeration/README.md @@ -5,7 +5,6 @@ languages: - cpp - cppcx - cppwinrt -- js products: - windows - windows-uwp @@ -69,24 +68,21 @@ To obtain information about Microsoft Visual Studio and the tools for developing ## Related topics -### Samples - -[Programmatic file search sample](http://go.microsoft.com/fwlink/p/?linkid=231532) -[File access sample](http://go.microsoft.com/fwlink/p/?linkid=231445) -[File and folder thumbnail sample](http://go.microsoft.com/fwlink/p/?linkid=231522) - ### Reference [Windows.Storage namespace](http://msdn.microsoft.com/library/windows/apps/br227346) [Windows.Storage.Search namespace](http://msdn.microsoft.com/library/windows/apps/br208106) -## System requirements +### Related samples -**Client:** Windows 10 build 10500 or higher +* [Programmatic file search sample](http://go.microsoft.com/fwlink/p/?linkid=231532) +* [File access sample](http://go.microsoft.com/fwlink/p/?linkid=231445) +* [File and folder thumbnail sample](http://go.microsoft.com/fwlink/p/?linkid=231522) +* [FolderEnumeration sample](/archived/FolderEnumeration/) for JavaScript (archived) -**Server:** Windows Server 2016 Technical Preview build 10500 or higher +## System requirements -**Phone:** Windows 10 build 10500 or higher +* Windows 10 build 10586 ## Build the sample diff --git a/Samples/FullScreenMode/README.md b/Samples/FullScreenMode/README.md index 6cd5138690..a6957d46c9 100644 --- a/Samples/FullScreenMode/README.md +++ b/Samples/FullScreenMode/README.md @@ -5,7 +5,6 @@ languages: - cpp - cppcx - cppwinrt -- js products: - windows - windows-uwp @@ -43,21 +42,17 @@ To obtain information about Microsoft Visual Studio and the tools for developing ## Related topics -### Samples - -[FullScreenMode](/Samples/FullScreenMode) - ### Reference [ApplicationView class](https://msdn.microsoft.com/library/windows/apps/windows.ui.viewmanagement.applicationview.aspx) -## System requirements +### Related samples -**Client:** Windows 10 +* [FullScreenMode sample](/archived/FullScreenMode/) for JavaScript (archived) -**Server:** Windows Server 2016 Technical Preview +## System requirements -**Phone:** Windows 10 +* Windows 10 ## Build the sample diff --git a/Samples/Geolocation/README.md b/Samples/Geolocation/README.md index 26d8417aaf..d31a2997c4 100644 --- a/Samples/Geolocation/README.md +++ b/Samples/Geolocation/README.md @@ -4,7 +4,6 @@ languages: - csharp - cpp - cppcx -- js products: - windows - windows-uwp @@ -59,23 +58,25 @@ This sample requires that location capability be set in the *Package.appxmanifes ## Related topics -[Get current location](https://msdn.microsoft.com/library/windows/apps/mt219698) -[Windows.Devices.Geolocation](http://msdn.microsoft.com/library/windows/apps/br225603) -[Windows.Devices.Geolocation.Geofencing](https://msdn.microsoft.com/library/windows/apps/dn263744) -[Guidelines for location-aware apps](https://msdn.microsoft.com/library/windows/apps/hh465148) +### Conceptual -## Related samples +* [Get current location](https://msdn.microsoft.com/library/windows/apps/mt219698) +* [Guidelines for location-aware apps](https://msdn.microsoft.com/library/windows/apps/hh465148) -[Traffic App sample](https://github.com/microsoft/windows-appsample-trafficapp/) -[Lunch Scheduler app sample](https://github.com/Microsoft/Windows-appsample-lunch-scheduler) +### Reference -## System requirements +* [Windows.Devices.Geolocation](http://msdn.microsoft.com/library/windows/apps/br225603) +* [Windows.Devices.Geolocation.Geofencing](https://msdn.microsoft.com/library/windows/apps/dn263744) + +### Related samples -**Client:** Windows 10 +* [Traffic App sample](https://github.com/microsoft/windows-appsample-trafficapp/) +* [Lunch Scheduler app sample](https://github.com/Microsoft/Windows-appsample-lunch-scheduler) +* [Geolocation sample](/archived/Geolocation/) for JavaScript (archived) -**Server:** Windows Server 2016 Technical Preview +## System requirements -**Phone:** Windows 10 +* Windows 10 ## Build the sample diff --git a/Samples/Geotag/README.md b/Samples/Geotag/README.md index 6ac5baaaf5..0dc1046758 100644 --- a/Samples/Geotag/README.md +++ b/Samples/Geotag/README.md @@ -4,7 +4,6 @@ languages: - csharp - cpp - cppcx -- js products: - windows - windows-uwp @@ -27,17 +26,21 @@ or to a location obtained from a Geolocator. > the samples collection, and GitHub, see [Get the UWP samples from GitHub](https://aka.ms/ovu2uq). > For more samples, see the [Samples portal](https://aka.ms/winsamples) on the Windows Dev Center. -Related topics --------------- +## Related topics + +### Reference [GeotagHelper class](https://msdn.microsoft.com/library/windows/apps/windows.storage.fileproperties.geotaghelper.aspx) [Geolocator class](https://msdn.microsoft.com/library/windows/apps/windows.devices.geolocation.geolocator.aspx) [Geolocation sample](/Samples/Geolocation) -System requirements -------------------- +### Related samples + +* [Geotag sample](/archived/Geotag/) for JavaScript (archived) + +## System requirements -Windows 10 +* Windows 10 Build the sample ---------------- diff --git a/Samples/GlobalizationPreferences/README.md b/Samples/GlobalizationPreferences/README.md index 6bc078cf80..dacc00f121 100644 --- a/Samples/GlobalizationPreferences/README.md +++ b/Samples/GlobalizationPreferences/README.md @@ -4,7 +4,6 @@ languages: - csharp - cpp - cppcx -- js products: - windows - windows-uwp @@ -53,12 +52,6 @@ To obtain information about Microsoft Visual Studio and the tools for developing ## Related topics -### Samples - -[Calendar sample](../Calendar) -[DateTimeFormatting sample](../DateTimeFormatting) -[NumberFormatting sample](../NumberFormatting) - ### Reference [Windows.System.UserProfile namespace](http://msdn.microsoft.com/library/windows/apps/br241881) @@ -68,13 +61,16 @@ To obtain information about Microsoft Visual Studio and the tools for developing [Windows.Globalization.GeographicRegion class](http://msdn.microsoft.com/library/windows/apps/br206792) [Windows.Globalization.Language class](http://msdn.microsoft.com/library/windows/apps/br206804) -## System requirements +### Related samples -**Client:** Windows 10 +* [Calendar sample](../Calendar) +* [DateTimeFormatting sample](../DateTimeFormatting) +* [NumberFormatting sample](../NumberFormatting) +* [GlobalizationPreferences sample](/archived/GlobalizationPreferences/) for JavaScript (archived) -**Server:** Windows Server 2016 Technical Preview +## System requirements -**Phone:** Windows 10 +* Windows 10 ## Build the sample diff --git a/Samples/Gyrometer/README.md b/Samples/Gyrometer/README.md index 89b4a21c48..7b9a932da7 100644 --- a/Samples/Gyrometer/README.md +++ b/Samples/Gyrometer/README.md @@ -4,7 +4,6 @@ languages: - csharp - cpp - cppcx -- js products: - windows - windows-uwp @@ -44,17 +43,19 @@ When you click the **Enable** button for the **Polling** option, the app will re When you click the **Get Sample** button, two sets of readings are displayed: raw gyrometer reading, based on the native orientation of the device, and transformed gyrometer reading based on the native orientation of the device your sensor logic was originally developed for. -### Related topics +## Related topics + +### Reference [Windows.Devices.Sensors namespace](http://go.microsoft.com/fwlink/p/?linkid=241981) -## System requirements +### Related samples -**Client:** Windows 10 +* [Gyrometer sample](/archived/Gyrometer/) for JavaScript (archived) -**Server:** Windows Server 2016 Technical Preview +## System requirements -**Phone:** Windows 10 +* Windows 10 ## Build the sample diff --git a/Samples/Inclinometer/README.md b/Samples/Inclinometer/README.md index 218f7f2305..b443d1002a 100644 --- a/Samples/Inclinometer/README.md +++ b/Samples/Inclinometer/README.md @@ -4,7 +4,6 @@ languages: - csharp - cpp - cppcx -- js products: - windows - windows-uwp @@ -44,18 +43,19 @@ When you choose the **Enable** button for the **Polling** option, the app will r Allows the user to simulate sensor accuracy and demonstrates usage of the calibration bar. -Related topics --------------- +## Related topics + +### Reference [Windows.Devices.Sensors namespace](http://go.microsoft.com/fwlink/p/?linkid=241981) -## System requirements +### Related samples -**Client:** Windows 10 +* [Inclinometer sample](/archived/Inclinometer/) for JavaScript (archived) -**Server:** Windows Server 2016 Technical Preview +## System requirements -**Phone:** Windows 10 +* Windows 10 ## Build the sample diff --git a/Samples/IoT-GPIO/README.md b/Samples/IoT-GPIO/README.md index e9a60865bc..73a6608cfa 100644 --- a/Samples/IoT-GPIO/README.md +++ b/Samples/IoT-GPIO/README.md @@ -4,7 +4,6 @@ languages: - csharp - cpp - cppcx -- js products: - windows - windows-uwp @@ -44,9 +43,15 @@ You can find more Windows IoT Core samples in the [Windows 10 Internet of Things To obtain information about Microsoft Visual Studio and the tools for developing Windows apps, go to [Visual Studio](http://go.microsoft.com/fwlink/?LinkID=532422) +## Related topics + +### Related samples + +* [IoT-GPIO sample](/archived/IoT-GPIO/) for JavaScript (archived) + ## System requirements -**IoT:** Windows 10 IoT Core +* Windows 10 IoT Core ## Build the sample diff --git a/Samples/IoT-I2C/README.md b/Samples/IoT-I2C/README.md index 7ee95b5b44..adbaf36448 100644 --- a/Samples/IoT-I2C/README.md +++ b/Samples/IoT-I2C/README.md @@ -4,7 +4,6 @@ languages: - csharp - cpp - cppcx -- js products: - windows - windows-uwp @@ -43,9 +42,15 @@ You can find more Windows IoT Core samples in the [Windows 10 Internet of Things To obtain information about Microsoft Visual Studio and the tools for developing Windows apps, go to [Visual Studio](http://go.microsoft.com/fwlink/?LinkID=532422) +## Related topics + +### Related samples + +* [IoT-I2C sample](/archived/IoT-I2C/) for JavaScript (archived) + ## System requirements -**IoT:** Windows 10 IoT Core +* Windows 10 IoT Core ## Build the sample diff --git a/Samples/IoT-SPI/README.md b/Samples/IoT-SPI/README.md index a475476ac4..20dfdc3260 100644 --- a/Samples/IoT-SPI/README.md +++ b/Samples/IoT-SPI/README.md @@ -4,7 +4,6 @@ languages: - csharp - cpp - cppcx -- js products: - windows - windows-uwp @@ -44,9 +43,15 @@ You can find more Windows IoT Core samples in the [Windows 10 Internet of Things To obtain information about Microsoft Visual Studio and the tools for developing Windows apps, go to [Visual Studio](http://go.microsoft.com/fwlink/?LinkID=532422) +## Related topics + +### Related samples + +* [IoT-SPI sample](/archived/IoT-SPI/) for JavaScript (archived) + ## System requirements -**IoT:** Windows 10 IoT Core +* Windows 10 IoT Core ## Build the sample diff --git a/Samples/JapanesePhoneticAnalysis/README.md b/Samples/JapanesePhoneticAnalysis/README.md index 60b4f6b7e4..2706aefd3c 100644 --- a/Samples/JapanesePhoneticAnalysis/README.md +++ b/Samples/JapanesePhoneticAnalysis/README.md @@ -4,7 +4,6 @@ languages: - csharp - cpp - cppcx -- js products: - windows - windows-uwp @@ -42,21 +41,18 @@ To obtain information about Microsoft Visual Studio and the tools for developing ## Related topics -### Samples - -[Unicode](/Samples/Unicode) - ### Reference [JapanesePhoneticAnalyzer class](https://msdn.microsoft.com/library/windows/apps/windows.globalization.japanesephoneticanalyzer.aspx) -## System requirements +### Related samples -**Client:** Windows 10 +* [Unicode](/Samples/Unicode) +* [JapanesePhoneticAnalysis sample](/archived/JapanesePhoneticAnalysis/) for JavaScript (archived) -**Server:** Windows Server 2016 Technical Preview +## System requirements -**Phone:** Not supported +* Windows 10 Desktop ## Build the sample diff --git a/Samples/JumpList/README.md b/Samples/JumpList/README.md index 76e58c2bfd..6ef457ab44 100644 --- a/Samples/JumpList/README.md +++ b/Samples/JumpList/README.md @@ -5,7 +5,6 @@ languages: - cpp - cppcx - cppwinrt -- js products: - windows - windows-uwp @@ -36,7 +35,8 @@ The sample shows the following techniques: - Perform an action when a jump list item is activated by the user. **Note** Although the sample will compile and run, the level of functionality will depend on which build of Windows you are running and what device you are running it on. -In particular, phone does not support displaying or storing jump list information at this time. +Full functionality is available on Windows 10 Desktop. +Functionality on other platforms may be reduced. **Note** The Windows universal samples require Visual Studio 2017 to build and Windows 10 to execute. @@ -51,13 +51,13 @@ To obtain information about Microsoft Visual Studio and the tools for developing [JumpList class](https://msdn.microsoft.com/library/windows/apps/windows.ui.startscreen.jumplist.aspx) [JumpListItem class](https://msdn.microsoft.com/library/windows/apps/windows.ui.startscreen.jumplistitem.aspx) -## System requirements +### Related samples -**Client:** Windows 10 +* [JumpList sample](/archived/JumpList/) for JavaScript (archived) -**Server:** Windows Server 2016 Technical Preview +## System requirements -**Phone:** Windows 10 (but non-functional; see discussion above) +* Windows 10 ## Build the sample diff --git a/Samples/LampDevice/README.md b/Samples/LampDevice/README.md index 0e6e61d217..4560f51230 100644 --- a/Samples/LampDevice/README.md +++ b/Samples/LampDevice/README.md @@ -4,7 +4,6 @@ languages: - csharp - cpp - cppcx -- js products: - windows - windows-uwp @@ -49,21 +48,23 @@ the default lamp device when page loads and provide a toggle to turn the lamp on 1) When you choose "Register for AvailablityChanged Event" button, the app registers for the AvailablityChanged event 2) When you choose "Unregister for AvailablityChanged Event", the app unregisters for the AvailablityChanged event. -Related topics --------------- +## Related topics + +### Reference [Windows.Media.Devices namespace](https://msdn.microsoft.com/library/windows/apps/windows.media.devices.aspx) Windows 8 and 8.1 method for turning on flash (requires starting a video recording session) [Windows.Media.Devices.VideoDeviceController.TorchControl](https://msdn.microsoft.com/library/windows/apps/windows.media.devices.videodevicecontroller.torchcontrol.aspx) +### Related samples + +* [LampDevice sample](/archived/LampDevice/) for JavaScript (archived) + +## System requirements -System requirements ------------------------------ -Independent Flash Device -Client -Windows 10 -Windows Phone 10 +* Windows 10 +* Independent flash device Build the sample ---------------- diff --git a/Samples/LanguageFont/README.md b/Samples/LanguageFont/README.md index 8b24951afe..f535ad8833 100644 --- a/Samples/LanguageFont/README.md +++ b/Samples/LanguageFont/README.md @@ -4,7 +4,6 @@ languages: - csharp - cpp - cppcx -- js products: - windows - windows-uwp @@ -46,16 +45,18 @@ To obtain information about Microsoft Visual Studio and the tools for developing ## Related topics +### Reference + [Windows.Globalization.Fonts namespace](http://msdn.microsoft.com/library/windows/apps/br206881) [LanguageFontGroup class](http://msdn.microsoft.com/library/windows/apps/br206865) -## System requirements +### Related samples -**Client:** Windows 10 +* [LanguageFont sample](/archived/LanguageFont/) for JavaScript (archived) -**Server:** Windows Server 2016 Technical Preview +## System requirements -**Phone:** Windows 10 +* Windows 10 ## Build the sample diff --git a/Samples/LibraryManagement/README.md b/Samples/LibraryManagement/README.md index 28d19229a1..a102fdb4b7 100644 --- a/Samples/LibraryManagement/README.md +++ b/Samples/LibraryManagement/README.md @@ -4,7 +4,6 @@ languages: - csharp - cpp - cppcx -- js products: - windows - windows-uwp @@ -53,13 +52,13 @@ To obtain information about Microsoft Visual Studio and the tools for developing [Windows.Storage](http://msdn.microsoft.com/library/windows/apps/br227346) -## System requirements +### Related samples -**Client:** Windows 10 +* [LibraryManagement sample](/archived/LibraryManagement/) for JavaScript (archived) -**Server:** Windows Server 2016 Technical Preview +## System requirements -**Phone:** Windows 10. Note that you will not be able to add or remove folders from the library. +* Windows 10 ## Build the sample diff --git a/Samples/LightSensor/README.md b/Samples/LightSensor/README.md index 508e0a8aa6..3974fd9817 100644 --- a/Samples/LightSensor/README.md +++ b/Samples/LightSensor/README.md @@ -4,7 +4,6 @@ languages: - csharp - cpp - cppcx -- js products: - windows - windows-uwp @@ -41,15 +40,17 @@ When you click the **Enable** button for the **Polling** option, the app will re ## Related topics +### Reference + [Windows.Devices.Sensors namespace](http://go.microsoft.com/fwlink/p/?linkid=241981) -## System requirements +### Related samples -**Client:** Windows 10 +* [LightSensor sample](/archived/LightSensor/) for JavaScript (archived) -**Server:** Windows Server 2016 Technical Preview +## System requirements -**Phone:** Windows 10 +* Windows 10 ## Build the sample diff --git a/Samples/LineDisplay/README.md b/Samples/LineDisplay/README.md index 85bdd26a24..8e76d0c521 100644 --- a/Samples/LineDisplay/README.md +++ b/Samples/LineDisplay/README.md @@ -4,7 +4,6 @@ languages: - csharp - cpp - cppcx -- js products: - windows - windows-uwp @@ -68,10 +67,6 @@ To obtain information about Microsoft Visual Studio and the tools for developing ## Related topics -### Samples - -[Line Display sample](/Samples/LineDisplay) - ### Reference [Windows.Devices.PointOfService](http://msdn.microsoft.com/library/windows/apps/dn298071) @@ -82,13 +77,13 @@ To obtain information about Microsoft Visual Studio and the tools for developing [Windows app samples](http://go.microsoft.com/fwlink/p/?LinkID=227694) -## System requirements +### Related samples -**Client:** Windows 10 +* [LineDisplay sample](/archived/LineDisplay/) for JavaScript (archived) -**Server:** Windows Server 2016 Technical Preview +## System requirements -**Phone:** Windows 10 +* Windows 10 ## Build the sample diff --git a/Samples/Logging/README.md b/Samples/Logging/README.md index 02b9492851..459d2eea4b 100644 --- a/Samples/Logging/README.md +++ b/Samples/Logging/README.md @@ -4,7 +4,6 @@ languages: - csharp - cpp - cppcx -- js products: - windows - windows-uwp @@ -135,10 +134,6 @@ xperf version 10.0.16299 and higher support specifying the channel name with a l ## Related topics -### Samples - -[Logging Sample](/Samples/Logging) - ### Reference [LoggingChannel](https://msdn.microsoft.com/library/windows/apps/windows.foundation.diagnostics.loggingchannel.aspx) @@ -147,13 +142,13 @@ xperf version 10.0.16299 and higher support specifying the channel name with a l [FileLoggingSession](https://msdn.microsoft.com/library/windows/apps/windows.foundation.diagnostics.fileloggingsession.aspx) [Windows Performance Toolkit](https://docs.microsoft.com/en-us/windows-hardware/test/wpt/index) -## System requirements +### Related samples -**Client:** Windows 10 +* [Logging sample](/archived/Logging/) for JavaScript (archived) -**Server:** Windows Server 2016 Technical Preview +## System requirements -**Phone:** Windows 10 +* Windows 10 ## Build the sample diff --git a/Samples/MagneticStripeReader/README.md b/Samples/MagneticStripeReader/README.md index 0668aaa8f3..f2bdc7444a 100644 --- a/Samples/MagneticStripeReader/README.md +++ b/Samples/MagneticStripeReader/README.md @@ -4,7 +4,6 @@ languages: - csharp - cpp - cppcx -- js products: - windows - windows-uwp @@ -66,22 +65,18 @@ To obtain information about Microsoft Visual Studio and the tools for developing ## Related topics -### Samples - -[Magnetic Stripe Reader sample](/Samples/MagneticStripeReader) - ### Reference [Windows.Devices.PointOfService](http://msdn.microsoft.com/library/windows/apps/dn298071) [Windows app samples](http://go.microsoft.com/fwlink/p/?LinkID=227694) -## System requirements +### Related samples -**Client:** Windows 10 +* [MagneticStripeReader sample](/archived/MagneticStripeReader/) for JavaScript (archived) -**Server:** Windows Server 2016 Technical Preview +## System requirements -**Phone:** Windows 10 +* Windows 10 ## Build the sample diff --git a/Samples/MediaEditing/README.md b/Samples/MediaEditing/README.md index a7d5b691fe..7e112c5281 100644 --- a/Samples/MediaEditing/README.md +++ b/Samples/MediaEditing/README.md @@ -4,7 +4,6 @@ languages: - csharp - cpp - cppcx -- js products: - windows - windows-uwp @@ -88,18 +87,19 @@ to the composition's **OverlayLayers** collection. Finally, a **MediaStreamSourc **GeneratePreviewMediaStreamSource** and then the **MediaElement** method **SetMediaStreamSource** is called to make the composition viewable in the UI. +## Related topics -Related topics --------------- +### Reference [Windows.Media.Editing namespace](https://msdn.microsoft.com/library/windows/apps/windows.media.editing.aspx) -System requirements ------------------------------ +### Related samples + +* [MediaEditing sample](/archived/MediaEditing/) for JavaScript (archived) -**Client:** Windows 10 +## System requirements -**Phone:** Windows 10 +* Windows 10 Build the sample ---------------- diff --git a/Samples/MediaTranscoding/README.md b/Samples/MediaTranscoding/README.md index 5fe23e6cd9..802a579f8c 100644 --- a/Samples/MediaTranscoding/README.md +++ b/Samples/MediaTranscoding/README.md @@ -4,7 +4,6 @@ languages: - csharp - cpp - cppcx -- js products: - windows - windows-uwp @@ -47,21 +46,18 @@ For more info about transcoding video files, see [Transcode media files](https:/ ## Related topics -[Windows 8 app samples](http://go.microsoft.com/fwlink/p/?LinkID=227694) - -**Roadmaps** +### Roadmaps [Roadmap for apps using C\# and Visual Basic](http://msdn.microsoft.com/library/windows/apps/br229583) -[Roadmap for apps using JavaScript](http://msdn.microsoft.com/library/windows/apps/hh465037) [Roadmap for apps using C++](http://msdn.microsoft.com/library/windows/apps/hh700360) [Designing UX for apps](http://msdn.microsoft.com/library/windows/apps/hh767284) [Audio, video, and camera](https://msdn.microsoft.com/library/windows/apps/mt203788) -**Tasks** +### Tasks [Transcode media files](https://msdn.microsoft.com/library/windows/apps/mt282149) -**Reference** +### Reference [Windows.Media.Transcoding](http://msdn.microsoft.com/library/windows/apps/br207105) [MediaTranscoder](http://msdn.microsoft.com/library/windows/apps/br207080) @@ -71,12 +67,14 @@ For more info about transcoding video files, see [Transcode media files](https:/ [MediaProperties.MediaEncodingProfile](http://msdn.microsoft.com/library/windows/apps/hh701026) [TrimStart](http://msdn.microsoft.com/library/windows/apps/br207103) [TrimStop](http://msdn.microsoft.com/library/windows/apps/br207104) + +### Related samples + +* [MediaTranscoding sample](/archived/MediaTranscoding/) for JavaScript (archived) ## System requirements -**Client:** Windows 10 - -**Phone:** Windows 10 +* Windows 10 ## Build the sample diff --git a/Samples/MessageDialog/README.md b/Samples/MessageDialog/README.md index 5b4c6f1406..63083eb2ea 100644 --- a/Samples/MessageDialog/README.md +++ b/Samples/MessageDialog/README.md @@ -4,7 +4,6 @@ languages: - csharp - cpp - cppcx -- js products: - windows - windows-uwp @@ -38,15 +37,17 @@ To obtain information about Microsoft Visual Studio and the tools for developing ## Related topics +### Conceptual + [Adding message dialogs](http://msdn.microsoft.com/library/windows/apps/hh738361) -## System requirements +### Related samples -**Client:** Windows 10 +* [MessageDialog sample](/archived/MessageDialog/) for JavaScript (archived) -**Server:** Windows Server 2016 Technical Preview +## System requirements -**Phone:** Windows 10 +* Windows 10 ## Build the sample diff --git a/Samples/Notifications/README.md b/Samples/Notifications/README.md index 9ebeadbb0b..60e72359c2 100644 --- a/Samples/Notifications/README.md +++ b/Samples/Notifications/README.md @@ -2,7 +2,6 @@ topic: sample languages: - csharp -- js products: - windows - windows-uwp @@ -123,18 +122,17 @@ New to Windows 10 are actionable toasts where a user has a choice to interact wi - Remove by Group - Clear All -## See also +## Related topics -[Traffic App sample](https://github.com/microsoft/windows-appsample-trafficapp/) -[Lunch Scheduler app sample](https://github.com/Microsoft/Windows-appsample-lunch-scheduler) +### Related samples -## System requirements - -**Client:** Windows 10 +* [Traffic App sample](https://github.com/microsoft/windows-appsample-trafficapp/) +* [Lunch Scheduler app sample](https://github.com/Microsoft/Windows-appsample-lunch-scheduler) +* [Notifications sample](/archived/Notifications/) for JavaScript (archived) -**Server:** Windows Server 2016 Technical Preview +## System requirements -**Phone:** Windows 10 +* Windows 10 ## Build the sample diff --git a/Samples/NumberFormatting/README.md b/Samples/NumberFormatting/README.md index bdea8daeb8..e0c3c75fec 100644 --- a/Samples/NumberFormatting/README.md +++ b/Samples/NumberFormatting/README.md @@ -4,7 +4,6 @@ languages: - csharp - cpp - cppcx -- js products: - windows - windows-uwp @@ -50,12 +49,6 @@ To obtain information about Microsoft Visual Studio and the tools for developing ## Related topics -### Samples - -[Calendar sample](../Calendar) -[DateTimeFormatting sample](../DatetimeFormatting) -[GlobalizationPreferences sample](../GlobalizationPreferences) - ### Reference [Windows.Globalization.NumberFormatting.CurrencyFormatter](http://msdn.microsoft.com/library/windows/apps/br206883) @@ -67,13 +60,16 @@ To obtain information about Microsoft Visual Studio and the tools for developing [Windows.Globalization.NumberFormatting.RoundingAlgorithm](http://msdn.microsoft.com/library/windows/apps/dn278791) [Windows.Globalization.NumberFormatting.SignificantDigitsNumberRounder](http://msdn.microsoft.com/library/windows/apps/dn278794) -## System requirements +### Related samples -**Client:** Windows 10 +* [Calendar sample](../Calendar) +* [DateTimeFormatting sample](../DatetimeFormatting) +* [GlobalizationPreferences sample](../GlobalizationPreferences) +* [NumberFormatting sample](/archived/NumberFormatting/) for JavaScript (archived) -**Server:** Windows Server 2016 Technical Preview +## System requirements -**Phone:** Windows 10 +* Windows 10 ## Build the sample diff --git a/Samples/OCR/README.md b/Samples/OCR/README.md index 3dab9b1e3f..6dbb07dda7 100644 --- a/Samples/OCR/README.md +++ b/Samples/OCR/README.md @@ -4,7 +4,6 @@ languages: - csharp - cpp - cppcx -- js products: - windows - windows-uwp @@ -46,11 +45,7 @@ Scenario 2: Capture image from camera and extract text. ## Related topics -**Samples** - -[InkAnalysis](/Samples/InkAnalysis) - -**Reference** +### Reference [Windows.Media.Ocr namespace](https://msdn.microsoft.com/library/windows/apps/windows.media.ocr.aspx) [Windows.Globalization.Language class](https://msdn.microsoft.com/library/windows/apps/windows.globalization.language.aspx) @@ -59,15 +54,15 @@ Scenario 2: Capture image from camera and extract text. [Windows.Graphics.Imaging.BitmapDecoder class](https://msdn.microsoft.com/library/windows/apps/windows.graphics.imaging.bitmapdecoder.aspx) [Windows.Media.Capture.MediaCapture namespace](https://msdn.microsoft.com/library/windows/apps/windows.media.capture.aspx) -## System requirements +### Related samples -**Hardware:** Camera +* [InkAnalysis](/Samples/InkAnalysis) +* [OCR sample](/archived/OCR/) for JavaScript (archived) -**Client:** Windows 10 - -**Server:** Windows Server 2016 Technical Preview +## System requirements -**Phone:** Windows 10 +* Windows 10 +* Camera (required by sample but not by OCR feature itself) ## Build the sample diff --git a/Samples/OrientationSensor/README.md b/Samples/OrientationSensor/README.md index c73472ecf8..1768959725 100644 --- a/Samples/OrientationSensor/README.md +++ b/Samples/OrientationSensor/README.md @@ -4,7 +4,6 @@ languages: - csharp - cpp - cppcx -- js products: - windows - windows-uwp @@ -46,20 +45,20 @@ When you click the **Enable** button for the **Polling** option, the app will re Allows the user to simulate sensor accuracy and demonstrates usage of the calibration bar. -Related topics --------------- +## Related topics + +### Reference -[Accelerometer sample](../Accelerometer) [Windows.Devices.Sensors namespace](http://msdn.microsoft.com/library/windows/apps/br206408) -Operating system requirements ------------------------------ +### Related samples -**Client:** Windows 10 build 14295 +* [Accelerometer sample](../Accelerometer) +* [OrientationSensor sample](/archived/OrientationSensor/) for JavaScript (archived) -**Server:** Windows Server 2016 Technical Preview +## System requirements -**Phone:** Windows 10 build 14295 +* Windows 10 build 14393 Build the sample ---------------- diff --git a/Samples/Package/README.md b/Samples/Package/README.md index 7990b6d13b..43d1d632e3 100644 --- a/Samples/Package/README.md +++ b/Samples/Package/README.md @@ -4,7 +4,6 @@ languages: - csharp - cpp - cppcx -- js products: - windows - windows-uwp @@ -51,17 +50,17 @@ To obtain information about Windows 10 development, go to the [Windows Dev Cente To obtain information about Microsoft Visual Studio and the tools for developing Windows apps, go to [Visual Studio](http://go.microsoft.com/fwlink/?LinkID=532422) -**Conceptual** +## Related topics + +### Conceptual [Packaging apps](https://msdn.microsoft.com/library/windows/apps/mt270969) -**Reference** +### Reference [Windows.ApplicationModel.Package](http://msdn.microsoft.com/library/windows/apps/br224667) [Windows.ApplicationModel.PackageId](http://msdn.microsoft.com/library/windows/apps/br224668) -### Reference - To learn more about sharing and the [Windows.ApplicationModel.DataTransfer](http://msdn.microsoft.com/library/windows/apps/br205967) namespace, we recommend you take a look at the [Sharing and exchanging data](http://msdn.microsoft.com/library/windows/apps/hh464923) section of our documentation, which describes how sharing works and contains several how-to topics that cover how to share [text](http://msdn.microsoft.com/library/windows/apps/hh758313), @@ -72,26 +71,22 @@ For more info about the concepts and APIs demonstrated in this sample, see these - [Sharing content target app sample](http://go.microsoft.com/fwlink/p/?linkid=231519) - [Sharing and exchanging data](http://msdn.microsoft.com/library/windows/apps/hh464923) -- [How to share files (HTML)](http://msdn.microsoft.com/library/windows/apps/hh758308) - [How to share files (XAML)](http://msdn.microsoft.com/library/windows/apps/hh871371) -- [How to share HTML (HTML)](http://msdn.microsoft.com/library/windows/apps/hh758310) - [How to share HTML (XAML)](http://msdn.microsoft.com/library/windows/apps/hh973055) -- [How to share text (HTML)](http://msdn.microsoft.com/library/windows/apps/hh758313) - [How to share text (XAML)](http://msdn.microsoft.com/library/windows/apps/hh871372) -- [Quickstart: Sharing content (HTML)](http://msdn.microsoft.com/library/windows/apps/hh465261) - [Share data](https://msdn.microsoft.com/library/windows/apps/mt243293) - [DataPackageView](http://msdn.microsoft.com/library/windows/apps/hh738408) - [ShareOperation](http://msdn.microsoft.com/library/windows/apps/br205977) - [Windows.ApplicationModel.DataTransfer](http://msdn.microsoft.com/library/windows/apps/br205967) - [Windows.ApplicationModel.DataTransfer.Share](http://msdn.microsoft.com/library/windows/apps/br205989) -## System requirements +### Related samples -**Client:** Windows 10 +* [Package sample](/archived/Package/) for JavaScript (archived) -**Server:** Windows Server 2016 Technical Preview +## System requirements -**Phone:** Windows 10 +* Windows 10 ## Build the sample diff --git a/Samples/PasswordVault/README.md b/Samples/PasswordVault/README.md index 0b13dfc11a..766452966d 100644 --- a/Samples/PasswordVault/README.md +++ b/Samples/PasswordVault/README.md @@ -4,7 +4,6 @@ languages: - csharp - cpp - cppcx -- js products: - windows - windows-uwp @@ -54,24 +53,21 @@ To obtain information about Microsoft Visual Studio and the tools for developing ## Related topics -### Samples - -[KeyCredentialManager](../KeyCredentialManager) -[Lunch Scheduler app sample](https://github.com/Microsoft/Windows-appsample-lunch-scheduler) - ### Reference [Storing user credentials using the Credential Locker](https://msdn.microsoft.com/library/windows/apps/dn448950.aspx) [Storing user credentials](http://msdn.microsoft.com/library/windows/apps/hh465060) [Windows.Security.Credentials namespace](http://msdn.microsoft.com/library/windows/apps/br227089) -## System requirements +### Related samples -**Client:** Windows 10 +* [KeyCredentialManager](../KeyCredentialManager) +* [Lunch Scheduler app sample](https://github.com/Microsoft/Windows-appsample-lunch-scheduler) +* [PasswordVault sample](/archived/PasswordVault/) for JavaScript (archived) -**Server:** Windows Server 2016 Technical Preview +## System requirements -**Phone:** Windows 10 +* Windows 10 ## Build the sample diff --git a/Samples/PdfDocument/README.md b/Samples/PdfDocument/README.md index 08552c41d8..4d04446daf 100644 --- a/Samples/PdfDocument/README.md +++ b/Samples/PdfDocument/README.md @@ -4,7 +4,6 @@ languages: - csharp - cpp - cppcx -- js products: - windows - windows-uwp @@ -48,13 +47,13 @@ To obtain information about Microsoft Visual Studio and the tools for developing [PdfDocument class](https://msdn.microsoft.com/library/windows/apps/windows.data.pdf.pdfdocument.aspx) [PdfPage class](https://msdn.microsoft.com/library/windows/apps/windows.data.pdf.pdfpage.aspx) -## System requirements +### Related samples -**Client:** Windows 10 +* [PdfDocument sample](/archived/PdfDocument/) for JavaScript (archived) -**Server:** Windows Server 2016 Technical Preview +## System requirements -**Phone:** Windows 10 +* Windows 10 ## Build the sample diff --git a/Samples/Pedometer/README.md b/Samples/Pedometer/README.md index 5b847252c2..6b86136b2d 100644 --- a/Samples/Pedometer/README.md +++ b/Samples/Pedometer/README.md @@ -4,7 +4,6 @@ languages: - csharp - cpp - cppcx -- js products: - windows - windows-uwp @@ -54,13 +53,15 @@ This demonstrates using a Pedometer's step goal as a background trigger. When you click the 'Register Task' button, it gets the current step count from the default Pedometer and sets a step goal of 50 additional steps. When the step goal is met, the registered background task gets fired. Pedometer readings are then retrieved from the trigger to update the scenario UI. -## System requirements +## Related topics + +### Related samples -**Client:** Windows 10 +* [Pedometer sample](/archived/Pedometer/) for JavaScript (archived) -**Server:** Windows Server 2016 Technical Preview +## System requirements -**Phone:** Windows 10 +* Windows 10 ## Build the sample diff --git a/Samples/Personalization/README.md b/Samples/Personalization/README.md index 7fab78ddc2..91063999d1 100644 --- a/Samples/Personalization/README.md +++ b/Samples/Personalization/README.md @@ -4,7 +4,6 @@ languages: - csharp - cpp - cppcx -- js products: - windows - windows-uwp @@ -44,13 +43,13 @@ To learn more about the lock screen, see [Lock screen overview](http://msdn.micr [LockScreen](http://msdn.microsoft.com/library/windows/apps/br241847) [Windows.System.UserProfile](http://msdn.microsoft.com/library/windows/apps/br241881) -## System requirements +### Related samples -**Client:** Windows 10 +* [Personalization sample](/archived/Personalization/) for JavaScript (archived) -**Server:** Windows Server 2016 Technical Preview +## System requirements -**Phone:** Not supported +* Windows 10 Desktop ## Build the sample diff --git a/Samples/PlayReady/README.md b/Samples/PlayReady/README.md index ef8594774c..46ee2d8db5 100644 --- a/Samples/PlayReady/README.md +++ b/Samples/PlayReady/README.md @@ -2,7 +2,6 @@ topic: sample languages: - csharp -- js products: - windows - windows-uwp @@ -38,21 +37,18 @@ This example shows how to configure a device to use either software or hardware **Scenario 4: Secure Stop(C#):** Secure Stop enables a service to better manage concurrent streams for an account. The application can send a secure stop message from PlayReady that notifies a service that playback has stopped and a temporary playback license is no longer available. -***JavaScript Scenarios*** - -**Scenario 1: Reactive License Request(JS):** -This example shows the basics of configuring the MediaElement's MediaProtectionManager property to support PlayReady and reactively handle license service requests. License service requests are triggered automatically by when PlayReady does not have a media license available. - -**Scenario 2: Reactive License Request(JS):** -This example shows how an application can actively manage DRM license requests and the individualization process. - -**Scenario 3: License Request via EME(JS):** -This example uses W3C standards based Encrypted Media Extensions (EME) to enable protected playback. This is useful for Hosted Web Applications where protected playback is configured the same way it would be in the browser. - -**Scenario 4: Secure Stop EME(JS):** -This example uses EME for requesting a license and sending a secure stop message. This sample could also be used to provide secure stop capabilities in a web application in Microsoft Edge. +**XBox One:** +In order to use PlayReady DRM within a Universal Application on Xbox One, an additional needs to be added to the app manifest. The capability will need to be added manually to the manifest as a setting is not yet available from within the App Manifest Designer. +- Right-click on the package.appxmanifest from Visual Studio and edit with the XML (text) Editor. +- Add the following and save: +```xml + + ... + + +``` **Note** The Windows universal samples require Visual Studio 2017 to build and Windows 10 to execute. @@ -62,10 +58,6 @@ To obtain information about Microsoft Visual Studio and the tools for developing ## Related topics -### Samples - -[AdaptiveStreaming](../AdaptiveStreaming) - ### Reference [Windows.Media.Protection namespace](https://msdn.microsoft.com/library/windows/apps/br207056.aspx) @@ -78,25 +70,14 @@ To obtain information about Microsoft Visual Studio and the tools for developing [Hardware DRM](https://msdn.microsoft.com/windows/uwp/audio-video-camera/hardware-drm) [Adaptive Streaming with PlayReady](https://msdn.microsoft.com/windows/uwp/audio-video-camera/adaptive-streaming-with-playready) -## System requirements - -**Client:** Windows 10 +### Related samples -**Phone:** Windows 10 +* [AdaptiveStreaming](../AdaptiveStreaming) +* [PlayReady sample](/archived/PlayReady/) for JavaScript (archived) -**XBox One:** -In order to use PlayReady DRM within a Universal Application on Xbox One, an additional needs to be added to the app manifest. The capability will need to be added manually to the manifest as a setting is not yet available from within the App Manifest Designer. - -#### To configure: #### -- Right-click on the package.appxmanifest from Visual Studio and edit with the XML (text) Editor. -- Add the following and save: +## System requirements -``` - - ... - - -``` +* Windows 10 ## Build the sample diff --git a/Samples/Playlists/README.md b/Samples/Playlists/README.md index bb3affb7eb..8c13d36c56 100644 --- a/Samples/Playlists/README.md +++ b/Samples/Playlists/README.md @@ -4,7 +4,6 @@ languages: - csharp - cpp - cppcx -- js products: - windows - windows-uwp @@ -60,13 +59,13 @@ To obtain information about Microsoft Visual Studio and the tools for developing [Playlists namespace](http://msdn.microsoft.com/library/windows/apps/br206938) -## System requirements +### Related samples -**Client:** Windows 10 +* [Playlists sample](/archived/Playlists/) for JavaScript (archived) -**Server:** Windows Server 2016 Technical Preview +## System requirements -**Phone:** Not supported +* Windows 10 Desktop ## Build the sample diff --git a/Samples/PosPrinter/README.md b/Samples/PosPrinter/README.md index 17376b9ff9..71aa2af9fb 100644 --- a/Samples/PosPrinter/README.md +++ b/Samples/PosPrinter/README.md @@ -4,7 +4,6 @@ languages: - csharp - cpp - cppcx -- js products: - windows - windows-uwp @@ -41,22 +40,18 @@ To obtain information about Microsoft Visual Studio and the tools for developing ## Related topics -### Samples - -[POS Printer sample](/Samples/PosPrinter) - ### Reference [Windows.Devices.PointOfService](http://msdn.microsoft.com/library/windows/apps/dn298071) [Windows app samples](http://go.microsoft.com/fwlink/p/?LinkID=227694) -## System requirements +### Related samples -**Client:** Windows 10 +* [PosPrinter sample](/archived/PosPrinter/) for JavaScript (archived) -**Server:** Windows Server 2016 Technical Preview +## System requirements -**Phone:** Windows 10 +* Windows 10 ## Build the sample diff --git a/Samples/Printing/README.md b/Samples/Printing/README.md index 313a59c018..4356af4363 100644 --- a/Samples/Printing/README.md +++ b/Samples/Printing/README.md @@ -4,7 +4,6 @@ languages: - csharp - cpp - cppcx -- js products: - windows - windows-uwp @@ -35,18 +34,16 @@ The scenarios demonstrated in this sample include: - Disabling print preview - Removing the Print button if the device does not support printing -## Related samples +## Related topics -[Coloring Book app sample](https://github.com/Microsoft/Windows-appsample-coloringbook) +### Related samples -System requirements -------------------- +* [Coloring Book app sample](https://github.com/Microsoft/Windows-appsample-coloringbook) +* [Printing sample](/archived/Printing/) for JavaScript (archived) -**Client:** Windows 10 build 14295 +## System requirements -**Server:** Windows Server 2016 Technical Preview - -**Phone:** Windows 10 build 14295 +* Windows 10 build 14393 or higher Build the sample ---------------- diff --git a/Samples/Projection/README.md b/Samples/Projection/README.md index 0f5f6cc799..2820c5f71b 100644 --- a/Samples/Projection/README.md +++ b/Samples/Projection/README.md @@ -4,7 +4,6 @@ languages: - csharp - cpp - cppcx -- js products: - windows - windows-uwp @@ -35,16 +34,18 @@ The sample demonstrates: ## Related topics +### Reference + [ProjectionManager](http://msdn.microsoft.com/library/windows/apps/dn281126) [ApplicationViewSwitcher](http://msdn.microsoft.com/library/windows/apps/dn281094) -## System requirements +### Related samples -**Client:** Windows 10 +* [Projection sample](/archived/Projection/) for JavaScript (archived) -**Server:** Windows Server 2016 Technical Preview +## System requirements -**Phone:** Windows 10 +* Windows 10 ## Build the sample diff --git a/Samples/ProximitySensor/README.md b/Samples/ProximitySensor/README.md index 2ae642ae70..7c1a276ddd 100644 --- a/Samples/ProximitySensor/README.md +++ b/Samples/ProximitySensor/README.md @@ -4,7 +4,6 @@ languages: - csharp - cpp - cppcx -- js products: - windows - windows-uwp @@ -52,13 +51,15 @@ This demonstrates using a Proximity sensor's state as a background trigger. When you click the 'Register Task' button, an available proximity sensor will be used to register for notifications in the change of proximity. When a change in the proximity is detected by the sensor, the registered background task gets fired. Proximity Sensor readings are then retrieved from the trigger to update the scenario UI. -## System requirements +## Related topics + +### Related samples -**Client:** Windows 10 +* [ProximitySensor sample](/archived/ProximitySensor/) for JavaScript (archived) -**Server:** Windows Server 2016 Technical Preview +## System requirements -**Phone:** Windows 10 +* Windows 10 ## Build the sample diff --git a/Samples/RelativeInclinometer/README.md b/Samples/RelativeInclinometer/README.md index b2de849968..c523823979 100644 --- a/Samples/RelativeInclinometer/README.md +++ b/Samples/RelativeInclinometer/README.md @@ -4,7 +4,6 @@ languages: - csharp - cpp - cppcx -- js products: - windows - windows-uwp @@ -42,13 +41,15 @@ When you choose the Enable button for the **Data Events** option, the app will b When you choose the Enable button for the **Polling** option, the app will retrieve the current sensor readings. -## System requirements +## Related topics + +### Related samples -**Client:** Windows 10 +* [RelativeInclinometer sample](/archived/RelativeInclinometer/) for JavaScript (archived) -**Server:** Windows Server 2016 Technical Preview +## System requirements -**Phone:** Windows 10 +* Windows 10 ## Build the sample diff --git a/Samples/ResizeAppView/README.md b/Samples/ResizeAppView/README.md index 92b47b7046..17ccddc4ca 100644 --- a/Samples/ResizeAppView/README.md +++ b/Samples/ResizeAppView/README.md @@ -5,7 +5,6 @@ languages: - cpp - cppcx - cppwinrt -- js products: - windows - windows-uwp @@ -34,7 +33,7 @@ The sample shows the following techniques: - Launching at a specific size. **Note** Although the sample will compile and run, the level of functionality will depend on which build of Windows you are running and what device you are running it on. -In particular, the view resizing feature is not enabled on phones or on PCs in Tablet mode because those systems do not permit free resizing. +In particular, the view resizing feature is not enabled on PCs in Tablet mode because they do not permit free resizing. **Note** The Windows universal samples require Visual Studio 2017 to build and Windows 10 to execute. @@ -44,21 +43,18 @@ To obtain information about Microsoft Visual Studio and the tools for developing ## Related topics -### Samples - -[FullScreenMode](/Samples/FullScreenMode) - ### Reference [ApplicationView class](https://msdn.microsoft.com/library/windows/apps/windows.ui.viewmanagement.applicationview.aspx) -## System requirements +### Related samples -**Client:** Windows 10 +* [FullScreenMode](/Samples/FullScreenMode) +* [ResizeAppView sample](/archived/ResizeAppView/) for JavaScript (archived) -**Server:** Windows Server 2016 Technical Preview +## System requirements -**Phone:** Windows 10 (but non-functional; see discussion above) +* Windows 10 ## Build the sample diff --git a/Samples/SemanticTextQuery/README.md b/Samples/SemanticTextQuery/README.md index 7542c2bd49..59037c9e57 100644 --- a/Samples/SemanticTextQuery/README.md +++ b/Samples/SemanticTextQuery/README.md @@ -4,7 +4,6 @@ languages: - csharp - cpp - cppcx -- js products: - windows - windows-uwp @@ -41,13 +40,15 @@ To obtain information about Windows 10 development, go to the [Windows Dev Cente To obtain information about Microsoft Visual Studio and the tools for developing Windows apps, go to [Visual Studio](http://go.microsoft.com/fwlink/?LinkID=532422) -## System requirements +## Related topics + +### Related samples -**Client:** Windows 10 +* [SemanticTextQuery sample](/archived/SemanticTextQuery/) for JavaScript (archived) -**Server:** Windows Server 2016 Technical Preview +## System requirements -**Phone:** Windows 10 +* Windows 10 ## Build the sample diff --git a/Samples/ShareSource/README.md b/Samples/ShareSource/README.md index a9747737c8..a364104abc 100644 --- a/Samples/ShareSource/README.md +++ b/Samples/ShareSource/README.md @@ -4,7 +4,6 @@ languages: - csharp - cpp - cppcx -- js products: - windows - windows-uwp @@ -65,26 +64,22 @@ For more info about the concepts and APIs demonstrated in this sample, see these - [Sharing content target app sample](http://go.microsoft.com/fwlink/p/?linkid=231519) - [Sharing and exchanging data](http://msdn.microsoft.com/library/windows/apps/hh464923) -- [How to share files (HTML)](http://msdn.microsoft.com/library/windows/apps/hh758308) - [How to share files (XAML)](http://msdn.microsoft.com/library/windows/apps/hh871371) -- [How to share HTML (HTML)](http://msdn.microsoft.com/library/windows/apps/hh758310) - [How to share HTML (XAML)](http://msdn.microsoft.com/library/windows/apps/hh973055) -- [How to share text (HTML)](http://msdn.microsoft.com/library/windows/apps/hh758313) - [How to share text (XAML)](http://msdn.microsoft.com/library/windows/apps/hh871372) -- [Quickstart: Sharing content (HTML)](http://msdn.microsoft.com/library/windows/apps/hh465261) - [Share data](https://msdn.microsoft.com/library/windows/apps/mt243293) - [DataPackageView](http://msdn.microsoft.com/library/windows/apps/hh738408) - [ShareOperation](http://msdn.microsoft.com/library/windows/apps/br205977) - [Windows.ApplicationModel.DataTransfer](http://msdn.microsoft.com/library/windows/apps/br205967) - [Windows.ApplicationModel.DataTransfer.Share](http://msdn.microsoft.com/library/windows/apps/br205989) -## System requirements +### Related samples -**Client:** Windows 10 +* [ShareSource sample](/archived/ShareSource/) for JavaScript (archived) -**Server:** Windows Server 2016 Technical Preview +## System requirements -**Phone:** Windows 10 +* Windows 10 ## Build the sample diff --git a/Samples/ShareTarget/README.md b/Samples/ShareTarget/README.md index f043a5e3f1..d97bb8e67c 100644 --- a/Samples/ShareTarget/README.md +++ b/Samples/ShareTarget/README.md @@ -2,7 +2,6 @@ topic: sample languages: - csharp -- js products: - windows - windows-uwp @@ -52,36 +51,23 @@ For more info about the concepts and APIs demonstrated in this sample, see these - [Sharing content source app sample](http://go.microsoft.com/fwlink/p/?linkid=231511) - [Sharing and exchanging data](http://msdn.microsoft.com/library/windows/apps/hh464923) -- [How to receive files (HTML)](http://msdn.microsoft.com/library/windows/apps/hh758302) -- [How to receive HTML (HTML)](http://msdn.microsoft.com/library/windows/apps/hh758303) - [How to receive HTML (XAML)](http://msdn.microsoft.com/library/windows/apps/hh973053) -- [How to receive text (HTML)](http://msdn.microsoft.com/library/windows/apps/hh758304) - [How to receive text (XAML)](http://msdn.microsoft.com/library/windows/apps/hh973054) -- [Quickstart: Receiving shared content (HTML)](http://msdn.microsoft.com/library/windows/apps/hh465255) - [Receive data](https://msdn.microsoft.com/library/windows/apps/mt243292) - [DataPackageView](http://msdn.microsoft.com/library/windows/apps/hh738408) - [ShareOperation](http://msdn.microsoft.com/library/windows/apps/br205977) - [Windows.ApplicationModel.DataTransfer](http://msdn.microsoft.com/library/windows/apps/br205967) - [Windows.ApplicationModel.DataTransfer.Share](http://msdn.microsoft.com/library/windows/apps/br205989) - - -To obtain an insider copy of Windows 10, go to [Windows 10](http://insider.windows.com). - -**Note** For Windows 10 app samples, go to [Windows 10 Samples](https://github.com/Microsoft/Windows-universal-samples). The samples for Windows 10 can be built and run using Windows developer [tools](https://developer.windows.com). - - ## Related topics -- [Windows 8 app samples](http://go.microsoft.com/fwlink/p/?LinkID=227694) - -## System requirements +### Related samples -**Client:** Windows 10 +* [ShareTarget sample](/archived/ShareTarget/) for JavaScript (archived) -**Server:** Windows Server 2016 Technical Preview +## System requirements -**Phone:** Windows 10 +* Windows 10 ## Build the sample diff --git a/Samples/SimpleCommunication/README.md b/Samples/SimpleCommunication/README.md index 4607bbd7db..ac1479a573 100644 --- a/Samples/SimpleCommunication/README.md +++ b/Samples/SimpleCommunication/README.md @@ -4,7 +4,6 @@ languages: - csharp - cpp - cppcx -- js products: - windows - windows-uwp @@ -60,29 +59,21 @@ and security issues and should not be used outside of a test environment. They a **Important**  The URL passed to the code is not validated or authenticated. The application must perform these actions. -To obtain an evaluation copy of Windows 8.1, go to [Windows 8.1](http://go.microsoft.com/fwlink/p/?linkid=301696). +## Related topics -To obtain an evaluation copy of Microsoft Visual Studio 2013, go to [Visual Studio 2013](http://go.microsoft.com/fwlink/p/?linkid=301697). - -Related topics --------------- - -[Windows 8 app samples](http://go.microsoft.com/fwlink/p/?LinkID=227694) - -**Roadmaps** +### Roadmaps [Roadmap for apps using C\# and Visual Basic](http://msdn.microsoft.com/library/windows/apps/br229583) [Roadmap for apps using C++](http://msdn.microsoft.com/library/windows/apps/hh700360) -[Roadmap for apps using JavaScript](http://msdn.microsoft.com/library/windows/apps/hh465037) [Designing UX for apps](http://msdn.microsoft.com/library/windows/apps/hh767284) [Audio, video, and camera](https://msdn.microsoft.com/library/windows/apps/mt203788) -**Tasks** +### Tasks [How to enable low-latency playback](http://msdn.microsoft.com/library/windows/apps/hh452742) [Creating an app using WRL and Media Foundation](http://go.microsoft.com/fwlink/p/?LinkID=309355) -**Reference** +### Reference [Windows.Media.Capture.MediaCapture](http://msdn.microsoft.com/library/windows/apps/br226738) [MediaCapture](http://msdn.microsoft.com/library/windows/apps/br241124) @@ -90,14 +81,13 @@ Related topics [MediaExtensionManager](http://msdn.microsoft.com/library/windows/apps/br240987) [Windows.Media.MediaProperties](http://msdn.microsoft.com/library/windows/apps/hh701296) -Operating system requirements ------------------------------ +### Related samples -**Client:** Windows 10 +* [SimpleCommunication sample](/archived/SimpleCommunication/) for JavaScript (archived) -**Server:** Windows Server 2016 Technical Preview +## System requirements -**Phone:** Windows 10 +* Windows 10 Build the sample ---------------- diff --git a/Samples/SimpleImaging/README.md b/Samples/SimpleImaging/README.md index 6691a613ad..f2a38947fb 100644 --- a/Samples/SimpleImaging/README.md +++ b/Samples/SimpleImaging/README.md @@ -2,7 +2,6 @@ topic: sample languages: - csharp -- js products: - windows - windows-uwp @@ -47,26 +46,20 @@ To obtain information about Microsoft Visual Studio and the tools for developing All other files provide common SDK sample functionality. -### JS version - -- **css\scenario1.css**, **html\scenario1.html**, **js\scenario1.js**: Use the property system APIs (Windows.Storage.FileProperties) to read and edit bitmap properties from an image. -- **css\scenario2.css**, **html\scenario2.html**, **js\scenario2.js**: Use the imaging APIs (Windows.Graphics.Imaging) to read and edit bitmap properties and apply transformations such as scale, crop and rotate. -- **js\helpers.cs**: Helper functionality including handling/converting EXIF orientation values. - -All other files provide common SDK sample functionality. - ## Related topics +### Reference + [Windows.Storage](http://msdn.microsoft.com/library/windows/apps/br227346) [Windows.Graphics.Imaging](http://msdn.microsoft.com/library/windows/apps/br226400) -## System requirements +### Related samples -**Client:** Windows 10 +* [SimpleImaging sample](/archived/SimpleImaging/) for JavaScript (archived) -**Server:** Windows Server 2016 Technical Preview +## System requirements -**Phone:** Windows 10 +* Windows 10 ## Build the sample diff --git a/Samples/SimpleOrientationSensor/README.md b/Samples/SimpleOrientationSensor/README.md index e1a11d35c8..a5c05567e9 100644 --- a/Samples/SimpleOrientationSensor/README.md +++ b/Samples/SimpleOrientationSensor/README.md @@ -4,7 +4,6 @@ languages: - csharp - cpp - cppcx -- js products: - windows - windows-uwp @@ -41,13 +40,15 @@ When you choose the Enable button for the **Data Events** option, the app will b When you choose the Enable button for the **Polling** option, the app will retrieve the current sensor readings. -## System requirements +## Related topics + +### Related samples -**Client:** Windows 10 +* [SimpleOrientationSensor sample](/archived/SimpleOrientationSensor/) for JavaScript (archived) -**Server:** Windows Server 2016 Technical Preview +## System requirements -**Phone:** Windows 10 +* Windows 10 ## Build the sample diff --git a/Samples/SmartCard/README.md b/Samples/SmartCard/README.md index a518393458..69be716111 100644 --- a/Samples/SmartCard/README.md +++ b/Samples/SmartCard/README.md @@ -4,7 +4,6 @@ languages: - csharp - cpp - cppcx -- js products: - windows - windows-uwp @@ -39,15 +38,19 @@ Specifically, this sample shows: **Note:** In order to create a virtual smart card using a UWP app, the user running the app must be a member of the administrators group. If the user is not a member of the administrators group, virtual smart card creation will fail. -Related topics --------------- +## Related topics + +### Reference [Windows.Devices.SmartCards](http://msdn.microsoft.com/library/windows/apps/dn263949) -Operating system requirements ------------------------------ +### Related samples + +* [SmartCard sample](/archived/SmartCard/) for JavaScript (archived) + +## System requirements -Windows 10 +* Windows 10 Build the sample ---------------- diff --git a/Samples/SpeechRecognitionAndSynthesis/README.md b/Samples/SpeechRecognitionAndSynthesis/README.md index 777483c403..7b7ce229fb 100644 --- a/Samples/SpeechRecognitionAndSynthesis/README.md +++ b/Samples/SpeechRecognitionAndSynthesis/README.md @@ -4,7 +4,6 @@ languages: - csharp - cpp - cppcx -- js products: - windows - windows-uwp @@ -49,25 +48,23 @@ You can disable functionality that requires accepting this policy by turning off ## Related topics +### Conceptual + [Speech recognition](https://msdn.microsoft.com/library/windows.media.speechrecognition.aspx) [Speech synthesis](https://msdn.microsoft.com/library/windows/apps/windows.media.speechsynthesis.aspx) [Speech design guidelines](https://msdn.microsoft.com/library/windows/apps/dn596121.aspx) [Speech interactions](https://msdn.microsoft.com/library/windows/apps/mt185614) [Responding to speech interactions (HTML)](https://msdn.microsoft.com/library/windows/apps/dn720491.aspx) -## Related samples +### Related samples -[Family Notes sample](https://github.com/Microsoft/Windows-appsample-familynotes) +* [Family Notes sample](https://github.com/Microsoft/Windows-appsample-familynotes) +* [SpeechRecognitionAndSynthesis sample](/archived/SpeechRecognitionAndSynthesis/) for JavaScript (archived) ## System requirements -**Hardware:** Speech recognition requires an appropriate audio input device. - -**Client:** Windows 10 - -**Server:** Windows Server 2016 Technical Preview - -**Phone:** Windows 10 +* Windows 10 +* Speech recognition requires an appropriate audio input device. ## Build the sample diff --git a/Samples/Store/README.md b/Samples/Store/README.md index d9b9b60179..96f8e2448b 100644 --- a/Samples/Store/README.md +++ b/Samples/Store/README.md @@ -4,7 +4,6 @@ languages: - csharp - cpp - cppcx -- js products: - windows - windows-uwp @@ -79,24 +78,20 @@ To obtain information about Microsoft Visual Studio and the tools for developing ## Related topics -[Coloring Book app sample](https://github.com/Microsoft/Windows-appsample-coloringbook) - -### Samples - -[Advertising](/Samples/Advertising) - ### Reference [Windows.Services.Store namespace](https://msdn.microsoft.com/library/windows/apps/windows.services.store.aspx) [Monetization, customer engagement, and Microsoft Store services](https://msdn.microsoft.com/windows/uwp/monetize/) -## System requirements +### Related samples -**Client:** Windows 10 version 1607 +* [Coloring Book app sample](https://github.com/Microsoft/Windows-appsample-coloringbook) +* [Advertising](/Samples/Advertising) +* [Store sample](/archived/Store/) for JavaScript (archived) -**Server:** Windows Server 2016 Technical Preview +## System requirements -**Phone:** Windows 10 version 1607 +* Windows 10 build 14393 or higher ## Build the sample diff --git a/Samples/StreamSocket/README.md b/Samples/StreamSocket/README.md index f2a5649b31..c73b2edfb3 100644 --- a/Samples/StreamSocket/README.md +++ b/Samples/StreamSocket/README.md @@ -4,7 +4,6 @@ languages: - csharp - cpp - cppcx -- js products: - windows - windows-uwp @@ -80,11 +79,6 @@ the same process for communication purposes in a UWP app. For more information, [Windows.Storage.Streams.DataWriter](http://msdn.microsoft.com/library/windows/apps/br208154) [SocketActivityTrigger](https://msdn.microsoft.com/library/windows/apps/windows.applicationmodel.background.socketactivitytrigger.aspx) -### Samples - -[DatagramSocket sample](/Samples/DatagramSocket) -[SocketActivityTrigger StreamSocket Sample](/Samples/SocketActivityStreamSocket) - ### Other - C\#/VB/C++ and XAML [Adding support for networking (XAML)](http://msdn.microsoft.com/library/windows/apps/hh452751) @@ -96,24 +90,15 @@ the same process for communication purposes in a UWP app. For more information, [Proximity and tapping (XAML)](http://msdn.microsoft.com/library/windows/apps/hh465221) [Troubleshooting and debugging network connections](http://msdn.microsoft.com/library/windows/apps/hh770534) -### Other - JavaScript and HTML +### Related samples -[Adding support for networking (HTML)](http://msdn.microsoft.com/library/windows/apps/hh452752) -[Connecting to network services (HTML)](http://msdn.microsoft.com/library/windows/apps/hh452977) -[How to secure socket connections with TLS/SSL (HTML)](http://msdn.microsoft.com/library/windows/apps/hh780595) -[How to send and receive network data with a stream socket (HTML)](http://msdn.microsoft.com/library/windows/apps/hh452996) -[How to set network capabilities (HTML)](http://msdn.microsoft.com/library/windows/apps/hh770532) -[How to use advanced socket controls (HTML)](http://msdn.microsoft.com/library/windows/apps/hh780596) -[Supporting proximity and tapping (HTML)](http://msdn.microsoft.com/library/windows/apps/hh465229) -[Troubleshooting and debugging network connections](http://msdn.microsoft.com/library/windows/apps/hh770534) +* [DatagramSocket sample](/Samples/DatagramSocket) +* [SocketActivityTrigger StreamSocket Sample](/Samples/SocketActivityStreamSocket) +* [StreamSocket sample](/archived/StreamSocket/) for JavaScript (archived) ## System requirements -**Client:** Windows 10 - -**Server:** Windows Server 2016 Technical Preview - -**Phone:** Windows 10 +* Windows 10 ## Build the sample diff --git a/Samples/SystemMediaTransportControls/README.md b/Samples/SystemMediaTransportControls/README.md index 11ad6e9431..92a73b37cf 100644 --- a/Samples/SystemMediaTransportControls/README.md +++ b/Samples/SystemMediaTransportControls/README.md @@ -2,7 +2,6 @@ topic: sample languages: - csharp -- js products: - windows - windows-uwp @@ -74,23 +73,19 @@ user can still control the app, even if it isn't neccesarily on screen. In this event handler we take the appropriate action for the command, such as pausing our media and then updating the state back on the control. -## JavaScript +## Related topics -The --> - \ No newline at end of file + diff --git a/Samples/Accelerometer/js/Accelerometer.sln b/archived/Accelerometer/js/Accelerometer.sln similarity index 100% rename from Samples/Accelerometer/js/Accelerometer.sln rename to archived/Accelerometer/js/Accelerometer.sln diff --git a/Samples/Accelerometer/js/Microsoft.WinJS.4.0/css/placeholder.txt b/archived/Accelerometer/js/Microsoft.WinJS.4.0/css/placeholder.txt similarity index 100% rename from Samples/Accelerometer/js/Microsoft.WinJS.4.0/css/placeholder.txt rename to archived/Accelerometer/js/Microsoft.WinJS.4.0/css/placeholder.txt diff --git a/Samples/Accelerometer/js/Microsoft.WinJS.4.0/fonts/placeholder b/archived/Accelerometer/js/Microsoft.WinJS.4.0/fonts/placeholder similarity index 100% rename from Samples/Accelerometer/js/Microsoft.WinJS.4.0/fonts/placeholder rename to archived/Accelerometer/js/Microsoft.WinJS.4.0/fonts/placeholder diff --git a/Samples/Accelerometer/js/Microsoft.WinJS.4.0/js/en-us/placeholder.txt b/archived/Accelerometer/js/Microsoft.WinJS.4.0/js/en-us/placeholder.txt similarity index 100% rename from Samples/Accelerometer/js/Microsoft.WinJS.4.0/js/en-us/placeholder.txt rename to archived/Accelerometer/js/Microsoft.WinJS.4.0/js/en-us/placeholder.txt diff --git a/Samples/Accelerometer/js/Package.appxmanifest b/archived/Accelerometer/js/Package.appxmanifest similarity index 100% rename from Samples/Accelerometer/js/Package.appxmanifest rename to archived/Accelerometer/js/Package.appxmanifest diff --git a/Samples/Accelerometer/js/css/placeholder.txt b/archived/Accelerometer/js/css/placeholder.txt similarity index 100% rename from Samples/Accelerometer/js/css/placeholder.txt rename to archived/Accelerometer/js/css/placeholder.txt diff --git a/Samples/Accelerometer/js/html/scenario0_Choose.html b/archived/Accelerometer/js/html/scenario0_Choose.html similarity index 100% rename from Samples/Accelerometer/js/html/scenario0_Choose.html rename to archived/Accelerometer/js/html/scenario0_Choose.html diff --git a/Samples/Accelerometer/js/html/scenario1_DataEvents.html b/archived/Accelerometer/js/html/scenario1_DataEvents.html similarity index 100% rename from Samples/Accelerometer/js/html/scenario1_DataEvents.html rename to archived/Accelerometer/js/html/scenario1_DataEvents.html diff --git a/Samples/Accelerometer/js/html/scenario2_ShakeEvents.html b/archived/Accelerometer/js/html/scenario2_ShakeEvents.html similarity index 100% rename from Samples/Accelerometer/js/html/scenario2_ShakeEvents.html rename to archived/Accelerometer/js/html/scenario2_ShakeEvents.html diff --git a/Samples/Accelerometer/js/html/scenario3_Polling.html b/archived/Accelerometer/js/html/scenario3_Polling.html similarity index 100% rename from Samples/Accelerometer/js/html/scenario3_Polling.html rename to archived/Accelerometer/js/html/scenario3_Polling.html diff --git a/Samples/Accelerometer/js/html/scenario4_OrientationChanged.html b/archived/Accelerometer/js/html/scenario4_OrientationChanged.html similarity index 100% rename from Samples/Accelerometer/js/html/scenario4_OrientationChanged.html rename to archived/Accelerometer/js/html/scenario4_OrientationChanged.html diff --git a/Samples/Accelerometer/js/html/scenario5_DataEventsBatching.html b/archived/Accelerometer/js/html/scenario5_DataEventsBatching.html similarity index 100% rename from Samples/Accelerometer/js/html/scenario5_DataEventsBatching.html rename to archived/Accelerometer/js/html/scenario5_DataEventsBatching.html diff --git a/Samples/Accelerometer/js/images/placeholder.txt b/archived/Accelerometer/js/images/placeholder.txt similarity index 100% rename from Samples/Accelerometer/js/images/placeholder.txt rename to archived/Accelerometer/js/images/placeholder.txt diff --git a/Samples/Accelerometer/js/js/sample-configuration.js b/archived/Accelerometer/js/js/sample-configuration.js similarity index 100% rename from Samples/Accelerometer/js/js/sample-configuration.js rename to archived/Accelerometer/js/js/sample-configuration.js diff --git a/Samples/Accelerometer/js/js/scenario0_Choose.js b/archived/Accelerometer/js/js/scenario0_Choose.js similarity index 100% rename from Samples/Accelerometer/js/js/scenario0_Choose.js rename to archived/Accelerometer/js/js/scenario0_Choose.js diff --git a/Samples/Accelerometer/js/js/scenario1_DataEvents.js b/archived/Accelerometer/js/js/scenario1_DataEvents.js similarity index 100% rename from Samples/Accelerometer/js/js/scenario1_DataEvents.js rename to archived/Accelerometer/js/js/scenario1_DataEvents.js diff --git a/Samples/Accelerometer/js/js/scenario2_ShakeEvents.js b/archived/Accelerometer/js/js/scenario2_ShakeEvents.js similarity index 100% rename from Samples/Accelerometer/js/js/scenario2_ShakeEvents.js rename to archived/Accelerometer/js/js/scenario2_ShakeEvents.js diff --git a/Samples/Accelerometer/js/js/scenario3_Polling.js b/archived/Accelerometer/js/js/scenario3_Polling.js similarity index 100% rename from Samples/Accelerometer/js/js/scenario3_Polling.js rename to archived/Accelerometer/js/js/scenario3_Polling.js diff --git a/Samples/Accelerometer/js/js/scenario4_OrientationChanged.js b/archived/Accelerometer/js/js/scenario4_OrientationChanged.js similarity index 100% rename from Samples/Accelerometer/js/js/scenario4_OrientationChanged.js rename to archived/Accelerometer/js/js/scenario4_OrientationChanged.js diff --git a/Samples/Accelerometer/js/js/scenario5_DataEventsBatching.js b/archived/Accelerometer/js/js/scenario5_DataEventsBatching.js similarity index 100% rename from Samples/Accelerometer/js/js/scenario5_DataEventsBatching.js rename to archived/Accelerometer/js/js/scenario5_DataEventsBatching.js diff --git a/Samples/Accelerometer/js/sample-utils/placeholder.txt b/archived/Accelerometer/js/sample-utils/placeholder.txt similarity index 100% rename from Samples/Accelerometer/js/sample-utils/placeholder.txt rename to archived/Accelerometer/js/sample-utils/placeholder.txt diff --git a/archived/ActivitySensor/README.md b/archived/ActivitySensor/README.md new file mode 100644 index 0000000000..d7b980e8ab --- /dev/null +++ b/archived/ActivitySensor/README.md @@ -0,0 +1,71 @@ +--- +topic: sample +languages: +- js +products: +- windows +- windows-uwp +--- + +# Activity detection sensor sample + +Shows how to use the [ActivitySensor](https://msdn.microsoft.com/library/windows/apps/windows.devices.sensors.activitysensor.aspx) +class to interact with the activity detection functionality on the system. + +> **Note:** This sample is part of a large collection of UWP feature samples. +> If you are unfamiliar with Git and GitHub, you can download the entire collection as a +> [ZIP file](https://github.com/Microsoft/Windows-universal-samples/archive/master.zip), but be +> sure to unzip everything to access shared dependencies. For more info on working with the ZIP file, +> the samples collection, and GitHub, see [Get the UWP samples from GitHub](https://aka.ms/ovu2uq). +> For more samples, see the [Samples portal](https://aka.ms/winsamples) on the Windows Dev Center. + +You can choose one of four scenarios: + +- Current activity +- History +- Events +- Background activity + +### Current activity + +Gets the default activity sensor and displays the current activity. + +### History + +Gets the activity history from at most 1 day ago. Displays the first entry, last entry, and count of entries. + +### Events + +Subscribes to reading changed events and displays the updated activity reading. + +### Background activity + +Registers a background task for activity changes. The background task runs whenever the most likely activity changes to/from any of the subscribed activities. + +## System requirements + +**Client:** Windows 10 + +**Server:** Windows Server 2016 Technical Preview + +**Phone:** Windows 10 + +## Build the sample + +1. If you download the samples ZIP, be sure to unzip the entire archive, not just the folder with the sample you want to build. +2. Start Microsoft Visual Studio 2017 and select **File** \> **Open** \> **Project/Solution**. +3. Starting in the folder where you unzipped the samples, go to the Samples subfolder, then the subfolder for this specific sample, then the subfolder for your preferred language (C++, C#, or JavaScript). Double-click the Visual Studio Solution (.sln) file. +4. Press Ctrl+Shift+B, or select **Build** \> **Build Solution**. + +## Run the sample + +The next steps depend on whether you just want to deploy the sample or you want to both deploy and run it. + +### Deploying the sample + +- Select Build > Deploy Solution. + +### Deploying and running the sample + +- To debug the sample and then run it, press F5 or select Debug > Start Debugging. To run the sample without debugging, press Ctrl+F5 or selectDebug > Start Without Debugging. + diff --git a/Samples/ActivitySensor/js/ActivitySensor.jsproj b/archived/ActivitySensor/js/ActivitySensor.jsproj similarity index 81% rename from Samples/ActivitySensor/js/ActivitySensor.jsproj rename to archived/ActivitySensor/js/ActivitySensor.jsproj index 5f5f0fcb23..c432adefa0 100644 --- a/Samples/ActivitySensor/js/ActivitySensor.jsproj +++ b/archived/ActivitySensor/js/ActivitySensor.jsproj @@ -46,7 +46,7 @@ Designer - + default.html @@ -74,10 +74,10 @@ images\windows-sdk.png - + js\default.js - + css\default.css @@ -86,43 +86,43 @@ - + Microsoft.WinJS.4.0\css\ui-dark.css - + Microsoft.WinJS.4.0\css\ui-light.css - + Microsoft.WinJS.4.0\js\en-US\ui.strings.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense-setup.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense.js - + Microsoft.WinJS.4.0\fonts\Symbols.ttf - + Microsoft.WinJS.4.0\js\base.js - + Microsoft.WinJS.4.0\js\ui.js - + sample-utils\footer.html - + sample-utils\header.html - + sample-utils\sample-utils.js - + sample-utils\scenario-select.css - + sample-utils\scenario-select.html diff --git a/Samples/ActivitySensor/js/ActivitySensor.sln b/archived/ActivitySensor/js/ActivitySensor.sln similarity index 100% rename from Samples/ActivitySensor/js/ActivitySensor.sln rename to archived/ActivitySensor/js/ActivitySensor.sln diff --git a/Samples/ActivitySensor/js/Microsoft.WinJS.4.0/css/placeholder.txt b/archived/ActivitySensor/js/Microsoft.WinJS.4.0/css/placeholder.txt similarity index 100% rename from Samples/ActivitySensor/js/Microsoft.WinJS.4.0/css/placeholder.txt rename to archived/ActivitySensor/js/Microsoft.WinJS.4.0/css/placeholder.txt diff --git a/Samples/ActivitySensor/js/Microsoft.WinJS.4.0/fonts/placeholder b/archived/ActivitySensor/js/Microsoft.WinJS.4.0/fonts/placeholder similarity index 100% rename from Samples/ActivitySensor/js/Microsoft.WinJS.4.0/fonts/placeholder rename to archived/ActivitySensor/js/Microsoft.WinJS.4.0/fonts/placeholder diff --git a/Samples/ActivitySensor/js/Microsoft.WinJS.4.0/js/en-us/placeholder.txt b/archived/ActivitySensor/js/Microsoft.WinJS.4.0/js/en-us/placeholder.txt similarity index 100% rename from Samples/ActivitySensor/js/Microsoft.WinJS.4.0/js/en-us/placeholder.txt rename to archived/ActivitySensor/js/Microsoft.WinJS.4.0/js/en-us/placeholder.txt diff --git a/Samples/ActivitySensor/js/Package.appxmanifest b/archived/ActivitySensor/js/Package.appxmanifest similarity index 100% rename from Samples/ActivitySensor/js/Package.appxmanifest rename to archived/ActivitySensor/js/Package.appxmanifest diff --git a/Samples/ActivitySensor/js/css/placeholder.txt b/archived/ActivitySensor/js/css/placeholder.txt similarity index 100% rename from Samples/ActivitySensor/js/css/placeholder.txt rename to archived/ActivitySensor/js/css/placeholder.txt diff --git a/Samples/ActivitySensor/js/html/scenario1-currentActivity.html b/archived/ActivitySensor/js/html/scenario1-currentActivity.html similarity index 100% rename from Samples/ActivitySensor/js/html/scenario1-currentActivity.html rename to archived/ActivitySensor/js/html/scenario1-currentActivity.html diff --git a/Samples/ActivitySensor/js/html/scenario2-history.html b/archived/ActivitySensor/js/html/scenario2-history.html similarity index 100% rename from Samples/ActivitySensor/js/html/scenario2-history.html rename to archived/ActivitySensor/js/html/scenario2-history.html diff --git a/Samples/ActivitySensor/js/html/scenario3-changeEvents.html b/archived/ActivitySensor/js/html/scenario3-changeEvents.html similarity index 100% rename from Samples/ActivitySensor/js/html/scenario3-changeEvents.html rename to archived/ActivitySensor/js/html/scenario3-changeEvents.html diff --git a/Samples/ActivitySensor/js/html/scenario4-backgroundActivity.html b/archived/ActivitySensor/js/html/scenario4-backgroundActivity.html similarity index 100% rename from Samples/ActivitySensor/js/html/scenario4-backgroundActivity.html rename to archived/ActivitySensor/js/html/scenario4-backgroundActivity.html diff --git a/Samples/ActivitySensor/js/images/placeholder.txt b/archived/ActivitySensor/js/images/placeholder.txt similarity index 100% rename from Samples/ActivitySensor/js/images/placeholder.txt rename to archived/ActivitySensor/js/images/placeholder.txt diff --git a/Samples/ActivitySensor/js/js/activitySensorBackgroundTask.js b/archived/ActivitySensor/js/js/activitySensorBackgroundTask.js similarity index 100% rename from Samples/ActivitySensor/js/js/activitySensorBackgroundTask.js rename to archived/ActivitySensor/js/js/activitySensorBackgroundTask.js diff --git a/Samples/ActivitySensor/js/js/sample-configuration.js b/archived/ActivitySensor/js/js/sample-configuration.js similarity index 100% rename from Samples/ActivitySensor/js/js/sample-configuration.js rename to archived/ActivitySensor/js/js/sample-configuration.js diff --git a/Samples/ActivitySensor/js/js/scenario1-currentActivity.js b/archived/ActivitySensor/js/js/scenario1-currentActivity.js similarity index 100% rename from Samples/ActivitySensor/js/js/scenario1-currentActivity.js rename to archived/ActivitySensor/js/js/scenario1-currentActivity.js diff --git a/Samples/ActivitySensor/js/js/scenario2-history.js b/archived/ActivitySensor/js/js/scenario2-history.js similarity index 100% rename from Samples/ActivitySensor/js/js/scenario2-history.js rename to archived/ActivitySensor/js/js/scenario2-history.js diff --git a/Samples/ActivitySensor/js/js/scenario3-changeEvents.js b/archived/ActivitySensor/js/js/scenario3-changeEvents.js similarity index 100% rename from Samples/ActivitySensor/js/js/scenario3-changeEvents.js rename to archived/ActivitySensor/js/js/scenario3-changeEvents.js diff --git a/Samples/ActivitySensor/js/js/scenario4-backgroundActivity.js b/archived/ActivitySensor/js/js/scenario4-backgroundActivity.js similarity index 100% rename from Samples/ActivitySensor/js/js/scenario4-backgroundActivity.js rename to archived/ActivitySensor/js/js/scenario4-backgroundActivity.js diff --git a/Samples/ActivitySensor/js/sample-utils/placeholder.txt b/archived/ActivitySensor/js/sample-utils/placeholder.txt similarity index 100% rename from Samples/ActivitySensor/js/sample-utils/placeholder.txt rename to archived/ActivitySensor/js/sample-utils/placeholder.txt diff --git a/archived/Advertising/README.md b/archived/Advertising/README.md new file mode 100644 index 0000000000..50cc1f056c --- /dev/null +++ b/archived/Advertising/README.md @@ -0,0 +1,78 @@ +--- +topic: sample +languages: +- js +products: +- windows +- windows-uwp +--- + +# Advertising sample + +Shows how to use the Microsoft Advertising SDK (Microsoft.Advertising) to show display ads and interstitial ads. + +> **Note:** This sample is part of a large collection of UWP feature samples. +> If you are unfamiliar with Git and GitHub, you can download the entire collection as a +> [ZIP file](https://github.com/Microsoft/Windows-universal-samples/archive/master.zip), but be +> sure to unzip everything to access shared dependencies. For more info on working with the ZIP file, +> the samples collection, and GitHub, see [Get the UWP samples from GitHub](https://aka.ms/ovu2uq). +> For more samples, see the [Samples portal](https://aka.ms/winsamples) on the Windows Dev Center. + +Specifically, this sample shows how to: + +- Create an ad control to show display ads using only XAML / HTML markup +- Create an ad control to show display ads programatically +- Create an ad control to show interstitial video ads programatically + +## Prerequisites + +This sample requires the [Microsoft Advertising SDK Libraries for XAML or JavaScript](http://go.microsoft.com/fwlink/?LinkID=619694), +which is obtained via NuGet package, +or you can [download it here](http://go.microsoft.com/fwlink/p/?LinkId=518026). +It also requires the [internet client capability](https://msdn.microsoft.com/library/windows/apps/mt270968#general-use_capabilities) to be added to the manifest. + +When you incorporate this sample into your own app, +obtain your own ApplicationId and AdUnitId from the Dev Center. +See [Monetize with Ads](https://msdn.microsoft.com/library/windows/apps/mt170658.aspx) on MSDN +for more details. + +## Related topics + +### Samples + +[Microsoft Store in-app purchase](/Samples/Store) + +## Reference + +[Microsoft Advertising Client SDK API Reference](https://msdn.microsoft.com/library/windows/apps/mt691884.aspx) + +### See also + +[Getting Started](https://msdn.microsoft.com/windows/uwp/monetize/get-started-with-microsoft-advertising-libraries) +[Developer Walkthroughs](https://msdn.microsoft.com/windows/uwp/monetize/developer-walkthroughs) +[Interstitial Ads](https://msdn.microsoft.com/windows/uwp/monetize/interstitial-ads) + +## System requirements + +**Client:** Windows 10 + +**Phone:** Windows 10 + +## Build the sample + +1. If you download the samples ZIP, be sure to unzip the entire archive, not just the folder with the sample you want to build. +2. Start Microsoft Visual Studio 2017 and select **File** \> **Open** \> **Project/Solution**. +3. Starting in the folder where you unzipped the samples, go to the Samples subfolder, then the subfolder for this specific sample, then the subfolder for your preferred language (C++, C#, or JavaScript). Double-click the Visual Studio Solution (.sln) file. +4. Press Ctrl+Shift+B, or select **Build** \> **Build Solution**. + +## Run the sample + +The next steps depend on whether you just want to deploy the sample or you want to both deploy and run it. + +### Deploying the sample + +- Select Build > Deploy Solution. + +### Deploying and running the sample + +- To debug the sample and then run it, press F5 or select Debug > Start Debugging. To run the sample without debugging, press Ctrl+F5 or selectDebug > Start Without Debugging. diff --git a/Samples/Advertising/js/Advertising.jsproj b/archived/Advertising/js/Advertising.jsproj similarity index 82% rename from Samples/Advertising/js/Advertising.jsproj rename to archived/Advertising/js/Advertising.jsproj index 6245d00dad..e9b236adc0 100644 --- a/Samples/Advertising/js/Advertising.jsproj +++ b/archived/Advertising/js/Advertising.jsproj @@ -53,7 +53,7 @@ - + default.html @@ -77,49 +77,49 @@ images\windows-sdk.png - + js\default.js - + css\default.css - + Microsoft.WinJS.4.0\css\ui-dark.css - + Microsoft.WinJS.4.0\css\ui-light.css - + Microsoft.WinJS.4.0\js\en-US\ui.strings.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense-setup.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense.js - + Microsoft.WinJS.4.0\fonts\Symbols.ttf - + Microsoft.WinJS.4.0\js\base.js - + Microsoft.WinJS.4.0\js\ui.js - + sample-utils\footer.html - + sample-utils\header.html - + sample-utils\sample-utils.js - + sample-utils\scenario-select.css - + sample-utils\scenario-select.html diff --git a/Samples/Advertising/js/Advertising.sln b/archived/Advertising/js/Advertising.sln similarity index 100% rename from Samples/Advertising/js/Advertising.sln rename to archived/Advertising/js/Advertising.sln diff --git a/Samples/Advertising/js/Microsoft.WinJS.4.0/css/placeholder.txt b/archived/Advertising/js/Microsoft.WinJS.4.0/css/placeholder.txt similarity index 100% rename from Samples/Advertising/js/Microsoft.WinJS.4.0/css/placeholder.txt rename to archived/Advertising/js/Microsoft.WinJS.4.0/css/placeholder.txt diff --git a/Samples/Advertising/js/Microsoft.WinJS.4.0/fonts/placeholder.txt b/archived/Advertising/js/Microsoft.WinJS.4.0/fonts/placeholder.txt similarity index 100% rename from Samples/Advertising/js/Microsoft.WinJS.4.0/fonts/placeholder.txt rename to archived/Advertising/js/Microsoft.WinJS.4.0/fonts/placeholder.txt diff --git a/Samples/Advertising/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt b/archived/Advertising/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt similarity index 100% rename from Samples/Advertising/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt rename to archived/Advertising/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt diff --git a/Samples/Advertising/js/css/placeholder.txt b/archived/Advertising/js/css/placeholder.txt similarity index 100% rename from Samples/Advertising/js/css/placeholder.txt rename to archived/Advertising/js/css/placeholder.txt diff --git a/Samples/Advertising/js/html/scenario1.html b/archived/Advertising/js/html/scenario1.html similarity index 100% rename from Samples/Advertising/js/html/scenario1.html rename to archived/Advertising/js/html/scenario1.html diff --git a/Samples/Advertising/js/html/scenario2.html b/archived/Advertising/js/html/scenario2.html similarity index 100% rename from Samples/Advertising/js/html/scenario2.html rename to archived/Advertising/js/html/scenario2.html diff --git a/Samples/Advertising/js/html/scenario3.html b/archived/Advertising/js/html/scenario3.html similarity index 100% rename from Samples/Advertising/js/html/scenario3.html rename to archived/Advertising/js/html/scenario3.html diff --git a/Samples/Advertising/js/images/windows-sdk.png b/archived/Advertising/js/images/windows-sdk.png similarity index 100% rename from Samples/Advertising/js/images/windows-sdk.png rename to archived/Advertising/js/images/windows-sdk.png diff --git a/Samples/Advertising/js/js/sample-configuration.js b/archived/Advertising/js/js/sample-configuration.js similarity index 100% rename from Samples/Advertising/js/js/sample-configuration.js rename to archived/Advertising/js/js/sample-configuration.js diff --git a/Samples/Advertising/js/js/scenario1.js b/archived/Advertising/js/js/scenario1.js similarity index 100% rename from Samples/Advertising/js/js/scenario1.js rename to archived/Advertising/js/js/scenario1.js diff --git a/Samples/Advertising/js/js/scenario2.js b/archived/Advertising/js/js/scenario2.js similarity index 100% rename from Samples/Advertising/js/js/scenario2.js rename to archived/Advertising/js/js/scenario2.js diff --git a/Samples/Advertising/js/js/scenario3.js b/archived/Advertising/js/js/scenario3.js similarity index 100% rename from Samples/Advertising/js/js/scenario3.js rename to archived/Advertising/js/js/scenario3.js diff --git a/Samples/Advertising/js/package.appxmanifest b/archived/Advertising/js/package.appxmanifest similarity index 100% rename from Samples/Advertising/js/package.appxmanifest rename to archived/Advertising/js/package.appxmanifest diff --git a/Samples/Advertising/js/packages.config b/archived/Advertising/js/packages.config similarity index 100% rename from Samples/Advertising/js/packages.config rename to archived/Advertising/js/packages.config diff --git a/Samples/Advertising/js/sample-utils/placeholder.txt b/archived/Advertising/js/sample-utils/placeholder.txt similarity index 100% rename from Samples/Advertising/js/sample-utils/placeholder.txt rename to archived/Advertising/js/sample-utils/placeholder.txt diff --git a/archived/AllJoyn/ConsumerExperiences/README.md b/archived/AllJoyn/ConsumerExperiences/README.md new file mode 100644 index 0000000000..97c47e3380 --- /dev/null +++ b/archived/AllJoyn/ConsumerExperiences/README.md @@ -0,0 +1,79 @@ +--- +topic: sample +languages: +- js +products: +- windows +- windows-uwp +--- + +# AllJoyn consumer experiences sample + +Shows how to create an AllJoyn Windows Universal app using Code Generation with Introspection XML and Windows.Devices.AllJoyn. + +> **Note:** This sample is part of a large collection of UWP feature samples. +> If you are unfamiliar with Git and GitHub, you can download the entire collection as a +> [ZIP file](https://github.com/Microsoft/Windows-universal-samples/archive/master.zip), but be +> sure to unzip everything to access shared dependencies. For more info on working with the ZIP file, +> the samples collection, and GitHub, see [Get the UWP samples from GitHub](https://aka.ms/ovu2uq). +> For more samples, see the [Samples portal](https://aka.ms/winsamples) on the Windows Dev Center. + +Specifically, this sample covers: + +**Scenario 1** +- Creating and launching a Secure AllJoyn Consumer. +- Implementing method call, property and signal from generated code. + +**Scenario 2** +- Discovering and connecting to an Onboardee's SoftAP. +- Implementing method calls to get an Onboardee's network scan, configuring an Onboardee with WiFi credentials etc. + +**Note** The Universal Windows samples require Visual Studio 2017 to build and Windows 10 to execute. + +To obtain information about Windows 10 development, go to the [Windows Dev Center](http://go.microsoft.com/fwlink/?LinkID=532421) + +To obtain information about Microsoft Visual Studio and the tools for developing Windows apps, go to [Visual Studio](http://go.microsoft.com/fwlink/?LinkID=532422) + +## Related topics + +### Samples + +[AllJoyn Producer Experiences](http://go.microsoft.com/fwlink/p/?LinkId=534025) +[AllJoyn Consumer Experiences](http://go.microsoft.com/fwlink/p/?LinkID=534021) + +The AllSeen Alliance has samples in [Windows SDK](https://allseenalliance.org/developers/download) + +### Reference + +[MSDN Reference](https://msdn.microsoft.com/library/windows/apps/windows.devices.alljoyn.aspx) +[AllJoyn Reference](https://allseenalliance.org/developers/develop/api-reference) +[Troubleshooting AllJoyn blog](http://channel9.msdn.com/Blogs/Internet-of-Things-Blog/Troubleshooting-AllJoyn-with-Windows-10-Insider-Preview-Builds) + +## System requirements + +ARM, ARM64, x86, or amd64 system + +**Client:** Windows 10 + +**Server:** Windows Server 2016 Technical Preview + +**Phone:** Windows 10 + +## Build the sample + +1. Start Microsoft Visual Studio 2017 and select **File** \> **Open** \> **Project/Solution**. +2. Go to the directory to which you unzipped the sample. Then go to the subdirectory containing the sample in the C# language. Double-click the Visual Studio Solution (.sln) file. +3. Set the active solution configuration and platform to the desired values under **Build** \> **Configuration Manager**. +4. Press Ctrl+Shift+B, or select **Build** \> **Build Solution**. + +## Run the sample + +The next steps depend on whether you just want to deploy the sample or you want to both deploy and run it. + +### Deploying the sample + +- Select Build > Deploy Solution. + +### Deploying and running the sample + +- To debug the sample and then run it, press F5 or select Debug > Start Debugging. To run the sample without debugging, press Ctrl+F5 or selectDebug > Start Without Debugging. \ No newline at end of file diff --git a/Samples/AllJoyn/ConsumerExperiences/js/AllJoynConsumerExperiences.jsproj b/archived/AllJoyn/ConsumerExperiences/js/AllJoynConsumerExperiences.jsproj similarity index 79% rename from Samples/AllJoyn/ConsumerExperiences/js/AllJoynConsumerExperiences.jsproj rename to archived/AllJoyn/ConsumerExperiences/js/AllJoynConsumerExperiences.jsproj index 4476809c8a..8b9a91d670 100644 --- a/Samples/AllJoyn/ConsumerExperiences/js/AllJoynConsumerExperiences.jsproj +++ b/archived/AllJoyn/ConsumerExperiences/js/AllJoynConsumerExperiences.jsproj @@ -52,7 +52,7 @@ - + default.html @@ -76,49 +76,49 @@ images\windows-sdk.png - + js\default.js - + css\default.css - + Microsoft.WinJS.4.0\css\ui-dark.css - + Microsoft.WinJS.4.0\css\ui-light.css - + Microsoft.WinJS.4.0\js\en-US\ui.strings.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense-setup.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense.js - + Microsoft.WinJS.4.0\fonts\Symbols.ttf - + Microsoft.WinJS.4.0\js\base.js - + Microsoft.WinJS.4.0\js\ui.js - + sample-utils\footer.html - + sample-utils\header.html - + sample-utils\sample-utils.js - + sample-utils\scenario-select.css - + sample-utils\scenario-select.html diff --git a/Samples/AllJoyn/ConsumerExperiences/js/AllJoynConsumerExperiences.sln b/archived/AllJoyn/ConsumerExperiences/js/AllJoynConsumerExperiences.sln similarity index 100% rename from Samples/AllJoyn/ConsumerExperiences/js/AllJoynConsumerExperiences.sln rename to archived/AllJoyn/ConsumerExperiences/js/AllJoynConsumerExperiences.sln diff --git a/Samples/AllJoyn/ConsumerExperiences/js/Microsoft.WinJS.4.0/css/placeholder.txt b/archived/AllJoyn/ConsumerExperiences/js/Microsoft.WinJS.4.0/css/placeholder.txt similarity index 100% rename from Samples/AllJoyn/ConsumerExperiences/js/Microsoft.WinJS.4.0/css/placeholder.txt rename to archived/AllJoyn/ConsumerExperiences/js/Microsoft.WinJS.4.0/css/placeholder.txt diff --git a/Samples/AllJoyn/ConsumerExperiences/js/Microsoft.WinJS.4.0/fonts/placeholder b/archived/AllJoyn/ConsumerExperiences/js/Microsoft.WinJS.4.0/fonts/placeholder similarity index 100% rename from Samples/AllJoyn/ConsumerExperiences/js/Microsoft.WinJS.4.0/fonts/placeholder rename to archived/AllJoyn/ConsumerExperiences/js/Microsoft.WinJS.4.0/fonts/placeholder diff --git a/Samples/AllJoyn/ConsumerExperiences/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt b/archived/AllJoyn/ConsumerExperiences/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt similarity index 100% rename from Samples/AllJoyn/ConsumerExperiences/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt rename to archived/AllJoyn/ConsumerExperiences/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt diff --git a/Samples/AllJoyn/ConsumerExperiences/js/css/placeholder.txt b/archived/AllJoyn/ConsumerExperiences/js/css/placeholder.txt similarity index 100% rename from Samples/AllJoyn/ConsumerExperiences/js/css/placeholder.txt rename to archived/AllJoyn/ConsumerExperiences/js/css/placeholder.txt diff --git a/Samples/AllJoyn/ConsumerExperiences/js/html/scenario1.html b/archived/AllJoyn/ConsumerExperiences/js/html/scenario1.html similarity index 100% rename from Samples/AllJoyn/ConsumerExperiences/js/html/scenario1.html rename to archived/AllJoyn/ConsumerExperiences/js/html/scenario1.html diff --git a/Samples/AllJoyn/ConsumerExperiences/js/html/scenario2.html b/archived/AllJoyn/ConsumerExperiences/js/html/scenario2.html similarity index 100% rename from Samples/AllJoyn/ConsumerExperiences/js/html/scenario2.html rename to archived/AllJoyn/ConsumerExperiences/js/html/scenario2.html diff --git a/Samples/AllJoyn/ConsumerExperiences/js/images/placeholder.txt b/archived/AllJoyn/ConsumerExperiences/js/images/placeholder.txt similarity index 100% rename from Samples/AllJoyn/ConsumerExperiences/js/images/placeholder.txt rename to archived/AllJoyn/ConsumerExperiences/js/images/placeholder.txt diff --git a/Samples/AllJoyn/ConsumerExperiences/js/js/onboardingenumtypes.js b/archived/AllJoyn/ConsumerExperiences/js/js/onboardingenumtypes.js similarity index 100% rename from Samples/AllJoyn/ConsumerExperiences/js/js/onboardingenumtypes.js rename to archived/AllJoyn/ConsumerExperiences/js/js/onboardingenumtypes.js diff --git a/Samples/AllJoyn/ConsumerExperiences/js/js/sample-configuration.js b/archived/AllJoyn/ConsumerExperiences/js/js/sample-configuration.js similarity index 100% rename from Samples/AllJoyn/ConsumerExperiences/js/js/sample-configuration.js rename to archived/AllJoyn/ConsumerExperiences/js/js/sample-configuration.js diff --git a/Samples/AllJoyn/ConsumerExperiences/js/js/scenario1.js b/archived/AllJoyn/ConsumerExperiences/js/js/scenario1.js similarity index 100% rename from Samples/AllJoyn/ConsumerExperiences/js/js/scenario1.js rename to archived/AllJoyn/ConsumerExperiences/js/js/scenario1.js diff --git a/Samples/AllJoyn/ConsumerExperiences/js/js/scenario2.js b/archived/AllJoyn/ConsumerExperiences/js/js/scenario2.js similarity index 100% rename from Samples/AllJoyn/ConsumerExperiences/js/js/scenario2.js rename to archived/AllJoyn/ConsumerExperiences/js/js/scenario2.js diff --git a/Samples/AllJoyn/ConsumerExperiences/js/package.appxmanifest b/archived/AllJoyn/ConsumerExperiences/js/package.appxmanifest similarity index 100% rename from Samples/AllJoyn/ConsumerExperiences/js/package.appxmanifest rename to archived/AllJoyn/ConsumerExperiences/js/package.appxmanifest diff --git a/Samples/AllJoyn/ConsumerExperiences/js/sample-utils/placeholder.txt b/archived/AllJoyn/ConsumerExperiences/js/sample-utils/placeholder.txt similarity index 100% rename from Samples/AllJoyn/ConsumerExperiences/js/sample-utils/placeholder.txt rename to archived/AllJoyn/ConsumerExperiences/js/sample-utils/placeholder.txt diff --git a/archived/AllJoyn/ProducerExperiences/README.md b/archived/AllJoyn/ProducerExperiences/README.md new file mode 100644 index 0000000000..27202c5ae5 --- /dev/null +++ b/archived/AllJoyn/ProducerExperiences/README.md @@ -0,0 +1,79 @@ +--- +topic: sample +languages: +- js +products: +- windows +- windows-uwp +--- + +# AllJoyn producer experiences sample + +Shows how to create an AllJoyn Windows Universal app using Code Generation with Introspection XML and Windows.Devices.AllJoyn. + +> **Note:** This sample is part of a large collection of UWP feature samples. +> If you are unfamiliar with Git and GitHub, you can download the entire collection as a +> [ZIP file](https://github.com/Microsoft/Windows-universal-samples/archive/master.zip), but be +> sure to unzip everything to access shared dependencies. For more info on working with the ZIP file, +> the samples collection, and GitHub, see [Get the UWP samples from GitHub](https://aka.ms/ovu2uq). +> For more samples, see the [Samples portal](https://aka.ms/winsamples) on the Windows Dev Center. + +Specifically, this sample covers: + +**Scenario 1** +- Creating and launching a Secure AllJoyn Producer. +- Handling Method calls, Property get/set requests and Signals. + +**Scenario 2** +- Creating and launching an Onboarding Producer. +- Handling the Onboarding interface's Method calls, Property get/set requests and Signals. + +**Note** The Universal Windows samples require Visual Studio 2017 to build and Windows 10 to execute. + +To obtain information about Windows 10 development, go to the [Windows Dev Center](http://go.microsoft.com/fwlink/?LinkID=532421) + +To obtain information about Microsoft Visual Studio and the tools for developing Windows apps, go to [Visual Studio](http://go.microsoft.com/fwlink/?LinkID=532422) + +## Related topics + +### Samples + +[AllJoyn Producer Experiences](http://go.microsoft.com/fwlink/p/?LinkId=534025) +[AllJoyn Consumer Experiences](http://go.microsoft.com/fwlink/p/?LinkID=534021) + +The AllSeen Alliance has samples in [Windows SDK](https://allseenalliance.org/developers/download) + +### Reference + +[MSDN Reference](https://msdn.microsoft.com/library/windows/apps/windows.devices.alljoyn.aspx) +[AllJoyn Reference](https://allseenalliance.org/developers/develop/api-reference) +[Troubleshooting AllJoyn blog](http://channel9.msdn.com/Blogs/Internet-of-Things-Blog/Troubleshooting-AllJoyn-with-Windows-10-Insider-Preview-Builds) + +## System requirements + +ARM, ARM64, x86, or amd64 system + +**Client:** Windows 10 + +**Server:** Windows Server 2016 Technical Preview + +**Phone:** Windows 10 + +## Build the sample + +1. Start Microsoft Visual Studio 2017 and select **File** \> **Open** \> **Project/Solution**. +2. Go to the directory to which you unzipped the sample. Then go to the subdirectory containing the sample in the C# language. Double-click the Visual Studio Solution (.sln) file. +3. Set the active solution configuration and platform to the desired values under **Build** \> **Configuration Manager**. +4. Press Ctrl+Shift+B, or select **Build** \> **Build Solution**. + +## Run the sample + +The next steps depend on whether you just want to deploy the sample or you want to both deploy and run it. + +### Deploying the sample + +- Select Build > Deploy Solution. + +### Deploying and running the sample + +- To debug the sample and then run it, press F5 or select Debug > Start Debugging. To run the sample without debugging, press Ctrl+F5 or selectDebug > Start Without Debugging. \ No newline at end of file diff --git a/Samples/AllJoyn/ProducerExperiences/js/AllJoynProducerExperiences.jsproj b/archived/AllJoyn/ProducerExperiences/js/AllJoynProducerExperiences.jsproj similarity index 79% rename from Samples/AllJoyn/ProducerExperiences/js/AllJoynProducerExperiences.jsproj rename to archived/AllJoyn/ProducerExperiences/js/AllJoynProducerExperiences.jsproj index 12cc3395bd..519b0e6f91 100644 --- a/Samples/AllJoyn/ProducerExperiences/js/AllJoynProducerExperiences.jsproj +++ b/archived/AllJoyn/ProducerExperiences/js/AllJoynProducerExperiences.jsproj @@ -54,7 +54,7 @@ - + default.html @@ -78,49 +78,49 @@ images\windows-sdk.png - + js\default.js - + css\default.css - + Microsoft.WinJS.4.0\css\ui-dark.css - + Microsoft.WinJS.4.0\css\ui-light.css - + Microsoft.WinJS.4.0\js\en-US\ui.strings.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense-setup.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense.js - + Microsoft.WinJS.4.0\fonts\Symbols.ttf - + Microsoft.WinJS.4.0\js\base.js - + Microsoft.WinJS.4.0\js\ui.js - + sample-utils\footer.html - + sample-utils\header.html - + sample-utils\sample-utils.js - + sample-utils\scenario-select.css - + sample-utils\scenario-select.html diff --git a/Samples/AllJoyn/ProducerExperiences/js/AllJoynProducerExperiences.sln b/archived/AllJoyn/ProducerExperiences/js/AllJoynProducerExperiences.sln similarity index 100% rename from Samples/AllJoyn/ProducerExperiences/js/AllJoynProducerExperiences.sln rename to archived/AllJoyn/ProducerExperiences/js/AllJoynProducerExperiences.sln diff --git a/Samples/AllJoyn/ProducerExperiences/js/Microsoft.WinJS.4.0/css/placeholder.txt b/archived/AllJoyn/ProducerExperiences/js/Microsoft.WinJS.4.0/css/placeholder.txt similarity index 100% rename from Samples/AllJoyn/ProducerExperiences/js/Microsoft.WinJS.4.0/css/placeholder.txt rename to archived/AllJoyn/ProducerExperiences/js/Microsoft.WinJS.4.0/css/placeholder.txt diff --git a/Samples/AllJoyn/ProducerExperiences/js/Microsoft.WinJS.4.0/fonts/placeholder b/archived/AllJoyn/ProducerExperiences/js/Microsoft.WinJS.4.0/fonts/placeholder similarity index 100% rename from Samples/AllJoyn/ProducerExperiences/js/Microsoft.WinJS.4.0/fonts/placeholder rename to archived/AllJoyn/ProducerExperiences/js/Microsoft.WinJS.4.0/fonts/placeholder diff --git a/Samples/AllJoyn/ProducerExperiences/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt b/archived/AllJoyn/ProducerExperiences/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt similarity index 100% rename from Samples/AllJoyn/ProducerExperiences/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt rename to archived/AllJoyn/ProducerExperiences/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt diff --git a/Samples/AllJoyn/ProducerExperiences/js/css/scenario.css b/archived/AllJoyn/ProducerExperiences/js/css/scenario.css similarity index 100% rename from Samples/AllJoyn/ProducerExperiences/js/css/scenario.css rename to archived/AllJoyn/ProducerExperiences/js/css/scenario.css diff --git a/Samples/AllJoyn/ProducerExperiences/js/html/scenario1.html b/archived/AllJoyn/ProducerExperiences/js/html/scenario1.html similarity index 100% rename from Samples/AllJoyn/ProducerExperiences/js/html/scenario1.html rename to archived/AllJoyn/ProducerExperiences/js/html/scenario1.html diff --git a/Samples/AllJoyn/ProducerExperiences/js/html/scenario2.html b/archived/AllJoyn/ProducerExperiences/js/html/scenario2.html similarity index 100% rename from Samples/AllJoyn/ProducerExperiences/js/html/scenario2.html rename to archived/AllJoyn/ProducerExperiences/js/html/scenario2.html diff --git a/Samples/AllJoyn/ProducerExperiences/js/images/placeholder.txt b/archived/AllJoyn/ProducerExperiences/js/images/placeholder.txt similarity index 100% rename from Samples/AllJoyn/ProducerExperiences/js/images/placeholder.txt rename to archived/AllJoyn/ProducerExperiences/js/images/placeholder.txt diff --git a/Samples/AllJoyn/ProducerExperiences/js/js/appdata.js b/archived/AllJoyn/ProducerExperiences/js/js/appdata.js similarity index 100% rename from Samples/AllJoyn/ProducerExperiences/js/js/appdata.js rename to archived/AllJoyn/ProducerExperiences/js/js/appdata.js diff --git a/Samples/AllJoyn/ProducerExperiences/js/js/onboardingenumtypes.js b/archived/AllJoyn/ProducerExperiences/js/js/onboardingenumtypes.js similarity index 100% rename from Samples/AllJoyn/ProducerExperiences/js/js/onboardingenumtypes.js rename to archived/AllJoyn/ProducerExperiences/js/js/onboardingenumtypes.js diff --git a/Samples/AllJoyn/ProducerExperiences/js/js/sample-configuration.js b/archived/AllJoyn/ProducerExperiences/js/js/sample-configuration.js similarity index 100% rename from Samples/AllJoyn/ProducerExperiences/js/js/sample-configuration.js rename to archived/AllJoyn/ProducerExperiences/js/js/sample-configuration.js diff --git a/Samples/AllJoyn/ProducerExperiences/js/js/scenario1.js b/archived/AllJoyn/ProducerExperiences/js/js/scenario1.js similarity index 100% rename from Samples/AllJoyn/ProducerExperiences/js/js/scenario1.js rename to archived/AllJoyn/ProducerExperiences/js/js/scenario1.js diff --git a/Samples/AllJoyn/ProducerExperiences/js/js/scenario2.js b/archived/AllJoyn/ProducerExperiences/js/js/scenario2.js similarity index 100% rename from Samples/AllJoyn/ProducerExperiences/js/js/scenario2.js rename to archived/AllJoyn/ProducerExperiences/js/js/scenario2.js diff --git a/Samples/AllJoyn/ProducerExperiences/js/package.appxmanifest b/archived/AllJoyn/ProducerExperiences/js/package.appxmanifest similarity index 100% rename from Samples/AllJoyn/ProducerExperiences/js/package.appxmanifest rename to archived/AllJoyn/ProducerExperiences/js/package.appxmanifest diff --git a/Samples/AllJoyn/ProducerExperiences/js/sample-utils/placeholder.txt b/archived/AllJoyn/ProducerExperiences/js/sample-utils/placeholder.txt similarity index 100% rename from Samples/AllJoyn/ProducerExperiences/js/sample-utils/placeholder.txt rename to archived/AllJoyn/ProducerExperiences/js/sample-utils/placeholder.txt diff --git a/archived/Altimeter/README.md b/archived/Altimeter/README.md new file mode 100644 index 0000000000..730d415251 --- /dev/null +++ b/archived/Altimeter/README.md @@ -0,0 +1,59 @@ +--- +topic: sample +languages: +- js +products: +- windows +- windows-uwp +--- + +# Altimeter sample + +Shows how to use the [Windows.Devices.Sensors.Altimeter](https://msdn.microsoft.com/library/windows/apps/windows.devices.sensors.altimeter.aspx) class. + +> **Note:** This sample is part of a large collection of UWP feature samples. +> If you are unfamiliar with Git and GitHub, you can download the entire collection as a +> [ZIP file](https://github.com/Microsoft/Windows-universal-samples/archive/master.zip), but be +> sure to unzip everything to access shared dependencies. For more info on working with the ZIP file, +> the samples collection, and GitHub, see [Get the UWP samples from GitHub](https://aka.ms/ovu2uq). +> For more samples, see the [Samples portal](https://aka.ms/winsamples) on the Windows Dev Center. + +This sample allows the user to view the change in altitude reading as a value in meters. You can choose one of two scenarios: + +- Altimeter Data Events +- Polling Altimeter Readings + +### Altimeter Data Events + +When you choose the **Enable** button for the **Data Events** option, the app will begin streaming Altimeter readings in real time. + +### Polling Altimeter Readings + +When you choose the **Get Data** button for the **Polling** option, the app will retrieve the current sensor readings. + +## System requirements + +**Client:** Windows 10 + +**Server:** Windows Server 2016 Technical Preview + +**Phone:** Windows 10 + +## Build the sample + +1. If you download the samples ZIP, be sure to unzip the entire archive, not just the folder with the sample you want to build. +2. Start Microsoft Visual Studio 2017 and select **File** \> **Open** \> **Project/Solution**. +3. Starting in the folder where you unzipped the samples, go to the Samples subfolder, then the subfolder for this specific sample, then the subfolder for your preferred language (C++, C#, or JavaScript). Double-click the Visual Studio Solution (.sln) file. +4. Press Ctrl+Shift+B, or select **Build** \> **Build Solution**. + +## Run the sample + +The next steps depend on whether you just want to deploy the sample or you want to both deploy and run it. + +### Deploying the sample + +- Select Build > Deploy Solution. + +### Deploying and running the sample + +- To debug the sample and then run it, press F5 or select Debug > Start Debugging. To run the sample without debugging, press Ctrl+F5 or selectDebug > Start Without Debugging. diff --git a/Samples/Altimeter/js/Altimeter.jsproj b/archived/Altimeter/js/Altimeter.jsproj similarity index 81% rename from Samples/Altimeter/js/Altimeter.jsproj rename to archived/Altimeter/js/Altimeter.jsproj index ff9606e678..7a3815b6ce 100644 --- a/Samples/Altimeter/js/Altimeter.jsproj +++ b/archived/Altimeter/js/Altimeter.jsproj @@ -56,7 +56,7 @@ - + default.html @@ -82,52 +82,52 @@ images\windows-sdk.png - + js\default.js - + css\default.css - + Microsoft.WinJS.4.0\css\ui-dark.css - + Microsoft.WinJS.4.0\css\ui-light.css - + Microsoft.WinJS.4.0\js\en-US\ui.strings.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense-setup.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense.js - + Microsoft.WinJS.4.0\fonts\Symbols.ttf - + Microsoft.WinJS.4.0\js\base.js - + Microsoft.WinJS.4.0\js\ui.js - + sample-utils\footer.html - + sample-utils\header.html - + sample-utils\sample-utils.js - + sample-utils\scenario-select.css - + sample-utils\scenario-select.html diff --git a/Samples/Altimeter/js/Altimeter.sln b/archived/Altimeter/js/Altimeter.sln similarity index 100% rename from Samples/Altimeter/js/Altimeter.sln rename to archived/Altimeter/js/Altimeter.sln diff --git a/Samples/Altimeter/js/Microsoft.WinJS.4.0/css/placeholder.txt b/archived/Altimeter/js/Microsoft.WinJS.4.0/css/placeholder.txt similarity index 100% rename from Samples/Altimeter/js/Microsoft.WinJS.4.0/css/placeholder.txt rename to archived/Altimeter/js/Microsoft.WinJS.4.0/css/placeholder.txt diff --git a/Samples/Altimeter/js/Microsoft.WinJS.4.0/fonts/placeholder b/archived/Altimeter/js/Microsoft.WinJS.4.0/fonts/placeholder similarity index 100% rename from Samples/Altimeter/js/Microsoft.WinJS.4.0/fonts/placeholder rename to archived/Altimeter/js/Microsoft.WinJS.4.0/fonts/placeholder diff --git a/Samples/Altimeter/js/Microsoft.WinJS.4.0/js/en-us/placeholder.txt b/archived/Altimeter/js/Microsoft.WinJS.4.0/js/en-us/placeholder.txt similarity index 100% rename from Samples/Altimeter/js/Microsoft.WinJS.4.0/js/en-us/placeholder.txt rename to archived/Altimeter/js/Microsoft.WinJS.4.0/js/en-us/placeholder.txt diff --git a/Samples/Altimeter/js/Package.appxmanifest b/archived/Altimeter/js/Package.appxmanifest similarity index 100% rename from Samples/Altimeter/js/Package.appxmanifest rename to archived/Altimeter/js/Package.appxmanifest diff --git a/Samples/Altimeter/js/css/scenario1_DataEvents.css b/archived/Altimeter/js/css/scenario1_DataEvents.css similarity index 100% rename from Samples/Altimeter/js/css/scenario1_DataEvents.css rename to archived/Altimeter/js/css/scenario1_DataEvents.css diff --git a/Samples/Altimeter/js/css/scenario2_Polling.css b/archived/Altimeter/js/css/scenario2_Polling.css similarity index 100% rename from Samples/Altimeter/js/css/scenario2_Polling.css rename to archived/Altimeter/js/css/scenario2_Polling.css diff --git a/Samples/Altimeter/js/html/scenario1_DataEvents.html b/archived/Altimeter/js/html/scenario1_DataEvents.html similarity index 100% rename from Samples/Altimeter/js/html/scenario1_DataEvents.html rename to archived/Altimeter/js/html/scenario1_DataEvents.html diff --git a/Samples/Altimeter/js/html/scenario2_Polling.html b/archived/Altimeter/js/html/scenario2_Polling.html similarity index 100% rename from Samples/Altimeter/js/html/scenario2_Polling.html rename to archived/Altimeter/js/html/scenario2_Polling.html diff --git a/Samples/Altimeter/js/js/sample-configuration.js b/archived/Altimeter/js/js/sample-configuration.js similarity index 100% rename from Samples/Altimeter/js/js/sample-configuration.js rename to archived/Altimeter/js/js/sample-configuration.js diff --git a/Samples/Altimeter/js/js/scenario1_DataEvents.js b/archived/Altimeter/js/js/scenario1_DataEvents.js similarity index 100% rename from Samples/Altimeter/js/js/scenario1_DataEvents.js rename to archived/Altimeter/js/js/scenario1_DataEvents.js diff --git a/Samples/Altimeter/js/js/scenario2_Polling.js b/archived/Altimeter/js/js/scenario2_Polling.js similarity index 100% rename from Samples/Altimeter/js/js/scenario2_Polling.js rename to archived/Altimeter/js/js/scenario2_Polling.js diff --git a/Samples/Altimeter/js/sample-utils/placeholder.txt b/archived/Altimeter/js/sample-utils/placeholder.txt similarity index 100% rename from Samples/Altimeter/js/sample-utils/placeholder.txt rename to archived/Altimeter/js/sample-utils/placeholder.txt diff --git a/Samples/AnimationLibrary/README.md b/archived/AnimationLibrary/README.md similarity index 100% rename from Samples/AnimationLibrary/README.md rename to archived/AnimationLibrary/README.md diff --git a/Samples/AnimationLibrary/js/AnimationLibrary.jsproj b/archived/AnimationLibrary/js/AnimationLibrary.jsproj similarity index 86% rename from Samples/AnimationLibrary/js/AnimationLibrary.jsproj rename to archived/AnimationLibrary/js/AnimationLibrary.jsproj index de16943d07..a888cb97ad 100644 --- a/Samples/AnimationLibrary/js/AnimationLibrary.jsproj +++ b/archived/AnimationLibrary/js/AnimationLibrary.jsproj @@ -73,7 +73,7 @@ - + default.html @@ -120,10 +120,10 @@ images\windows-sdk.png - + js\default.js - + css\default.css @@ -150,43 +150,43 @@ - + Microsoft.WinJS.4.0\css\ui-dark.css - + Microsoft.WinJS.4.0\css\ui-light.css - + Microsoft.WinJS.4.0\js\en-US\ui.strings.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense-setup.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense.js - + Microsoft.WinJS.4.0\fonts\Symbols.ttf - + Microsoft.WinJS.4.0\js\base.js - + Microsoft.WinJS.4.0\js\ui.js - + sample-utils\footer.html - + sample-utils\header.html - + sample-utils\sample-utils.js - + sample-utils\scenario-select.css - + sample-utils\scenario-select.html diff --git a/Samples/AnimationLibrary/js/AnimationLibrary.sln b/archived/AnimationLibrary/js/AnimationLibrary.sln similarity index 100% rename from Samples/AnimationLibrary/js/AnimationLibrary.sln rename to archived/AnimationLibrary/js/AnimationLibrary.sln diff --git a/Samples/AnimationLibrary/js/Microsoft.WinJS.4.0/css/placeholder.txt b/archived/AnimationLibrary/js/Microsoft.WinJS.4.0/css/placeholder.txt similarity index 100% rename from Samples/AnimationLibrary/js/Microsoft.WinJS.4.0/css/placeholder.txt rename to archived/AnimationLibrary/js/Microsoft.WinJS.4.0/css/placeholder.txt diff --git a/Samples/AnimationLibrary/js/Microsoft.WinJS.4.0/fonts/placeholder b/archived/AnimationLibrary/js/Microsoft.WinJS.4.0/fonts/placeholder similarity index 100% rename from Samples/AnimationLibrary/js/Microsoft.WinJS.4.0/fonts/placeholder rename to archived/AnimationLibrary/js/Microsoft.WinJS.4.0/fonts/placeholder diff --git a/Samples/AnimationLibrary/js/Microsoft.WinJS.4.0/js/en-us/placeholder.txt b/archived/AnimationLibrary/js/Microsoft.WinJS.4.0/js/en-us/placeholder.txt similarity index 100% rename from Samples/AnimationLibrary/js/Microsoft.WinJS.4.0/js/en-us/placeholder.txt rename to archived/AnimationLibrary/js/Microsoft.WinJS.4.0/js/en-us/placeholder.txt diff --git a/Samples/AnimationLibrary/js/Package.appxmanifest b/archived/AnimationLibrary/js/Package.appxmanifest similarity index 100% rename from Samples/AnimationLibrary/js/Package.appxmanifest rename to archived/AnimationLibrary/js/Package.appxmanifest diff --git a/Samples/AnimationLibrary/js/css/addAndDeleteFromList.css b/archived/AnimationLibrary/js/css/addAndDeleteFromList.css similarity index 100% rename from Samples/AnimationLibrary/js/css/addAndDeleteFromList.css rename to archived/AnimationLibrary/js/css/addAndDeleteFromList.css diff --git a/Samples/AnimationLibrary/js/css/crossfade.css b/archived/AnimationLibrary/js/css/crossfade.css similarity index 100% rename from Samples/AnimationLibrary/js/css/crossfade.css rename to archived/AnimationLibrary/js/css/crossfade.css diff --git a/Samples/AnimationLibrary/js/css/customAnimation.css b/archived/AnimationLibrary/js/css/customAnimation.css similarity index 100% rename from Samples/AnimationLibrary/js/css/customAnimation.css rename to archived/AnimationLibrary/js/css/customAnimation.css diff --git a/Samples/AnimationLibrary/js/css/disableAnimations.css b/archived/AnimationLibrary/js/css/disableAnimations.css similarity index 100% rename from Samples/AnimationLibrary/js/css/disableAnimations.css rename to archived/AnimationLibrary/js/css/disableAnimations.css diff --git a/Samples/AnimationLibrary/js/css/dragAndDrop.css b/archived/AnimationLibrary/js/css/dragAndDrop.css similarity index 100% rename from Samples/AnimationLibrary/js/css/dragAndDrop.css rename to archived/AnimationLibrary/js/css/dragAndDrop.css diff --git a/Samples/AnimationLibrary/js/css/dragBetween.css b/archived/AnimationLibrary/js/css/dragBetween.css similarity index 100% rename from Samples/AnimationLibrary/js/css/dragBetween.css rename to archived/AnimationLibrary/js/css/dragBetween.css diff --git a/Samples/AnimationLibrary/js/css/expandAndCollapse.css b/archived/AnimationLibrary/js/css/expandAndCollapse.css similarity index 100% rename from Samples/AnimationLibrary/js/css/expandAndCollapse.css rename to archived/AnimationLibrary/js/css/expandAndCollapse.css diff --git a/Samples/AnimationLibrary/js/css/fadeInAndOut.css b/archived/AnimationLibrary/js/css/fadeInAndOut.css similarity index 100% rename from Samples/AnimationLibrary/js/css/fadeInAndOut.css rename to archived/AnimationLibrary/js/css/fadeInAndOut.css diff --git a/Samples/AnimationLibrary/js/css/filterSearchList.css b/archived/AnimationLibrary/js/css/filterSearchList.css similarity index 100% rename from Samples/AnimationLibrary/js/css/filterSearchList.css rename to archived/AnimationLibrary/js/css/filterSearchList.css diff --git a/Samples/AnimationLibrary/js/css/pointerFeedback.css b/archived/AnimationLibrary/js/css/pointerFeedback.css similarity index 100% rename from Samples/AnimationLibrary/js/css/pointerFeedback.css rename to archived/AnimationLibrary/js/css/pointerFeedback.css diff --git a/Samples/AnimationLibrary/js/css/reposition.css b/archived/AnimationLibrary/js/css/reposition.css similarity index 100% rename from Samples/AnimationLibrary/js/css/reposition.css rename to archived/AnimationLibrary/js/css/reposition.css diff --git a/Samples/AnimationLibrary/js/css/samplePage.css b/archived/AnimationLibrary/js/css/samplePage.css similarity index 100% rename from Samples/AnimationLibrary/js/css/samplePage.css rename to archived/AnimationLibrary/js/css/samplePage.css diff --git a/Samples/AnimationLibrary/js/css/showEdgeUI.css b/archived/AnimationLibrary/js/css/showEdgeUI.css similarity index 100% rename from Samples/AnimationLibrary/js/css/showEdgeUI.css rename to archived/AnimationLibrary/js/css/showEdgeUI.css diff --git a/Samples/AnimationLibrary/js/css/showPanel.css b/archived/AnimationLibrary/js/css/showPanel.css similarity index 100% rename from Samples/AnimationLibrary/js/css/showPanel.css rename to archived/AnimationLibrary/js/css/showPanel.css diff --git a/Samples/AnimationLibrary/js/css/showPopupUI.css b/archived/AnimationLibrary/js/css/showPopupUI.css similarity index 100% rename from Samples/AnimationLibrary/js/css/showPopupUI.css rename to archived/AnimationLibrary/js/css/showPopupUI.css diff --git a/Samples/AnimationLibrary/js/css/swipeReveal.css b/archived/AnimationLibrary/js/css/swipeReveal.css similarity index 100% rename from Samples/AnimationLibrary/js/css/swipeReveal.css rename to archived/AnimationLibrary/js/css/swipeReveal.css diff --git a/Samples/AnimationLibrary/js/css/swipeSelection.css b/archived/AnimationLibrary/js/css/swipeSelection.css similarity index 100% rename from Samples/AnimationLibrary/js/css/swipeSelection.css rename to archived/AnimationLibrary/js/css/swipeSelection.css diff --git a/Samples/AnimationLibrary/js/css/updateBadge.css b/archived/AnimationLibrary/js/css/updateBadge.css similarity index 100% rename from Samples/AnimationLibrary/js/css/updateBadge.css rename to archived/AnimationLibrary/js/css/updateBadge.css diff --git a/Samples/AnimationLibrary/js/css/updateTile.css b/archived/AnimationLibrary/js/css/updateTile.css similarity index 100% rename from Samples/AnimationLibrary/js/css/updateTile.css rename to archived/AnimationLibrary/js/css/updateTile.css diff --git a/Samples/AnimationLibrary/js/html/addAndDeleteFromList.html b/archived/AnimationLibrary/js/html/addAndDeleteFromList.html similarity index 100% rename from Samples/AnimationLibrary/js/html/addAndDeleteFromList.html rename to archived/AnimationLibrary/js/html/addAndDeleteFromList.html diff --git a/Samples/AnimationLibrary/js/html/crossfade.html b/archived/AnimationLibrary/js/html/crossfade.html similarity index 100% rename from Samples/AnimationLibrary/js/html/crossfade.html rename to archived/AnimationLibrary/js/html/crossfade.html diff --git a/Samples/AnimationLibrary/js/html/customAnimation.html b/archived/AnimationLibrary/js/html/customAnimation.html similarity index 100% rename from Samples/AnimationLibrary/js/html/customAnimation.html rename to archived/AnimationLibrary/js/html/customAnimation.html diff --git a/Samples/AnimationLibrary/js/html/disableAnimations.html b/archived/AnimationLibrary/js/html/disableAnimations.html similarity index 100% rename from Samples/AnimationLibrary/js/html/disableAnimations.html rename to archived/AnimationLibrary/js/html/disableAnimations.html diff --git a/Samples/AnimationLibrary/js/html/dragAndDrop.html b/archived/AnimationLibrary/js/html/dragAndDrop.html similarity index 100% rename from Samples/AnimationLibrary/js/html/dragAndDrop.html rename to archived/AnimationLibrary/js/html/dragAndDrop.html diff --git a/Samples/AnimationLibrary/js/html/dragBetween.html b/archived/AnimationLibrary/js/html/dragBetween.html similarity index 100% rename from Samples/AnimationLibrary/js/html/dragBetween.html rename to archived/AnimationLibrary/js/html/dragBetween.html diff --git a/Samples/AnimationLibrary/js/html/enterContent.html b/archived/AnimationLibrary/js/html/enterContent.html similarity index 100% rename from Samples/AnimationLibrary/js/html/enterContent.html rename to archived/AnimationLibrary/js/html/enterContent.html diff --git a/Samples/AnimationLibrary/js/html/enterPage.html b/archived/AnimationLibrary/js/html/enterPage.html similarity index 100% rename from Samples/AnimationLibrary/js/html/enterPage.html rename to archived/AnimationLibrary/js/html/enterPage.html diff --git a/Samples/AnimationLibrary/js/html/expandAndCollapse.html b/archived/AnimationLibrary/js/html/expandAndCollapse.html similarity index 100% rename from Samples/AnimationLibrary/js/html/expandAndCollapse.html rename to archived/AnimationLibrary/js/html/expandAndCollapse.html diff --git a/Samples/AnimationLibrary/js/html/fadeInAndOut.html b/archived/AnimationLibrary/js/html/fadeInAndOut.html similarity index 100% rename from Samples/AnimationLibrary/js/html/fadeInAndOut.html rename to archived/AnimationLibrary/js/html/fadeInAndOut.html diff --git a/Samples/AnimationLibrary/js/html/filterSearchList.html b/archived/AnimationLibrary/js/html/filterSearchList.html similarity index 100% rename from Samples/AnimationLibrary/js/html/filterSearchList.html rename to archived/AnimationLibrary/js/html/filterSearchList.html diff --git a/Samples/AnimationLibrary/js/html/pointerFeedback.html b/archived/AnimationLibrary/js/html/pointerFeedback.html similarity index 100% rename from Samples/AnimationLibrary/js/html/pointerFeedback.html rename to archived/AnimationLibrary/js/html/pointerFeedback.html diff --git a/Samples/AnimationLibrary/js/html/reposition.html b/archived/AnimationLibrary/js/html/reposition.html similarity index 100% rename from Samples/AnimationLibrary/js/html/reposition.html rename to archived/AnimationLibrary/js/html/reposition.html diff --git a/Samples/AnimationLibrary/js/html/samplePage.html b/archived/AnimationLibrary/js/html/samplePage.html similarity index 100% rename from Samples/AnimationLibrary/js/html/samplePage.html rename to archived/AnimationLibrary/js/html/samplePage.html diff --git a/Samples/AnimationLibrary/js/html/showEdgeUI.html b/archived/AnimationLibrary/js/html/showEdgeUI.html similarity index 100% rename from Samples/AnimationLibrary/js/html/showEdgeUI.html rename to archived/AnimationLibrary/js/html/showEdgeUI.html diff --git a/Samples/AnimationLibrary/js/html/showPanel.html b/archived/AnimationLibrary/js/html/showPanel.html similarity index 100% rename from Samples/AnimationLibrary/js/html/showPanel.html rename to archived/AnimationLibrary/js/html/showPanel.html diff --git a/Samples/AnimationLibrary/js/html/showPopupUI.html b/archived/AnimationLibrary/js/html/showPopupUI.html similarity index 100% rename from Samples/AnimationLibrary/js/html/showPopupUI.html rename to archived/AnimationLibrary/js/html/showPopupUI.html diff --git a/Samples/AnimationLibrary/js/html/swipeReveal.html b/archived/AnimationLibrary/js/html/swipeReveal.html similarity index 100% rename from Samples/AnimationLibrary/js/html/swipeReveal.html rename to archived/AnimationLibrary/js/html/swipeReveal.html diff --git a/Samples/AnimationLibrary/js/html/swipeSelection.html b/archived/AnimationLibrary/js/html/swipeSelection.html similarity index 100% rename from Samples/AnimationLibrary/js/html/swipeSelection.html rename to archived/AnimationLibrary/js/html/swipeSelection.html diff --git a/Samples/AnimationLibrary/js/html/transitionContents.html b/archived/AnimationLibrary/js/html/transitionContents.html similarity index 100% rename from Samples/AnimationLibrary/js/html/transitionContents.html rename to archived/AnimationLibrary/js/html/transitionContents.html diff --git a/Samples/AnimationLibrary/js/html/transitionPages.html b/archived/AnimationLibrary/js/html/transitionPages.html similarity index 100% rename from Samples/AnimationLibrary/js/html/transitionPages.html rename to archived/AnimationLibrary/js/html/transitionPages.html diff --git a/Samples/AnimationLibrary/js/html/updateBadge.html b/archived/AnimationLibrary/js/html/updateBadge.html similarity index 100% rename from Samples/AnimationLibrary/js/html/updateBadge.html rename to archived/AnimationLibrary/js/html/updateBadge.html diff --git a/Samples/AnimationLibrary/js/html/updateTile.html b/archived/AnimationLibrary/js/html/updateTile.html similarity index 100% rename from Samples/AnimationLibrary/js/html/updateTile.html rename to archived/AnimationLibrary/js/html/updateTile.html diff --git a/Samples/AnimationLibrary/js/images/placeholder.txt b/archived/AnimationLibrary/js/images/placeholder.txt similarity index 100% rename from Samples/AnimationLibrary/js/images/placeholder.txt rename to archived/AnimationLibrary/js/images/placeholder.txt diff --git a/Samples/AnimationLibrary/js/js/addAndDeleteFromList.js b/archived/AnimationLibrary/js/js/addAndDeleteFromList.js similarity index 100% rename from Samples/AnimationLibrary/js/js/addAndDeleteFromList.js rename to archived/AnimationLibrary/js/js/addAndDeleteFromList.js diff --git a/Samples/AnimationLibrary/js/js/crossfade.js b/archived/AnimationLibrary/js/js/crossfade.js similarity index 100% rename from Samples/AnimationLibrary/js/js/crossfade.js rename to archived/AnimationLibrary/js/js/crossfade.js diff --git a/Samples/AnimationLibrary/js/js/customAnimation.js b/archived/AnimationLibrary/js/js/customAnimation.js similarity index 100% rename from Samples/AnimationLibrary/js/js/customAnimation.js rename to archived/AnimationLibrary/js/js/customAnimation.js diff --git a/Samples/AnimationLibrary/js/js/disableAnimations.js b/archived/AnimationLibrary/js/js/disableAnimations.js similarity index 100% rename from Samples/AnimationLibrary/js/js/disableAnimations.js rename to archived/AnimationLibrary/js/js/disableAnimations.js diff --git a/Samples/AnimationLibrary/js/js/dragAndDrop.js b/archived/AnimationLibrary/js/js/dragAndDrop.js similarity index 100% rename from Samples/AnimationLibrary/js/js/dragAndDrop.js rename to archived/AnimationLibrary/js/js/dragAndDrop.js diff --git a/Samples/AnimationLibrary/js/js/dragBetween.js b/archived/AnimationLibrary/js/js/dragBetween.js similarity index 100% rename from Samples/AnimationLibrary/js/js/dragBetween.js rename to archived/AnimationLibrary/js/js/dragBetween.js diff --git a/Samples/AnimationLibrary/js/js/enterContent.js b/archived/AnimationLibrary/js/js/enterContent.js similarity index 100% rename from Samples/AnimationLibrary/js/js/enterContent.js rename to archived/AnimationLibrary/js/js/enterContent.js diff --git a/Samples/AnimationLibrary/js/js/enterPage.js b/archived/AnimationLibrary/js/js/enterPage.js similarity index 100% rename from Samples/AnimationLibrary/js/js/enterPage.js rename to archived/AnimationLibrary/js/js/enterPage.js diff --git a/Samples/AnimationLibrary/js/js/expandAndCollapse.js b/archived/AnimationLibrary/js/js/expandAndCollapse.js similarity index 100% rename from Samples/AnimationLibrary/js/js/expandAndCollapse.js rename to archived/AnimationLibrary/js/js/expandAndCollapse.js diff --git a/Samples/AnimationLibrary/js/js/fadeInAndOut.js b/archived/AnimationLibrary/js/js/fadeInAndOut.js similarity index 100% rename from Samples/AnimationLibrary/js/js/fadeInAndOut.js rename to archived/AnimationLibrary/js/js/fadeInAndOut.js diff --git a/Samples/AnimationLibrary/js/js/filterSearchList.js b/archived/AnimationLibrary/js/js/filterSearchList.js similarity index 100% rename from Samples/AnimationLibrary/js/js/filterSearchList.js rename to archived/AnimationLibrary/js/js/filterSearchList.js diff --git a/Samples/AnimationLibrary/js/js/pointerFeedback.js b/archived/AnimationLibrary/js/js/pointerFeedback.js similarity index 100% rename from Samples/AnimationLibrary/js/js/pointerFeedback.js rename to archived/AnimationLibrary/js/js/pointerFeedback.js diff --git a/Samples/AnimationLibrary/js/js/reposition.js b/archived/AnimationLibrary/js/js/reposition.js similarity index 100% rename from Samples/AnimationLibrary/js/js/reposition.js rename to archived/AnimationLibrary/js/js/reposition.js diff --git a/Samples/AnimationLibrary/js/js/sample-configuration.js b/archived/AnimationLibrary/js/js/sample-configuration.js similarity index 100% rename from Samples/AnimationLibrary/js/js/sample-configuration.js rename to archived/AnimationLibrary/js/js/sample-configuration.js diff --git a/Samples/AnimationLibrary/js/js/samplePage.js b/archived/AnimationLibrary/js/js/samplePage.js similarity index 100% rename from Samples/AnimationLibrary/js/js/samplePage.js rename to archived/AnimationLibrary/js/js/samplePage.js diff --git a/Samples/AnimationLibrary/js/js/showEdgeUI.js b/archived/AnimationLibrary/js/js/showEdgeUI.js similarity index 100% rename from Samples/AnimationLibrary/js/js/showEdgeUI.js rename to archived/AnimationLibrary/js/js/showEdgeUI.js diff --git a/Samples/AnimationLibrary/js/js/showPanel.js b/archived/AnimationLibrary/js/js/showPanel.js similarity index 100% rename from Samples/AnimationLibrary/js/js/showPanel.js rename to archived/AnimationLibrary/js/js/showPanel.js diff --git a/Samples/AnimationLibrary/js/js/showPopupUI.js b/archived/AnimationLibrary/js/js/showPopupUI.js similarity index 100% rename from Samples/AnimationLibrary/js/js/showPopupUI.js rename to archived/AnimationLibrary/js/js/showPopupUI.js diff --git a/Samples/AnimationLibrary/js/js/swipeReveal.js b/archived/AnimationLibrary/js/js/swipeReveal.js similarity index 100% rename from Samples/AnimationLibrary/js/js/swipeReveal.js rename to archived/AnimationLibrary/js/js/swipeReveal.js diff --git a/Samples/AnimationLibrary/js/js/swipeSelection.js b/archived/AnimationLibrary/js/js/swipeSelection.js similarity index 100% rename from Samples/AnimationLibrary/js/js/swipeSelection.js rename to archived/AnimationLibrary/js/js/swipeSelection.js diff --git a/Samples/AnimationLibrary/js/js/transitionContents.js b/archived/AnimationLibrary/js/js/transitionContents.js similarity index 100% rename from Samples/AnimationLibrary/js/js/transitionContents.js rename to archived/AnimationLibrary/js/js/transitionContents.js diff --git a/Samples/AnimationLibrary/js/js/transitionPages.js b/archived/AnimationLibrary/js/js/transitionPages.js similarity index 100% rename from Samples/AnimationLibrary/js/js/transitionPages.js rename to archived/AnimationLibrary/js/js/transitionPages.js diff --git a/Samples/AnimationLibrary/js/js/updateBadge.js b/archived/AnimationLibrary/js/js/updateBadge.js similarity index 100% rename from Samples/AnimationLibrary/js/js/updateBadge.js rename to archived/AnimationLibrary/js/js/updateBadge.js diff --git a/Samples/AnimationLibrary/js/js/updateTile.js b/archived/AnimationLibrary/js/js/updateTile.js similarity index 100% rename from Samples/AnimationLibrary/js/js/updateTile.js rename to archived/AnimationLibrary/js/js/updateTile.js diff --git a/Samples/AnimationLibrary/js/sample-utils/placeholder.txt b/archived/AnimationLibrary/js/sample-utils/placeholder.txt similarity index 100% rename from Samples/AnimationLibrary/js/sample-utils/placeholder.txt rename to archived/AnimationLibrary/js/sample-utils/placeholder.txt diff --git a/archived/AnimationMetrics/README.md b/archived/AnimationMetrics/README.md new file mode 100644 index 0000000000..a3aaa3665e --- /dev/null +++ b/archived/AnimationMetrics/README.md @@ -0,0 +1,75 @@ +--- +topic: sample +languages: +- js +products: +- windows +- windows-uwp +--- + +# Animation metrics sample + +Shows how to use the Animation Metrics APIs ([Windows.UI.Core.AnimationMetrics](http://msdn.microsoft.com/library/windows/apps/br241916)) +to access the raw parameters that define the animations in the Windows [Animation Library](http://msdn.microsoft.com/library/windows/apps/hh465165). +This info can help developers of applications and application frameworks to create animations that are consistent with Windows and other +apps that use the Windows Animation Library. + +> **Note:** This sample is part of a large collection of UWP feature samples. +> If you are unfamiliar with Git and GitHub, you can download the entire collection as a +> [ZIP file](https://github.com/Microsoft/Windows-universal-samples/archive/master.zip), but be +> sure to unzip everything to access shared dependencies. For more info on working with the ZIP file, +> the samples collection, and GitHub, see [Get the UWP samples from GitHub](https://aka.ms/ovu2uq). +> For more samples, see the [Samples portal](https://aka.ms/winsamples) on the Windows Dev Center. + +The sample shows the metrics involved in the following scenarios: + +- Adding an item to a list +- Bringing a new page on the screen + +**Note** The Universal Windows app samples require Visual Studio 2017 to build and Windows 10 to execute. + +To obtain information about Windows 10 development, go to the [Windows Dev Center](http://go.microsoft.com/fwlink/?LinkID=532421) + +To obtain information about Microsoft Visual Studio and the tools for developing Windows apps, go to [Visual Studio](http://go.microsoft.com/fwlink/?LinkID=532422) + +## Related topics + +### Samples + +[AnimationLibrary](/Samples/AnimationLibrary) + +### Reference + +[AnimationMetrics namespace](https://msdn.microsoft.com/library/windows/apps/windows.ui.core.animationmetrics.aspx) + +## System requirements + +**Client:** Windows 10 + +**Server:** Windows Server 2016 Technical Preview + +**Phone:** Not supported + +## Build the sample + +1. If you download the samples ZIP, be sure to unzip the entire archive, not just the folder with the sample you want to build. +2. Start Microsoft Visual Studio 2017 and select **File** \> **Open** \> **Project/Solution**. +3. Starting in the folder where you unzipped the samples, go to the Samples subfolder, then the subfolder for this specific sample, then the subfolder for your preferred language (C++, C#, or JavaScript). Double-click the Visual Studio Solution (.sln) file. +4. Press Ctrl+Shift+B, or select **Build** \> **Build Solution**. + +## Run the sample + +The next steps depend on whether you just want to deploy the sample or you want to both deploy and run it. + +### Deploying the sample + +- Select Build > Deploy Solution. + +### Deploying and running the sample + +- To debug the sample and then run it, press F5 or select Debug > Start Debugging. To run the sample without debugging, press Ctrl+F5 or select Debug > Start Without Debugging. + +## How to use the sample + +The sample provides three situations for which you retrieve the raw parameters that define the animations: the item being added in an AddToList animation, the item being affected in an AddToList animation, and a page of content being brought onto the screen with EnterPage. None of these animations themselves are shown; instead, the parameters are retrieved and displayed. + diff --git a/Samples/AnimationMetrics/js/AnimationMetrics.jsproj b/archived/AnimationMetrics/js/AnimationMetrics.jsproj similarity index 80% rename from Samples/AnimationMetrics/js/AnimationMetrics.jsproj rename to archived/AnimationMetrics/js/AnimationMetrics.jsproj index 1fe9801a1f..c5d9eae3df 100644 --- a/Samples/AnimationMetrics/js/AnimationMetrics.jsproj +++ b/archived/AnimationMetrics/js/AnimationMetrics.jsproj @@ -54,7 +54,7 @@ Designer - + default.html @@ -79,51 +79,51 @@ images\windows-sdk.png - + js\default.js - + css\default.css - + Microsoft.WinJS.4.0\css\ui-dark.css - + Microsoft.WinJS.4.0\css\ui-light.css - + Microsoft.WinJS.4.0\js\en-US\ui.strings.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense-setup.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense.js - + Microsoft.WinJS.4.0\fonts\Symbols.ttf - + Microsoft.WinJS.4.0\js\base.js - + Microsoft.WinJS.4.0\js\ui.js - + sample-utils\footer.html - + sample-utils\header.html - + sample-utils\sample-utils.js - + sample-utils\scenario-select.css - + sample-utils\scenario-select.html diff --git a/Samples/AnimationMetrics/js/AnimationMetrics.sln b/archived/AnimationMetrics/js/AnimationMetrics.sln similarity index 100% rename from Samples/AnimationMetrics/js/AnimationMetrics.sln rename to archived/AnimationMetrics/js/AnimationMetrics.sln diff --git a/Samples/AnimationMetrics/js/Microsoft.WinJS.4.0/css/placeholder.txt b/archived/AnimationMetrics/js/Microsoft.WinJS.4.0/css/placeholder.txt similarity index 100% rename from Samples/AnimationMetrics/js/Microsoft.WinJS.4.0/css/placeholder.txt rename to archived/AnimationMetrics/js/Microsoft.WinJS.4.0/css/placeholder.txt diff --git a/Samples/AnimationMetrics/js/Microsoft.WinJS.4.0/fonts/placeholder b/archived/AnimationMetrics/js/Microsoft.WinJS.4.0/fonts/placeholder similarity index 100% rename from Samples/AnimationMetrics/js/Microsoft.WinJS.4.0/fonts/placeholder rename to archived/AnimationMetrics/js/Microsoft.WinJS.4.0/fonts/placeholder diff --git a/Samples/AnimationMetrics/js/Microsoft.WinJS.4.0/js/en-us/placeholder.txt b/archived/AnimationMetrics/js/Microsoft.WinJS.4.0/js/en-us/placeholder.txt similarity index 100% rename from Samples/AnimationMetrics/js/Microsoft.WinJS.4.0/js/en-us/placeholder.txt rename to archived/AnimationMetrics/js/Microsoft.WinJS.4.0/js/en-us/placeholder.txt diff --git a/Samples/AnimationMetrics/js/Package.appxmanifest b/archived/AnimationMetrics/js/Package.appxmanifest similarity index 100% rename from Samples/AnimationMetrics/js/Package.appxmanifest rename to archived/AnimationMetrics/js/Package.appxmanifest diff --git a/Samples/AnimationMetrics/js/css/placeholder.txt b/archived/AnimationMetrics/js/css/placeholder.txt similarity index 100% rename from Samples/AnimationMetrics/js/css/placeholder.txt rename to archived/AnimationMetrics/js/css/placeholder.txt diff --git a/Samples/AnimationMetrics/js/html/scenario1-metrics.html b/archived/AnimationMetrics/js/html/scenario1-metrics.html similarity index 100% rename from Samples/AnimationMetrics/js/html/scenario1-metrics.html rename to archived/AnimationMetrics/js/html/scenario1-metrics.html diff --git a/Samples/AnimationMetrics/js/images/placeholder.txt b/archived/AnimationMetrics/js/images/placeholder.txt similarity index 100% rename from Samples/AnimationMetrics/js/images/placeholder.txt rename to archived/AnimationMetrics/js/images/placeholder.txt diff --git a/Samples/AnimationMetrics/js/js/sample-configuration.js b/archived/AnimationMetrics/js/js/sample-configuration.js similarity index 100% rename from Samples/AnimationMetrics/js/js/sample-configuration.js rename to archived/AnimationMetrics/js/js/sample-configuration.js diff --git a/Samples/AnimationMetrics/js/js/scenario1-metrics.js b/archived/AnimationMetrics/js/js/scenario1-metrics.js similarity index 100% rename from Samples/AnimationMetrics/js/js/scenario1-metrics.js rename to archived/AnimationMetrics/js/js/scenario1-metrics.js diff --git a/Samples/AnimationMetrics/js/sample-utils/placeholder.txt b/archived/AnimationMetrics/js/sample-utils/placeholder.txt similarity index 100% rename from Samples/AnimationMetrics/js/sample-utils/placeholder.txt rename to archived/AnimationMetrics/js/sample-utils/placeholder.txt diff --git a/archived/ApplicationResources/README.md b/archived/ApplicationResources/README.md new file mode 100644 index 0000000000..bed03e3dcb --- /dev/null +++ b/archived/ApplicationResources/README.md @@ -0,0 +1,71 @@ +--- +topic: sample +languages: +- js +products: +- windows +- windows-uwp +--- + +# Application resources and localization sample + +Shows how to use application resources to separate localizable content from app code. + +> **Note:** This sample is part of a large collection of UWP feature samples. +> If you are unfamiliar with Git and GitHub, you can download the entire collection as a +> [ZIP file](https://github.com/Microsoft/Windows-universal-samples/archive/master.zip), but be +> sure to unzip everything to access shared dependencies. For more info on working with the ZIP file, +> the samples collection, and GitHub, see [Get the UWP samples from GitHub](https://aka.ms/ovu2uq). +> For more samples, see the [Samples portal](https://aka.ms/winsamples) on the Windows Dev Center. + +The sample uses the [Windows.ApplicationModel.Resources.Core](http://msdn.microsoft.com/library/windows/apps/br225039) and +[Windows.Globalization](http://msdn.microsoft.com/library/windows/apps/br206813) namespaces, and [WinJS.Resources](http://msdn.microsoft.com/library/windows/apps/br229779). + +We encourage you to separate your resources, such as strings and files, from your app code, so you can maintain and alter your resources independently. You can use [Application Resources](http://msdn.microsoft.com/library/windows/apps/br225039) APIs to tailor your apps to a variety of device, system, and user configurations. Resources enable apps to be localized into multiple languages, customized for various device DPIs and form factors, and tailored for specific types of users. + +**Note** The Windows universal samples require Visual Studio 2017 to build and Windows 10 to execute. + +To obtain information about Windows 10 development, go to the [Windows Dev Center](http://go.microsoft.com/fwlink/?LinkID=532421) + +To obtain information about Microsoft Visual Studio and the tools for developing Windows apps, go to [Visual Studio](http://go.microsoft.com/fwlink/?LinkID=532422) + +## Related topics + +[Creating and retrieving resources in Windows apps](http://go.microsoft.com/fwlink/p/?linkid=251463) +[ResourceLoader class](http://msdn.microsoft.com/library/windows/apps/br206014) +[ResourceManager class](http://msdn.microsoft.com/library/windows/apps/br206078) +[Windows.ApplicationModel.Resources.Core namespace](http://msdn.microsoft.com/library/windows/apps/br225039) +[Windows.Globalization namespace](http://msdn.microsoft.com/library/windows/apps/br206813) +[Windows 8 app samples](http://go.microsoft.com/fwlink/p/?LinkID=227694) +[WinJS.Resources namespace](http://msdn.microsoft.com/library/windows/apps/br229779) + +## System requirements + +**Client:** Windows 10 + +**Server:** Windows Server 2016 Technical Preview + +**Phone:** Windows 10 + +## Build the sample + +1. If you download the samples ZIP, be sure to unzip the entire archive, not just the folder with the sample you want to build. +2. Start Microsoft Visual Studio 2017 and select **File** \> **Open** \> **Project/Solution**. +3. Starting in the folder where you unzipped the samples, go to the Samples subfolder, then the subfolder for this specific sample, then the subfolder for your preferred language (C++, C#, or JavaScript). Double-click the Visual Studio Solution (.sln) file. +4. Press Ctrl+Shift+B, or select **Build** \> **Build Solution**. + +## Run the sample + +The next steps depend on whether you just want to deploy the sample or you want to both deploy and run it. + +### Deploying the sample + +- Select Build > Deploy Solution. + +### Deploying and running the sample + +- To debug the sample and then run it, press F5 or select Debug > Start Debugging. To run the sample without debugging, press Ctrl+F5 or select Debug > Start Without Debugging. + + +To debug the app and then run it, press F5 or use **Debug** \> **Start Debugging**. To run the app without debugging, press Ctrl+F5 or use **Debug** \> **Start Without Debugging**. + diff --git a/Samples/ApplicationResources/js/ApplicationResources.jsproj b/archived/ApplicationResources/js/ApplicationResources.jsproj similarity index 92% rename from Samples/ApplicationResources/js/ApplicationResources.jsproj rename to archived/ApplicationResources/js/ApplicationResources.jsproj index d2280b7e6c..f000608cfc 100644 --- a/Samples/ApplicationResources/js/ApplicationResources.jsproj +++ b/archived/ApplicationResources/js/ApplicationResources.jsproj @@ -54,12 +54,12 @@ Designer - + css\default.css - + default.html @@ -246,7 +246,7 @@ images\windows-sdk.png - + js\default.js @@ -259,43 +259,43 @@ - + Microsoft.WinJS.4.0\css\ui-dark.css - + Microsoft.WinJS.4.0\css\ui-light.css - + Microsoft.WinJS.4.0\fonts\Symbols.ttf - + Microsoft.WinJS.4.0\js\en-US\ui.strings.js - + Microsoft.WinJS.4.0\js\base.js - + Microsoft.WinJS.4.0\js\ui.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense-setup.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense.js - + sample-utils\footer.html - + sample-utils\header.html - + sample-utils\sample-utils.js - + sample-utils\scenario-select.css - + sample-utils\scenario-select.html diff --git a/Samples/ApplicationResources/js/ApplicationResources.sln b/archived/ApplicationResources/js/ApplicationResources.sln similarity index 100% rename from Samples/ApplicationResources/js/ApplicationResources.sln rename to archived/ApplicationResources/js/ApplicationResources.sln diff --git a/Samples/ApplicationResources/js/Microsoft.WinJS.4.0/css/placeholder.txt b/archived/ApplicationResources/js/Microsoft.WinJS.4.0/css/placeholder.txt similarity index 100% rename from Samples/ApplicationResources/js/Microsoft.WinJS.4.0/css/placeholder.txt rename to archived/ApplicationResources/js/Microsoft.WinJS.4.0/css/placeholder.txt diff --git a/Samples/ApplicationResources/js/Microsoft.WinJS.4.0/fonts/placeholder.txt b/archived/ApplicationResources/js/Microsoft.WinJS.4.0/fonts/placeholder.txt similarity index 100% rename from Samples/ApplicationResources/js/Microsoft.WinJS.4.0/fonts/placeholder.txt rename to archived/ApplicationResources/js/Microsoft.WinJS.4.0/fonts/placeholder.txt diff --git a/Samples/ApplicationResources/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt b/archived/ApplicationResources/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt similarity index 100% rename from Samples/ApplicationResources/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt rename to archived/ApplicationResources/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt diff --git a/Samples/ApplicationResources/js/css/scenario1.css b/archived/ApplicationResources/js/css/scenario1.css similarity index 100% rename from Samples/ApplicationResources/js/css/scenario1.css rename to archived/ApplicationResources/js/css/scenario1.css diff --git a/Samples/ApplicationResources/js/css/scenario13.css b/archived/ApplicationResources/js/css/scenario13.css similarity index 100% rename from Samples/ApplicationResources/js/css/scenario13.css rename to archived/ApplicationResources/js/css/scenario13.css diff --git a/Samples/ApplicationResources/js/css/scenario6.css b/archived/ApplicationResources/js/css/scenario6.css similarity index 100% rename from Samples/ApplicationResources/js/css/scenario6.css rename to archived/ApplicationResources/js/css/scenario6.css diff --git a/Samples/ApplicationResources/js/html/scenario1.html b/archived/ApplicationResources/js/html/scenario1.html similarity index 100% rename from Samples/ApplicationResources/js/html/scenario1.html rename to archived/ApplicationResources/js/html/scenario1.html diff --git a/Samples/ApplicationResources/js/html/scenario11.html b/archived/ApplicationResources/js/html/scenario11.html similarity index 100% rename from Samples/ApplicationResources/js/html/scenario11.html rename to archived/ApplicationResources/js/html/scenario11.html diff --git a/Samples/ApplicationResources/js/html/scenario12.html b/archived/ApplicationResources/js/html/scenario12.html similarity index 100% rename from Samples/ApplicationResources/js/html/scenario12.html rename to archived/ApplicationResources/js/html/scenario12.html diff --git a/Samples/ApplicationResources/js/html/scenario13.html b/archived/ApplicationResources/js/html/scenario13.html similarity index 100% rename from Samples/ApplicationResources/js/html/scenario13.html rename to archived/ApplicationResources/js/html/scenario13.html diff --git a/Samples/ApplicationResources/js/html/scenario2.html b/archived/ApplicationResources/js/html/scenario2.html similarity index 100% rename from Samples/ApplicationResources/js/html/scenario2.html rename to archived/ApplicationResources/js/html/scenario2.html diff --git a/Samples/ApplicationResources/js/html/scenario3.html b/archived/ApplicationResources/js/html/scenario3.html similarity index 100% rename from Samples/ApplicationResources/js/html/scenario3.html rename to archived/ApplicationResources/js/html/scenario3.html diff --git a/Samples/ApplicationResources/js/html/scenario4.html b/archived/ApplicationResources/js/html/scenario4.html similarity index 100% rename from Samples/ApplicationResources/js/html/scenario4.html rename to archived/ApplicationResources/js/html/scenario4.html diff --git a/Samples/ApplicationResources/js/html/scenario5.html b/archived/ApplicationResources/js/html/scenario5.html similarity index 100% rename from Samples/ApplicationResources/js/html/scenario5.html rename to archived/ApplicationResources/js/html/scenario5.html diff --git a/Samples/ApplicationResources/js/html/scenario6.html b/archived/ApplicationResources/js/html/scenario6.html similarity index 100% rename from Samples/ApplicationResources/js/html/scenario6.html rename to archived/ApplicationResources/js/html/scenario6.html diff --git a/Samples/ApplicationResources/js/html/scenario7.html b/archived/ApplicationResources/js/html/scenario7.html similarity index 100% rename from Samples/ApplicationResources/js/html/scenario7.html rename to archived/ApplicationResources/js/html/scenario7.html diff --git a/Samples/ApplicationResources/js/html/scenario8.html b/archived/ApplicationResources/js/html/scenario8.html similarity index 100% rename from Samples/ApplicationResources/js/html/scenario8.html rename to archived/ApplicationResources/js/html/scenario8.html diff --git a/Samples/ApplicationResources/js/html/webcompartment.html b/archived/ApplicationResources/js/html/webcompartment.html similarity index 100% rename from Samples/ApplicationResources/js/html/webcompartment.html rename to archived/ApplicationResources/js/html/webcompartment.html diff --git a/Samples/ApplicationResources/js/images/de-DE/projector.scale-100_contrast-black.png b/archived/ApplicationResources/js/images/de-DE/projector.scale-100_contrast-black.png similarity index 100% rename from Samples/ApplicationResources/js/images/de-DE/projector.scale-100_contrast-black.png rename to archived/ApplicationResources/js/images/de-DE/projector.scale-100_contrast-black.png diff --git a/Samples/ApplicationResources/js/images/de-DE/projector.scale-100_contrast-standard.png b/archived/ApplicationResources/js/images/de-DE/projector.scale-100_contrast-standard.png similarity index 100% rename from Samples/ApplicationResources/js/images/de-DE/projector.scale-100_contrast-standard.png rename to archived/ApplicationResources/js/images/de-DE/projector.scale-100_contrast-standard.png diff --git a/Samples/ApplicationResources/js/images/de-DE/projector.scale-100_contrast-white.png b/archived/ApplicationResources/js/images/de-DE/projector.scale-100_contrast-white.png similarity index 100% rename from Samples/ApplicationResources/js/images/de-DE/projector.scale-100_contrast-white.png rename to archived/ApplicationResources/js/images/de-DE/projector.scale-100_contrast-white.png diff --git a/Samples/ApplicationResources/js/images/de-DE/projector.scale-140_contrast-black.png b/archived/ApplicationResources/js/images/de-DE/projector.scale-140_contrast-black.png similarity index 100% rename from Samples/ApplicationResources/js/images/de-DE/projector.scale-140_contrast-black.png rename to archived/ApplicationResources/js/images/de-DE/projector.scale-140_contrast-black.png diff --git a/Samples/ApplicationResources/js/images/de-DE/projector.scale-140_contrast-standard.png b/archived/ApplicationResources/js/images/de-DE/projector.scale-140_contrast-standard.png similarity index 100% rename from Samples/ApplicationResources/js/images/de-DE/projector.scale-140_contrast-standard.png rename to archived/ApplicationResources/js/images/de-DE/projector.scale-140_contrast-standard.png diff --git a/Samples/ApplicationResources/js/images/de-DE/projector.scale-140_contrast-white.png b/archived/ApplicationResources/js/images/de-DE/projector.scale-140_contrast-white.png similarity index 100% rename from Samples/ApplicationResources/js/images/de-DE/projector.scale-140_contrast-white.png rename to archived/ApplicationResources/js/images/de-DE/projector.scale-140_contrast-white.png diff --git a/Samples/ApplicationResources/js/images/de-DE/projector.scale-180_contrast-black.png b/archived/ApplicationResources/js/images/de-DE/projector.scale-180_contrast-black.png similarity index 100% rename from Samples/ApplicationResources/js/images/de-DE/projector.scale-180_contrast-black.png rename to archived/ApplicationResources/js/images/de-DE/projector.scale-180_contrast-black.png diff --git a/Samples/ApplicationResources/js/images/de-DE/projector.scale-180_contrast-standard.png b/archived/ApplicationResources/js/images/de-DE/projector.scale-180_contrast-standard.png similarity index 100% rename from Samples/ApplicationResources/js/images/de-DE/projector.scale-180_contrast-standard.png rename to archived/ApplicationResources/js/images/de-DE/projector.scale-180_contrast-standard.png diff --git a/Samples/ApplicationResources/js/images/de-DE/projector.scale-180_contrast-white.png b/archived/ApplicationResources/js/images/de-DE/projector.scale-180_contrast-white.png similarity index 100% rename from Samples/ApplicationResources/js/images/de-DE/projector.scale-180_contrast-white.png rename to archived/ApplicationResources/js/images/de-DE/projector.scale-180_contrast-white.png diff --git a/Samples/ApplicationResources/js/images/en-US/placeholder.txt b/archived/ApplicationResources/js/images/en-US/placeholder.txt similarity index 100% rename from Samples/ApplicationResources/js/images/en-US/placeholder.txt rename to archived/ApplicationResources/js/images/en-US/placeholder.txt diff --git a/Samples/ApplicationResources/js/images/fr-FR/projector.scale-100_contrast-black.png b/archived/ApplicationResources/js/images/fr-FR/projector.scale-100_contrast-black.png similarity index 100% rename from Samples/ApplicationResources/js/images/fr-FR/projector.scale-100_contrast-black.png rename to archived/ApplicationResources/js/images/fr-FR/projector.scale-100_contrast-black.png diff --git a/Samples/ApplicationResources/js/images/fr-FR/projector.scale-100_contrast-standard.png b/archived/ApplicationResources/js/images/fr-FR/projector.scale-100_contrast-standard.png similarity index 100% rename from Samples/ApplicationResources/js/images/fr-FR/projector.scale-100_contrast-standard.png rename to archived/ApplicationResources/js/images/fr-FR/projector.scale-100_contrast-standard.png diff --git a/Samples/ApplicationResources/js/images/fr-FR/projector.scale-100_contrast-white.png b/archived/ApplicationResources/js/images/fr-FR/projector.scale-100_contrast-white.png similarity index 100% rename from Samples/ApplicationResources/js/images/fr-FR/projector.scale-100_contrast-white.png rename to archived/ApplicationResources/js/images/fr-FR/projector.scale-100_contrast-white.png diff --git a/Samples/ApplicationResources/js/images/fr-FR/projector.scale-140_contrast-black.png b/archived/ApplicationResources/js/images/fr-FR/projector.scale-140_contrast-black.png similarity index 100% rename from Samples/ApplicationResources/js/images/fr-FR/projector.scale-140_contrast-black.png rename to archived/ApplicationResources/js/images/fr-FR/projector.scale-140_contrast-black.png diff --git a/Samples/ApplicationResources/js/images/fr-FR/projector.scale-140_contrast-standard.png b/archived/ApplicationResources/js/images/fr-FR/projector.scale-140_contrast-standard.png similarity index 100% rename from Samples/ApplicationResources/js/images/fr-FR/projector.scale-140_contrast-standard.png rename to archived/ApplicationResources/js/images/fr-FR/projector.scale-140_contrast-standard.png diff --git a/Samples/ApplicationResources/js/images/fr-FR/projector.scale-140_contrast-white.png b/archived/ApplicationResources/js/images/fr-FR/projector.scale-140_contrast-white.png similarity index 100% rename from Samples/ApplicationResources/js/images/fr-FR/projector.scale-140_contrast-white.png rename to archived/ApplicationResources/js/images/fr-FR/projector.scale-140_contrast-white.png diff --git a/Samples/ApplicationResources/js/images/fr-FR/projector.scale-180_contrast-black.png b/archived/ApplicationResources/js/images/fr-FR/projector.scale-180_contrast-black.png similarity index 100% rename from Samples/ApplicationResources/js/images/fr-FR/projector.scale-180_contrast-black.png rename to archived/ApplicationResources/js/images/fr-FR/projector.scale-180_contrast-black.png diff --git a/Samples/ApplicationResources/js/images/fr-FR/projector.scale-180_contrast-standard.png b/archived/ApplicationResources/js/images/fr-FR/projector.scale-180_contrast-standard.png similarity index 100% rename from Samples/ApplicationResources/js/images/fr-FR/projector.scale-180_contrast-standard.png rename to archived/ApplicationResources/js/images/fr-FR/projector.scale-180_contrast-standard.png diff --git a/Samples/ApplicationResources/js/images/fr-FR/projector.scale-180_contrast-white.png b/archived/ApplicationResources/js/images/fr-FR/projector.scale-180_contrast-white.png similarity index 100% rename from Samples/ApplicationResources/js/images/fr-FR/projector.scale-180_contrast-white.png rename to archived/ApplicationResources/js/images/fr-FR/projector.scale-180_contrast-white.png diff --git a/Samples/ApplicationResources/js/images/ja/placeholder.txt b/archived/ApplicationResources/js/images/ja/placeholder.txt similarity index 100% rename from Samples/ApplicationResources/js/images/ja/placeholder.txt rename to archived/ApplicationResources/js/images/ja/placeholder.txt diff --git a/Samples/ApplicationResources/js/js/sample-configuration.js b/archived/ApplicationResources/js/js/sample-configuration.js similarity index 100% rename from Samples/ApplicationResources/js/js/sample-configuration.js rename to archived/ApplicationResources/js/js/sample-configuration.js diff --git a/Samples/ApplicationResources/js/js/scenario11.js b/archived/ApplicationResources/js/js/scenario11.js similarity index 100% rename from Samples/ApplicationResources/js/js/scenario11.js rename to archived/ApplicationResources/js/js/scenario11.js diff --git a/Samples/ApplicationResources/js/js/scenario13.js b/archived/ApplicationResources/js/js/scenario13.js similarity index 100% rename from Samples/ApplicationResources/js/js/scenario13.js rename to archived/ApplicationResources/js/js/scenario13.js diff --git a/Samples/ApplicationResources/js/js/scenario2.js b/archived/ApplicationResources/js/js/scenario2.js similarity index 100% rename from Samples/ApplicationResources/js/js/scenario2.js rename to archived/ApplicationResources/js/js/scenario2.js diff --git a/Samples/ApplicationResources/js/js/scenario3.js b/archived/ApplicationResources/js/js/scenario3.js similarity index 100% rename from Samples/ApplicationResources/js/js/scenario3.js rename to archived/ApplicationResources/js/js/scenario3.js diff --git a/Samples/ApplicationResources/js/js/scenario5.js b/archived/ApplicationResources/js/js/scenario5.js similarity index 100% rename from Samples/ApplicationResources/js/js/scenario5.js rename to archived/ApplicationResources/js/js/scenario5.js diff --git a/Samples/ApplicationResources/js/js/scenario6.js b/archived/ApplicationResources/js/js/scenario6.js similarity index 100% rename from Samples/ApplicationResources/js/js/scenario6.js rename to archived/ApplicationResources/js/js/scenario6.js diff --git a/Samples/ApplicationResources/js/js/scenario7.js b/archived/ApplicationResources/js/js/scenario7.js similarity index 100% rename from Samples/ApplicationResources/js/js/scenario7.js rename to archived/ApplicationResources/js/js/scenario7.js diff --git a/Samples/ApplicationResources/js/js/scenario8.js b/archived/ApplicationResources/js/js/scenario8.js similarity index 100% rename from Samples/ApplicationResources/js/js/scenario8.js rename to archived/ApplicationResources/js/js/scenario8.js diff --git a/Samples/ApplicationResources/js/js/webcompartment.js b/archived/ApplicationResources/js/js/webcompartment.js similarity index 100% rename from Samples/ApplicationResources/js/js/webcompartment.js rename to archived/ApplicationResources/js/js/webcompartment.js diff --git a/Samples/ApplicationResources/js/package.appxmanifest b/archived/ApplicationResources/js/package.appxmanifest similarity index 100% rename from Samples/ApplicationResources/js/package.appxmanifest rename to archived/ApplicationResources/js/package.appxmanifest diff --git a/Samples/ApplicationResources/js/sample-utils/placeholder.txt b/archived/ApplicationResources/js/sample-utils/placeholder.txt similarity index 100% rename from Samples/ApplicationResources/js/sample-utils/placeholder.txt rename to archived/ApplicationResources/js/sample-utils/placeholder.txt diff --git a/Samples/ApplicationResources/js/strings/de-DE/errors.resjson b/archived/ApplicationResources/js/strings/de-DE/errors.resjson similarity index 100% rename from Samples/ApplicationResources/js/strings/de-DE/errors.resjson rename to archived/ApplicationResources/js/strings/de-DE/errors.resjson diff --git a/Samples/ApplicationResources/js/strings/de-DE/resources.json b/archived/ApplicationResources/js/strings/de-DE/resources.json similarity index 100% rename from Samples/ApplicationResources/js/strings/de-DE/resources.json rename to archived/ApplicationResources/js/strings/de-DE/resources.json diff --git a/Samples/ApplicationResources/js/strings/de-DE/resources.resjson b/archived/ApplicationResources/js/strings/de-DE/resources.resjson similarity index 100% rename from Samples/ApplicationResources/js/strings/de-DE/resources.resjson rename to archived/ApplicationResources/js/strings/de-DE/resources.resjson diff --git a/Samples/ApplicationResources/js/strings/en-US/errors.resjson b/archived/ApplicationResources/js/strings/en-US/errors.resjson similarity index 100% rename from Samples/ApplicationResources/js/strings/en-US/errors.resjson rename to archived/ApplicationResources/js/strings/en-US/errors.resjson diff --git a/Samples/ApplicationResources/js/strings/en-US/resources.json b/archived/ApplicationResources/js/strings/en-US/resources.json similarity index 100% rename from Samples/ApplicationResources/js/strings/en-US/resources.json rename to archived/ApplicationResources/js/strings/en-US/resources.json diff --git a/Samples/ApplicationResources/js/strings/en-US/resources.resjson b/archived/ApplicationResources/js/strings/en-US/resources.resjson similarity index 100% rename from Samples/ApplicationResources/js/strings/en-US/resources.resjson rename to archived/ApplicationResources/js/strings/en-US/resources.resjson diff --git a/Samples/ApplicationResources/js/strings/fr-FR/errors.resjson b/archived/ApplicationResources/js/strings/fr-FR/errors.resjson similarity index 100% rename from Samples/ApplicationResources/js/strings/fr-FR/errors.resjson rename to archived/ApplicationResources/js/strings/fr-FR/errors.resjson diff --git a/Samples/ApplicationResources/js/strings/fr-FR/resources.json b/archived/ApplicationResources/js/strings/fr-FR/resources.json similarity index 100% rename from Samples/ApplicationResources/js/strings/fr-FR/resources.json rename to archived/ApplicationResources/js/strings/fr-FR/resources.json diff --git a/Samples/ApplicationResources/js/strings/fr-FR/resources.resjson b/archived/ApplicationResources/js/strings/fr-FR/resources.resjson similarity index 100% rename from Samples/ApplicationResources/js/strings/fr-FR/resources.resjson rename to archived/ApplicationResources/js/strings/fr-FR/resources.resjson diff --git a/Samples/ApplicationResources/js/strings/ja/errors.resjson b/archived/ApplicationResources/js/strings/ja/errors.resjson similarity index 100% rename from Samples/ApplicationResources/js/strings/ja/errors.resjson rename to archived/ApplicationResources/js/strings/ja/errors.resjson diff --git a/Samples/ApplicationResources/js/strings/ja/resources.json b/archived/ApplicationResources/js/strings/ja/resources.json similarity index 100% rename from Samples/ApplicationResources/js/strings/ja/resources.json rename to archived/ApplicationResources/js/strings/ja/resources.json diff --git a/Samples/ApplicationResources/js/strings/ja/resources.resjson b/archived/ApplicationResources/js/strings/ja/resources.resjson similarity index 100% rename from Samples/ApplicationResources/js/strings/ja/resources.resjson rename to archived/ApplicationResources/js/strings/ja/resources.resjson diff --git a/Samples/ApplicationResources/js/strings/scenario13/scenario13.contrast-black.resjson b/archived/ApplicationResources/js/strings/scenario13/scenario13.contrast-black.resjson similarity index 100% rename from Samples/ApplicationResources/js/strings/scenario13/scenario13.contrast-black.resjson rename to archived/ApplicationResources/js/strings/scenario13/scenario13.contrast-black.resjson diff --git a/Samples/ApplicationResources/js/strings/scenario13/scenario13.contrast-black_scale-100.resjson b/archived/ApplicationResources/js/strings/scenario13/scenario13.contrast-black_scale-100.resjson similarity index 100% rename from Samples/ApplicationResources/js/strings/scenario13/scenario13.contrast-black_scale-100.resjson rename to archived/ApplicationResources/js/strings/scenario13/scenario13.contrast-black_scale-100.resjson diff --git a/Samples/ApplicationResources/js/strings/scenario13/scenario13.contrast-black_scale-140.resjson b/archived/ApplicationResources/js/strings/scenario13/scenario13.contrast-black_scale-140.resjson similarity index 100% rename from Samples/ApplicationResources/js/strings/scenario13/scenario13.contrast-black_scale-140.resjson rename to archived/ApplicationResources/js/strings/scenario13/scenario13.contrast-black_scale-140.resjson diff --git a/Samples/ApplicationResources/js/strings/scenario13/scenario13.contrast-black_scale-180.resjson b/archived/ApplicationResources/js/strings/scenario13/scenario13.contrast-black_scale-180.resjson similarity index 100% rename from Samples/ApplicationResources/js/strings/scenario13/scenario13.contrast-black_scale-180.resjson rename to archived/ApplicationResources/js/strings/scenario13/scenario13.contrast-black_scale-180.resjson diff --git a/Samples/ApplicationResources/js/strings/scenario13/scenario13.contrast-high.resjson b/archived/ApplicationResources/js/strings/scenario13/scenario13.contrast-high.resjson similarity index 100% rename from Samples/ApplicationResources/js/strings/scenario13/scenario13.contrast-high.resjson rename to archived/ApplicationResources/js/strings/scenario13/scenario13.contrast-high.resjson diff --git a/Samples/ApplicationResources/js/strings/scenario13/scenario13.contrast-standard.resjson b/archived/ApplicationResources/js/strings/scenario13/scenario13.contrast-standard.resjson similarity index 100% rename from Samples/ApplicationResources/js/strings/scenario13/scenario13.contrast-standard.resjson rename to archived/ApplicationResources/js/strings/scenario13/scenario13.contrast-standard.resjson diff --git a/Samples/ApplicationResources/js/strings/scenario13/scenario13.contrast-white.resjson b/archived/ApplicationResources/js/strings/scenario13/scenario13.contrast-white.resjson similarity index 100% rename from Samples/ApplicationResources/js/strings/scenario13/scenario13.contrast-white.resjson rename to archived/ApplicationResources/js/strings/scenario13/scenario13.contrast-white.resjson diff --git a/Samples/ApplicationResources/js/strings/scenario13/scenario13.contrast-white_scale-100.resjson b/archived/ApplicationResources/js/strings/scenario13/scenario13.contrast-white_scale-100.resjson similarity index 100% rename from Samples/ApplicationResources/js/strings/scenario13/scenario13.contrast-white_scale-100.resjson rename to archived/ApplicationResources/js/strings/scenario13/scenario13.contrast-white_scale-100.resjson diff --git a/Samples/ApplicationResources/js/strings/scenario13/scenario13.contrast-white_scale-140.resjson b/archived/ApplicationResources/js/strings/scenario13/scenario13.contrast-white_scale-140.resjson similarity index 100% rename from Samples/ApplicationResources/js/strings/scenario13/scenario13.contrast-white_scale-140.resjson rename to archived/ApplicationResources/js/strings/scenario13/scenario13.contrast-white_scale-140.resjson diff --git a/Samples/ApplicationResources/js/strings/scenario13/scenario13.contrast-white_scale-180.resjson b/archived/ApplicationResources/js/strings/scenario13/scenario13.contrast-white_scale-180.resjson similarity index 100% rename from Samples/ApplicationResources/js/strings/scenario13/scenario13.contrast-white_scale-180.resjson rename to archived/ApplicationResources/js/strings/scenario13/scenario13.contrast-white_scale-180.resjson diff --git a/Samples/ApplicationResources/js/strings/scenario13/scenario13.homeregion-001.resjson b/archived/ApplicationResources/js/strings/scenario13/scenario13.homeregion-001.resjson similarity index 100% rename from Samples/ApplicationResources/js/strings/scenario13/scenario13.homeregion-001.resjson rename to archived/ApplicationResources/js/strings/scenario13/scenario13.homeregion-001.resjson diff --git a/Samples/ApplicationResources/js/strings/scenario13/scenario13.homeregion-021.resjson b/archived/ApplicationResources/js/strings/scenario13/scenario13.homeregion-021.resjson similarity index 100% rename from Samples/ApplicationResources/js/strings/scenario13/scenario13.homeregion-021.resjson rename to archived/ApplicationResources/js/strings/scenario13/scenario13.homeregion-021.resjson diff --git a/Samples/ApplicationResources/js/strings/scenario13/scenario13.homeregion-us.resjson b/archived/ApplicationResources/js/strings/scenario13/scenario13.homeregion-us.resjson similarity index 100% rename from Samples/ApplicationResources/js/strings/scenario13/scenario13.homeregion-us.resjson rename to archived/ApplicationResources/js/strings/scenario13/scenario13.homeregion-us.resjson diff --git a/Samples/ApplicationResources/js/strings/scenario13/scenario13.lang-en-gb.resjson b/archived/ApplicationResources/js/strings/scenario13/scenario13.lang-en-gb.resjson similarity index 100% rename from Samples/ApplicationResources/js/strings/scenario13/scenario13.lang-en-gb.resjson rename to archived/ApplicationResources/js/strings/scenario13/scenario13.lang-en-gb.resjson diff --git a/Samples/ApplicationResources/js/strings/scenario13/scenario13.lang-en.resjson b/archived/ApplicationResources/js/strings/scenario13/scenario13.lang-en.resjson similarity index 100% rename from Samples/ApplicationResources/js/strings/scenario13/scenario13.lang-en.resjson rename to archived/ApplicationResources/js/strings/scenario13/scenario13.lang-en.resjson diff --git a/Samples/ApplicationResources/js/strings/scenario13/scenario13.lang-fr-fr.resjson b/archived/ApplicationResources/js/strings/scenario13/scenario13.lang-fr-fr.resjson similarity index 100% rename from Samples/ApplicationResources/js/strings/scenario13/scenario13.lang-fr-fr.resjson rename to archived/ApplicationResources/js/strings/scenario13/scenario13.lang-fr-fr.resjson diff --git a/Samples/ApplicationResources/js/strings/scenario13/scenario13.lang-fr.resjson b/archived/ApplicationResources/js/strings/scenario13/scenario13.lang-fr.resjson similarity index 100% rename from Samples/ApplicationResources/js/strings/scenario13/scenario13.lang-fr.resjson rename to archived/ApplicationResources/js/strings/scenario13/scenario13.lang-fr.resjson diff --git a/Samples/ApplicationResources/js/strings/scenario13/scenario13.resjson b/archived/ApplicationResources/js/strings/scenario13/scenario13.resjson similarity index 100% rename from Samples/ApplicationResources/js/strings/scenario13/scenario13.resjson rename to archived/ApplicationResources/js/strings/scenario13/scenario13.resjson diff --git a/Samples/ApplicationResources/js/strings/scenario13/scenario13.scale-100.resjson b/archived/ApplicationResources/js/strings/scenario13/scenario13.scale-100.resjson similarity index 100% rename from Samples/ApplicationResources/js/strings/scenario13/scenario13.scale-100.resjson rename to archived/ApplicationResources/js/strings/scenario13/scenario13.scale-100.resjson diff --git a/Samples/ApplicationResources/js/strings/scenario13/scenario13.scale-140.resjson b/archived/ApplicationResources/js/strings/scenario13/scenario13.scale-140.resjson similarity index 100% rename from Samples/ApplicationResources/js/strings/scenario13/scenario13.scale-140.resjson rename to archived/ApplicationResources/js/strings/scenario13/scenario13.scale-140.resjson diff --git a/Samples/ApplicationResources/js/strings/scenario13/scenario13.scale-180.resjson b/archived/ApplicationResources/js/strings/scenario13/scenario13.scale-180.resjson similarity index 100% rename from Samples/ApplicationResources/js/strings/scenario13/scenario13.scale-180.resjson rename to archived/ApplicationResources/js/strings/scenario13/scenario13.scale-180.resjson diff --git a/archived/AudioCategory/README.md b/archived/AudioCategory/README.md new file mode 100644 index 0000000000..e28fd03783 --- /dev/null +++ b/archived/AudioCategory/README.md @@ -0,0 +1,45 @@ +--- +topic: sample +languages: +- js +products: +- windows +- windows-uwp +--- + +# Audio categories sample + +Shows how to create apps that use various audio categories. + +> **Note:** This sample is part of a large collection of UWP feature samples. +> If you are unfamiliar with Git and GitHub, you can download the entire collection as a +> [ZIP file](https://github.com/Microsoft/Windows-universal-samples/archive/master.zip), but be +> sure to unzip everything to access shared dependencies. For more info on working with the ZIP file, +> the samples collection, and GitHub, see [Get the UWP samples from GitHub](https://aka.ms/ovu2uq). +> For more samples, see the [Samples portal](https://aka.ms/winsamples) on the Windows Dev Center. + +System requirements +----------------------------- + +**Client:** Windows 10 + +**Phone:** Windows 10 + +Build the sample +---------------- + +1. If you download the samples ZIP, be sure to unzip the entire archive, not just the folder with the sample you want to build. +2. Start Microsoft Visual Studio 2017 and select **File** \> **Open** \> **Project/Solution**. +3. Starting in the folder where you unzipped the samples, go to the Samples subfolder, then the subfolder for this specific sample, then the subfolder for your preferred language (C++, C#, or JavaScript). Double-click the Visual Studio Solution (.sln) file. +4. Press Ctrl+Shift+B, or select **Build** \> **Build Solution**. + +Run the sample +-------------- + +The next steps depend on whether you just want to deploy the sample or you want to both deploy and run it. + +**Deploying the sample** +1. Select **Build** \> **Deploy Solution**. + +**Deploying and running the sample** +1. To debug the sample and then run it, press F5 or select **Debug** \> **Start Debugging**. To run the sample without debugging, press Ctrl+F5 or select**Debug** \> **Start Without Debugging**. diff --git a/Samples/AudioCategory/js/AudioCategory/AudioCategory.jsproj b/archived/AudioCategory/js/AudioCategory/AudioCategory.jsproj similarity index 82% rename from Samples/AudioCategory/js/AudioCategory/AudioCategory.jsproj rename to archived/AudioCategory/js/AudioCategory/AudioCategory.jsproj index a192dc9f02..fb6836b0db 100644 --- a/Samples/AudioCategory/js/AudioCategory/AudioCategory.jsproj +++ b/archived/AudioCategory/js/AudioCategory/AudioCategory.jsproj @@ -54,18 +54,18 @@ Designer - + Microsoft.WinJS.4.0\fonts\Symbols.ttf - + Microsoft.WinJS.4.0\js\base.js - + Microsoft.WinJS.4.0\js\ui.js - + css\default.css @@ -76,7 +76,7 @@ - + default.html @@ -112,7 +112,7 @@ - + js\default.js @@ -124,34 +124,34 @@ - + Microsoft.WinJS.4.0\css\ui-dark.css - + Microsoft.WinJS.4.0\css\ui-light.css - + Microsoft.WinJS.4.0\js\en-US\ui.strings.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense-setup.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense.js - + sample-utils\footer.html - + sample-utils\header.html - + sample-utils\sample-utils.js - + sample-utils\scenario-select.css - + sample-utils\scenario-select.html diff --git a/Samples/AudioCategory/js/AudioCategory/AudioCategory.sln b/archived/AudioCategory/js/AudioCategory/AudioCategory.sln similarity index 100% rename from Samples/AudioCategory/js/AudioCategory/AudioCategory.sln rename to archived/AudioCategory/js/AudioCategory/AudioCategory.sln diff --git a/Samples/AudioCategory/js/AudioCategory/Microsoft.WinJS.4.0/css/placeholder.txt b/archived/AudioCategory/js/AudioCategory/Microsoft.WinJS.4.0/css/placeholder.txt similarity index 100% rename from Samples/AudioCategory/js/AudioCategory/Microsoft.WinJS.4.0/css/placeholder.txt rename to archived/AudioCategory/js/AudioCategory/Microsoft.WinJS.4.0/css/placeholder.txt diff --git a/Samples/AudioCategory/js/AudioCategory/Microsoft.WinJS.4.0/fonts/placeholder.txt b/archived/AudioCategory/js/AudioCategory/Microsoft.WinJS.4.0/fonts/placeholder.txt similarity index 100% rename from Samples/AudioCategory/js/AudioCategory/Microsoft.WinJS.4.0/fonts/placeholder.txt rename to archived/AudioCategory/js/AudioCategory/Microsoft.WinJS.4.0/fonts/placeholder.txt diff --git a/Samples/AudioCategory/js/AudioCategory/Microsoft.WinJS.4.0/js/en-US/placeholder.txt b/archived/AudioCategory/js/AudioCategory/Microsoft.WinJS.4.0/js/en-US/placeholder.txt similarity index 100% rename from Samples/AudioCategory/js/AudioCategory/Microsoft.WinJS.4.0/js/en-US/placeholder.txt rename to archived/AudioCategory/js/AudioCategory/Microsoft.WinJS.4.0/js/en-US/placeholder.txt diff --git a/Samples/AudioCategory/js/AudioCategory/css/alerts.css b/archived/AudioCategory/js/AudioCategory/css/alerts.css similarity index 100% rename from Samples/AudioCategory/js/AudioCategory/css/alerts.css rename to archived/AudioCategory/js/AudioCategory/css/alerts.css diff --git a/Samples/AudioCategory/js/AudioCategory/css/communications.css b/archived/AudioCategory/js/AudioCategory/css/communications.css similarity index 100% rename from Samples/AudioCategory/js/AudioCategory/css/communications.css rename to archived/AudioCategory/js/AudioCategory/css/communications.css diff --git a/Samples/AudioCategory/js/AudioCategory/css/gamechat.css b/archived/AudioCategory/js/AudioCategory/css/gamechat.css similarity index 100% rename from Samples/AudioCategory/js/AudioCategory/css/gamechat.css rename to archived/AudioCategory/js/AudioCategory/css/gamechat.css diff --git a/Samples/AudioCategory/js/AudioCategory/css/gameeffects.css b/archived/AudioCategory/js/AudioCategory/css/gameeffects.css similarity index 100% rename from Samples/AudioCategory/js/AudioCategory/css/gameeffects.css rename to archived/AudioCategory/js/AudioCategory/css/gameeffects.css diff --git a/Samples/AudioCategory/js/AudioCategory/css/gamemedia.css b/archived/AudioCategory/js/AudioCategory/css/gamemedia.css similarity index 100% rename from Samples/AudioCategory/js/AudioCategory/css/gamemedia.css rename to archived/AudioCategory/js/AudioCategory/css/gamemedia.css diff --git a/Samples/AudioCategory/js/AudioCategory/css/media.css b/archived/AudioCategory/js/AudioCategory/css/media.css similarity index 100% rename from Samples/AudioCategory/js/AudioCategory/css/media.css rename to archived/AudioCategory/js/AudioCategory/css/media.css diff --git a/Samples/AudioCategory/js/AudioCategory/css/movie.css b/archived/AudioCategory/js/AudioCategory/css/movie.css similarity index 100% rename from Samples/AudioCategory/js/AudioCategory/css/movie.css rename to archived/AudioCategory/js/AudioCategory/css/movie.css diff --git a/Samples/AudioCategory/js/AudioCategory/css/other.css b/archived/AudioCategory/js/AudioCategory/css/other.css similarity index 100% rename from Samples/AudioCategory/js/AudioCategory/css/other.css rename to archived/AudioCategory/js/AudioCategory/css/other.css diff --git a/Samples/AudioCategory/js/AudioCategory/css/soundeffects.css b/archived/AudioCategory/js/AudioCategory/css/soundeffects.css similarity index 100% rename from Samples/AudioCategory/js/AudioCategory/css/soundeffects.css rename to archived/AudioCategory/js/AudioCategory/css/soundeffects.css diff --git a/Samples/AudioCategory/js/AudioCategory/css/speech.css b/archived/AudioCategory/js/AudioCategory/css/speech.css similarity index 100% rename from Samples/AudioCategory/js/AudioCategory/css/speech.css rename to archived/AudioCategory/js/AudioCategory/css/speech.css diff --git a/Samples/AudioCategory/js/AudioCategory/html/alerts.html b/archived/AudioCategory/js/AudioCategory/html/alerts.html similarity index 100% rename from Samples/AudioCategory/js/AudioCategory/html/alerts.html rename to archived/AudioCategory/js/AudioCategory/html/alerts.html diff --git a/Samples/AudioCategory/js/AudioCategory/html/communications.html b/archived/AudioCategory/js/AudioCategory/html/communications.html similarity index 100% rename from Samples/AudioCategory/js/AudioCategory/html/communications.html rename to archived/AudioCategory/js/AudioCategory/html/communications.html diff --git a/Samples/AudioCategory/js/AudioCategory/html/gamechat.html b/archived/AudioCategory/js/AudioCategory/html/gamechat.html similarity index 100% rename from Samples/AudioCategory/js/AudioCategory/html/gamechat.html rename to archived/AudioCategory/js/AudioCategory/html/gamechat.html diff --git a/Samples/AudioCategory/js/AudioCategory/html/gameeffects.html b/archived/AudioCategory/js/AudioCategory/html/gameeffects.html similarity index 100% rename from Samples/AudioCategory/js/AudioCategory/html/gameeffects.html rename to archived/AudioCategory/js/AudioCategory/html/gameeffects.html diff --git a/Samples/AudioCategory/js/AudioCategory/html/gamemedia.html b/archived/AudioCategory/js/AudioCategory/html/gamemedia.html similarity index 100% rename from Samples/AudioCategory/js/AudioCategory/html/gamemedia.html rename to archived/AudioCategory/js/AudioCategory/html/gamemedia.html diff --git a/Samples/AudioCategory/js/AudioCategory/html/media.html b/archived/AudioCategory/js/AudioCategory/html/media.html similarity index 100% rename from Samples/AudioCategory/js/AudioCategory/html/media.html rename to archived/AudioCategory/js/AudioCategory/html/media.html diff --git a/Samples/AudioCategory/js/AudioCategory/html/movie.html b/archived/AudioCategory/js/AudioCategory/html/movie.html similarity index 100% rename from Samples/AudioCategory/js/AudioCategory/html/movie.html rename to archived/AudioCategory/js/AudioCategory/html/movie.html diff --git a/Samples/AudioCategory/js/AudioCategory/html/other.html b/archived/AudioCategory/js/AudioCategory/html/other.html similarity index 100% rename from Samples/AudioCategory/js/AudioCategory/html/other.html rename to archived/AudioCategory/js/AudioCategory/html/other.html diff --git a/Samples/AudioCategory/js/AudioCategory/html/soundeffects.html b/archived/AudioCategory/js/AudioCategory/html/soundeffects.html similarity index 100% rename from Samples/AudioCategory/js/AudioCategory/html/soundeffects.html rename to archived/AudioCategory/js/AudioCategory/html/soundeffects.html diff --git a/Samples/AudioCategory/js/AudioCategory/html/speech.html b/archived/AudioCategory/js/AudioCategory/html/speech.html similarity index 100% rename from Samples/AudioCategory/js/AudioCategory/html/speech.html rename to archived/AudioCategory/js/AudioCategory/html/speech.html diff --git a/Samples/AudioCategory/js/AudioCategory/images/placeholder.txt b/archived/AudioCategory/js/AudioCategory/images/placeholder.txt similarity index 100% rename from Samples/AudioCategory/js/AudioCategory/images/placeholder.txt rename to archived/AudioCategory/js/AudioCategory/images/placeholder.txt diff --git a/Samples/AudioCategory/js/AudioCategory/js/alerts.js b/archived/AudioCategory/js/AudioCategory/js/alerts.js similarity index 100% rename from Samples/AudioCategory/js/AudioCategory/js/alerts.js rename to archived/AudioCategory/js/AudioCategory/js/alerts.js diff --git a/Samples/AudioCategory/js/AudioCategory/js/communications.js b/archived/AudioCategory/js/AudioCategory/js/communications.js similarity index 100% rename from Samples/AudioCategory/js/AudioCategory/js/communications.js rename to archived/AudioCategory/js/AudioCategory/js/communications.js diff --git a/Samples/AudioCategory/js/AudioCategory/js/gamechat.js b/archived/AudioCategory/js/AudioCategory/js/gamechat.js similarity index 100% rename from Samples/AudioCategory/js/AudioCategory/js/gamechat.js rename to archived/AudioCategory/js/AudioCategory/js/gamechat.js diff --git a/Samples/AudioCategory/js/AudioCategory/js/gameeffects.js b/archived/AudioCategory/js/AudioCategory/js/gameeffects.js similarity index 100% rename from Samples/AudioCategory/js/AudioCategory/js/gameeffects.js rename to archived/AudioCategory/js/AudioCategory/js/gameeffects.js diff --git a/Samples/AudioCategory/js/AudioCategory/js/gamemedia.js b/archived/AudioCategory/js/AudioCategory/js/gamemedia.js similarity index 100% rename from Samples/AudioCategory/js/AudioCategory/js/gamemedia.js rename to archived/AudioCategory/js/AudioCategory/js/gamemedia.js diff --git a/Samples/AudioCategory/js/AudioCategory/js/media.js b/archived/AudioCategory/js/AudioCategory/js/media.js similarity index 100% rename from Samples/AudioCategory/js/AudioCategory/js/media.js rename to archived/AudioCategory/js/AudioCategory/js/media.js diff --git a/Samples/AudioCategory/js/AudioCategory/js/movie.js b/archived/AudioCategory/js/AudioCategory/js/movie.js similarity index 100% rename from Samples/AudioCategory/js/AudioCategory/js/movie.js rename to archived/AudioCategory/js/AudioCategory/js/movie.js diff --git a/Samples/AudioCategory/js/AudioCategory/js/other.js b/archived/AudioCategory/js/AudioCategory/js/other.js similarity index 100% rename from Samples/AudioCategory/js/AudioCategory/js/other.js rename to archived/AudioCategory/js/AudioCategory/js/other.js diff --git a/Samples/AudioCategory/js/AudioCategory/js/sample-configuration.js b/archived/AudioCategory/js/AudioCategory/js/sample-configuration.js similarity index 100% rename from Samples/AudioCategory/js/AudioCategory/js/sample-configuration.js rename to archived/AudioCategory/js/AudioCategory/js/sample-configuration.js diff --git a/Samples/AudioCategory/js/AudioCategory/js/soundeffects.js b/archived/AudioCategory/js/AudioCategory/js/soundeffects.js similarity index 100% rename from Samples/AudioCategory/js/AudioCategory/js/soundeffects.js rename to archived/AudioCategory/js/AudioCategory/js/soundeffects.js diff --git a/Samples/AudioCategory/js/AudioCategory/js/speech.js b/archived/AudioCategory/js/AudioCategory/js/speech.js similarity index 100% rename from Samples/AudioCategory/js/AudioCategory/js/speech.js rename to archived/AudioCategory/js/AudioCategory/js/speech.js diff --git a/Samples/AudioCategory/js/AudioCategory/package.appxmanifest b/archived/AudioCategory/js/AudioCategory/package.appxmanifest similarity index 100% rename from Samples/AudioCategory/js/AudioCategory/package.appxmanifest rename to archived/AudioCategory/js/AudioCategory/package.appxmanifest diff --git a/Samples/AudioCategory/js/AudioCategory/sample-utils/placeholder.txt b/archived/AudioCategory/js/AudioCategory/sample-utils/placeholder.txt similarity index 100% rename from Samples/AudioCategory/js/AudioCategory/sample-utils/placeholder.txt rename to archived/AudioCategory/js/AudioCategory/sample-utils/placeholder.txt diff --git a/Samples/AudioCategory/js/AudioCategoryCompanion/AudioCategoryCompanion.jsproj b/archived/AudioCategory/js/AudioCategoryCompanion/AudioCategoryCompanion.jsproj similarity index 86% rename from Samples/AudioCategory/js/AudioCategoryCompanion/AudioCategoryCompanion.jsproj rename to archived/AudioCategory/js/AudioCategoryCompanion/AudioCategoryCompanion.jsproj index dc903a1e77..7da4f1ddbf 100644 --- a/Samples/AudioCategory/js/AudioCategoryCompanion/AudioCategoryCompanion.jsproj +++ b/archived/AudioCategory/js/AudioCategoryCompanion/AudioCategoryCompanion.jsproj @@ -54,49 +54,49 @@ Designer - + css\default.css - + js\default.js - + Microsoft.WinJS.4.0\css\ui-dark.css - + Microsoft.WinJS.4.0\css\ui-light.css - + Microsoft.WinJS.4.0\fonts\Symbols.ttf - + Microsoft.WinJS.4.0\js\base.js - + Microsoft.WinJS.4.0\js\en-US\ui.strings.js - + Microsoft.WinJS.4.0\js\ui.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense-setup.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense.js - + sample-utils\footer.html - + sample-utils\header.html - + sample-utils\sample-utils.js - + sample-utils\scenario-select.css - + sample-utils\scenario-select.html @@ -216,7 +216,7 @@ js\speech.js - + default.html diff --git a/Samples/AudioCategory/js/AudioCategoryCompanion/AudioCategoryCompanion.sln b/archived/AudioCategory/js/AudioCategoryCompanion/AudioCategoryCompanion.sln similarity index 100% rename from Samples/AudioCategory/js/AudioCategoryCompanion/AudioCategoryCompanion.sln rename to archived/AudioCategory/js/AudioCategoryCompanion/AudioCategoryCompanion.sln diff --git a/Samples/AudioCategory/js/AudioCategoryCompanion/Microsoft.WinJS.4.0/css/placeholder.txt b/archived/AudioCategory/js/AudioCategoryCompanion/Microsoft.WinJS.4.0/css/placeholder.txt similarity index 100% rename from Samples/AudioCategory/js/AudioCategoryCompanion/Microsoft.WinJS.4.0/css/placeholder.txt rename to archived/AudioCategory/js/AudioCategoryCompanion/Microsoft.WinJS.4.0/css/placeholder.txt diff --git a/Samples/AudioCategory/js/AudioCategoryCompanion/Microsoft.WinJS.4.0/fonts/placeholder.txt b/archived/AudioCategory/js/AudioCategoryCompanion/Microsoft.WinJS.4.0/fonts/placeholder.txt similarity index 100% rename from Samples/AudioCategory/js/AudioCategoryCompanion/Microsoft.WinJS.4.0/fonts/placeholder.txt rename to archived/AudioCategory/js/AudioCategoryCompanion/Microsoft.WinJS.4.0/fonts/placeholder.txt diff --git a/Samples/AudioCategory/js/AudioCategoryCompanion/Microsoft.WinJS.4.0/js/en-US/placeholder.txt b/archived/AudioCategory/js/AudioCategoryCompanion/Microsoft.WinJS.4.0/js/en-US/placeholder.txt similarity index 100% rename from Samples/AudioCategory/js/AudioCategoryCompanion/Microsoft.WinJS.4.0/js/en-US/placeholder.txt rename to archived/AudioCategory/js/AudioCategoryCompanion/Microsoft.WinJS.4.0/js/en-US/placeholder.txt diff --git a/Samples/AudioCategory/js/AudioCategoryCompanion/css/placeholder.txt b/archived/AudioCategory/js/AudioCategoryCompanion/css/placeholder.txt similarity index 100% rename from Samples/AudioCategory/js/AudioCategoryCompanion/css/placeholder.txt rename to archived/AudioCategory/js/AudioCategoryCompanion/css/placeholder.txt diff --git a/Samples/AudioCategory/js/AudioCategoryCompanion/html/placeholder.txt b/archived/AudioCategory/js/AudioCategoryCompanion/html/placeholder.txt similarity index 100% rename from Samples/AudioCategory/js/AudioCategoryCompanion/html/placeholder.txt rename to archived/AudioCategory/js/AudioCategoryCompanion/html/placeholder.txt diff --git a/Samples/AudioCategory/js/AudioCategoryCompanion/images/placeholder.txt b/archived/AudioCategory/js/AudioCategoryCompanion/images/placeholder.txt similarity index 100% rename from Samples/AudioCategory/js/AudioCategoryCompanion/images/placeholder.txt rename to archived/AudioCategory/js/AudioCategoryCompanion/images/placeholder.txt diff --git a/Samples/AudioCategory/js/AudioCategoryCompanion/js/placeholder.txt b/archived/AudioCategory/js/AudioCategoryCompanion/js/placeholder.txt similarity index 100% rename from Samples/AudioCategory/js/AudioCategoryCompanion/js/placeholder.txt rename to archived/AudioCategory/js/AudioCategoryCompanion/js/placeholder.txt diff --git a/Samples/AudioCategory/js/AudioCategoryCompanion/package.appxmanifest b/archived/AudioCategory/js/AudioCategoryCompanion/package.appxmanifest similarity index 100% rename from Samples/AudioCategory/js/AudioCategoryCompanion/package.appxmanifest rename to archived/AudioCategory/js/AudioCategoryCompanion/package.appxmanifest diff --git a/Samples/AudioCategory/js/AudioCategoryCompanion/sample-utils/placeholder.txt b/archived/AudioCategory/js/AudioCategoryCompanion/sample-utils/placeholder.txt similarity index 100% rename from Samples/AudioCategory/js/AudioCategoryCompanion/sample-utils/placeholder.txt rename to archived/AudioCategory/js/AudioCategoryCompanion/sample-utils/placeholder.txt diff --git a/archived/BackgroundMediaPlayback/README.md b/archived/BackgroundMediaPlayback/README.md new file mode 100644 index 0000000000..2f718adfd1 --- /dev/null +++ b/archived/BackgroundMediaPlayback/README.md @@ -0,0 +1,354 @@ +--- +topic: sample +languages: +- js +products: +- windows +- windows-uwp +--- + +# Background media playback sample + +Shows how to use MediaPlayer and MediaPlaybackList +to create a collection of songs or videos that can continue to play even +when the app is no longer in the foreground. + +> **Note:** This sample is part of a large collection of UWP feature samples. +> If you are unfamiliar with Git and GitHub, you can download the entire collection as a +> [ZIP file](https://github.com/Microsoft/Windows-universal-samples/archive/master.zip), but be +> sure to unzip everything to access shared dependencies. For more info on working with the ZIP file, +> the samples collection, and GitHub, see [Get the UWP samples from GitHub](https://aka.ms/ovu2uq). +> For more samples, see the [Samples portal](https://aka.ms/winsamples) on the Windows Dev Center. + +Specifically, this sample covers: + +- Enabling background media playback through a manifest capability +- Playing audio and video in the background with the MediaPlayer API +- Gapless playback with MediaPlaybackList +- Automatic SystemMediaTransportControl integration +- Update of MediaPlaybackItem DisplayProperties +- MVVM for media player apps +- JSON playlist serialization + +Other relevant application model considerations include: + +- Background applications have a memory target + +- There are lifecycle events to inform apps if over target + +- Apps can respond to being over target by unloading resources, including views + or view state to get under target + +- If an app needs to continue executing in the background when not playing media + it must use Extended Execution, background tasks, or other supported mechanism + to sponsor execution + +- If an app needs to make networking calls in the background when not + downloading or streaming media using platform media APIs these must be wrapped + in either a foreground initiated Extended Execution session or a background + task like ApplicationTrigger, MaintenanceTrigger, or TimerTrigger. + Otherwise the network may be unavailable in [standby](https://msdn.microsoft.com/library/windows/hardware/mt282515.aspx). + +See the [Background Activity With the Single Process Model](https://blogs.windows.com/buildingapps/2016/06/07/background-activity-with-the-single-process-model/) +blog post for more information. + +There are approaches for performing background audio playback for earlier +versions of Windows, such as using BackgroundMediaPlayer in a dual-process +application or AudioCategory.BackgroundCapableMedia in a single-process +desktop application, but this sample demonstrates the recommended single-process +technique for background playback on all supported UWP platforms. + +Enabling background media playback +---------------------------------- + +To enable background media playback, add the capability to the +Package.appxmanifest. Note the uap3 namespace. + +``` + + ... + + + + +``` + +In a future update it will be possible to enable this through the form-based +manifest editor in Visual Studio. + +Adding this capability enables the following: + +* This changes lifecycle behavior to keep the app process from suspending as +long as it plays audio. All streams become background capable so they don't +mute. + +* All media playback APIs become background enabled. That means you can use any +platform audio APIs, such as MediaPlayer, AudioGraph, XAudio2, and the HTML +Audio tag. + +MediaPlayer provides a default SystemMediaTransportControls implementation. +If using another media API or if the MediaPlayer.CommandManager is disabled +then an application must also minimally: + +1. Enable SystemMediaTransportControls by setting IsEnabled to true +2. Set IsPlayEnabled and IsPauseEnabled to true +3. Handle the corresponding ButtonPressed events + +Background logic +---------------- +To perform background logic when not playing audio, use a foreground initiated +Extended Execution session or a background or foreground initiated +ApplicationTrigger. Handling triggers and running background tasks inside a +single process can be done through the OnBackgroundActivated handler. See the +[BackgroundActivation sample](/Samples/BackgroundActivation) for details. + +Lifecycle +--------- +* Over limit policy: Apps must handle OnAppMemoryUsageLimitChanging to reduce +memory usage if over the new limit about to be enforced. Instead of terminating +the app immediately, apps continue to run on some platforms despite being over +target provided that the system doesn't need the memory. Apps can improve their +priority by keeping usage low when backgrounded and can maximize the range of +devices supported by ensuring the application stays under the limit. + +* Apps can use CoreApplication lifecycle events EnteredBackground and +LeavingBackground as a trigger to free memory used by a GUI if needed since +the GUI is not displayed in the background. If needed, apps can release GUI +resources by setting Window.Current.Content to null and unregistering event +handlers. + +* Apps can use the MemoryManager class to monitor their memory usage after a +new limit has been applied. In particular, apps can reduce their memory usage +when the AppMemoryUsageLevel reaches High or OverLimit. + +* When the app enters the background or receives an over limit notification, +platform frameworks will take steps to release unused resources, such as cached +textures. + +MediaPlayer API +--------------- +* MediaPlayer works in foreground and background apps, with UI or without. All +key media features from MediaElement are available to MediaPlayer. Now you can +"new MediaPlayer()" anywhere. + +* A lightweight MediaPlayerElement allows binding and unbinding to a player for +displaying video. This design enables support for background video since +rendering to an element is decoupled from the player. Additionally, background +audio apps can leverage its platform MediaTransportControls if desired. + +* MediaPlayer has a MediaPlayerSurface that can be used to render video to a +Windows.UI.Composition surface. This enables media playback in "framework-less +apps". Furthermore, since all XAML elements are backed by these surfaces, apps +can render video to any XAML element. + +* MediaPlayer connects to SystemMediaTransportControls through a +CommandManager. These controls are important because that's how the app +responds to hardware button presses and Bluetooth, and they are required for +background audio. + +* The app can popupate the DisplayProperties of the MediaPlaybackItem with +artwork, track title, etc., and the platform will update system controls +automatically when the item is playing. + +Memory management guidance for background audio apps +---------------------------------------------------- + +### Background information + +There are three events for controlling your memory usage (but only one is mandatory): + + * **MemoryManager::AppMemoryLimitChanging** – Raised just before the limit of how + much total memory the app can use is changed. For example, when the app moves + into the background and on Xbox the memory limit changes from 1024MB to + 128MB. This is the most important event to handle to keep the platform from + suspending or terminating the app. + + * **MemoryManager::AppMemoryUsageIncreased** – Raised when the app's memory + consumption has increased to a higher value in the AppMemoryUsageLevel + enumeration. For example, from Low to Medium. Handling this event is optional + but recommended since the application is still responsible for staying under + limit. + + * **MemoryManager::AppMemoryUsageDecreased** – Raised when the app's memory + consumption has decreased to a higher lower value in the + AppMemoryUsageLevel enumeration. For example, from High to Low. Handling + this event is optional but indicates the application may be able to allocate + additional memory if needed. + +There are two events to take into account when your app is entering and +leaving the background: + + * **WebUIApplication/Application::EnteredBackground** – Raised when the app has + moved from the foreground to the background. + + * **WebUIApplication/Application::LeavingBackground** – Raised when the is + about to move from the background to the foreground. + +### Managing memory using the AppMemoryLimitChanging event + +The AppMemoryLimitChanging event notifies an application that the memory limit +is about to change. The NewLimit property on the +AppMemoryUsageLimitChangingEventArgs can be used to determine whether the +current app memory usage (MemoryManager::AppMemoryUsage) is over the new limit +or not. If app memory usage is over the new limit, the app must free resources +or risk being suspended or terminated when the new memory limit comes into +effect. + +Note: + - Some device configurations will allow an application to continue running over + the new memory limit until the system is under resource pressure. + + - On Xbox in particular, apps will be suspended or terminated if they do not + reduce memory to under the new limits within 2 seconds. + + - This means that apps can deliver the best experience across the broadest + range of devices by using this event to reduce resource usage below the limit + within 2 seconds of the event being raised. + +### Managing memory using the AppMemoryUsageIncreased and AppMemoryUsageDecreased events + +When running in the foreground or the background the AppMemoryUsageIncreased +and AppMemoryUsageDecreased events can be used control the amount of memory an +app uses. For example: + + - if an app gets an AppMemoryUsageIncreased event and the + MemoryManager::AppMemoryUsageLevel is AppMemoryUsageLevel::High then it + should consider freeing resources to stay within the memory constraints of + the system. + + - if an app gets an AppMemoryUsageIncreased event and the + MemoryManager.AppMemoryUsageLevel is AppMemoryUsageLevel.OverLimit then + it must free resources to stay within the memory constraints of the system. + If it does not the app may be suspended or terminated (see Notes above for + more information). On Xbox if the app does not reduce memory within 2 + seconds of receiving an OverLimit event it will be suspended or terminated. + + - The MemoryManager::AppMemoryUsage and MemoryManager::AppMemoryUsageLimit + properties can be used to determine actual memory usage and the current + limit. Note: These events are not a replacement handling the + AppMemoryLimitChanging event, but rather allow the application to continue + to monitor its memory usage after limits have been applied. + +### Freeing resources + +An app may have resources such as cached data that can be released at any point +in time and recreated easily. These are ideal to release in +AppMemoryLimitChanging or as needed in AppMemoryUsageIncreased. + +Some resources cannot be released while the UI is present, such as visible +images, 3D models, or the view itself and its backing data. These can be +released directly in EnteredBackground but this could result in releasing +views unnecessarily. Alternatively, use EnteredBackground/LeavingBackground +to track background status and then release UI resources from +AppMemoryLimitChanging only if needed. + +Be especially careful of references that could prevent resources from being +garbage collected, such as strong references or subscribed event handlers. + +If your application clears window content on background transitions, be aware +of the following. + +When the window content is set to be collected, each Frame will begin its +disconnection process. If there are Pages in the visual object tree under the +window content, these will raise their Unloaded event. Pages cannot be +completely cleared from memory unless all references to them are removed. In the +Unloaded callback, make sure to do these things to ensure memory is quickly +removed: + + ✓ **Do** clear and set any large data structures in your Page to null. + + ✓ **Do** unregister for all event handlers that have callback methods within + the Page. Make sure to Register for those callbacks again during the Loaded + event handler for the Page. The Loaded event will be raised when the UI has + been reconstituted later and the Page has been added to the visual object + tree. + + ✓ **Do** call GC.Collect at the end of the Unloaded callback to quickly garbage + collect any of the large data structures you have just set to null. + +### Moving from the foreground to the background + +When an app moves from the foreground to the background, the system does work on +behalf of the app to free up resources that are not needed in the background. +For example, the UI frameworks flush cached textures and the video subsystem +frees memory allocated on behalf of the app. However, an app will still need to +carefully monitor its memory usage to avoid being suspended or terminated by the +system. + +When an app moves from the foreground to the background it will first get an +EnteredBackground event and then a AppMemoryLimitChanging event. + + ✓ **Do** use the EnteredBackground event to free up UI resources that you know + your app does not need when running in the background – for example the cover + art image for a song. + + ✘ **Do not** perform long running operations in the EnteredBackground event + as you can cause the system to appear to be slow to transition between + applications as a result. + + ✓ **Do** use the AppMemoryLimitChanging event to ensure that your app is + using less memory than the new background limit. Make sure that you free up + resources if this is not the case. If you do not your app may be suspended or + terminated according to device specific policy. + + ✓ **Do** manually invoke the garbage collector if your app is over the new + memory limit when the AppMemoryLimitChanging event is raised. + + ✓ **Consider** as a performance optimization, freeing UI resources in the + AppMemoryLimitChanging event handler instead of in the EnteredBackground + handler. Use a boolean value set in the EnteredBackground/LeavingBackground + event handlers to track whether the app is in the background or foreground. + Then in the AppMemoryLimitChanging event handler, if AppMemoryUsage is over + the limit and the app is in the background (based on the Boolean value) you can + free UI resources. + + ✓ **Do** use the AppMemoryUsageIncreased event to continue to monitor your + app’s memory usage while running in the background if you expect it to change. + If the AppMemoryUsageLevel is High or OverLimit make sure that you free + up resources. + +### Moving from the background to the foreground + +When an app moves from the background to the foreground, the app will first get +an AppMemoryLimitChanging event and then a LeavingBackground event. + + ✓ **Do** use the LeavingBackground event to recreate UI resources that your app + discarded when moving into the background. + +Related topics +-------------- +* [Background Activity With the Single Process Model](https://blogs.windows.com/buildingapps/2016/06/07/background-activity-with-the-single-process-model/) +* [BackgroundActivation sample](/Samples/BackgroundActivation) +* Old [BackgroundAudio sample](http://go.microsoft.com/fwlink/p/?LinkId=619997), + no longer recommended but available for reference. + +System requirements +----------------------------- + +**Client:** Windows 10 version 14332 + +**Phone:** Windows 10 version 14332 + +Build the sample +---------------- + +1. If you download the samples ZIP, be sure to unzip the entire archive, not just the folder with the sample you want to build. +2. Start Microsoft Visual Studio 2017 and select **File** \> **Open** \> **Project/Solution**. +3. Starting in the folder where you unzipped the samples, go to the Samples subfolder, then the subfolder for this specific sample, then the subfolder for your preferred language (C++, C#, or JavaScript). Double-click the Visual Studio Solution (.sln) file. +4. Press Ctrl+Shift+B, or select **Build** \> **Build Solution**. + +Run the sample +-------------- + +The next steps depend on whether you just want to deploy the sample or you want to both deploy and run it. + +**Deploying the sample** +1. Select **Build** \> **Deploy Solution**. + +**Deploying and running the sample** +1. To debug the sample and then run it, press F5 or select **Debug** \> **Start Debugging**. To run the sample without debugging, press Ctrl+F5 or select**Debug** \> **Start Without Debugging**. diff --git a/Samples/BackgroundMediaPlayback/js/BackgroundMediaPlayback.jsproj b/archived/BackgroundMediaPlayback/js/BackgroundMediaPlayback.jsproj similarity index 84% rename from Samples/BackgroundMediaPlayback/js/BackgroundMediaPlayback.jsproj rename to archived/BackgroundMediaPlayback/js/BackgroundMediaPlayback.jsproj index 54f9f5273e..f253be707a 100644 --- a/Samples/BackgroundMediaPlayback/js/BackgroundMediaPlayback.jsproj +++ b/archived/BackgroundMediaPlayback/js/BackgroundMediaPlayback.jsproj @@ -57,7 +57,7 @@ Designer - + default.html @@ -88,49 +88,49 @@ images\windows-sdk.png - + js\default.js - + css\default.css - + Microsoft.WinJS.4.0\css\ui-dark.css - + Microsoft.WinJS.4.0\css\ui-light.css - + Microsoft.WinJS.4.0\js\en-US\ui.strings.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense-setup.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense.js - + Microsoft.WinJS.4.0\fonts\Symbols.ttf - + Microsoft.WinJS.4.0\js\base.js - + Microsoft.WinJS.4.0\js\ui.js - + sample-utils\footer.html - + sample-utils\header.html - + sample-utils\sample-utils.js - + sample-utils\scenario-select.css - + sample-utils\scenario-select.html diff --git a/Samples/BackgroundMediaPlayback/js/BackgroundMediaPlayback.sln b/archived/BackgroundMediaPlayback/js/BackgroundMediaPlayback.sln similarity index 100% rename from Samples/BackgroundMediaPlayback/js/BackgroundMediaPlayback.sln rename to archived/BackgroundMediaPlayback/js/BackgroundMediaPlayback.sln diff --git a/Samples/BackgroundMediaPlayback/js/Microsoft.WinJS.4.0/css/placeholder.txt b/archived/BackgroundMediaPlayback/js/Microsoft.WinJS.4.0/css/placeholder.txt similarity index 100% rename from Samples/BackgroundMediaPlayback/js/Microsoft.WinJS.4.0/css/placeholder.txt rename to archived/BackgroundMediaPlayback/js/Microsoft.WinJS.4.0/css/placeholder.txt diff --git a/Samples/BackgroundMediaPlayback/js/Microsoft.WinJS.4.0/fonts/placeholder b/archived/BackgroundMediaPlayback/js/Microsoft.WinJS.4.0/fonts/placeholder similarity index 100% rename from Samples/BackgroundMediaPlayback/js/Microsoft.WinJS.4.0/fonts/placeholder rename to archived/BackgroundMediaPlayback/js/Microsoft.WinJS.4.0/fonts/placeholder diff --git a/Samples/BackgroundMediaPlayback/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt b/archived/BackgroundMediaPlayback/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt similarity index 100% rename from Samples/BackgroundMediaPlayback/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt rename to archived/BackgroundMediaPlayback/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt diff --git a/Samples/BackgroundMediaPlayback/js/Package.appxmanifest b/archived/BackgroundMediaPlayback/js/Package.appxmanifest similarity index 100% rename from Samples/BackgroundMediaPlayback/js/Package.appxmanifest rename to archived/BackgroundMediaPlayback/js/Package.appxmanifest diff --git a/Samples/BackgroundMediaPlayback/js/assets/placeholder.txt b/archived/BackgroundMediaPlayback/js/assets/placeholder.txt similarity index 100% rename from Samples/BackgroundMediaPlayback/js/assets/placeholder.txt rename to archived/BackgroundMediaPlayback/js/assets/placeholder.txt diff --git a/Samples/BackgroundMediaPlayback/js/css/scenario1-bg-audio.css b/archived/BackgroundMediaPlayback/js/css/scenario1-bg-audio.css similarity index 100% rename from Samples/BackgroundMediaPlayback/js/css/scenario1-bg-audio.css rename to archived/BackgroundMediaPlayback/js/css/scenario1-bg-audio.css diff --git a/Samples/BackgroundMediaPlayback/js/html/scenario1-bg-audio.html b/archived/BackgroundMediaPlayback/js/html/scenario1-bg-audio.html similarity index 100% rename from Samples/BackgroundMediaPlayback/js/html/scenario1-bg-audio.html rename to archived/BackgroundMediaPlayback/js/html/scenario1-bg-audio.html diff --git a/Samples/BackgroundMediaPlayback/js/images/placeholder.txt b/archived/BackgroundMediaPlayback/js/images/placeholder.txt similarity index 100% rename from Samples/BackgroundMediaPlayback/js/images/placeholder.txt rename to archived/BackgroundMediaPlayback/js/images/placeholder.txt diff --git a/Samples/BackgroundMediaPlayback/js/js/sample-configuration.js b/archived/BackgroundMediaPlayback/js/js/sample-configuration.js similarity index 100% rename from Samples/BackgroundMediaPlayback/js/js/sample-configuration.js rename to archived/BackgroundMediaPlayback/js/js/sample-configuration.js diff --git a/Samples/BackgroundMediaPlayback/js/js/scenario1-bg-audio.js b/archived/BackgroundMediaPlayback/js/js/scenario1-bg-audio.js similarity index 100% rename from Samples/BackgroundMediaPlayback/js/js/scenario1-bg-audio.js rename to archived/BackgroundMediaPlayback/js/js/scenario1-bg-audio.js diff --git a/Samples/BackgroundMediaPlayback/js/sample-utils/placeholder.txt b/archived/BackgroundMediaPlayback/js/sample-utils/placeholder.txt similarity index 100% rename from Samples/BackgroundMediaPlayback/js/sample-utils/placeholder.txt rename to archived/BackgroundMediaPlayback/js/sample-utils/placeholder.txt diff --git a/archived/BackgroundTransfer/README.md b/archived/BackgroundTransfer/README.md new file mode 100644 index 0000000000..10ad4a4e1a --- /dev/null +++ b/archived/BackgroundTransfer/README.md @@ -0,0 +1,144 @@ +--- +topic: sample +languages: +- js +products: +- windows +- windows-uwp +--- + +# Background transfer sample + +Shows how to use the Background Transfer API to download and upload files in the background in Universal Windows Platform (UWP) apps. + +> **Note:** This sample is part of a large collection of UWP feature samples. +> If you are unfamiliar with Git and GitHub, you can download the entire collection as a +> [ZIP file](https://github.com/Microsoft/Windows-universal-samples/archive/master.zip), but be +> sure to unzip everything to access shared dependencies. For more info on working with the ZIP file, +> the samples collection, and GitHub, see [Get the UWP samples from GitHub](https://aka.ms/ovu2uq). +> For more samples, see the [Samples portal](https://aka.ms/winsamples) on the Windows Dev Center. + +Classes in the [Windows.Networking.BackgroundTransfer](http://msdn.microsoft.com/library/windows/apps/br207242) namespace provide a power-friendly, cost-aware, and flexible API for transferring files in the background. This sample shows how to download and upload files using the Background Transfer API. + +For the download scenario, the sample first uses methods on [BackgroundDownloader](http://msdn.microsoft.com/library/windows/apps/br207126) class to enumerate any downloads that were going on in the background while the app was closed. An app should enumerate these downloads when it gets started so it can attach a progress handler to these downloads to track progress and prevent stale downloads. Then other methods on the **BackgroundDownloader** and related classes are used to start new downloads to the local Pictures Library. The sample also shows how to pause downloads and change the priority of a download. + +For the upload scenario, the sample first uses methods on [BackgroundUploader](http://msdn.microsoft.com/library/windows/apps/br207140) class to enumerate any uploads that were going on in the background while the app was closed. An app should enumerate these uploads when it gets started so it can attach a progress handler to these uploads to track progress and prevent stale uploads. Then other methods on the **BackgroundUploader** and related classes are used to start new uploads. The sample also shows how to set a content header and use a multipart upload. + +The sample also showcases several advanced usage scenarios: +- Configuring toast and tile notifications to inform the user when all transfers succeed or when at least one transfer fails. +- Executing a background task when a set of uploads or downloads completes. +- Accessing file content and seeking within that content while a download is still ongoing, effectively altering the order in which remote file data is requested from the server. +- Recovering from a failed download without losing already-downloaded data. + +**Note** Background transfer is primarily designed for long-term transfer operations for resources like video, music, and large images. For short-term operations involving transfers of smaller resources (i.e. a few KB), the HTTP APIs are recommended. [HttpClient](http://msdn.microsoft.com/library/windows/apps/dn298639) is preferred and can be used in all languages supported by UWP apps. [XHR](http://msdn.microsoft.com/library/windows/apps/br229787) can be used in JavaScript. [IXHR2](http://msdn.microsoft.com/library/windows/apps/hh770550) can be used in C++. + +This sample requires the following capabilities: + +- **Internet (Client & Server)** - Needed to send requests to download or upload files to HTTP or FTP servers on the Internet. +- **Private Networks (Client & Server)** - Needed to send requests to download or upload files to HTTP or FTP servers on a home or work intranet. +- **Pictures Library** - Needed to downloads files to the Pictures library. + +For more information on network capabilities, see [How to set network capabilities](http://msdn.microsoft.com/library/windows/apps/hh770532). + +**Note** Network communications using an IP loopback address cannot normally be used for interprocess communication between a UWP app and a different process (a different UWP app or a desktop app) because this is restricted by network isolation. Network communication using an IP loopback address is allowed within the same process for communication purposes in a UWP app. + +**Note** Background Transfer is only enabled on Windows if at least one of the networking capabilities is set: **Internet (Client)**, **Internet (Client & Server)**, or **Private Networks (Client & Server)**. + +## Related topics + +### Other resources + +[Adding support for networking](http://msdn.microsoft.com/library/windows/apps/hh452752) +[How to configure network isolation capabilities](http://msdn.microsoft.com/library/windows/apps/hh770532) +[Quickstart: Downloading a file](http://msdn.microsoft.com/library/windows/apps/hh700370) +[Quickstart: Uploading a file](http://msdn.microsoft.com/library/windows/apps/hh700372) +[Transferring a file from a network resource](http://msdn.microsoft.com/library/windows/apps/hh761434) + +### Reference + +[BackgroundDownloader](http://msdn.microsoft.com/library/windows/apps/br207126) +[BackgroundUploader](http://msdn.microsoft.com/library/windows/apps/br207140) +[HttpClient](http://msdn.microsoft.com/library/windows/apps/dn298639) +[IXHR2](http://msdn.microsoft.com/library/windows/apps/hh770550) +[Windows.Networking.BackgroundTransfer](http://msdn.microsoft.com/library/windows/apps/br207242) +[Windows.Storage](http://msdn.microsoft.com/library/windows/apps/br227346) +[XHR](http://msdn.microsoft.com/library/windows/apps/br229787) + +## System requirements + +**Client:** Windows 10 + +**Server:** Windows Server 2016 + +**Phone:** Windows 10 + +## Build the sample + +1. If you download the samples ZIP, be sure to unzip the entire archive, not just the folder with the sample you want to build. +2. Start Microsoft Visual Studio 2017 and select **File** \> **Open** \> **Project/Solution**. +3. Starting in the folder where you unzipped the samples, go to the Samples subfolder, then the subfolder for this specific sample, then the subfolder for your preferred language (C++, C#, or JavaScript). Double-click the Visual Studio Solution (.sln) file. +4. Press Ctrl+Shift+B, or select **Build** \> **Build Solution**. + +### Deploying and running the Windows version of the sample + +This sample requires that a web server is available for the app to access for uploading and downloading files. The web server must be started before the app is run. The web server must also have a *BackgroundTransferSample* path available for uploads and downloads. The sample includes a PowerShell script that will install IIS on the local computer, create the *BackgroundTransferSample* folder on the server, copy files to this folder, create firewall rules to allow access, and enable IIS. + +The easiest way to run the sample is to use the provided web server scripts. Browse to the *Server* folder in your sample folder to setup and start the web server. There are two options possible. + +- Start PowerShell elevated (Run as administrator) and run the following command: + + **.\\SetupServer.ps1** + + Note that you may also need to change script execution policy. + +- Start an elevated Command Prompt (Run as administrator) and run following command: + + **PowerShell.exe -ExecutionPolicy Unrestricted -File SetupServer.ps1** + +When the web server is not needed anymore, please browse to the *Server* folder in you sample folder and run one of the following: + +- Start PowerShell elevated (Run as administrator) and run the following command: + + **.\\RemoveServer.ps1** + + Note that you may also need to change script execution policy. + +- Start an elevated Command Prompt (Run as administrator) and run following command: + + **PowerShell.exe -ExecutionPolicy Unrestricted -File RemoveServer.ps1** + +The sample can run using any web server, not only the one provided with the sample. If IIS is used on a different computer, then the previous scripts can be used with minor changes. + +- Copy the *Server* folder to the device where IIS will be run. +- Run the above scripts to install IIS, create the *BackgroundTransferSample* folder on the server, copy files to this folder, and enable IIS. + +The sample must also be updated when run against a non-localhost web server. To configure the sample for use with IIS on a different device: + +- The hostname of the server to connect to needs to be updated. This can be handled in two ways. The **AddressField** element in the HTML or XAML files can be edited so that "localhost" is replaced by the hostname or IP address of the web server. Alternately when the app is run, enter the hostname or IP address of the web server instead of the "localhost" value in the **Remote address** textbox. + +**Note** IIS is not available on ARM builds nor on Windows Phone. Instead, set up the web server on a separate 64-bit or 32-bit computer and follow the steps for using the sample against a non-localhost web server. + +**Note** When used with the supplied scripts, this app sample communicates with another process (IIS server which is a desktop app) on the same machine over loopback for demonstration purposes only. A UWP app that communicates over loopback to another process that represents a UWP app or a desktop app is not allowed and such apps will not pass Microsoft Store validation. For more information, see [How to enable loopback and troubleshoot network isolation](http://msdn.microsoft.com/library/windows/apps/hh780593). + +However if a server different than IIS is used, then this requires some special configuration of the server to create the *BackgroundTransferSample* folder. + +Copy the *Server\\webSite* directory to the *BackgroundTransferSample* folder on the web server and configure the server to allow download and upload requests. + +To configure the sample for use with a web server different than IIS not using localhost: + +The remote server address and local filename fields should be updated. This can be handled in two ways. The **serverAddressField** and **fileNameField** elements in the HTML or XAML files can be edited so that the remote server address and filename are replaced by a server address and filename for the non-IIS server. Alternately when the app is run, enter the remote address and local filename to access on the web server instead of the default values in the **Remote address** and **Local file name** fields displayed. + +To deploy and run the Windows version of the sample: + +- To debug the sample and then run it, press F5 or select Debug > Start Debugging. To run the sample without debugging, press Ctrl+F5 or select Debug > Start Without Debugging. + +### Deploying and running the Windows Phone version of the sample + +IIS is not available on Windows Phone. For the app to access a web server, there are two options: + +- The easiest way to run the sample is to use the provided web server scripts on a separate 64-bit or 32-bit device that can run IIS. Follow the instructions for deploying and running the Windows version of the sample using IIS on a different device. +- Use a web server different than IIS on a separate device. Follow the instructions for deploying and running the Windows version of the sample using a non-IIS web server. + +To deploy and run the Windows Phone version of the sample: + +- To debug the sample and then run it, press F5 or select Debug > Start Debugging. To run the sample without debugging, press Ctrl+F5 or select Debug > Start Without Debugging. diff --git a/Samples/BackgroundTransfer/js/BackgroundTransfer.jsproj b/archived/BackgroundTransfer/js/BackgroundTransfer.jsproj similarity index 82% rename from Samples/BackgroundTransfer/js/BackgroundTransfer.jsproj rename to archived/BackgroundTransfer/js/BackgroundTransfer.jsproj index 2bf7eb7039..b9d0e5bdcf 100644 --- a/Samples/BackgroundTransfer/js/BackgroundTransfer.jsproj +++ b/archived/BackgroundTransfer/js/BackgroundTransfer.jsproj @@ -54,7 +54,7 @@ Designer - + default.html @@ -78,10 +78,10 @@ images\windows-sdk.png - + js\default.js - + css\default.css @@ -100,43 +100,43 @@ - + Microsoft.WinJS.4.0\css\ui-dark.css - + Microsoft.WinJS.4.0\css\ui-light.css - + Microsoft.WinJS.4.0\js\en-US\ui.strings.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense-setup.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense.js - + Microsoft.WinJS.4.0\fonts\Symbols.ttf - + Microsoft.WinJS.4.0\js\base.js - + Microsoft.WinJS.4.0\js\ui.js - + sample-utils\footer.html - + sample-utils\header.html - + sample-utils\sample-utils.js - + sample-utils\scenario-select.css - + sample-utils\scenario-select.html diff --git a/Samples/BackgroundTransfer/js/BackgroundTransfer.sln b/archived/BackgroundTransfer/js/BackgroundTransfer.sln similarity index 100% rename from Samples/BackgroundTransfer/js/BackgroundTransfer.sln rename to archived/BackgroundTransfer/js/BackgroundTransfer.sln diff --git a/Samples/BackgroundTransfer/js/Microsoft.WinJS.4.0/css/placeholder.txt b/archived/BackgroundTransfer/js/Microsoft.WinJS.4.0/css/placeholder.txt similarity index 100% rename from Samples/BackgroundTransfer/js/Microsoft.WinJS.4.0/css/placeholder.txt rename to archived/BackgroundTransfer/js/Microsoft.WinJS.4.0/css/placeholder.txt diff --git a/Samples/BackgroundTransfer/js/Microsoft.WinJS.4.0/fonts/placeholder b/archived/BackgroundTransfer/js/Microsoft.WinJS.4.0/fonts/placeholder similarity index 100% rename from Samples/BackgroundTransfer/js/Microsoft.WinJS.4.0/fonts/placeholder rename to archived/BackgroundTransfer/js/Microsoft.WinJS.4.0/fonts/placeholder diff --git a/Samples/BackgroundTransfer/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt b/archived/BackgroundTransfer/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt similarity index 100% rename from Samples/BackgroundTransfer/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt rename to archived/BackgroundTransfer/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt diff --git a/Samples/BackgroundTransfer/js/css/placeholder.txt b/archived/BackgroundTransfer/js/css/placeholder.txt similarity index 100% rename from Samples/BackgroundTransfer/js/css/placeholder.txt rename to archived/BackgroundTransfer/js/css/placeholder.txt diff --git a/Samples/BackgroundTransfer/js/html/scenario1_Download.html b/archived/BackgroundTransfer/js/html/scenario1_Download.html similarity index 100% rename from Samples/BackgroundTransfer/js/html/scenario1_Download.html rename to archived/BackgroundTransfer/js/html/scenario1_Download.html diff --git a/Samples/BackgroundTransfer/js/html/scenario2_Upload.html b/archived/BackgroundTransfer/js/html/scenario2_Upload.html similarity index 100% rename from Samples/BackgroundTransfer/js/html/scenario2_Upload.html rename to archived/BackgroundTransfer/js/html/scenario2_Upload.html diff --git a/Samples/BackgroundTransfer/js/html/scenario3_Notifications.html b/archived/BackgroundTransfer/js/html/scenario3_Notifications.html similarity index 100% rename from Samples/BackgroundTransfer/js/html/scenario3_Notifications.html rename to archived/BackgroundTransfer/js/html/scenario3_Notifications.html diff --git a/Samples/BackgroundTransfer/js/html/scenario4_CompletionGroups.html b/archived/BackgroundTransfer/js/html/scenario4_CompletionGroups.html similarity index 100% rename from Samples/BackgroundTransfer/js/html/scenario4_CompletionGroups.html rename to archived/BackgroundTransfer/js/html/scenario4_CompletionGroups.html diff --git a/Samples/BackgroundTransfer/js/html/scenario5_RandomAccess.html b/archived/BackgroundTransfer/js/html/scenario5_RandomAccess.html similarity index 100% rename from Samples/BackgroundTransfer/js/html/scenario5_RandomAccess.html rename to archived/BackgroundTransfer/js/html/scenario5_RandomAccess.html diff --git a/Samples/BackgroundTransfer/js/html/scenario6_RecoverableErrors.html b/archived/BackgroundTransfer/js/html/scenario6_RecoverableErrors.html similarity index 100% rename from Samples/BackgroundTransfer/js/html/scenario6_RecoverableErrors.html rename to archived/BackgroundTransfer/js/html/scenario6_RecoverableErrors.html diff --git a/Samples/BackgroundTransfer/js/html/scenario7_DownloadReordering.html b/archived/BackgroundTransfer/js/html/scenario7_DownloadReordering.html similarity index 100% rename from Samples/BackgroundTransfer/js/html/scenario7_DownloadReordering.html rename to archived/BackgroundTransfer/js/html/scenario7_DownloadReordering.html diff --git a/Samples/BackgroundTransfer/js/images/placeholder.txt b/archived/BackgroundTransfer/js/images/placeholder.txt similarity index 100% rename from Samples/BackgroundTransfer/js/images/placeholder.txt rename to archived/BackgroundTransfer/js/images/placeholder.txt diff --git a/Samples/BackgroundTransfer/js/js/completionGroupBackgroundTask.js b/archived/BackgroundTransfer/js/js/completionGroupBackgroundTask.js similarity index 100% rename from Samples/BackgroundTransfer/js/js/completionGroupBackgroundTask.js rename to archived/BackgroundTransfer/js/js/completionGroupBackgroundTask.js diff --git a/Samples/BackgroundTransfer/js/js/sample-configuration.js b/archived/BackgroundTransfer/js/js/sample-configuration.js similarity index 100% rename from Samples/BackgroundTransfer/js/js/sample-configuration.js rename to archived/BackgroundTransfer/js/js/sample-configuration.js diff --git a/Samples/BackgroundTransfer/js/js/scenario1_Download.js b/archived/BackgroundTransfer/js/js/scenario1_Download.js similarity index 100% rename from Samples/BackgroundTransfer/js/js/scenario1_Download.js rename to archived/BackgroundTransfer/js/js/scenario1_Download.js diff --git a/Samples/BackgroundTransfer/js/js/scenario2_Upload.js b/archived/BackgroundTransfer/js/js/scenario2_Upload.js similarity index 100% rename from Samples/BackgroundTransfer/js/js/scenario2_Upload.js rename to archived/BackgroundTransfer/js/js/scenario2_Upload.js diff --git a/Samples/BackgroundTransfer/js/js/scenario3_Notifications.js b/archived/BackgroundTransfer/js/js/scenario3_Notifications.js similarity index 100% rename from Samples/BackgroundTransfer/js/js/scenario3_Notifications.js rename to archived/BackgroundTransfer/js/js/scenario3_Notifications.js diff --git a/Samples/BackgroundTransfer/js/js/scenario4_CompletionGroups.js b/archived/BackgroundTransfer/js/js/scenario4_CompletionGroups.js similarity index 100% rename from Samples/BackgroundTransfer/js/js/scenario4_CompletionGroups.js rename to archived/BackgroundTransfer/js/js/scenario4_CompletionGroups.js diff --git a/Samples/BackgroundTransfer/js/js/scenario5_RandomAccess.js b/archived/BackgroundTransfer/js/js/scenario5_RandomAccess.js similarity index 100% rename from Samples/BackgroundTransfer/js/js/scenario5_RandomAccess.js rename to archived/BackgroundTransfer/js/js/scenario5_RandomAccess.js diff --git a/Samples/BackgroundTransfer/js/js/scenario6_RecoverableErrors.js b/archived/BackgroundTransfer/js/js/scenario6_RecoverableErrors.js similarity index 100% rename from Samples/BackgroundTransfer/js/js/scenario6_RecoverableErrors.js rename to archived/BackgroundTransfer/js/js/scenario6_RecoverableErrors.js diff --git a/Samples/BackgroundTransfer/js/js/scenario7_DownloadReordering.js b/archived/BackgroundTransfer/js/js/scenario7_DownloadReordering.js similarity index 100% rename from Samples/BackgroundTransfer/js/js/scenario7_DownloadReordering.js rename to archived/BackgroundTransfer/js/js/scenario7_DownloadReordering.js diff --git a/Samples/BackgroundTransfer/js/package.appxmanifest b/archived/BackgroundTransfer/js/package.appxmanifest similarity index 100% rename from Samples/BackgroundTransfer/js/package.appxmanifest rename to archived/BackgroundTransfer/js/package.appxmanifest diff --git a/Samples/BackgroundTransfer/js/sample-utils/placeholder.txt b/archived/BackgroundTransfer/js/sample-utils/placeholder.txt similarity index 100% rename from Samples/BackgroundTransfer/js/sample-utils/placeholder.txt rename to archived/BackgroundTransfer/js/sample-utils/placeholder.txt diff --git a/archived/BarcodeScanner/README.md b/archived/BarcodeScanner/README.md new file mode 100644 index 0000000000..51173139ee --- /dev/null +++ b/archived/BarcodeScanner/README.md @@ -0,0 +1,103 @@ +--- +topic: sample +languages: +- js +products: +- windows +- windows-uwp +--- + +# Barcode scanner sample + +Shows how to obtain a barcode scanner, claim it for exclusive use, enable it to receive data, and read a barcode. + +> **Note:** This sample is part of a large collection of UWP feature samples. +> If you are unfamiliar with Git and GitHub, you can download the entire collection as a +> [ZIP file](https://github.com/Microsoft/Windows-universal-samples/archive/master.zip), but be +> sure to unzip everything to access shared dependencies. For more info on working with the ZIP file, +> the samples collection, and GitHub, see [Get the UWP samples from GitHub](https://aka.ms/ovu2uq). +> For more samples, see the [Samples portal](https://aka.ms/winsamples) on the Windows Dev Center. + +This sample shows how to: + +1. **Obtain the barcode scanner** + + Uses a [**DeviceWatcher**](https://docs.microsoft.com/uwp/api/Windows.Devices.Enumeration.DeviceWatcher) + to enumerate and select the first barcode scanner. + +2. **Claim the barcode scanner for exclusive use** + + Uses [ClaimScannerAsync](http://msdn.microsoft.com/library/windows/apps/dn297696) to claim the device. + +3. **Add event handlers** + + Uses [DataReceived](http://msdn.microsoft.com/library/windows/apps/dn278556) and [ReleaseDeviceRequested](http://msdn.microsoft.com/library/windows/apps/dn278578) events. + + When an application gets a request to release its exclusive claim to the barcode scanner, it must handle the request by retaining the device; otherwise, it will lose its claim. The second scenario in this sample shows the release and retain functionality. The event handler for [ReleaseDeviceRequested](http://msdn.microsoft.com/library/windows/apps/dn278578) shows how retain the device. + +4. **Set active symbologies** + + Uses the [GetSupportedSymbologiesAsync](https://msdn.microsoft.com/library/windows/apps/windows.devices.pointofservice.barcodescanner.getsupportedsymbologiesasync) method + to determine which symbologies are supported by the scanner + and the [SetActiveSymbologiesAsync](https://msdn.microsoft.com/library/windows/apps/windows.devices.pointofservice.claimedbarcodescanner.setactivesymbologiesasync) method + to specify which symbologies are active. + +5. **Set symbology attributes** + + Uses the [GetSymbologyAttributesAsync](https://msdn.microsoft.com/library/windows/apps/windows.devices.pointofservice.claimedbarcodescanner.getsymbologyattributesasync) method + to determine what symbology attributes are supported by the scanner + and the [SetSymbologyAttributesAsync](https://msdn.microsoft.com/library/windows/apps/windows.devices.pointofservice.claimedbarcodescanner.setsymbologyattributesasync) method + to enable or disable them. + +6. **Control camera-based barcode scanners** + + Detects camera-based barcode scanners by checking the [VideoDeviceId](https://docs.microsoft.com/en-us/uwp/api/windows.devices.pointofservice.barcodescanner.videodeviceid) property + and shows an in-app preview of the barcode camera. + Shows and hides the video preview window with the [ShowVideoPreviewAsync](https://docs.microsoft.com/en-us/uwp/api/windows.devices.pointofservice.claimedbarcodescanner.showvideopreviewasync) + and [HideVideoPreview](https://docs.microsoft.com/en-us/uwp/api/windows.devices.pointofservice.claimedbarcodescanner.hidevideopreview) methods. + Controls the software trigger with the [StartSoftwareTriggerAsync](https://docs.microsoft.com/en-us/uwp/api/windows.devices.pointofservice.claimedbarcodescanner.startsoftwaretriggerasync) + and [StopSoftwareTrigger](https://docs.microsoft.com/en-us/uwp/api/windows.devices.pointofservice.claimedbarcodescanner.stopsoftwaretriggerasync) methods. + +The app package manifest shows how to specify the device capability name for the Point of Service (POS) devices. All POS apps are required declare [DeviceCapability](http://msdn.microsoft.com/library/windows/apps/br211430) in the app package manifest, either by using "PointofService" as shown in this sample or by using a device specific GUID, such as "C243FFBD-3AFC-45E9-B3D3-2BA18BC7EBC5" for a barcode scanner. + +**Note** The Universal Windows app samples require Visual Studio 2017 to build and Windows 10 to execute. + +To obtain information about Windows 10 development, go to the [Windows Dev Center](http://go.microsoft.com/fwlink/?LinkID=532421) + +To obtain information about Microsoft Visual Studio and the tools for developing Windows apps, go to [Visual Studio](http://go.microsoft.com/fwlink/?LinkID=532422) + +## Related topics + +### Reference + +[Windows.Devices.PointOfService namespace](http://msdn.microsoft.com/library/windows/apps/dn298071) +[Supported Point of Service Peripherals](https://docs.microsoft.com/windows/uwp/devices-sensors/pos-device-support) +[USB HID POS Scanner specification](http://go.microsoft.com/fwlink/p/?linkid=309230) +[Windows app samples](http://go.microsoft.com/fwlink/p/?LinkID=227694) + +## System requirements + +**Client:** Windows 10 + +**Server:** Windows Server 2016 Technical Preview + +**Phone:** Windows 10 + +## Build the sample + +1. If you download the samples ZIP, be sure to unzip the entire archive, not just the folder with the sample you want to build. +2. Start Microsoft Visual Studio 2017 and select **File** \> **Open** \> **Project/Solution**. +3. Starting in the folder where you unzipped the samples, go to the Samples subfolder, then the subfolder for this specific sample, then the subfolder for your preferred language (C++, C#, or JavaScript). Double-click the Visual Studio Solution (.sln) file. +4. Press Ctrl+Shift+B, or select **Build** \> **Build Solution**. + +## Run the sample + +The next steps depend on whether you just want to deploy the sample or you want to both deploy and run it. + +### Deploying the sample + +- Select Build > Deploy Solution. + +### Deploying and running the sample + +- To debug the sample and then run it, press F5 or select Debug > Start Debugging. To run the sample without debugging, press Ctrl+F5 or selectDebug > Start Without Debugging. diff --git a/Samples/BarcodeScanner/js/BarcodeScanner.jsproj b/archived/BarcodeScanner/js/BarcodeScanner.jsproj similarity index 82% rename from Samples/BarcodeScanner/js/BarcodeScanner.jsproj rename to archived/BarcodeScanner/js/BarcodeScanner.jsproj index d04edd20e8..cb66bb489e 100644 --- a/Samples/BarcodeScanner/js/BarcodeScanner.jsproj +++ b/archived/BarcodeScanner/js/BarcodeScanner.jsproj @@ -58,7 +58,7 @@ - + default.html @@ -87,13 +87,13 @@ images\windows-sdk.png - + js\default.js - + js\devicehelpers.js - + css\default.css @@ -104,43 +104,43 @@ - + Microsoft.WinJS.4.0\css\ui-dark.css - + Microsoft.WinJS.4.0\css\ui-light.css - + Microsoft.WinJS.4.0\js\en-US\ui.strings.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense-setup.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense.js - + Microsoft.WinJS.4.0\fonts\Symbols.ttf - + Microsoft.WinJS.4.0\js\base.js - + Microsoft.WinJS.4.0\js\ui.js - + sample-utils\footer.html - + sample-utils\header.html - + sample-utils\sample-utils.js - + sample-utils\scenario-select.css - + sample-utils\scenario-select.html diff --git a/Samples/BarcodeScanner/js/BarcodeScanner.sln b/archived/BarcodeScanner/js/BarcodeScanner.sln similarity index 100% rename from Samples/BarcodeScanner/js/BarcodeScanner.sln rename to archived/BarcodeScanner/js/BarcodeScanner.sln diff --git a/Samples/BarcodeScanner/js/Microsoft.WinJS.4.0/css/placeholder.txt b/archived/BarcodeScanner/js/Microsoft.WinJS.4.0/css/placeholder.txt similarity index 100% rename from Samples/BarcodeScanner/js/Microsoft.WinJS.4.0/css/placeholder.txt rename to archived/BarcodeScanner/js/Microsoft.WinJS.4.0/css/placeholder.txt diff --git a/Samples/BarcodeScanner/js/Microsoft.WinJS.4.0/fonts/placeholder b/archived/BarcodeScanner/js/Microsoft.WinJS.4.0/fonts/placeholder similarity index 100% rename from Samples/BarcodeScanner/js/Microsoft.WinJS.4.0/fonts/placeholder rename to archived/BarcodeScanner/js/Microsoft.WinJS.4.0/fonts/placeholder diff --git a/Samples/BarcodeScanner/js/Microsoft.WinJS.4.0/js/en-us/placeholder.txt b/archived/BarcodeScanner/js/Microsoft.WinJS.4.0/js/en-us/placeholder.txt similarity index 100% rename from Samples/BarcodeScanner/js/Microsoft.WinJS.4.0/js/en-us/placeholder.txt rename to archived/BarcodeScanner/js/Microsoft.WinJS.4.0/js/en-us/placeholder.txt diff --git a/Samples/BarcodeScanner/js/Package.appxmanifest b/archived/BarcodeScanner/js/Package.appxmanifest similarity index 100% rename from Samples/BarcodeScanner/js/Package.appxmanifest rename to archived/BarcodeScanner/js/Package.appxmanifest diff --git a/Samples/BarcodeScanner/js/css/scenario1_BasicFunctionality.css b/archived/BarcodeScanner/js/css/scenario1_BasicFunctionality.css similarity index 100% rename from Samples/BarcodeScanner/js/css/scenario1_BasicFunctionality.css rename to archived/BarcodeScanner/js/css/scenario1_BasicFunctionality.css diff --git a/Samples/BarcodeScanner/js/css/scenario2_MultipleScanners.css b/archived/BarcodeScanner/js/css/scenario2_MultipleScanners.css similarity index 100% rename from Samples/BarcodeScanner/js/css/scenario2_MultipleScanners.css rename to archived/BarcodeScanner/js/css/scenario2_MultipleScanners.css diff --git a/Samples/BarcodeScanner/js/css/scenario3_ActiveSymbologies.css b/archived/BarcodeScanner/js/css/scenario3_ActiveSymbologies.css similarity index 100% rename from Samples/BarcodeScanner/js/css/scenario3_ActiveSymbologies.css rename to archived/BarcodeScanner/js/css/scenario3_ActiveSymbologies.css diff --git a/Samples/BarcodeScanner/js/css/scenario4_SymbologyAttributes.css b/archived/BarcodeScanner/js/css/scenario4_SymbologyAttributes.css similarity index 100% rename from Samples/BarcodeScanner/js/css/scenario4_SymbologyAttributes.css rename to archived/BarcodeScanner/js/css/scenario4_SymbologyAttributes.css diff --git a/Samples/BarcodeScanner/js/css/scenario5_DisplayingBarcodePreview.css b/archived/BarcodeScanner/js/css/scenario5_DisplayingBarcodePreview.css similarity index 100% rename from Samples/BarcodeScanner/js/css/scenario5_DisplayingBarcodePreview.css rename to archived/BarcodeScanner/js/css/scenario5_DisplayingBarcodePreview.css diff --git a/Samples/BarcodeScanner/js/html/scenario1_BasicFunctionality.html b/archived/BarcodeScanner/js/html/scenario1_BasicFunctionality.html similarity index 100% rename from Samples/BarcodeScanner/js/html/scenario1_BasicFunctionality.html rename to archived/BarcodeScanner/js/html/scenario1_BasicFunctionality.html diff --git a/Samples/BarcodeScanner/js/html/scenario2_MultipleScanners.html b/archived/BarcodeScanner/js/html/scenario2_MultipleScanners.html similarity index 100% rename from Samples/BarcodeScanner/js/html/scenario2_MultipleScanners.html rename to archived/BarcodeScanner/js/html/scenario2_MultipleScanners.html diff --git a/Samples/BarcodeScanner/js/html/scenario3_ActiveSymbologies.html b/archived/BarcodeScanner/js/html/scenario3_ActiveSymbologies.html similarity index 100% rename from Samples/BarcodeScanner/js/html/scenario3_ActiveSymbologies.html rename to archived/BarcodeScanner/js/html/scenario3_ActiveSymbologies.html diff --git a/Samples/BarcodeScanner/js/html/scenario4_SymbologyAttributes.html b/archived/BarcodeScanner/js/html/scenario4_SymbologyAttributes.html similarity index 100% rename from Samples/BarcodeScanner/js/html/scenario4_SymbologyAttributes.html rename to archived/BarcodeScanner/js/html/scenario4_SymbologyAttributes.html diff --git a/Samples/BarcodeScanner/js/html/scenario5_DisplayingBarcodePreview.html b/archived/BarcodeScanner/js/html/scenario5_DisplayingBarcodePreview.html similarity index 100% rename from Samples/BarcodeScanner/js/html/scenario5_DisplayingBarcodePreview.html rename to archived/BarcodeScanner/js/html/scenario5_DisplayingBarcodePreview.html diff --git a/Samples/BarcodeScanner/js/images/placeholder.txt b/archived/BarcodeScanner/js/images/placeholder.txt similarity index 100% rename from Samples/BarcodeScanner/js/images/placeholder.txt rename to archived/BarcodeScanner/js/images/placeholder.txt diff --git a/Samples/BarcodeScanner/js/js/sample-configuration.js b/archived/BarcodeScanner/js/js/sample-configuration.js similarity index 100% rename from Samples/BarcodeScanner/js/js/sample-configuration.js rename to archived/BarcodeScanner/js/js/sample-configuration.js diff --git a/Samples/BarcodeScanner/js/js/scenario1_BasicFunctionality.js b/archived/BarcodeScanner/js/js/scenario1_BasicFunctionality.js similarity index 100% rename from Samples/BarcodeScanner/js/js/scenario1_BasicFunctionality.js rename to archived/BarcodeScanner/js/js/scenario1_BasicFunctionality.js diff --git a/Samples/BarcodeScanner/js/js/scenario2_MultipleScanners.js b/archived/BarcodeScanner/js/js/scenario2_MultipleScanners.js similarity index 100% rename from Samples/BarcodeScanner/js/js/scenario2_MultipleScanners.js rename to archived/BarcodeScanner/js/js/scenario2_MultipleScanners.js diff --git a/Samples/BarcodeScanner/js/js/scenario3_ActiveSymbologies.js b/archived/BarcodeScanner/js/js/scenario3_ActiveSymbologies.js similarity index 100% rename from Samples/BarcodeScanner/js/js/scenario3_ActiveSymbologies.js rename to archived/BarcodeScanner/js/js/scenario3_ActiveSymbologies.js diff --git a/Samples/BarcodeScanner/js/js/scenario4_SymbologyAttributes.js b/archived/BarcodeScanner/js/js/scenario4_SymbologyAttributes.js similarity index 100% rename from Samples/BarcodeScanner/js/js/scenario4_SymbologyAttributes.js rename to archived/BarcodeScanner/js/js/scenario4_SymbologyAttributes.js diff --git a/Samples/BarcodeScanner/js/js/scenario5_DisplayingBarcodePreview.js b/archived/BarcodeScanner/js/js/scenario5_DisplayingBarcodePreview.js similarity index 100% rename from Samples/BarcodeScanner/js/js/scenario5_DisplayingBarcodePreview.js rename to archived/BarcodeScanner/js/js/scenario5_DisplayingBarcodePreview.js diff --git a/Samples/BarcodeScanner/js/js/util.js b/archived/BarcodeScanner/js/js/util.js similarity index 100% rename from Samples/BarcodeScanner/js/js/util.js rename to archived/BarcodeScanner/js/js/util.js diff --git a/Samples/BarcodeScanner/js/sample-utils/placeholder.txt b/archived/BarcodeScanner/js/sample-utils/placeholder.txt similarity index 100% rename from Samples/BarcodeScanner/js/sample-utils/placeholder.txt rename to archived/BarcodeScanner/js/sample-utils/placeholder.txt diff --git a/archived/Barometer/README.md b/archived/Barometer/README.md new file mode 100644 index 0000000000..3b2c5dcd78 --- /dev/null +++ b/archived/Barometer/README.md @@ -0,0 +1,59 @@ +--- +topic: sample +languages: +- js +products: +- windows +- windows-uwp +--- + +# Barometer sample + +Shows how to use the [Barometer](https://msdn.microsoft.com/library/windows/apps/windows.devices.sensors.barometer.aspx) class. + +> **Note:** This sample is part of a large collection of UWP feature samples. +> If you are unfamiliar with Git and GitHub, you can download the entire collection as a +> [ZIP file](https://github.com/Microsoft/Windows-universal-samples/archive/master.zip), but be +> sure to unzip everything to access shared dependencies. For more info on working with the ZIP file, +> the samples collection, and GitHub, see [Get the UWP samples from GitHub](https://aka.ms/ovu2uq). +> For more samples, see the [Samples portal](https://aka.ms/winsamples) on the Windows Dev Center. + +This sample allows the user to view the pressure reading as a hPa value. You can choose one of two scenarios: + +- Barometer Data Events +- Polling Barometer Readings + +### Barometer Data Events + +When you choose the **Enable** button for the **Data Events** option, the app will begin streaming barometer readings in real time. + +### Polling barometer Readings + +When you choose the **Get Data** button for the **Polling** option, the app will retrieve the current sensor readings. + +## System requirements + +**Client:** Windows 10 + +**Server:** Windows Server 2016 Technical Preview + +**Phone:** Windows 10 + +## Build the sample + +1. If you download the samples ZIP, be sure to unzip the entire archive, not just the folder with the sample you want to build. +2. Start Microsoft Visual Studio 2017 and select **File** \> **Open** \> **Project/Solution**. +3. Starting in the folder where you unzipped the samples, go to the Samples subfolder, then the subfolder for this specific sample, then the subfolder for your preferred language (C++, C#, or JavaScript). Double-click the Visual Studio Solution (.sln) file. +4. Press Ctrl+Shift+B, or select **Build** \> **Build Solution**. + +## Run the sample + +The next steps depend on whether you just want to deploy the sample or you want to both deploy and run it. + +### Deploying the sample + +- Select Build > Deploy Solution. + +### Deploying and running the sample + +- To debug the sample and then run it, press F5 or select Debug > Start Debugging. To run the sample without debugging, press Ctrl+F5 or selectDebug > Start Without Debugging. diff --git a/Samples/Barometer/js/Barometer.jsproj b/archived/Barometer/js/Barometer.jsproj similarity index 81% rename from Samples/Barometer/js/Barometer.jsproj rename to archived/Barometer/js/Barometer.jsproj index b1284366cb..5fbd4aa568 100644 --- a/Samples/Barometer/js/Barometer.jsproj +++ b/archived/Barometer/js/Barometer.jsproj @@ -56,7 +56,7 @@ - + default.html @@ -82,52 +82,52 @@ images\windows-sdk.png - + js\default.js - + css\default.css - + Microsoft.WinJS.4.0\css\ui-dark.css - + Microsoft.WinJS.4.0\css\ui-light.css - + Microsoft.WinJS.4.0\js\en-US\ui.strings.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense-setup.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense.js - + Microsoft.WinJS.4.0\fonts\Symbols.ttf - + Microsoft.WinJS.4.0\js\base.js - + Microsoft.WinJS.4.0\js\ui.js - + sample-utils\footer.html - + sample-utils\header.html - + sample-utils\sample-utils.js - + sample-utils\scenario-select.css - + sample-utils\scenario-select.html diff --git a/Samples/Barometer/js/Barometer.sln b/archived/Barometer/js/Barometer.sln similarity index 100% rename from Samples/Barometer/js/Barometer.sln rename to archived/Barometer/js/Barometer.sln diff --git a/Samples/Barometer/js/Microsoft.WinJS.4.0/css/placeholder.txt b/archived/Barometer/js/Microsoft.WinJS.4.0/css/placeholder.txt similarity index 100% rename from Samples/Barometer/js/Microsoft.WinJS.4.0/css/placeholder.txt rename to archived/Barometer/js/Microsoft.WinJS.4.0/css/placeholder.txt diff --git a/Samples/Barometer/js/Microsoft.WinJS.4.0/fonts/placeholder b/archived/Barometer/js/Microsoft.WinJS.4.0/fonts/placeholder similarity index 100% rename from Samples/Barometer/js/Microsoft.WinJS.4.0/fonts/placeholder rename to archived/Barometer/js/Microsoft.WinJS.4.0/fonts/placeholder diff --git a/Samples/Barometer/js/Microsoft.WinJS.4.0/js/en-us/placeholder.txt b/archived/Barometer/js/Microsoft.WinJS.4.0/js/en-us/placeholder.txt similarity index 100% rename from Samples/Barometer/js/Microsoft.WinJS.4.0/js/en-us/placeholder.txt rename to archived/Barometer/js/Microsoft.WinJS.4.0/js/en-us/placeholder.txt diff --git a/Samples/Barometer/js/Package.appxmanifest b/archived/Barometer/js/Package.appxmanifest similarity index 100% rename from Samples/Barometer/js/Package.appxmanifest rename to archived/Barometer/js/Package.appxmanifest diff --git a/Samples/Barometer/js/css/scenario1_DataEvents.css b/archived/Barometer/js/css/scenario1_DataEvents.css similarity index 100% rename from Samples/Barometer/js/css/scenario1_DataEvents.css rename to archived/Barometer/js/css/scenario1_DataEvents.css diff --git a/Samples/Barometer/js/css/scenario2_Polling.css b/archived/Barometer/js/css/scenario2_Polling.css similarity index 100% rename from Samples/Barometer/js/css/scenario2_Polling.css rename to archived/Barometer/js/css/scenario2_Polling.css diff --git a/Samples/Barometer/js/html/scenario1_DataEvents.html b/archived/Barometer/js/html/scenario1_DataEvents.html similarity index 100% rename from Samples/Barometer/js/html/scenario1_DataEvents.html rename to archived/Barometer/js/html/scenario1_DataEvents.html diff --git a/Samples/Barometer/js/html/scenario2_Polling.html b/archived/Barometer/js/html/scenario2_Polling.html similarity index 100% rename from Samples/Barometer/js/html/scenario2_Polling.html rename to archived/Barometer/js/html/scenario2_Polling.html diff --git a/Samples/Barometer/js/js/sample-configuration.js b/archived/Barometer/js/js/sample-configuration.js similarity index 100% rename from Samples/Barometer/js/js/sample-configuration.js rename to archived/Barometer/js/js/sample-configuration.js diff --git a/Samples/Barometer/js/js/scenario1_DataEvents.js b/archived/Barometer/js/js/scenario1_DataEvents.js similarity index 100% rename from Samples/Barometer/js/js/scenario1_DataEvents.js rename to archived/Barometer/js/js/scenario1_DataEvents.js diff --git a/Samples/Barometer/js/js/scenario2_Polling.js b/archived/Barometer/js/js/scenario2_Polling.js similarity index 100% rename from Samples/Barometer/js/js/scenario2_Polling.js rename to archived/Barometer/js/js/scenario2_Polling.js diff --git a/Samples/Barometer/js/sample-utils/placeholder.txt b/archived/Barometer/js/sample-utils/placeholder.txt similarity index 100% rename from Samples/Barometer/js/sample-utils/placeholder.txt rename to archived/Barometer/js/sample-utils/placeholder.txt diff --git a/archived/BluetoothAdvertisement/README.md b/archived/BluetoothAdvertisement/README.md new file mode 100644 index 0000000000..e631b8ee9c --- /dev/null +++ b/archived/BluetoothAdvertisement/README.md @@ -0,0 +1,56 @@ +--- +topic: sample +languages: +- js +products: +- windows +- windows-uwp +--- + +# Bluetooth advertisement sample + +Shows how to use the [Bluetooth Advertisement](https://msdn.microsoft.com/library/windows/apps/xaml/windows.devices.bluetooth.advertisement.aspx) +API to send and receive Bluetooth Low Energy advertisements. + +> **Note:** This sample is part of a large collection of UWP feature samples. +> If you are unfamiliar with Git and GitHub, you can download the entire collection as a +> [ZIP file](https://github.com/Microsoft/Windows-universal-samples/archive/master.zip), but be +> sure to unzip everything to access shared dependencies. For more info on working with the ZIP file, +> the samples collection, and GitHub, see [Get the UWP samples from GitHub](https://aka.ms/ovu2uq). +> For more samples, see the [Samples portal](https://aka.ms/winsamples) on the Windows Dev Center. + +This sample allows the user to publish and watch for Bluetooth Low Energy advertisements. You can choose one of four scenarios and you will likely need two Windows devices to see : +- **Foreground watcher**: Scanning for a particular LE advertisement containing a matching manufacturer data section and above a certain RSSI threshold. +- **Foregound publisher**: Publishing a LE advertisement. The advertisement generated by this scenario can be received by running Scenario 1 or 3 on another Windows platform in close proximity with this one. +- **Background watcher**: Scanning for a particular LE advertisement containing a matching manufacturer data section and above a certain RSSI threshold using a background trigger and task. +- **Background publisher**: Publishing a LE advertisement in the background. The advertisement generated by this scenario can be received by running Scenario 1 or 3 on another Windows platform in close proximity with this one. + +**Note:** A working Bluetooth dongle/radio is needed in order to test this sample's functionality. The VS Emulator is a valid target, but since there's technically no valid Bluetooth, the app will treat it as if there's no Bluetooth radio and beacon functionality cannot be used. + +## System requirements + +**Client:** Windows 10 + +**Server:** Windows Server 2016 Technical Preview + +**Phone:** Windows 10 + +## Build the sample + +1. If you download the samples ZIP, be sure to unzip the entire archive, not just the folder with the sample you want to build. +2. Start Microsoft Visual Studio 2017 and select **File** \> **Open** \> **Project/Solution**. +3. Starting in the folder where you unzipped the samples, go to the Samples subfolder, then the subfolder for this specific sample, then the subfolder for your preferred language (C++, C#, or JavaScript). Double-click the Visual Studio Solution (.sln) file. +4. Press Ctrl+Shift+B, or select **Build** \> **Build Solution**. + +## Run the sample + +The next steps depend on whether you just want to deploy the sample or you want to both deploy and run it. + +### Deploying the sample + +- Select Build > Deploy Solution. + +### Deploying and running the sample + +- To debug the sample and then run it, press F5 or select Debug > Start Debugging. To run the sample without debugging, press Ctrl+F5 or selectDebug > Start Without Debugging. + diff --git a/Samples/BluetoothAdvertisement/js/BluetoothAdvertisement.jsproj b/archived/BluetoothAdvertisement/js/BluetoothAdvertisement.jsproj similarity index 82% rename from Samples/BluetoothAdvertisement/js/BluetoothAdvertisement.jsproj rename to archived/BluetoothAdvertisement/js/BluetoothAdvertisement.jsproj index b580ff3c3f..aafa475f01 100644 --- a/Samples/BluetoothAdvertisement/js/BluetoothAdvertisement.jsproj +++ b/archived/BluetoothAdvertisement/js/BluetoothAdvertisement.jsproj @@ -54,14 +54,14 @@ Designer - + css\default.css - + default.html @@ -89,7 +89,7 @@ images\windows-sdk.png - + js\default.js @@ -99,43 +99,43 @@ - + Microsoft.WinJS.4.0\css\ui-dark.css - + Microsoft.WinJS.4.0\css\ui-light.css - + Microsoft.WinJS.4.0\js\en-US\ui.strings.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense-setup.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense.js - + Microsoft.WinJS.4.0\fonts\Symbols.ttf - + Microsoft.WinJS.4.0\js\base.js - + Microsoft.WinJS.4.0\js\ui.js - + sample-utils\footer.html - + sample-utils\header.html - + sample-utils\sample-utils.js - + sample-utils\scenario-select.css - + sample-utils\scenario-select.html diff --git a/Samples/BluetoothAdvertisement/js/BluetoothAdvertisement.sln b/archived/BluetoothAdvertisement/js/BluetoothAdvertisement.sln similarity index 100% rename from Samples/BluetoothAdvertisement/js/BluetoothAdvertisement.sln rename to archived/BluetoothAdvertisement/js/BluetoothAdvertisement.sln diff --git a/Samples/BluetoothAdvertisement/js/Microsoft.WinJS.4.0/css/placeholder.txt b/archived/BluetoothAdvertisement/js/Microsoft.WinJS.4.0/css/placeholder.txt similarity index 100% rename from Samples/BluetoothAdvertisement/js/Microsoft.WinJS.4.0/css/placeholder.txt rename to archived/BluetoothAdvertisement/js/Microsoft.WinJS.4.0/css/placeholder.txt diff --git a/Samples/BluetoothAdvertisement/js/Microsoft.WinJS.4.0/fonts/placeholder b/archived/BluetoothAdvertisement/js/Microsoft.WinJS.4.0/fonts/placeholder similarity index 100% rename from Samples/BluetoothAdvertisement/js/Microsoft.WinJS.4.0/fonts/placeholder rename to archived/BluetoothAdvertisement/js/Microsoft.WinJS.4.0/fonts/placeholder diff --git a/Samples/BluetoothAdvertisement/js/Microsoft.WinJS.4.0/js/en-us/placeholder.txt b/archived/BluetoothAdvertisement/js/Microsoft.WinJS.4.0/js/en-us/placeholder.txt similarity index 100% rename from Samples/BluetoothAdvertisement/js/Microsoft.WinJS.4.0/js/en-us/placeholder.txt rename to archived/BluetoothAdvertisement/js/Microsoft.WinJS.4.0/js/en-us/placeholder.txt diff --git a/Samples/BluetoothAdvertisement/js/Package.appxmanifest b/archived/BluetoothAdvertisement/js/Package.appxmanifest similarity index 100% rename from Samples/BluetoothAdvertisement/js/Package.appxmanifest rename to archived/BluetoothAdvertisement/js/Package.appxmanifest diff --git a/Samples/BluetoothAdvertisement/js/css/scenario1_Watcher.css b/archived/BluetoothAdvertisement/js/css/scenario1_Watcher.css similarity index 100% rename from Samples/BluetoothAdvertisement/js/css/scenario1_Watcher.css rename to archived/BluetoothAdvertisement/js/css/scenario1_Watcher.css diff --git a/Samples/BluetoothAdvertisement/js/css/scenario2_Publisher.css b/archived/BluetoothAdvertisement/js/css/scenario2_Publisher.css similarity index 100% rename from Samples/BluetoothAdvertisement/js/css/scenario2_Publisher.css rename to archived/BluetoothAdvertisement/js/css/scenario2_Publisher.css diff --git a/Samples/BluetoothAdvertisement/js/css/scenario3_BackgroundWatcher.css b/archived/BluetoothAdvertisement/js/css/scenario3_BackgroundWatcher.css similarity index 100% rename from Samples/BluetoothAdvertisement/js/css/scenario3_BackgroundWatcher.css rename to archived/BluetoothAdvertisement/js/css/scenario3_BackgroundWatcher.css diff --git a/Samples/BluetoothAdvertisement/js/css/scenario4_BackgroundPublisher.css b/archived/BluetoothAdvertisement/js/css/scenario4_BackgroundPublisher.css similarity index 100% rename from Samples/BluetoothAdvertisement/js/css/scenario4_BackgroundPublisher.css rename to archived/BluetoothAdvertisement/js/css/scenario4_BackgroundPublisher.css diff --git a/Samples/BluetoothAdvertisement/js/html/scenario1_Watcher.html b/archived/BluetoothAdvertisement/js/html/scenario1_Watcher.html similarity index 100% rename from Samples/BluetoothAdvertisement/js/html/scenario1_Watcher.html rename to archived/BluetoothAdvertisement/js/html/scenario1_Watcher.html diff --git a/Samples/BluetoothAdvertisement/js/html/scenario2_Publisher.html b/archived/BluetoothAdvertisement/js/html/scenario2_Publisher.html similarity index 100% rename from Samples/BluetoothAdvertisement/js/html/scenario2_Publisher.html rename to archived/BluetoothAdvertisement/js/html/scenario2_Publisher.html diff --git a/Samples/BluetoothAdvertisement/js/html/scenario3_BackgroundWatcher.html b/archived/BluetoothAdvertisement/js/html/scenario3_BackgroundWatcher.html similarity index 100% rename from Samples/BluetoothAdvertisement/js/html/scenario3_BackgroundWatcher.html rename to archived/BluetoothAdvertisement/js/html/scenario3_BackgroundWatcher.html diff --git a/Samples/BluetoothAdvertisement/js/html/scenario4_BackgroundPublisher.html b/archived/BluetoothAdvertisement/js/html/scenario4_BackgroundPublisher.html similarity index 100% rename from Samples/BluetoothAdvertisement/js/html/scenario4_BackgroundPublisher.html rename to archived/BluetoothAdvertisement/js/html/scenario4_BackgroundPublisher.html diff --git a/Samples/BluetoothAdvertisement/js/js/backgroundPublisherTask.js b/archived/BluetoothAdvertisement/js/js/backgroundPublisherTask.js similarity index 100% rename from Samples/BluetoothAdvertisement/js/js/backgroundPublisherTask.js rename to archived/BluetoothAdvertisement/js/js/backgroundPublisherTask.js diff --git a/Samples/BluetoothAdvertisement/js/js/backgroundWatcherTask.js b/archived/BluetoothAdvertisement/js/js/backgroundWatcherTask.js similarity index 100% rename from Samples/BluetoothAdvertisement/js/js/backgroundWatcherTask.js rename to archived/BluetoothAdvertisement/js/js/backgroundWatcherTask.js diff --git a/Samples/BluetoothAdvertisement/js/js/sample-configuration.js b/archived/BluetoothAdvertisement/js/js/sample-configuration.js similarity index 100% rename from Samples/BluetoothAdvertisement/js/js/sample-configuration.js rename to archived/BluetoothAdvertisement/js/js/sample-configuration.js diff --git a/Samples/BluetoothAdvertisement/js/js/scenario1_Watcher.js b/archived/BluetoothAdvertisement/js/js/scenario1_Watcher.js similarity index 100% rename from Samples/BluetoothAdvertisement/js/js/scenario1_Watcher.js rename to archived/BluetoothAdvertisement/js/js/scenario1_Watcher.js diff --git a/Samples/BluetoothAdvertisement/js/js/scenario2_Publisher.js b/archived/BluetoothAdvertisement/js/js/scenario2_Publisher.js similarity index 100% rename from Samples/BluetoothAdvertisement/js/js/scenario2_Publisher.js rename to archived/BluetoothAdvertisement/js/js/scenario2_Publisher.js diff --git a/Samples/BluetoothAdvertisement/js/js/scenario3_BackgroundWatcher.js b/archived/BluetoothAdvertisement/js/js/scenario3_BackgroundWatcher.js similarity index 100% rename from Samples/BluetoothAdvertisement/js/js/scenario3_BackgroundWatcher.js rename to archived/BluetoothAdvertisement/js/js/scenario3_BackgroundWatcher.js diff --git a/Samples/BluetoothAdvertisement/js/js/scenario4_BackgroundPublisher.js b/archived/BluetoothAdvertisement/js/js/scenario4_BackgroundPublisher.js similarity index 100% rename from Samples/BluetoothAdvertisement/js/js/scenario4_BackgroundPublisher.js rename to archived/BluetoothAdvertisement/js/js/scenario4_BackgroundPublisher.js diff --git a/Samples/BluetoothAdvertisement/js/sample-utils/placeholder.txt b/archived/BluetoothAdvertisement/js/sample-utils/placeholder.txt similarity index 100% rename from Samples/BluetoothAdvertisement/js/sample-utils/placeholder.txt rename to archived/BluetoothAdvertisement/js/sample-utils/placeholder.txt diff --git a/archived/Calendar/README.md b/archived/Calendar/README.md new file mode 100644 index 0000000000..78b6391ee1 --- /dev/null +++ b/archived/Calendar/README.md @@ -0,0 +1,96 @@ +--- +topic: sample +languages: +- js +products: +- windows +- windows-uwp +--- + +# Calendar sample + +Shows how to use the [Calendar](http://msdn.microsoft.com/library/windows/apps/br206724) class in the +[Windows.Globalization](https://msdn.microsoft.com/library/windows/apps/windows.globalization.aspx) +namespace to manipulate and process dates based on a calendar system and the user's globalization preferences. +(If you are looking for a sample which demonstrates an appointment calendar, see the [Appointments](../Appointments) sample.) + +> **Note:** This sample is part of a large collection of UWP feature samples. +> If you are unfamiliar with Git and GitHub, you can download the entire collection as a +> [ZIP file](https://github.com/Microsoft/Windows-universal-samples/archive/master.zip), but be +> sure to unzip everything to access shared dependencies. For more info on working with the ZIP file, +> the samples collection, and GitHub, see [Get the UWP samples from GitHub](https://aka.ms/ovu2uq). +> For more samples, see the [Samples portal](https://aka.ms/winsamples) on the Windows Dev Center. + +The +[Calendar](http://msdn.microsoft.com/library/windows/apps/br206724) +class provides details of the user's default calendar or a caller-specified calendar system. +The class gives access to specific statistical details +as well as the ability to perform calendar-aware math operations. + +The Calendar object can convert to and from a language-specific date type: + +* C++: [Windows::Foundation::DateTime](https://msdn.microsoft.com/library/windows/apps/windows.foundation.datetime.aspx) +* C#: [DateTimeOffset](http://msdn.microsoft.com/library/windows/apps/system.datetimeoffset.aspx) +* JavaScript: [Date](https://msdn.microsoft.com/library/windows/apps/cd9w2te4.aspx) + +The sample also uses the +[Windows.Globalization.CalendarIdentifiers](http://msdn.microsoft.com/library/windows/apps/br229460) +and +[Windows.Globalization.ClockIdentifiers](http://msdn.microsoft.com/library/windows/apps/br229462) +classes. + +This sample contains scenarios that demonstrate: + +* How to create a calendar for the user's default preferences or for specific overrides, and how to display calendar details. + +* How to determine statistics for the current calendar date and time, such as the number of days in this month and the number of months in this year. + +* How to enumerate through a calendar and perform calendar math, such as determining the number of hours in a day that spans the transition from Daylight Saving Time. +This scenario also demonstrates converting from a language-specific date type to a Calendar. + +* How to create a calendar using language names with supported Unicode extension tags, and how the extension tags are used by the calendar object. + +* How to support time zones in calendars, by changing several time zones within a calendar and showing the effect of the time zone change in the date and time properties of the calendar. + +* How to convert between calendars and a language-specific date type. + +## Related topics + +### Samples + +[DateTimeFormatting sample](../DateTimeFormatting) +[GlobalizationPreferences sample](../GlobalizationPreferences) +[NumberFormatting sample](../NumberFormatting) + +### Reference + +[Windows.Globalization.Calendar](http://msdn.microsoft.com/library/windows/apps/br206724) +[Windows.Globalization.CalendarIdentifiers](http://msdn.microsoft.com/library/windows/apps/br229460) +[Windows.Globalization.ClockIdentifiers](http://msdn.microsoft.com/library/windows/apps/br229462) + +## System requirements + +**Client:** Windows 10 + +**Server:** Windows Server 2016 Technical Preview + +**Phone:** Windows 10 + +## Build the sample + +1. If you download the samples ZIP, be sure to unzip the entire archive, not just the folder with the sample you want to build. +2. Start Microsoft Visual Studio 2017 and select **File** \> **Open** \> **Project/Solution**. +3. Starting in the folder where you unzipped the samples, go to the Samples subfolder, then the subfolder for this specific sample, then the subfolder for your preferred language (C++, C#, or JavaScript). Double-click the Visual Studio Solution (.sln) file. +4. Press Ctrl+Shift+B, or select **Build** \> **Build Solution**. + +## Run the sample + +The next steps depend on whether you just want to deploy the sample or you want to both deploy and run it. + +### Deploying the sample + +- Select Build > Deploy Solution. + +### Deploying and running the sample + +- To debug the sample and then run it, press F5 or select Debug > Start Debugging. To run the sample without debugging, press Ctrl+F5 or select Debug > Start Without Debugging. diff --git a/Samples/Calendar/js/Calendar.jsproj b/archived/Calendar/js/Calendar.jsproj similarity index 81% rename from Samples/Calendar/js/Calendar.jsproj rename to archived/Calendar/js/Calendar.jsproj index 82b31c5bce..e78fa082a1 100644 --- a/Samples/Calendar/js/Calendar.jsproj +++ b/archived/Calendar/js/Calendar.jsproj @@ -54,7 +54,7 @@ Designer - + default.html @@ -83,10 +83,10 @@ images\windows-sdk.png - + js\default.js - + css\default.css @@ -95,43 +95,43 @@ - + Microsoft.WinJS.4.0\css\ui-dark.css - + Microsoft.WinJS.4.0\css\ui-light.css - + Microsoft.WinJS.4.0\js\en-US\ui.strings.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense-setup.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense.js - + Microsoft.WinJS.4.0\fonts\Symbols.ttf - + Microsoft.WinJS.4.0\js\base.js - + Microsoft.WinJS.4.0\js\ui.js - + sample-utils\footer.html - + sample-utils\header.html - + sample-utils\sample-utils.js - + sample-utils\scenario-select.css - + sample-utils\scenario-select.html diff --git a/Samples/Calendar/js/Calendar.sln b/archived/Calendar/js/Calendar.sln similarity index 100% rename from Samples/Calendar/js/Calendar.sln rename to archived/Calendar/js/Calendar.sln diff --git a/Samples/Calendar/js/Microsoft.WinJS.4.0/css/placeholder.txt b/archived/Calendar/js/Microsoft.WinJS.4.0/css/placeholder.txt similarity index 100% rename from Samples/Calendar/js/Microsoft.WinJS.4.0/css/placeholder.txt rename to archived/Calendar/js/Microsoft.WinJS.4.0/css/placeholder.txt diff --git a/Samples/Calendar/js/Microsoft.WinJS.4.0/fonts/placeholder b/archived/Calendar/js/Microsoft.WinJS.4.0/fonts/placeholder similarity index 100% rename from Samples/Calendar/js/Microsoft.WinJS.4.0/fonts/placeholder rename to archived/Calendar/js/Microsoft.WinJS.4.0/fonts/placeholder diff --git a/Samples/Calendar/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt b/archived/Calendar/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt similarity index 100% rename from Samples/Calendar/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt rename to archived/Calendar/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt diff --git a/Samples/Calendar/js/Package.appxmanifest b/archived/Calendar/js/Package.appxmanifest similarity index 100% rename from Samples/Calendar/js/Package.appxmanifest rename to archived/Calendar/js/Package.appxmanifest diff --git a/Samples/Calendar/js/css/placeholder.txt b/archived/Calendar/js/css/placeholder.txt similarity index 100% rename from Samples/Calendar/js/css/placeholder.txt rename to archived/Calendar/js/css/placeholder.txt diff --git a/Samples/Calendar/js/html/scenario1-data.html b/archived/Calendar/js/html/scenario1-data.html similarity index 100% rename from Samples/Calendar/js/html/scenario1-data.html rename to archived/Calendar/js/html/scenario1-data.html diff --git a/Samples/Calendar/js/html/scenario2-stats.html b/archived/Calendar/js/html/scenario2-stats.html similarity index 100% rename from Samples/Calendar/js/html/scenario2-stats.html rename to archived/Calendar/js/html/scenario2-stats.html diff --git a/Samples/Calendar/js/html/scenario3-enum.html b/archived/Calendar/js/html/scenario3-enum.html similarity index 100% rename from Samples/Calendar/js/html/scenario3-enum.html rename to archived/Calendar/js/html/scenario3-enum.html diff --git a/Samples/Calendar/js/html/scenario4-unicodeExtensions.html b/archived/Calendar/js/html/scenario4-unicodeExtensions.html similarity index 100% rename from Samples/Calendar/js/html/scenario4-unicodeExtensions.html rename to archived/Calendar/js/html/scenario4-unicodeExtensions.html diff --git a/Samples/Calendar/js/html/scenario5-timeZone.html b/archived/Calendar/js/html/scenario5-timeZone.html similarity index 100% rename from Samples/Calendar/js/html/scenario5-timeZone.html rename to archived/Calendar/js/html/scenario5-timeZone.html diff --git a/Samples/Calendar/js/images/placeholder.txt b/archived/Calendar/js/images/placeholder.txt similarity index 100% rename from Samples/Calendar/js/images/placeholder.txt rename to archived/Calendar/js/images/placeholder.txt diff --git a/Samples/Calendar/js/js/sample-configuration.js b/archived/Calendar/js/js/sample-configuration.js similarity index 100% rename from Samples/Calendar/js/js/sample-configuration.js rename to archived/Calendar/js/js/sample-configuration.js diff --git a/Samples/Calendar/js/js/scenario1-data.js b/archived/Calendar/js/js/scenario1-data.js similarity index 100% rename from Samples/Calendar/js/js/scenario1-data.js rename to archived/Calendar/js/js/scenario1-data.js diff --git a/Samples/Calendar/js/js/scenario2-stats.js b/archived/Calendar/js/js/scenario2-stats.js similarity index 100% rename from Samples/Calendar/js/js/scenario2-stats.js rename to archived/Calendar/js/js/scenario2-stats.js diff --git a/Samples/Calendar/js/js/scenario3-enum.js b/archived/Calendar/js/js/scenario3-enum.js similarity index 100% rename from Samples/Calendar/js/js/scenario3-enum.js rename to archived/Calendar/js/js/scenario3-enum.js diff --git a/Samples/Calendar/js/js/scenario4-unicodeExtensions.js b/archived/Calendar/js/js/scenario4-unicodeExtensions.js similarity index 100% rename from Samples/Calendar/js/js/scenario4-unicodeExtensions.js rename to archived/Calendar/js/js/scenario4-unicodeExtensions.js diff --git a/Samples/Calendar/js/js/scenario5-timeZone.js b/archived/Calendar/js/js/scenario5-timeZone.js similarity index 100% rename from Samples/Calendar/js/js/scenario5-timeZone.js rename to archived/Calendar/js/js/scenario5-timeZone.js diff --git a/Samples/Calendar/js/sample-utils/placeholder.txt b/archived/Calendar/js/sample-utils/placeholder.txt similarity index 100% rename from Samples/Calendar/js/sample-utils/placeholder.txt rename to archived/Calendar/js/sample-utils/placeholder.txt diff --git a/archived/CameraAdvancedCapture/README.md b/archived/CameraAdvancedCapture/README.md new file mode 100644 index 0000000000..35ef187c38 --- /dev/null +++ b/archived/CameraAdvancedCapture/README.md @@ -0,0 +1,107 @@ +--- +topic: sample +languages: +- js +products: +- windows +- windows-uwp +--- + +# Camera Advanced Capture sample + +Provides an end-to-end sample to show how to write a camera app using the Windows.Media.Capture API in +conjunction with orientation sensors to cover the functions that most camera apps will require. +Uses the Windows.Media.Core.SceneAnalysisEffect API to get information about the preview scene and give a +recommendation on how beneficial an HDR capture would be. Also shows a simple way to use the +Windows.Media.Capture.AdvancedCapture API, which enables functionality such as High Dynamic Range (HDR) +and Low Light captures, included in Windows. This sample is based on the [Basic camera app sample](../CameraStarterKit). + +> **Note:** This sample is part of a large collection of UWP feature samples. +> If you are unfamiliar with Git and GitHub, you can download the entire collection as a +> [ZIP file](https://github.com/Microsoft/Windows-universal-samples/archive/master.zip), but be +> sure to unzip everything to access shared dependencies. For more info on working with the ZIP file, +> the samples collection, and GitHub, see [Get the UWP samples from GitHub](https://aka.ms/ovu2uq). +> For more samples, see the [Samples portal](https://aka.ms/winsamples) on the Windows Dev Center. + +Specifically, this sample will cover how to: + +1. **Manage the MediaCapture object** throughout the lifecycle of the app and through navigation events. +2. **Acquire a camera located on a specific side of the device**. In this case, the sample attempts to get the rear camera. +3. **Start and stop the preview** to a UI element, including mirroring for front-facing cameras. +4. **Take a regular picture** to a file, taking into account the orientation of the device. +5. **Manage the Scene Analysis effect**, including creation, activation/deactivation of the HighDynamicRangeAnalyzer, registering for the SceneAnalyzed event, and cleanup. The effect is used throughout the lifetime of the app, and the analysis result is shown to the user. +6. **Configure the AdvancedPhotoControl** to capture images, create an instance of the AdvancedCapture, and register for the AllAllPhotosCaptured event, which signals that the camera is ready to capture again, and for the OptionalReferencePhotoCaptured, which will be raised only on devices that support delivering a reference image alongside the processed image, and carries the reference image in the payload. +7. **Take an Advanced Capture picture** to a file, taking into account the orientation of the device. This can be an HDR, a Low Light, or a standard picture, depending on the capabilities of the device. +8. **Handle rotation events** for both, the device moving in space and the page orientation changing on the screen. Also apply any necessary corrections to the preview stream rotation. +9. **Handle MediaCapture Failed event** to clean up the MediaCapture instance when an error occurs. + +This sample also implements a custom UI to better simulate the experience that a camera application would provide, so any messages intended for the developer are printed to the debug console. + +## Related topics + +**Samples** + +[CameraStarterKit](/Samples/CameraStarterKit) + +**Conceptual** + +[Capture photos and video with MediaCapture](https://msdn.microsoft.com/library/windows/apps/mt243896) + +[Media capture using capture device](https://code.msdn.microsoft.com/windowsapps/Media-Capture-Sample-adf87622) + +[High Dynamic Range photo capture](http://go.microsoft.com/fwlink/?LinkId=627230) + +[Using the Scene Analysis effect](http://go.microsoft.com/fwlink/?LinkId=627231) + +**Reference** + +[Windows.Media.Capture.MediaCapture namespace](https://msdn.microsoft.com/library/windows/apps/windows.media.devices.aspx) + +[Windows.Media.Capture.MediaCaptureInitializationSettings constructor](https://msdn.microsoft.com/library/windows/apps/windows.media.capture.mediacaptureinitializationsettings.mediacaptureinitializationsettings.aspx) + +[Windows.Media.Capture.MediaCaptureInitilizationSettings.VideoDeviceId property](https://msdn.microsoft.com/library/windows/apps/windows.media.capture.mediacaptureinitializationsettings.videodeviceid.aspx) + +[Windows.Devices.Enumeration namespace](https://msdn.microsoft.com/library/windows/apps/windows.devices.enumeration.aspx) + +[Windows.Devices.Enumeration.DeviceInformation class](https://msdn.microsoft.com/library/windows/apps/windows.devices.enumeration.deviceinformation) + +[Windows.Devices.Sensors.SimpleOrientationSensor class](https://msdn.microsoft.com/library/windows/apps/windows.devices.sensors.simpleorientationsensor.aspx) + +[Windows.Graphics.Display.DisplayInformation class](https://msdn.microsoft.com/library/windows/apps/windows.graphics.display.displayinformation.aspx) + +[Windows.Phone.UI.Input.HardwareButtons.CameraPressed event](https://msdn.microsoft.com/library/windows/apps/windows.phone.ui.input.hardwarebuttons.camerapressed.aspx) + +[Windows.Graphics.Imaging.BitmapDecoder class](https://msdn.microsoft.com/library/windows/apps/windows.graphics.imaging.bitmapdecoder.aspx) + +[Windows.Graphics.Imaging.BitmapEncoder class](https://msdn.microsoft.com/library/windows/apps/windows.graphics.imaging.bitmapencoder.aspx) + +## System requirements + +**Hardware:** Camera + +**Client:** Windows 10 + +**Server:** Windows Server 2016 Technical Preview + +**Phone:** Windows 10 + +## Build the sample + +1. If you download the samples ZIP, be sure to unzip the entire archive, not just the folder with the sample you want to build. +2. Start Microsoft Visual Studio 2017 and select **File** \> **Open** \> **Project/Solution**. +3. Starting in the folder where you unzipped the samples, go to the Samples subfolder, then the subfolder for this specific sample, then the subfolder for your preferred language (C++, C#, or JavaScript). Double-click the Visual Studio Solution (.sln) file. +4. Press Ctrl+Shift+B, or select **Build** \> **Build Solution**. + +## Run the sample + +The next steps depend on whether you just want to deploy the sample or you want to both deploy and run it. + +**Deploying the sample:** + +1. Select **Build** \> **Deploy Solution**. + +**Deploying and running the sample:** + +1. To debug the sample and then run it, press F5 or select **Debug** \> **Start Debugging**. To run the sample without debugging, press Ctrl+F5 or select **Debug** \> **Start Without Debugging**. + + diff --git a/Samples/CameraAdvancedCapture/js/CameraAdvancedCapture.jsproj b/archived/CameraAdvancedCapture/js/CameraAdvancedCapture.jsproj similarity index 88% rename from Samples/CameraAdvancedCapture/js/CameraAdvancedCapture.jsproj rename to archived/CameraAdvancedCapture/js/CameraAdvancedCapture.jsproj index f6077ced7a..8dcab9c905 100644 --- a/Samples/CameraAdvancedCapture/js/CameraAdvancedCapture.jsproj +++ b/archived/CameraAdvancedCapture/js/CameraAdvancedCapture.jsproj @@ -70,25 +70,25 @@ - + WinJS\css\ui-dark.css - + WinJS\css\ui-light.css - + WinJS\js\en-US\ui.strings.js - + WinJS\js\base.js - + WinJS\js\ui.js - + WinJS\js\WinJS.intellisense.js - + WinJS\js\WinJS.intellisense-setup.js diff --git a/Samples/CameraAdvancedCapture/js/CameraAdvancedCapture.sln b/archived/CameraAdvancedCapture/js/CameraAdvancedCapture.sln similarity index 100% rename from Samples/CameraAdvancedCapture/js/CameraAdvancedCapture.sln rename to archived/CameraAdvancedCapture/js/CameraAdvancedCapture.sln diff --git a/Samples/CameraAdvancedCapture/js/camera.html b/archived/CameraAdvancedCapture/js/camera.html similarity index 100% rename from Samples/CameraAdvancedCapture/js/camera.html rename to archived/CameraAdvancedCapture/js/camera.html diff --git a/Samples/CameraAdvancedCapture/js/css/camera.css b/archived/CameraAdvancedCapture/js/css/camera.css similarity index 100% rename from Samples/CameraAdvancedCapture/js/css/camera.css rename to archived/CameraAdvancedCapture/js/css/camera.css diff --git a/Samples/CameraAdvancedCapture/js/js/camera.js b/archived/CameraAdvancedCapture/js/js/camera.js similarity index 100% rename from Samples/CameraAdvancedCapture/js/js/camera.js rename to archived/CameraAdvancedCapture/js/js/camera.js diff --git a/Samples/CameraAdvancedCapture/js/package.appxmanifest b/archived/CameraAdvancedCapture/js/package.appxmanifest similarity index 100% rename from Samples/CameraAdvancedCapture/js/package.appxmanifest rename to archived/CameraAdvancedCapture/js/package.appxmanifest diff --git a/archived/CameraFaceDetection/README.md b/archived/CameraFaceDetection/README.md new file mode 100644 index 0000000000..5b8f728152 --- /dev/null +++ b/archived/CameraFaceDetection/README.md @@ -0,0 +1,91 @@ +--- +topic: sample +languages: +- js +products: +- windows +- windows-uwp +--- + +# Camera face detection sample + +Provides an end-to-end sample to show how to write a camera application using the Windows.Media.Capture API in +conjunction with orientation sensors to cover the functions that most camera apps will require. In addition, +it will show a simple way to use the Face Detection effect included in Windows. This sample is based on the [Basic camera app sample](../CameraStarterKit). + +> **Note:** This sample is part of a large collection of UWP feature samples. +> If you are unfamiliar with Git and GitHub, you can download the entire collection as a +> [ZIP file](https://github.com/Microsoft/Windows-universal-samples/archive/master.zip), but be +> sure to unzip everything to access shared dependencies. For more info on working with the ZIP file, +> the samples collection, and GitHub, see [Get the UWP samples from GitHub](https://aka.ms/ovu2uq). +> For more samples, see the [Samples portal](https://aka.ms/winsamples) on the Windows Dev Center. + +Specifically, this sample shows how to: + +1. **Manage the MediaCapture object** throughout the lifecycle of the app and through navigation events. +2. **Acquire a camera located on a specific side of the device**. In this case, the sample attempts to get the front camera. +3. **Start and stop the preview** to a UI element, including mirroring for front-facing cameras. +4. **Take a regular picture** to a file, taking into account the orientation of the device. +5. **Handle rotation events** for both, the device moving in space and the page orientation changing on the screen. Also apply any necessary corrections to the preview stream rotation. +6. **Handle MediaCapture Failed event** to clean up the MediaCapture instance when an error occurs. +7. **Manage the Face Detection effect**, including creation, configuration, activation/deactivation, registering for events, and cleanup. +8. **Render face bounding boxes** as an overlay on the camera preview, taking mirroring and rotation into account. + +This sample also implements a custom UI to better simulate the experience that a camera application would provide, so any messages intended for the developer are printed to the debug console. + +## Related topics + +**Samples** + +[CameraStarterKit](/Samples/CameraStarterKit) +[Family Notes sample](https://github.com/Microsoft/Windows-appsample-familynotes) + +**Conceptual** + +[Capture photos and video with MediaCapture](https://msdn.microsoft.com/library/windows/apps/mt243896) +[Media capture using capture device](https://code.msdn.microsoft.com/windowsapps/Media-Capture-Sample-adf87622) +[Using the Face Detection effect](http://go.microsoft.com/fwlink/?LinkId=627228) + +**Reference** + +[Windows.Media.Capture.MediaCapture namespace](https://msdn.microsoft.com/library/windows/apps/windows.media.devices.aspx) +[Windows.Media.Capture.MediaCaptureInitializationSettings constructor](https://msdn.microsoft.com/library/windows/apps/windows.media.capture.mediacaptureinitializationsettings.mediacaptureinitializationsettings.aspx) +[Windows.Media.Capture.MediaCaptureInitilizationSettings.VideoDeviceId property](https://msdn.microsoft.com/library/windows/apps/windows.media.capture.mediacaptureinitializationsettings.videodeviceid.aspx) +[Windows.Devices.Enumeration namespace](https://msdn.microsoft.com/library/windows/apps/windows.devices.enumeration.aspx) +[Windows.Devices.Enumeration.DeviceInformation class](https://msdn.microsoft.com/library/windows/apps/windows.devices.enumeration.deviceinformation) +[Windows.Devices.Sensors.SimpleOrientationSensor class](https://msdn.microsoft.com/library/windows/apps/windows.devices.sensors.simpleorientationsensor.aspx) +[Windows.Graphics.Display.DisplayInformation class](https://msdn.microsoft.com/library/windows/apps/windows.graphics.display.displayinformation.aspx) +[Windows.Phone.UI.Input.HardwareButtons.CameraPressed event](https://msdn.microsoft.com/library/windows/apps/windows.phone.ui.input.hardwarebuttons.camerapressed.aspx) +[Windows.Graphics.Imaging.BitmapDecoder class](https://msdn.microsoft.com/library/windows/apps/windows.graphics.imaging.bitmapdecoder.aspx) +[Windows.Graphics.Imaging.BitmapEncoder class](https://msdn.microsoft.com/library/windows/apps/windows.graphics.imaging.bitmapencoder.aspx) + +## System requirements + +**Hardware:** Camera + +**Client:** Windows 10 + +**Server:** Windows Server 2016 Technical Preview + +**Phone:** Windows 10 + +## Build the sample + +1. If you download the samples ZIP, be sure to unzip the entire archive, not just the folder with the sample you want to build. +2. Start Microsoft Visual Studio 2017 and select **File** \> **Open** \> **Project/Solution**. +3. Starting in the folder where you unzipped the samples, go to the Samples subfolder, then the subfolder for this specific sample, then the subfolder for your preferred language (C++, C#, or JavaScript). Double-click the Visual Studio Solution (.sln) file. +4. Press Ctrl+Shift+B, or select **Build** \> **Build Solution**. + +## Run the sample + +The next steps depend on whether you just want to deploy the sample or you want to both deploy and run it. + +**Deploying the sample:** + +1. Select **Build** \> **Deploy Solution**. + +**Deploying and running the sample:** + +1. To debug the sample and then run it, press F5 or select **Debug** \> **Start Debugging**. To run the sample without debugging, press Ctrl+F5 or select **Debug** \> **Start Without Debugging**. + + diff --git a/Samples/CameraFaceDetection/js/CameraFaceDetection.jsproj b/archived/CameraFaceDetection/js/CameraFaceDetection.jsproj similarity index 86% rename from Samples/CameraFaceDetection/js/CameraFaceDetection.jsproj rename to archived/CameraFaceDetection/js/CameraFaceDetection.jsproj index 9394677072..c75782295b 100644 --- a/Samples/CameraFaceDetection/js/CameraFaceDetection.jsproj +++ b/archived/CameraFaceDetection/js/CameraFaceDetection.jsproj @@ -70,28 +70,28 @@ - + WinJS\css\ui-dark.css - + WinJS\css\ui-light.css - + WinJS\js\en-US\ui.strings.js - + WinJS\js\base.js - + WinJS\js\ui.js - + WinJS\js\WinJS.intellisense.js - + WinJS\fonts\Symbols.ttf - + WinJS\js\WinJS.intellisense-setup.js diff --git a/Samples/CameraFaceDetection/js/CameraFaceDetection.sln b/archived/CameraFaceDetection/js/CameraFaceDetection.sln similarity index 100% rename from Samples/CameraFaceDetection/js/CameraFaceDetection.sln rename to archived/CameraFaceDetection/js/CameraFaceDetection.sln diff --git a/Samples/CameraFaceDetection/js/Package.appxmanifest b/archived/CameraFaceDetection/js/Package.appxmanifest similarity index 100% rename from Samples/CameraFaceDetection/js/Package.appxmanifest rename to archived/CameraFaceDetection/js/Package.appxmanifest diff --git a/Samples/CameraFaceDetection/js/WinJS/css/placeholder.txt b/archived/CameraFaceDetection/js/WinJS/css/placeholder.txt similarity index 100% rename from Samples/CameraFaceDetection/js/WinJS/css/placeholder.txt rename to archived/CameraFaceDetection/js/WinJS/css/placeholder.txt diff --git a/Samples/CameraFaceDetection/js/WinJS/fonts/placeholder.txt b/archived/CameraFaceDetection/js/WinJS/fonts/placeholder.txt similarity index 100% rename from Samples/CameraFaceDetection/js/WinJS/fonts/placeholder.txt rename to archived/CameraFaceDetection/js/WinJS/fonts/placeholder.txt diff --git a/Samples/CameraFaceDetection/js/WinJS/js/en-us/placeholder.txt b/archived/CameraFaceDetection/js/WinJS/js/en-us/placeholder.txt similarity index 100% rename from Samples/CameraFaceDetection/js/WinJS/js/en-us/placeholder.txt rename to archived/CameraFaceDetection/js/WinJS/js/en-us/placeholder.txt diff --git a/Samples/CameraFaceDetection/js/camera.html b/archived/CameraFaceDetection/js/camera.html similarity index 100% rename from Samples/CameraFaceDetection/js/camera.html rename to archived/CameraFaceDetection/js/camera.html diff --git a/Samples/CameraFaceDetection/js/css/camera.css b/archived/CameraFaceDetection/js/css/camera.css similarity index 100% rename from Samples/CameraFaceDetection/js/css/camera.css rename to archived/CameraFaceDetection/js/css/camera.css diff --git a/Samples/CameraFaceDetection/js/js/camera.js b/archived/CameraFaceDetection/js/js/camera.js similarity index 100% rename from Samples/CameraFaceDetection/js/js/camera.js rename to archived/CameraFaceDetection/js/js/camera.js diff --git a/archived/CameraGetPreviewFrame/README.md b/archived/CameraGetPreviewFrame/README.md new file mode 100644 index 0000000000..23a2b252d9 --- /dev/null +++ b/archived/CameraGetPreviewFrame/README.md @@ -0,0 +1,82 @@ +--- +topic: sample +languages: +- js +products: +- windows +- windows-uwp +--- + +# Camera preview frame sample + +Provides an end-to-end sample to show how to write a camera app using the Windows.Media.Capture API in conjunction with +the DisplayInformation API to acquire preview frames from the camera stream for further processing. + +> **Note:** This sample is part of a large collection of UWP feature samples. +> If you are unfamiliar with Git and GitHub, you can download the entire collection as a +> [ZIP file](https://github.com/Microsoft/Windows-universal-samples/archive/master.zip), but be +> sure to unzip everything to access shared dependencies. For more info on working with the ZIP file, +> the samples collection, and GitHub, see [Get the UWP samples from GitHub](https://aka.ms/ovu2uq). +> For more samples, see the [Samples portal](https://aka.ms/winsamples) on the Windows Dev Center. + +Specifically, this sample will cover how to: + +1. **Manage the MediaCapture object** throughout the lifecycle of the app and through navigation events. +2. **Acquire a camera located on a specific side of the device**. In this case, the sample attempts to get the rear camera. +3. **Start and stop the preview** to a UI element, including mirroring for front-facing cameras. +4. **Get a preview frame** using both overloads for the method. + 1. Get it as a **Direct3DSurface** and display information about the frame: Width, Height, Format. + 2. Get it as a **SoftwareBitmap**, display information about the frame: Width, Height, Format, and optionally display it on the screen and/or save it to disk. +5. **Handle page rotation events** to apply any necessary corrections to the preview stream rotation, ensuring acquired preview frames have the correct orientation and aspect ratio. +6. **Handle MediaCapture Failed event** to clean up the MediaCapture instance when an error occurs. + +Due to the custom UI that this sample implements, any messages intended for the developer are printed to the debug console. + +## Related topics + +**Conceptual** + +[Capture photos and video with MediaCapture](https://msdn.microsoft.com/library/windows/apps/mt243896) +[Get a preview frame](http://go.microsoft.com/fwlink/?LinkId=627229) + +**Reference** + +[Windows.Media.Capture.MediaCapture namespace](https://msdn.microsoft.com/library/windows/apps/windows.media.devices.aspx) +[Windows.Media.Capture.MediaCaptureInitializationSettings constructor](https://msdn.microsoft.com/library/windows/apps/windows.media.capture.mediacaptureinitializationsettings.mediacaptureinitializationsettings.aspx) +[Windows.Media.Capture.MediaCaptureInitilizationSettings.VideoDeviceId property](https://msdn.microsoft.com/library/windows/apps/windows.media.capture.mediacaptureinitializationsettings.videodeviceid.aspx) +[Windows.Devices.Enumeration namespace](https://msdn.microsoft.com/library/windows/apps/windows.devices.enumeration.aspx) +[Windows.Devices.Enumeration.DeviceInformation class](https://msdn.microsoft.com/library/windows/apps/windows.devices.enumeration.deviceinformation) +[Windows.Devices.Sensors.SimpleOrientationSensor class](https://msdn.microsoft.com/library/windows/apps/windows.devices.sensors.simpleorientationsensor.aspx) +[Windows.Graphics.Display.DisplayInformation class](https://msdn.microsoft.com/library/windows/apps/windows.graphics.display.displayinformation.aspx) +[Windows.UI.Xaml.Media.Imaging.WriteableBitmap class](https://msdn.microsoft.com/library/windows/apps/windows.ui.xaml.media.imaging.writeablebitmap.aspx) + +## System requirements + +**Hardware:** Camera + +**Client:** Windows 10 + +**Server:** Windows Server 2016 Technical Preview + +**Phone:** Windows 10 + +## Build the sample + +1. If you download the samples ZIP, be sure to unzip the entire archive, not just the folder with the sample you want to build. +2. Start Microsoft Visual Studio 2017 and select **File** \> **Open** \> **Project/Solution**. +3. Starting in the folder where you unzipped the samples, go to the Samples subfolder, then the subfolder for this specific sample, then the subfolder for your preferred language (C++, C#, or JavaScript). Double-click the Visual Studio Solution (.sln) file. +4. Press Ctrl+Shift+B, or select **Build** \> **Build Solution**. + +## Run the sample + +The next steps depend on whether you just want to deploy the sample or you want to both deploy and run it. + +**Deploying the sample:** + +1. Select **Build** \> **Deploy Solution**. + +**Deploying and running the sample:** + +1. To debug the sample and then run it, press F5 or select **Debug** \> **Start Debugging**. To run the sample without debugging, press Ctrl+F5 or select **Debug** \> **Start Without Debugging**. + + diff --git a/Samples/CameraGetPreviewFrame/js/CameraGetPreviewFrame.jsproj b/archived/CameraGetPreviewFrame/js/CameraGetPreviewFrame.jsproj similarity index 86% rename from Samples/CameraGetPreviewFrame/js/CameraGetPreviewFrame.jsproj rename to archived/CameraGetPreviewFrame/js/CameraGetPreviewFrame.jsproj index 1960c60071..e55774f233 100644 --- a/Samples/CameraGetPreviewFrame/js/CameraGetPreviewFrame.jsproj +++ b/archived/CameraGetPreviewFrame/js/CameraGetPreviewFrame.jsproj @@ -70,28 +70,28 @@ - + WinJS\css\ui-dark.css - + WinJS\css\ui-light.css - + WinJS\js\en-US\ui.strings.js - + WinJS\js\base.js - + WinJS\js\ui.js - + WinJS\js\WinJS.intellisense.js - + WinJS\fonts\Symbols.ttf - + WinJS\js\WinJS.intellisense-setup.js diff --git a/Samples/CameraGetPreviewFrame/js/CameraGetPreviewFrame.sln b/archived/CameraGetPreviewFrame/js/CameraGetPreviewFrame.sln similarity index 100% rename from Samples/CameraGetPreviewFrame/js/CameraGetPreviewFrame.sln rename to archived/CameraGetPreviewFrame/js/CameraGetPreviewFrame.sln diff --git a/Samples/CameraGetPreviewFrame/js/Package.appxmanifest b/archived/CameraGetPreviewFrame/js/Package.appxmanifest similarity index 100% rename from Samples/CameraGetPreviewFrame/js/Package.appxmanifest rename to archived/CameraGetPreviewFrame/js/Package.appxmanifest diff --git a/Samples/CameraGetPreviewFrame/js/WinJS/css/placeholder.txt b/archived/CameraGetPreviewFrame/js/WinJS/css/placeholder.txt similarity index 100% rename from Samples/CameraGetPreviewFrame/js/WinJS/css/placeholder.txt rename to archived/CameraGetPreviewFrame/js/WinJS/css/placeholder.txt diff --git a/Samples/CameraGetPreviewFrame/js/WinJS/fonts/placeholder.txt b/archived/CameraGetPreviewFrame/js/WinJS/fonts/placeholder.txt similarity index 100% rename from Samples/CameraGetPreviewFrame/js/WinJS/fonts/placeholder.txt rename to archived/CameraGetPreviewFrame/js/WinJS/fonts/placeholder.txt diff --git a/Samples/CameraGetPreviewFrame/js/WinJS/js/en-us/placeholder.txt b/archived/CameraGetPreviewFrame/js/WinJS/js/en-us/placeholder.txt similarity index 100% rename from Samples/CameraGetPreviewFrame/js/WinJS/js/en-us/placeholder.txt rename to archived/CameraGetPreviewFrame/js/WinJS/js/en-us/placeholder.txt diff --git a/Samples/CameraGetPreviewFrame/js/camera.html b/archived/CameraGetPreviewFrame/js/camera.html similarity index 100% rename from Samples/CameraGetPreviewFrame/js/camera.html rename to archived/CameraGetPreviewFrame/js/camera.html diff --git a/Samples/CameraGetPreviewFrame/js/css/camera.css b/archived/CameraGetPreviewFrame/js/css/camera.css similarity index 100% rename from Samples/CameraGetPreviewFrame/js/css/camera.css rename to archived/CameraGetPreviewFrame/js/css/camera.css diff --git a/Samples/CameraGetPreviewFrame/js/js/camera.js b/archived/CameraGetPreviewFrame/js/js/camera.js similarity index 100% rename from Samples/CameraGetPreviewFrame/js/js/camera.js rename to archived/CameraGetPreviewFrame/js/js/camera.js diff --git a/archived/CameraProfile/README.md b/archived/CameraProfile/README.md new file mode 100644 index 0000000000..be73deed51 --- /dev/null +++ b/archived/CameraProfile/README.md @@ -0,0 +1,105 @@ +--- +topic: sample +languages: +- js +products: +- windows +- windows-uwp +--- + +# Camera profiles sample + +Shows a new extension to Windows.Media.Capture.MediaCaptureInitializationSettings API. This new API lets app +developers query a device for a collection of media types that can work together on a given device called a Video Profile. These new Video Profiles +expose the capabilities of the capture device which the developer can use to set MediaCaptureInitializationSettings to the desired capabilities. In +addition, the developer can query the driver to see if it supports additional features available through custom profiles. + +> **Note:** This sample is part of a large collection of UWP feature samples. +> If you are unfamiliar with Git and GitHub, you can download the entire collection as a +> [ZIP file](https://github.com/Microsoft/Windows-universal-samples/archive/master.zip), but be +> sure to unzip everything to access shared dependencies. For more info on working with the ZIP file, +> the samples collection, and GitHub, see [Get the UWP samples from GitHub](https://aka.ms/ovu2uq). +> For more samples, see the [Samples portal](https://aka.ms/winsamples) on the Windows Dev Center. + +This sample covers: + +Scenario 1: Locate a Record Specific Profile: You can use profiles to verify if a camera supports a specific resolution or +custom setting via querying for video profile. We demonstrate two methods: +1. When you choose "Find 640x480 30 FPS Recording Profile" button, we determine if the back video capture device supports + a camera profile with a 640x480(WVGA) 30 FPS resolution. We first check if the back video capture device supports a Video + Profile. We iterate through all the profiles the device supports to demonstrate available Video Profiles on the device. Then + we search for the 640x480(WVGA) 30 FPS profile. If located, we initialize Media Capture Settings with this profile. +2. When you choose the "Find Custom Recording Profile" button, we are looking to see if a device supports a specific Custom + Profile. The custom profile would allow the camera driver to optimize for additional features. For this demonstration we use + a static profile for 640x480 30 FPS that is avaliable in the phone emulators. + +Scenario 2: Query Profile for Concurrency: This scenarios demonstrates using profiles to determine if a device is capable of streaming +from both the front and rear video capture devices at the same time. +1. When you choose "Query for Concurrent Profile button, the app queries for a front and back device that supports a video profile. If a profile + is supported on both devices we then check the devices for profiles that support concurrency. From the available profiles we look for a concurrent profile match on both + devices. If a concurrent profile match is found, we initialize both front and back Media Capture settings of the devices to the concurrency profile. + +Scenario 3: Query Profile for Hdr Support: This scenarios demonstrates using Camera Profile to determine if a device is capable of supporting +Hdr Video. +1. When you choose "Query Profile for HDR Support" button, the app will query the if the back video capture device supports a Video Profile. Then we query the available profiles + to see if Hdr Video is supported calling the IsHdrVideoSupported() method. If so, we set Media Capture settings to the Hdr supported video profile and set Hdr Video mode to auto. + +Note that not all cameras will have camera profiles. +They are needed only if the camera has combinations of pins or media types which cannot be used simultaneously, +such as a camera which cannot capture at the highest photo resolution +while simultaneously streaming at the highest video resolution. + +Developers who wish to test their profile logic should target MIPI-based cameras +that expose multiple pins. +Example of these cameras are various QC SOC-based devices +(such as the Lumia 950/950XL and HP Elite X3) +or Intel MIPI-based systems +(such as the Surface Pro, Surface Pro 4, Surface Book, +and Surface Laptop). +Note that for the Surface Pro 4 and Surface Book 1, +the latest 4731 camera drivers publish profiles, +but the factory image drivers do not. + +Related topics +-------------- +[Windows.Media.Capture.MediaCapture namespace](https://msdn.microsoft.com/library/windows/apps/windows.media.devices.aspx) +[Windows.Devices.Enumeration namespace](https://msdn.microsoft.com/library/windows/apps/windows.devices.enumeration.aspx) + +**Conceptual** + +[How to use Camera Profiles](http://go.microsoft.com/fwlink/?LinkId=627233) + +**Reference** + +[Windows.Media.Capture.MediaCaptureInitializationSettings](https://msdn.microsoft.com/library/windows/apps/windows.media.capture.mediacaptureinitializationsettings.mediacaptureinitializationsettings.aspx) +[Windows.Media.Capture.MediaCaptureInitilizationSettings.VideoDeviceId](https://msdn.microsoft.com/library/windows/apps/windows.media.capture.mediacaptureinitializationsettings.videodeviceid.aspx) +[Windows.Devices.Enumeration.DeviceInformation class](https://msdn.microsoft.com/library/windows/apps/windows.devices.enumeration.deviceinformation.aspx) + +System requirements +----------------------------- +Camera that supports Video Profiles + +**Client:** Windows 10 + +**Phone:** Windows 10 + +Build the sample +---------------- + +1. If you download the samples ZIP, be sure to unzip the entire archive, not just the folder with the sample you want to build. +2. Start Microsoft Visual Studio 2017 and select **File** \> **Open** \> **Project/Solution**. +3. Starting in the folder where you unzipped the samples, go to the Samples subfolder, then the subfolder for this specific sample, then the subfolder for your preferred language (C++, C#, or JavaScript). Double-click the Visual Studio Solution (.sln) file. +4. Press Ctrl+Shift+B, or select **Build** \> **Build Solution**. + +Run the sample +-------------- + +The next steps depend on whether you just want to deploy the sample or you want to both deploy and run it. + +**Deploying the sample** +1. Select **Build** \> **Deploy Solution**. + +**Deploying and running the sample** +1. To debug the sample and then run it, press F5 or select **Debug** \> **Start Debugging**. To run the sample without debugging, press Ctrl+F5 or select **Debug** \> **Start Without Debugging**. + + diff --git a/Samples/CameraProfile/js/CameraProfile.jsproj b/archived/CameraProfile/js/CameraProfile.jsproj similarity index 81% rename from Samples/CameraProfile/js/CameraProfile.jsproj rename to archived/CameraProfile/js/CameraProfile.jsproj index 20a17422c1..abd38668ae 100644 --- a/Samples/CameraProfile/js/CameraProfile.jsproj +++ b/archived/CameraProfile/js/CameraProfile.jsproj @@ -57,7 +57,7 @@ - + default.html @@ -84,53 +84,53 @@ images\windows-sdk.png - + js\default.js - + css\default.css - + Microsoft.WinJS.4.0\css\ui-dark.css - + Microsoft.WinJS.4.0\css\ui-light.css - + Microsoft.WinJS.4.0\js\en-US\ui.strings.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense-setup.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense.js - + Microsoft.WinJS.4.0\fonts\Symbols.ttf - + Microsoft.WinJS.4.0\js\base.js - + Microsoft.WinJS.4.0\js\ui.js - + sample-utils\footer.html - + sample-utils\header.html - + sample-utils\sample-utils.js - + sample-utils\scenario-select.css - + sample-utils\scenario-select.html diff --git a/Samples/CameraProfile/js/CameraProfile.sln b/archived/CameraProfile/js/CameraProfile.sln similarity index 100% rename from Samples/CameraProfile/js/CameraProfile.sln rename to archived/CameraProfile/js/CameraProfile.sln diff --git a/Samples/CameraProfile/js/Microsoft.WinJS.4.0/css/placeholder.txt b/archived/CameraProfile/js/Microsoft.WinJS.4.0/css/placeholder.txt similarity index 100% rename from Samples/CameraProfile/js/Microsoft.WinJS.4.0/css/placeholder.txt rename to archived/CameraProfile/js/Microsoft.WinJS.4.0/css/placeholder.txt diff --git a/Samples/CameraProfile/js/Microsoft.WinJS.4.0/fonts/placeholder b/archived/CameraProfile/js/Microsoft.WinJS.4.0/fonts/placeholder similarity index 100% rename from Samples/CameraProfile/js/Microsoft.WinJS.4.0/fonts/placeholder rename to archived/CameraProfile/js/Microsoft.WinJS.4.0/fonts/placeholder diff --git a/Samples/CameraProfile/js/Microsoft.WinJS.4.0/js/en-us/placeholder.txt b/archived/CameraProfile/js/Microsoft.WinJS.4.0/js/en-us/placeholder.txt similarity index 100% rename from Samples/CameraProfile/js/Microsoft.WinJS.4.0/js/en-us/placeholder.txt rename to archived/CameraProfile/js/Microsoft.WinJS.4.0/js/en-us/placeholder.txt diff --git a/Samples/CameraProfile/js/Package.appxmanifest b/archived/CameraProfile/js/Package.appxmanifest similarity index 100% rename from Samples/CameraProfile/js/Package.appxmanifest rename to archived/CameraProfile/js/Package.appxmanifest diff --git a/Samples/CameraProfile/js/css/Scenario1_SetRecordProfile.css b/archived/CameraProfile/js/css/Scenario1_SetRecordProfile.css similarity index 100% rename from Samples/CameraProfile/js/css/Scenario1_SetRecordProfile.css rename to archived/CameraProfile/js/css/Scenario1_SetRecordProfile.css diff --git a/Samples/CameraProfile/js/css/Scenario2_ConcurrentProfile.css b/archived/CameraProfile/js/css/Scenario2_ConcurrentProfile.css similarity index 100% rename from Samples/CameraProfile/js/css/Scenario2_ConcurrentProfile.css rename to archived/CameraProfile/js/css/Scenario2_ConcurrentProfile.css diff --git a/Samples/CameraProfile/js/css/Scenario3_EnableHdrProfile.css b/archived/CameraProfile/js/css/Scenario3_EnableHdrProfile.css similarity index 100% rename from Samples/CameraProfile/js/css/Scenario3_EnableHdrProfile.css rename to archived/CameraProfile/js/css/Scenario3_EnableHdrProfile.css diff --git a/Samples/CameraProfile/js/html/Scenario1_SetRecordProfile.html b/archived/CameraProfile/js/html/Scenario1_SetRecordProfile.html similarity index 100% rename from Samples/CameraProfile/js/html/Scenario1_SetRecordProfile.html rename to archived/CameraProfile/js/html/Scenario1_SetRecordProfile.html diff --git a/Samples/CameraProfile/js/html/Scenario2_ConcurrentProfile.html b/archived/CameraProfile/js/html/Scenario2_ConcurrentProfile.html similarity index 100% rename from Samples/CameraProfile/js/html/Scenario2_ConcurrentProfile.html rename to archived/CameraProfile/js/html/Scenario2_ConcurrentProfile.html diff --git a/Samples/CameraProfile/js/html/Scenario3_EnableHdrProfile.html b/archived/CameraProfile/js/html/Scenario3_EnableHdrProfile.html similarity index 100% rename from Samples/CameraProfile/js/html/Scenario3_EnableHdrProfile.html rename to archived/CameraProfile/js/html/Scenario3_EnableHdrProfile.html diff --git a/Samples/CameraProfile/js/js/Scenario1_SetRecordProfile.js b/archived/CameraProfile/js/js/Scenario1_SetRecordProfile.js similarity index 100% rename from Samples/CameraProfile/js/js/Scenario1_SetRecordProfile.js rename to archived/CameraProfile/js/js/Scenario1_SetRecordProfile.js diff --git a/Samples/CameraProfile/js/js/Scenario2_ConcurrentProfile.js b/archived/CameraProfile/js/js/Scenario2_ConcurrentProfile.js similarity index 100% rename from Samples/CameraProfile/js/js/Scenario2_ConcurrentProfile.js rename to archived/CameraProfile/js/js/Scenario2_ConcurrentProfile.js diff --git a/Samples/CameraProfile/js/js/Scenario3_EnableHdrProfile.js b/archived/CameraProfile/js/js/Scenario3_EnableHdrProfile.js similarity index 100% rename from Samples/CameraProfile/js/js/Scenario3_EnableHdrProfile.js rename to archived/CameraProfile/js/js/Scenario3_EnableHdrProfile.js diff --git a/Samples/CameraProfile/js/js/sample-configuration.js b/archived/CameraProfile/js/js/sample-configuration.js similarity index 100% rename from Samples/CameraProfile/js/js/sample-configuration.js rename to archived/CameraProfile/js/js/sample-configuration.js diff --git a/Samples/CameraProfile/js/sample-utils/placeholder.txt b/archived/CameraProfile/js/sample-utils/placeholder.txt similarity index 100% rename from Samples/CameraProfile/js/sample-utils/placeholder.txt rename to archived/CameraProfile/js/sample-utils/placeholder.txt diff --git a/archived/CameraResolution/README.md b/archived/CameraResolution/README.md new file mode 100644 index 0000000000..4f477153f5 --- /dev/null +++ b/archived/CameraResolution/README.md @@ -0,0 +1,102 @@ +--- +topic: sample +languages: +- js +products: +- windows +- windows-uwp +--- + +# Camera resolution sample + +Shows how to change the resolution of a capture device with the +[GetMediaStreamProperties](https://msdn.microsoft.com/library/windows/apps/windows.media.devices.videodevicecontroller.getmediastreamproperties.aspx) +and [SetMediaStreamPropertiesAsync](https://msdn.microsoft.com/library/windows/apps/hh700895.aspx) methods. + +> **Note:** This sample is part of a large collection of UWP feature samples. +> If you are unfamiliar with Git and GitHub, you can download the entire collection as a +> [ZIP file](https://github.com/Microsoft/Windows-universal-samples/archive/master.zip), but be +> sure to unzip everything to access shared dependencies. For more info on working with the ZIP file, +> the samples collection, and GitHub, see [Get the UWP samples from GitHub](https://aka.ms/ovu2uq). +> For more samples, see the [Samples portal](https://aka.ms/winsamples) on the Windows Dev Center. + +This sample covers the three common scenarios for changing the resolution: + +**Scenario 1**: Changing the resolution of the preview. + +1. Press the *Initialize Camera* button to populate the combo box with the resolutions +returned by the +[GetAvailableMediaStreamProperties](https://msdn.microsoft.com/library/windows/apps/windows.media.devices.videodevicecontroller.getmediastreamproperties.aspx) +method. +2. When an option from the combo box is selected, the changes will be reflected in the preview. + +**Scenario 2**: Changing the resolution of the preview and photo streams seperately. + +1. Press the *Initialize Camera* button to populate the combo boxes with the resolutions +returned by the +[GetAvailableMediaStreamProperties](https://msdn.microsoft.com/library/windows/apps/windows.media.devices.videodevicecontroller.getmediastreamproperties.aspx) +method. +2. When an option from the preview stream combo box is selected, the changes will be reflected in the preview. +3. When an option from the photo stream combo box is selected, the changes will be reflected in any photos taken with the photo button. + * Some devices may share streams, which will result in changes made to one stream also being applied to other streams. + +**Scenario 3**: Keeping the aspect ratios the same. + +1. Press the *Initialize Camera* button to populate the combo boxes with the resolutions +returned by the +[GetAvailableMediaStreamProperties](https://msdn.microsoft.com/library/windows/apps/windows.media.devices.videodevicecontroller.getmediastreamproperties.aspx) +method. +Video settings will be based on the aspect ratio of the default resolution. +2. When an option from the preview stream combo box is selected, the changes will be reflected in the preview. +If the aspect ratio has changed, the video combo box will +also change to show only formats that match the aspect ratio. +3. When an option from the video stream combo box is selected, +the changes will be reflected in any videos taken with the video button. + * Some devices may not support multiple streams and changes will also be reflected in the preview. + * Although this sample shows maintaining the aspect ratio only between the preview and video streams, + the same should be done with the photo stream when capturing photos. + +## Related topics + +### Samples + +[Basic camera app sample](/Samples/CameraStarterKit) +[Media capture using capture device](https://code.msdn.microsoft.com/windowsapps/Media-Capture-Sample-adf87622) + +### Reference + +[Windows.Media.Devices namespace](https://msdn.microsoft.com/library/windows/apps/windows.media.devices.aspx) +[Windows.Media.Capture.MediaCapture namespace](https://msdn.microsoft.com/library/windows/apps/windows.media.devices.aspx) +[Windows.Media.Capture.MediaCaptureInitializationSettings constructor](https://msdn.microsoft.com/library/windows/apps/windows.media.capture.mediacaptureinitializationsettings.mediacaptureinitializationsettings.aspx) +[Windows.Media.Capture.MediaCaptureInitializationSettings.VideoDeviceId property](https://msdn.microsoft.com/library/windows/apps/windows.media.capture.mediacaptureinitializationsettings.videodeviceid.aspx) +[Windows.Devices.Enumeration.DeviceInformation class](https://msdn.microsoft.com/library/windows/apps/windows.devices.enumeration.deviceinformation) +[Windows.Graphics.Imaging.BitmapDecoder class](https://msdn.microsoft.com/library/windows/apps/windows.graphics.imaging.bitmapdecoder.aspx) +[Windows.Graphics.Imaging.BitmapEncoder class](https://msdn.microsoft.com/library/windows/apps/windows.graphics.imaging.bitmapencoder.aspx) +[Capture photos and video with MediaCapture](https://msdn.microsoft.com/library/windows/apps/mt243896) + +### System requirements + +**Client:** Windows 10 + +**Server:** Windows Server 2016 Technical Preview + +**Phone:** Windows 10 + +## Build the sample + +1. If you download the samples ZIP, be sure to unzip the entire archive, not just the folder with the sample you want to build. +2. Start Microsoft Visual Studio 2017 and select **File** \> **Open** \> **Project/Solution**. +3. Starting in the folder where you unzipped the samples, go to the Samples subfolder, then the subfolder for this specific sample, then the subfolder for your preferred language (C++, C#, or JavaScript). Double-click the Visual Studio Solution (.sln) file. +4. Press Ctrl+Shift+B, or select **Build** \> **Build Solution**. + +## Run the sample + +The next steps depend on whether you just want to deploy the sample or you want to both deploy and run it. + +### Deploying the sample + +- Select Build > Deploy Solution. + +### Deploying and running the sample + +- To debug the sample and then run it, press F5 or select Debug > Start Debugging. To run the sample without debugging, press Ctrl+F5 or select Debug > Start Without Debugging. diff --git a/Samples/CameraResolution/js/CameraResolution.jsproj b/archived/CameraResolution/js/CameraResolution.jsproj similarity index 81% rename from Samples/CameraResolution/js/CameraResolution.jsproj rename to archived/CameraResolution/js/CameraResolution.jsproj index abd3377560..aa6a869a19 100644 --- a/Samples/CameraResolution/js/CameraResolution.jsproj +++ b/archived/CameraResolution/js/CameraResolution.jsproj @@ -57,7 +57,7 @@ - + default.html @@ -84,53 +84,53 @@ images\windows-sdk.png - + js\default.js - + css\default.css - + Microsoft.WinJS.4.0\css\ui-dark.css - + Microsoft.WinJS.4.0\css\ui-light.css - + Microsoft.WinJS.4.0\js\en-US\ui.strings.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense-setup.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense.js - + Microsoft.WinJS.4.0\fonts\Symbols.ttf - + Microsoft.WinJS.4.0\js\base.js - + Microsoft.WinJS.4.0\js\ui.js - + sample-utils\footer.html - + sample-utils\header.html - + sample-utils\sample-utils.js - + sample-utils\scenario-select.css - + sample-utils\scenario-select.html diff --git a/Samples/CameraResolution/js/CameraResolution.sln b/archived/CameraResolution/js/CameraResolution.sln similarity index 100% rename from Samples/CameraResolution/js/CameraResolution.sln rename to archived/CameraResolution/js/CameraResolution.sln diff --git a/Samples/CameraResolution/js/Microsoft.WinJS.4.0/css/placeholder.txt b/archived/CameraResolution/js/Microsoft.WinJS.4.0/css/placeholder.txt similarity index 100% rename from Samples/CameraResolution/js/Microsoft.WinJS.4.0/css/placeholder.txt rename to archived/CameraResolution/js/Microsoft.WinJS.4.0/css/placeholder.txt diff --git a/Samples/CameraResolution/js/Microsoft.WinJS.4.0/fonts/placeholder b/archived/CameraResolution/js/Microsoft.WinJS.4.0/fonts/placeholder similarity index 100% rename from Samples/CameraResolution/js/Microsoft.WinJS.4.0/fonts/placeholder rename to archived/CameraResolution/js/Microsoft.WinJS.4.0/fonts/placeholder diff --git a/Samples/CameraResolution/js/Microsoft.WinJS.4.0/js/en-us/placeholder.txt b/archived/CameraResolution/js/Microsoft.WinJS.4.0/js/en-us/placeholder.txt similarity index 100% rename from Samples/CameraResolution/js/Microsoft.WinJS.4.0/js/en-us/placeholder.txt rename to archived/CameraResolution/js/Microsoft.WinJS.4.0/js/en-us/placeholder.txt diff --git a/Samples/CameraResolution/js/Package.appxmanifest b/archived/CameraResolution/js/Package.appxmanifest similarity index 100% rename from Samples/CameraResolution/js/Package.appxmanifest rename to archived/CameraResolution/js/Package.appxmanifest diff --git a/Samples/CameraResolution/js/css/Scenario1_PreviewSettings.css b/archived/CameraResolution/js/css/Scenario1_PreviewSettings.css similarity index 100% rename from Samples/CameraResolution/js/css/Scenario1_PreviewSettings.css rename to archived/CameraResolution/js/css/Scenario1_PreviewSettings.css diff --git a/Samples/CameraResolution/js/css/Scenario2_PhotoSettings.css b/archived/CameraResolution/js/css/Scenario2_PhotoSettings.css similarity index 100% rename from Samples/CameraResolution/js/css/Scenario2_PhotoSettings.css rename to archived/CameraResolution/js/css/Scenario2_PhotoSettings.css diff --git a/Samples/CameraResolution/js/css/Scenario3_AspectRatio.css b/archived/CameraResolution/js/css/Scenario3_AspectRatio.css similarity index 100% rename from Samples/CameraResolution/js/css/Scenario3_AspectRatio.css rename to archived/CameraResolution/js/css/Scenario3_AspectRatio.css diff --git a/Samples/CameraResolution/js/html/Scenario1_PreviewSettings.html b/archived/CameraResolution/js/html/Scenario1_PreviewSettings.html similarity index 100% rename from Samples/CameraResolution/js/html/Scenario1_PreviewSettings.html rename to archived/CameraResolution/js/html/Scenario1_PreviewSettings.html diff --git a/Samples/CameraResolution/js/html/Scenario2_PhotoSettings.html b/archived/CameraResolution/js/html/Scenario2_PhotoSettings.html similarity index 100% rename from Samples/CameraResolution/js/html/Scenario2_PhotoSettings.html rename to archived/CameraResolution/js/html/Scenario2_PhotoSettings.html diff --git a/Samples/CameraResolution/js/html/Scenario3_AspectRatio.html b/archived/CameraResolution/js/html/Scenario3_AspectRatio.html similarity index 100% rename from Samples/CameraResolution/js/html/Scenario3_AspectRatio.html rename to archived/CameraResolution/js/html/Scenario3_AspectRatio.html diff --git a/Samples/CameraResolution/js/images/placeholder.txt b/archived/CameraResolution/js/images/placeholder.txt similarity index 100% rename from Samples/CameraResolution/js/images/placeholder.txt rename to archived/CameraResolution/js/images/placeholder.txt diff --git a/Samples/CameraResolution/js/js/Scenario1_PreviewSettings.js b/archived/CameraResolution/js/js/Scenario1_PreviewSettings.js similarity index 100% rename from Samples/CameraResolution/js/js/Scenario1_PreviewSettings.js rename to archived/CameraResolution/js/js/Scenario1_PreviewSettings.js diff --git a/Samples/CameraResolution/js/js/Scenario2_PhotoSettings.js b/archived/CameraResolution/js/js/Scenario2_PhotoSettings.js similarity index 100% rename from Samples/CameraResolution/js/js/Scenario2_PhotoSettings.js rename to archived/CameraResolution/js/js/Scenario2_PhotoSettings.js diff --git a/Samples/CameraResolution/js/js/Scenario3_AspectRatio.js b/archived/CameraResolution/js/js/Scenario3_AspectRatio.js similarity index 100% rename from Samples/CameraResolution/js/js/Scenario3_AspectRatio.js rename to archived/CameraResolution/js/js/Scenario3_AspectRatio.js diff --git a/Samples/CameraResolution/js/js/StreamResolutionHelper.js b/archived/CameraResolution/js/js/StreamResolutionHelper.js similarity index 100% rename from Samples/CameraResolution/js/js/StreamResolutionHelper.js rename to archived/CameraResolution/js/js/StreamResolutionHelper.js diff --git a/Samples/CameraResolution/js/js/sample-configuration.js b/archived/CameraResolution/js/js/sample-configuration.js similarity index 100% rename from Samples/CameraResolution/js/js/sample-configuration.js rename to archived/CameraResolution/js/js/sample-configuration.js diff --git a/Samples/CameraResolution/js/sample-utils/placeholder.txt b/archived/CameraResolution/js/sample-utils/placeholder.txt similarity index 100% rename from Samples/CameraResolution/js/sample-utils/placeholder.txt rename to archived/CameraResolution/js/sample-utils/placeholder.txt diff --git a/archived/CameraStarterKit/README.md b/archived/CameraStarterKit/README.md new file mode 100644 index 0000000000..17b43ad85a --- /dev/null +++ b/archived/CameraStarterKit/README.md @@ -0,0 +1,90 @@ +--- +topic: sample +languages: +- js +products: +- windows +- windows-uwp +--- + +# Basic camera app sample + +Provides an end-to-end sample to show how to write a camera application using the Windows.Media.Capture API in +conjunction with orientation sensors to cover the functions that most camera apps will require. + +> **Note:** This sample is part of a large collection of UWP feature samples. +> If you are unfamiliar with Git and GitHub, you can download the entire collection as a +> [ZIP file](https://github.com/Microsoft/Windows-universal-samples/archive/master.zip), but be +> sure to unzip everything to access shared dependencies. For more info on working with the ZIP file, +> the samples collection, and GitHub, see [Get the UWP samples from GitHub](https://aka.ms/ovu2uq). +> For more samples, see the [Samples portal](https://aka.ms/winsamples) on the Windows Dev Center. + +Specifically, this sample will cover how to: + +1. **Manage the MediaCapture object** throughout the lifecycle of the app and through navigation events. +2. **Acquire a camera located on a specific side of the device**. In this case, the sample attempts to get the rear camera. +3. **Start and stop the preview** to a UI element, including mirroring for front-facing cameras. +4. **Take a picture** to a file, and disable the video capture button if the app is running on a device that doesn't support concurrent capturing of photos and video. +5. **Record a video** to a file, and disable the photo capture button if the app is running on a device that doesn't support concurrent capturing of photos and video. +6. **Handle rotation events** for both, the device moving in space and the page orientation changing on the screen. Also apply any necessary corrections to the preview stream rotation and to captured photos and videos. +7. **Handle MediaCapture RecordLimitationExceeded and Failed events** to be notified that video recording needs to be stopped due to a video being too long, or clean up the MediaCapture instance when an error occurs. +8. **Handle cameras mounted at an angle in the device enclosure** by inspecting the EnclosureLocation.RotationAngleInDegreesClockwise and adjusting the UI to take it into account. + +This sample also implements a custom UI to better simulate the experience that a camera application would provide, so any messages intended for the developer are printed to the debug console. + +For apps that are interested in capturing a photo or video without requiring access to all camera controls, CameraCaptureUI abstracts and simplifies the access to the MediaCapture APIs through the built-in Camera application. See the related topics section below for more information on how to use it instead. + +## Related topics + +**Conceptual** + +[Capture photos and video with MediaCapture](http://go.microsoft.com/fwlink/?LinkId=627234) +[Capture photos and video with CameraCaptureUI](https://msdn.microsoft.com/library/windows/apps/mt282142) +[Media capture using capture device](https://code.msdn.microsoft.com/windowsapps/Media-Capture-Sample-adf87622) + +**Reference** + +[Windows.Media.Capture.MediaCapture namespace](https://msdn.microsoft.com/library/windows/apps/windows.media.devices.aspx) +[Windows.Media.Capture.MediaCaptureInitializationSettings constructor](https://msdn.microsoft.com/library/windows/apps/windows.media.capture.mediacaptureinitializationsettings.mediacaptureinitializationsettings.aspx) +[Windows.Media.Capture.MediaCaptureInitilizationSettings.VideoDeviceId property](https://msdn.microsoft.com/library/windows/apps/windows.media.capture.mediacaptureinitializationsettings.videodeviceid.aspx) +[Windows.Devices.Enumeration namespace](https://msdn.microsoft.com/library/windows/apps/windows.devices.enumeration.aspx) +[Windows.Devices.Enumeration.EnclosureLocation namespace](https://msdn.microsoft.com/library/windows/apps/windows.devices.enumeration.enclosurelocation.aspx) +[Windows.Devices.Enumeration.DeviceInformation class](https://msdn.microsoft.com/library/windows/apps/windows.devices.enumeration.deviceinformation) +[Windows.Devices.Sensors.SimpleOrientationSensor class](https://msdn.microsoft.com/library/windows/apps/windows.devices.sensors.simpleorientationsensor.aspx) +[Windows.Graphics.Display.DisplayInformation class](https://msdn.microsoft.com/library/windows/apps/windows.graphics.display.displayinformation.aspx) +[Windows.Phone.UI.Input.HardwareButtons.CameraPressed event](https://msdn.microsoft.com/library/windows/apps/windows.phone.ui.input.hardwarebuttons.camerapressed.aspx) +[Windows.Graphics.Imaging.BitmapDecoder class](https://msdn.microsoft.com/library/windows/apps/windows.graphics.imaging.bitmapdecoder.aspx) +[Windows.Graphics.Imaging.BitmapEncoder class](https://msdn.microsoft.com/library/windows/apps/windows.graphics.imaging.bitmapencoder.aspx) + +## Related samples + +[Family Notes sample](https://github.com/Microsoft/Windows-appsample-familynotes) + +## System requirements + +**Hardware:** Camera + +**Client:** Windows 10 + +**Server:** Windows Server 2016 Technical Preview + +**Phone:** Windows 10 + +## Build the sample + +1. If you download the samples ZIP, be sure to unzip the entire archive, not just the folder with the sample you want to build. +2. Start Microsoft Visual Studio 2017 and select **File** \> **Open** \> **Project/Solution**. +3. Starting in the folder where you unzipped the samples, go to the Samples subfolder, then the subfolder for this specific sample, then the subfolder for your preferred language (C++, C#, or JavaScript). Double-click the Visual Studio Solution (.sln) file. +4. Press Ctrl+Shift+B, or select **Build** \> **Build Solution**. + +## Run the sample + +The next steps depend on whether you just want to deploy the sample or you want to both deploy and run it. + +**Deploying the sample:** + +1. Select **Build** \> **Deploy Solution**. + +**Deploying and running the sample:** + +1. To debug the sample and then run it, press F5 or select **Debug** \> **Start Debugging**. To run the sample without debugging, press Ctrl+F5 or select **Debug** \> **Start Without Debugging**. diff --git a/Samples/CameraStarterKit/js/CameraStarterKit.jsproj b/archived/CameraStarterKit/js/CameraStarterKit.jsproj similarity index 86% rename from Samples/CameraStarterKit/js/CameraStarterKit.jsproj rename to archived/CameraStarterKit/js/CameraStarterKit.jsproj index cdabb97180..8834f4b987 100644 --- a/Samples/CameraStarterKit/js/CameraStarterKit.jsproj +++ b/archived/CameraStarterKit/js/CameraStarterKit.jsproj @@ -70,28 +70,28 @@ - + WinJS\css\ui-dark.css - + WinJS\css\ui-light.css - + WinJS\js\en-US\ui.strings.js - + WinJS\js\base.js - + WinJS\js\ui.js - + WinJS\js\WinJS.intellisense.js - + WinJS\fonts\Symbols.ttf - + WinJS\js\WinJS.intellisense-setup.js diff --git a/Samples/CameraStarterKit/js/CameraStarterKit.sln b/archived/CameraStarterKit/js/CameraStarterKit.sln similarity index 100% rename from Samples/CameraStarterKit/js/CameraStarterKit.sln rename to archived/CameraStarterKit/js/CameraStarterKit.sln diff --git a/Samples/CameraStarterKit/js/Package.appxmanifest b/archived/CameraStarterKit/js/Package.appxmanifest similarity index 100% rename from Samples/CameraStarterKit/js/Package.appxmanifest rename to archived/CameraStarterKit/js/Package.appxmanifest diff --git a/Samples/CameraStarterKit/js/WinJS/css/placeholder.txt b/archived/CameraStarterKit/js/WinJS/css/placeholder.txt similarity index 100% rename from Samples/CameraStarterKit/js/WinJS/css/placeholder.txt rename to archived/CameraStarterKit/js/WinJS/css/placeholder.txt diff --git a/Samples/CameraStarterKit/js/WinJS/fonts/placeholder.txt b/archived/CameraStarterKit/js/WinJS/fonts/placeholder.txt similarity index 100% rename from Samples/CameraStarterKit/js/WinJS/fonts/placeholder.txt rename to archived/CameraStarterKit/js/WinJS/fonts/placeholder.txt diff --git a/Samples/CameraStarterKit/js/WinJS/js/en-us/placeholder.txt b/archived/CameraStarterKit/js/WinJS/js/en-us/placeholder.txt similarity index 100% rename from Samples/CameraStarterKit/js/WinJS/js/en-us/placeholder.txt rename to archived/CameraStarterKit/js/WinJS/js/en-us/placeholder.txt diff --git a/Samples/CameraStarterKit/js/camera.html b/archived/CameraStarterKit/js/camera.html similarity index 100% rename from Samples/CameraStarterKit/js/camera.html rename to archived/CameraStarterKit/js/camera.html diff --git a/Samples/CameraStarterKit/js/css/camera.css b/archived/CameraStarterKit/js/css/camera.css similarity index 100% rename from Samples/CameraStarterKit/js/css/camera.css rename to archived/CameraStarterKit/js/css/camera.css diff --git a/Samples/CameraStarterKit/js/images/placeholder.txt b/archived/CameraStarterKit/js/images/placeholder.txt similarity index 100% rename from Samples/CameraStarterKit/js/images/placeholder.txt rename to archived/CameraStarterKit/js/images/placeholder.txt diff --git a/Samples/CameraStarterKit/js/js/camera.js b/archived/CameraStarterKit/js/js/camera.js similarity index 100% rename from Samples/CameraStarterKit/js/js/camera.js rename to archived/CameraStarterKit/js/js/camera.js diff --git a/Samples/CameraStarterKit/js/js/cameraRotationHelper.js b/archived/CameraStarterKit/js/js/cameraRotationHelper.js similarity index 100% rename from Samples/CameraStarterKit/js/js/cameraRotationHelper.js rename to archived/CameraStarterKit/js/js/cameraRotationHelper.js diff --git a/archived/CameraVideoStabilization/README.md b/archived/CameraVideoStabilization/README.md new file mode 100644 index 0000000000..79de51c5f5 --- /dev/null +++ b/archived/CameraVideoStabilization/README.md @@ -0,0 +1,101 @@ +--- +topic: sample +languages: +- js +products: +- windows +- windows-uwp +--- + +# Video stabilization sample + +Provides an end-to-end sample to show how to write a video recording camera application using the Windows.Media.Capture API in +conjunction with orientation sensors to cover the functions that most camera apps will require. In addition, it shows a simple way +to use the Video Stabilization effect included in Windows. This sample is based on the [Basic camera app sample](../CameraStarterKit). + +> **Note:** This sample is part of a large collection of UWP feature samples. +> If you are unfamiliar with Git and GitHub, you can download the entire collection as a +> [ZIP file](https://github.com/Microsoft/Windows-universal-samples/archive/master.zip), but be +> sure to unzip everything to access shared dependencies. For more info on working with the ZIP file, +> the samples collection, and GitHub, see [Get the UWP samples from GitHub](https://aka.ms/ovu2uq). +> For more samples, see the [Samples portal](https://aka.ms/winsamples) on the Windows Dev Center. + +Specifically, this sample will cover how to: + +1. **Manage the MediaCapture object** throughout the lifecycle of the app and through navigation events. +2. **Acquire a camera located on a specific side of the device**. In this case, the sample attempts to get the rear camera. +3. **Start and stop the preview** to a UI element, including mirroring for front-facing cameras. +4. **Record a video** to a file in the correct orientation (portrait and landscape). +5. **Handle rotation events** for both, the device moving in space and the page orientation changing on the screen. Also apply any necessary corrections to the preview stream rotation. +6. **Handle MediaCapture RecordLimitationExceeded and Failed events** to be notified that video recording needs to be stopped due to a video being too long, or clean up the MediaCapture instance when an error occurs. +7. **Manage the Video Stabilization effect**, including creation, activation/deactivation, registering for the EnabledChanged event, and cleanup. Note that video stabilization is a very intensive task, which may not be possible to achieve on slower devices. In this case, the effect will disable itself so the captured video maintains a good framerate. When this happens, the sample will allow the user to re-enable it without having to restart the recording session. +8. **Apply the Encoding Properties recommended by the Video Stabilization effect**, for better quality. On supported devices, this may lead to a larger resolution being configured on the "input" to the effect (by using MediaCapture.VideoDeviceController.SetMediaStreamPropertiesAsync()) to allow for some extra padding to crop as part of the stabilization process. Depending on that, the "output" may be reconfigured (by using a new MediaEncodingProfile that will be passed onto the MediaCapture.StartRecordToStorageFileAsync()) to match. This will result in a stabilized video that has the dimensions configured on the VideoDeviceController in the case that a suitable "padded" resolution is available) or in the case that it isn't, a video that is slightly smaller resolution. If the Video Stabilization recommendations are not applied, the resulting cropped video will be scaled back up to the original configuration of the VideoDeviceController, which may result in a loss of quality. + +This sample also implements a custom UI to better simulate the experience that a camera application would provide, so any messages intended for the developer are printed to the debug console. + +## Related topics + +**Samples** + +[CameraStarterKit](/Samples/CameraStarterKit) + +**Conceptual** + +[Capture photos and video with MediaCapture](https://msdn.microsoft.com/library/windows/apps/mt243896) + +[Media capture using capture device](https://code.msdn.microsoft.com/windowsapps/Media-Capture-Sample-adf87622) + +[Using the Video Stabilization effect](http://go.microsoft.com/fwlink/?LinkId=627235) + +**Reference** + +[Windows.Media.Capture.MediaCapture namespace](https://msdn.microsoft.com/library/windows/apps/windows.media.devices.aspx) + +[Windows.Media.Capture.MediaCaptureInitializationSettings constructor](https://msdn.microsoft.com/library/windows/apps/windows.media.capture.mediacaptureinitializationsettings.mediacaptureinitializationsettings.aspx) + +[Windows.Media.Capture.MediaCaptureInitilizationSettings.VideoDeviceId property](https://msdn.microsoft.com/library/windows/apps/windows.media.capture.mediacaptureinitializationsettings.videodeviceid.aspx) + +[Windows.Devices.Enumeration namespace](https://msdn.microsoft.com/library/windows/apps/windows.devices.enumeration.aspx) + +[Windows.Devices.Enumeration.DeviceInformation class](https://msdn.microsoft.com/library/windows/apps/windows.devices.enumeration.deviceinformation) + +[Windows.Devices.Sensors.SimpleOrientationSensor class](https://msdn.microsoft.com/library/windows/apps/windows.devices.sensors.simpleorientationsensor.aspx) + +[Windows.Graphics.Display.DisplayInformation class](https://msdn.microsoft.com/library/windows/apps/windows.graphics.display.displayinformation.aspx) + +[Windows.Phone.UI.Input.HardwareButtons.CameraPressed event](https://msdn.microsoft.com/library/windows/apps/windows.phone.ui.input.hardwarebuttons.camerapressed.aspx) + +[Windows.Graphics.Imaging.BitmapDecoder class](https://msdn.microsoft.com/library/windows/apps/windows.graphics.imaging.bitmapdecoder.aspx) + +[Windows.Graphics.Imaging.BitmapEncoder class](https://msdn.microsoft.com/library/windows/apps/windows.graphics.imaging.bitmapencoder.aspx) + +## System requirements + +**Hardware:** Camera + +**Client:** Windows 10 + +**Server:** Windows Server 2016 Technical Preview + +**Phone:** Windows 10 + +## Build the sample + +1. If you download the samples ZIP, be sure to unzip the entire archive, not just the folder with the sample you want to build. +2. Start Microsoft Visual Studio 2017 and select **File** \> **Open** \> **Project/Solution**. +3. Starting in the folder where you unzipped the samples, go to the Samples subfolder, then the subfolder for this specific sample, then the subfolder for your preferred language (C++, C#, or JavaScript). Double-click the Visual Studio Solution (.sln) file. +4. Press Ctrl+Shift+B, or select **Build** \> **Build Solution**. + +## Run the sample + +The next steps depend on whether you just want to deploy the sample or you want to both deploy and run it. + +**Deploying the sample:** + +1. Select **Build** \> **Deploy Solution**. + +**Deploying and running the sample:** + +1. To debug the sample and then run it, press F5 or select **Debug** \> **Start Debugging**. To run the sample without debugging, press Ctrl+F5 or select **Debug** \> **Start Without Debugging**. + + diff --git a/Samples/CameraVideoStabilization/js/CameraVideoStabilization.jsproj b/archived/CameraVideoStabilization/js/CameraVideoStabilization.jsproj similarity index 86% rename from Samples/CameraVideoStabilization/js/CameraVideoStabilization.jsproj rename to archived/CameraVideoStabilization/js/CameraVideoStabilization.jsproj index 6e78e6b519..6674a6aa0b 100644 --- a/Samples/CameraVideoStabilization/js/CameraVideoStabilization.jsproj +++ b/archived/CameraVideoStabilization/js/CameraVideoStabilization.jsproj @@ -70,28 +70,28 @@ - + WinJS\css\ui-dark.css - + WinJS\css\ui-light.css - + WinJS\js\en-US\ui.strings.js - + WinJS\js\base.js - + WinJS\js\ui.js - + WinJS\js\WinJS.intellisense.js - + WinJS\fonts\Symbols.ttf - + WinJS\js\WinJS.intellisense-setup.js diff --git a/Samples/CameraVideoStabilization/js/CameraVideoStabilization.sln b/archived/CameraVideoStabilization/js/CameraVideoStabilization.sln similarity index 100% rename from Samples/CameraVideoStabilization/js/CameraVideoStabilization.sln rename to archived/CameraVideoStabilization/js/CameraVideoStabilization.sln diff --git a/Samples/CameraVideoStabilization/js/Package.appxmanifest b/archived/CameraVideoStabilization/js/Package.appxmanifest similarity index 100% rename from Samples/CameraVideoStabilization/js/Package.appxmanifest rename to archived/CameraVideoStabilization/js/Package.appxmanifest diff --git a/Samples/CameraVideoStabilization/js/WinJS/css/placeholder.txt b/archived/CameraVideoStabilization/js/WinJS/css/placeholder.txt similarity index 100% rename from Samples/CameraVideoStabilization/js/WinJS/css/placeholder.txt rename to archived/CameraVideoStabilization/js/WinJS/css/placeholder.txt diff --git a/Samples/CameraVideoStabilization/js/WinJS/fonts/placeholder.txt b/archived/CameraVideoStabilization/js/WinJS/fonts/placeholder.txt similarity index 100% rename from Samples/CameraVideoStabilization/js/WinJS/fonts/placeholder.txt rename to archived/CameraVideoStabilization/js/WinJS/fonts/placeholder.txt diff --git a/Samples/CameraVideoStabilization/js/WinJS/js/en-us/placeholder.txt b/archived/CameraVideoStabilization/js/WinJS/js/en-us/placeholder.txt similarity index 100% rename from Samples/CameraVideoStabilization/js/WinJS/js/en-us/placeholder.txt rename to archived/CameraVideoStabilization/js/WinJS/js/en-us/placeholder.txt diff --git a/Samples/CameraVideoStabilization/js/camera.html b/archived/CameraVideoStabilization/js/camera.html similarity index 100% rename from Samples/CameraVideoStabilization/js/camera.html rename to archived/CameraVideoStabilization/js/camera.html diff --git a/Samples/CameraVideoStabilization/js/css/camera.css b/archived/CameraVideoStabilization/js/css/camera.css similarity index 100% rename from Samples/CameraVideoStabilization/js/css/camera.css rename to archived/CameraVideoStabilization/js/css/camera.css diff --git a/Samples/CameraVideoStabilization/js/js/camera.js b/archived/CameraVideoStabilization/js/js/camera.js similarity index 100% rename from Samples/CameraVideoStabilization/js/js/camera.js rename to archived/CameraVideoStabilization/js/js/camera.js diff --git a/archived/CashDrawer/README.md b/archived/CashDrawer/README.md new file mode 100644 index 0000000000..37f3fff34f --- /dev/null +++ b/archived/CashDrawer/README.md @@ -0,0 +1,79 @@ +--- +topic: sample +languages: +- js +products: +- windows +- windows-uwp +--- + +# Cash drawer sample + +Shows how to use the [Windows.Devices.PointOfService.CashDrawer](https://msdn.microsoft.com/library/windows/apps/windows.devices.pointofservice.cashdrawer.aspx) class. + +> **Note:** This sample is part of a large collection of UWP feature samples. +> If you are unfamiliar with Git and GitHub, you can download the entire collection as a +> [ZIP file](https://github.com/Microsoft/Windows-universal-samples/archive/master.zip), but be +> sure to unzip everything to access shared dependencies. For more info on working with the ZIP file, +> the samples collection, and GitHub, see [Get the UWP samples from GitHub](https://aka.ms/ovu2uq). +> For more samples, see the [Samples portal](https://aka.ms/winsamples) on the Windows Dev Center. + +Specifically, this sample shows how to: + +1. **Opening a cash drawer** + + This scenario demonstrates how to find, claim, and enable a Cash Drawer, and then open the drawer. + +2. **Waiting for the drawer to close** + + This scenario demonstrates how to set up an event handler for the drawer closing. + +3. **Multiple instances of cash drawer** + + This scenario demonstrates the claim/release model used by the Cash Drawer API by allowing the user to manager two cash drawer instances with UI controls for claiming, retaining, and releasing the drawer objects. + + +**Note** The Windows universal samples require Visual Studio 2017 to build and Windows 10 to execute. + +To obtain information about Windows 10 development, go to the [Windows Dev Center](http://go.microsoft.com/fwlink/?LinkID=532421) + +To obtain information about Microsoft Visual Studio and the tools for developing Windows apps, go to [Visual Studio](http://go.microsoft.com/fwlink/?LinkID=532422) + +## Related topics + +### Samples + +[Cash Drawer sample](/Samples/CashDrawer) + +### Reference + +[Windows.Devices.PointOfService](http://msdn.microsoft.com/library/windows/apps/dn298071) + +[Windows app samples](http://go.microsoft.com/fwlink/p/?LinkID=227694) + +## System requirements + +**Client:** Windows 10 + +**Server:** Windows Server 2016 Technical Preview + +**Phone:** Windows 10 + +## Build the sample + +1. If you download the samples ZIP, be sure to unzip the entire archive, not just the folder with the sample you want to build. +2. Start Microsoft Visual Studio 2017 and select **File** \> **Open** \> **Project/Solution**. +3. Starting in the folder where you unzipped the samples, go to the Samples subfolder, then the subfolder for this specific sample, then the subfolder for your preferred language (C++, C#, or JavaScript). Double-click the Visual Studio Solution (.sln) file. +4. Press Ctrl+Shift+B, or select **Build** \> **Build Solution**. + +## Run the sample + +The next steps depend on whether you just want to deploy the sample or you want to both deploy and run it. + +### Deploying the sample + +- Select Build > Deploy Solution. + +### Deploying and running the sample + +- To debug the sample and then run it, press F5 or select Debug > Start Debugging. To run the sample without debugging, press Ctrl+F5 or selectDebug > Start Without Debugging. diff --git a/Samples/CashDrawer/js/CashDrawer.jsproj b/archived/CashDrawer/js/CashDrawer.jsproj similarity index 80% rename from Samples/CashDrawer/js/CashDrawer.jsproj rename to archived/CashDrawer/js/CashDrawer.jsproj index 838e3d57d5..34d560de04 100644 --- a/Samples/CashDrawer/js/CashDrawer.jsproj +++ b/archived/CashDrawer/js/CashDrawer.jsproj @@ -57,7 +57,7 @@ - + default.html @@ -84,56 +84,56 @@ images\windows-sdk.png - + js\default.js - + js\devicehelpers.js - + css\default.css - + Microsoft.WinJS.4.0\css\ui-dark.css - + Microsoft.WinJS.4.0\css\ui-light.css - + Microsoft.WinJS.4.0\js\en-US\ui.strings.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense-setup.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense.js - + Microsoft.WinJS.4.0\fonts\Symbols.ttf - + Microsoft.WinJS.4.0\js\base.js - + Microsoft.WinJS.4.0\js\ui.js - + sample-utils\footer.html - + sample-utils\header.html - + sample-utils\sample-utils.js - + sample-utils\scenario-select.css - + sample-utils\scenario-select.html diff --git a/Samples/CashDrawer/js/CashDrawer.sln b/archived/CashDrawer/js/CashDrawer.sln similarity index 100% rename from Samples/CashDrawer/js/CashDrawer.sln rename to archived/CashDrawer/js/CashDrawer.sln diff --git a/Samples/CashDrawer/js/Microsoft.WinJS.4.0/css/placeholder.txt b/archived/CashDrawer/js/Microsoft.WinJS.4.0/css/placeholder.txt similarity index 100% rename from Samples/CashDrawer/js/Microsoft.WinJS.4.0/css/placeholder.txt rename to archived/CashDrawer/js/Microsoft.WinJS.4.0/css/placeholder.txt diff --git a/Samples/CashDrawer/js/Microsoft.WinJS.4.0/fonts/placeholder b/archived/CashDrawer/js/Microsoft.WinJS.4.0/fonts/placeholder similarity index 100% rename from Samples/CashDrawer/js/Microsoft.WinJS.4.0/fonts/placeholder rename to archived/CashDrawer/js/Microsoft.WinJS.4.0/fonts/placeholder diff --git a/Samples/CashDrawer/js/Microsoft.WinJS.4.0/js/en-us/placeholder.txt b/archived/CashDrawer/js/Microsoft.WinJS.4.0/js/en-us/placeholder.txt similarity index 100% rename from Samples/CashDrawer/js/Microsoft.WinJS.4.0/js/en-us/placeholder.txt rename to archived/CashDrawer/js/Microsoft.WinJS.4.0/js/en-us/placeholder.txt diff --git a/Samples/CashDrawer/js/Package.appxmanifest b/archived/CashDrawer/js/Package.appxmanifest similarity index 100% rename from Samples/CashDrawer/js/Package.appxmanifest rename to archived/CashDrawer/js/Package.appxmanifest diff --git a/Samples/CashDrawer/js/css/scenario1_OpenDrawer.css b/archived/CashDrawer/js/css/scenario1_OpenDrawer.css similarity index 100% rename from Samples/CashDrawer/js/css/scenario1_OpenDrawer.css rename to archived/CashDrawer/js/css/scenario1_OpenDrawer.css diff --git a/Samples/CashDrawer/js/css/scenario2_CloseDrawer.css b/archived/CashDrawer/js/css/scenario2_CloseDrawer.css similarity index 100% rename from Samples/CashDrawer/js/css/scenario2_CloseDrawer.css rename to archived/CashDrawer/js/css/scenario2_CloseDrawer.css diff --git a/Samples/CashDrawer/js/css/scenario3_MultipleDrawers.css b/archived/CashDrawer/js/css/scenario3_MultipleDrawers.css similarity index 100% rename from Samples/CashDrawer/js/css/scenario3_MultipleDrawers.css rename to archived/CashDrawer/js/css/scenario3_MultipleDrawers.css diff --git a/Samples/CashDrawer/js/html/scenario1_OpenDrawer.html b/archived/CashDrawer/js/html/scenario1_OpenDrawer.html similarity index 100% rename from Samples/CashDrawer/js/html/scenario1_OpenDrawer.html rename to archived/CashDrawer/js/html/scenario1_OpenDrawer.html diff --git a/Samples/CashDrawer/js/html/scenario2_CloseDrawer.html b/archived/CashDrawer/js/html/scenario2_CloseDrawer.html similarity index 100% rename from Samples/CashDrawer/js/html/scenario2_CloseDrawer.html rename to archived/CashDrawer/js/html/scenario2_CloseDrawer.html diff --git a/Samples/CashDrawer/js/html/scenario3_MultipleDrawers.html b/archived/CashDrawer/js/html/scenario3_MultipleDrawers.html similarity index 100% rename from Samples/CashDrawer/js/html/scenario3_MultipleDrawers.html rename to archived/CashDrawer/js/html/scenario3_MultipleDrawers.html diff --git a/Samples/CashDrawer/js/images/placeholder.txt b/archived/CashDrawer/js/images/placeholder.txt similarity index 100% rename from Samples/CashDrawer/js/images/placeholder.txt rename to archived/CashDrawer/js/images/placeholder.txt diff --git a/Samples/CashDrawer/js/js/sample-configuration.js b/archived/CashDrawer/js/js/sample-configuration.js similarity index 100% rename from Samples/CashDrawer/js/js/sample-configuration.js rename to archived/CashDrawer/js/js/sample-configuration.js diff --git a/Samples/CashDrawer/js/js/scenario1_OpenDrawer.js b/archived/CashDrawer/js/js/scenario1_OpenDrawer.js similarity index 100% rename from Samples/CashDrawer/js/js/scenario1_OpenDrawer.js rename to archived/CashDrawer/js/js/scenario1_OpenDrawer.js diff --git a/Samples/CashDrawer/js/js/scenario2_CloseDrawer.js b/archived/CashDrawer/js/js/scenario2_CloseDrawer.js similarity index 100% rename from Samples/CashDrawer/js/js/scenario2_CloseDrawer.js rename to archived/CashDrawer/js/js/scenario2_CloseDrawer.js diff --git a/Samples/CashDrawer/js/js/scenario3_MultipleDrawers.js b/archived/CashDrawer/js/js/scenario3_MultipleDrawers.js similarity index 100% rename from Samples/CashDrawer/js/js/scenario3_MultipleDrawers.js rename to archived/CashDrawer/js/js/scenario3_MultipleDrawers.js diff --git a/Samples/CashDrawer/js/sample-utils/placeholder.txt b/archived/CashDrawer/js/sample-utils/placeholder.txt similarity index 100% rename from Samples/CashDrawer/js/sample-utils/placeholder.txt rename to archived/CashDrawer/js/sample-utils/placeholder.txt diff --git a/archived/ClientDeviceInformation/README.md b/archived/ClientDeviceInformation/README.md new file mode 100644 index 0000000000..cfbc4db5a4 --- /dev/null +++ b/archived/ClientDeviceInformation/README.md @@ -0,0 +1,50 @@ +--- +topic: sample +languages: +- js +products: +- windows +- windows-uwp +--- + +# Client Device Information sample + +Shows how to retrieve device information such as operating system and manufacturer. + +> **Note:** This sample is part of a large collection of UWP feature samples. +> If you are unfamiliar with Git and GitHub, you can download the entire collection as a +> [ZIP file](https://github.com/Microsoft/Windows-universal-samples/archive/master.zip), but be +> sure to unzip everything to access shared dependencies. For more info on working with the ZIP file, +> the samples collection, and GitHub, see [Get the UWP samples from GitHub](https://aka.ms/ovu2uq). +> For more samples, see the [Samples portal](https://aka.ms/winsamples) on the Windows Dev Center. + +## Related Topics + +[EasClientDeviceInformation class](https://msdn.microsoft.com/library/windows/apps/windows.security.exchangeactivesyncprovisioning.easclientdeviceinformation) + +## Operating system requirements + +*Client*: Windows 10 + +**Server:** Windows Server 2016 Technical Preview + +**Phone:** Windows 10 + +## Build the sample + +1. If you download the samples ZIP, be sure to unzip the entire archive, not just the folder with the sample you want to build. +2. Start Microsoft Visual Studio 2017 and select **File** \> **Open** \> **Project/Solution**. +3. Starting in the folder where you unzipped the samples, go to the Samples subfolder, then the subfolder for this specific sample, then the subfolder for your preferred language (C++, C#, or JavaScript). Double-click the Visual Studio Solution (.sln) file. +4. Press Ctrl+Shift+B, or select **Build** \> **Build Solution**. + +## Run the sample + +The next steps depend on whether you just want to deploy the sample or you want to both deploy and run it. + +## Deploying the sample + +1. Select **Build** \> **Deploy Solution**. + +## Deploying and running the sample + +1. To debug the sample and then run it, press F5 or select **Debug** \> **Start Debugging**. To run the sample without debugging, press Ctrl+F5 or select**Debug** \> **Start Without Debugging**. diff --git a/Samples/ClientDeviceInformation/js/ClientDeviceInformation.jsproj b/archived/ClientDeviceInformation/js/ClientDeviceInformation.jsproj similarity index 80% rename from Samples/ClientDeviceInformation/js/ClientDeviceInformation.jsproj rename to archived/ClientDeviceInformation/js/ClientDeviceInformation.jsproj index 1d9479f457..4063986f0f 100644 --- a/Samples/ClientDeviceInformation/js/ClientDeviceInformation.jsproj +++ b/archived/ClientDeviceInformation/js/ClientDeviceInformation.jsproj @@ -54,7 +54,7 @@ Designer - + default.html @@ -79,51 +79,51 @@ images\windows-sdk.png - + js\default.js - + css\default.css - + Microsoft.WinJS.4.0\css\ui-dark.css - + Microsoft.WinJS.4.0\css\ui-light.css - + Microsoft.WinJS.4.0\js\en-US\ui.strings.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense-setup.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense.js - + Microsoft.WinJS.4.0\fonts\Symbols.ttf - + Microsoft.WinJS.4.0\js\base.js - + Microsoft.WinJS.4.0\js\ui.js - + sample-utils\footer.html - + sample-utils\header.html - + sample-utils\sample-utils.js - + sample-utils\scenario-select.css - + sample-utils\scenario-select.html diff --git a/Samples/ClientDeviceInformation/js/ClientDeviceInformation.sln b/archived/ClientDeviceInformation/js/ClientDeviceInformation.sln similarity index 100% rename from Samples/ClientDeviceInformation/js/ClientDeviceInformation.sln rename to archived/ClientDeviceInformation/js/ClientDeviceInformation.sln diff --git a/Samples/ClientDeviceInformation/js/Microsoft.WinJS.4.0/css/placeholder.txt b/archived/ClientDeviceInformation/js/Microsoft.WinJS.4.0/css/placeholder.txt similarity index 100% rename from Samples/ClientDeviceInformation/js/Microsoft.WinJS.4.0/css/placeholder.txt rename to archived/ClientDeviceInformation/js/Microsoft.WinJS.4.0/css/placeholder.txt diff --git a/Samples/ClientDeviceInformation/js/Microsoft.WinJS.4.0/fonts/placeholder b/archived/ClientDeviceInformation/js/Microsoft.WinJS.4.0/fonts/placeholder similarity index 100% rename from Samples/ClientDeviceInformation/js/Microsoft.WinJS.4.0/fonts/placeholder rename to archived/ClientDeviceInformation/js/Microsoft.WinJS.4.0/fonts/placeholder diff --git a/Samples/ClientDeviceInformation/js/Microsoft.WinJS.4.0/js/en-us/placeholder.txt b/archived/ClientDeviceInformation/js/Microsoft.WinJS.4.0/js/en-us/placeholder.txt similarity index 100% rename from Samples/ClientDeviceInformation/js/Microsoft.WinJS.4.0/js/en-us/placeholder.txt rename to archived/ClientDeviceInformation/js/Microsoft.WinJS.4.0/js/en-us/placeholder.txt diff --git a/Samples/ClientDeviceInformation/js/Package.appxmanifest b/archived/ClientDeviceInformation/js/Package.appxmanifest similarity index 100% rename from Samples/ClientDeviceInformation/js/Package.appxmanifest rename to archived/ClientDeviceInformation/js/Package.appxmanifest diff --git a/Samples/ClientDeviceInformation/js/css/placeholder.txt b/archived/ClientDeviceInformation/js/css/placeholder.txt similarity index 100% rename from Samples/ClientDeviceInformation/js/css/placeholder.txt rename to archived/ClientDeviceInformation/js/css/placeholder.txt diff --git a/Samples/ClientDeviceInformation/js/html/scenario1.html b/archived/ClientDeviceInformation/js/html/scenario1.html similarity index 100% rename from Samples/ClientDeviceInformation/js/html/scenario1.html rename to archived/ClientDeviceInformation/js/html/scenario1.html diff --git a/Samples/ClientDeviceInformation/js/js/sample-configuration.js b/archived/ClientDeviceInformation/js/js/sample-configuration.js similarity index 100% rename from Samples/ClientDeviceInformation/js/js/sample-configuration.js rename to archived/ClientDeviceInformation/js/js/sample-configuration.js diff --git a/Samples/ClientDeviceInformation/js/js/scenario1.js b/archived/ClientDeviceInformation/js/js/scenario1.js similarity index 100% rename from Samples/ClientDeviceInformation/js/js/scenario1.js rename to archived/ClientDeviceInformation/js/js/scenario1.js diff --git a/Samples/ClientDeviceInformation/js/sample-utils/placeholder.txt b/archived/ClientDeviceInformation/js/sample-utils/placeholder.txt similarity index 100% rename from Samples/ClientDeviceInformation/js/sample-utils/placeholder.txt rename to archived/ClientDeviceInformation/js/sample-utils/placeholder.txt diff --git a/archived/Clipboard/README.md b/archived/Clipboard/README.md new file mode 100644 index 0000000000..c2853d0c96 --- /dev/null +++ b/archived/Clipboard/README.md @@ -0,0 +1,73 @@ +--- +topic: sample +languages: +- js +products: +- windows +- windows-uwp +--- + +# Clipboard sample + +Shows how to use clipboard commands, including copy, paste, cut, and move. +This sample uses classes from the [Windows.ApplicationModel.DataTransfer](http://msdn.microsoft.com/library/windows/apps/br205967) namespace. +Some of the classes you might want to review in more detail include the [Clipboard](http://msdn.microsoft.com/library/windows/apps/br205867) class, +which accesses the Clipboard, and the [DataPackage](http://msdn.microsoft.com/library/windows/apps/br205873) class, which you use to package the +content before adding it to the Clipboard. + +> **Note:** This sample is part of a large collection of UWP feature samples. +> If you are unfamiliar with Git and GitHub, you can download the entire collection as a +> [ZIP file](https://github.com/Microsoft/Windows-universal-samples/archive/master.zip), but be +> sure to unzip everything to access shared dependencies. For more info on working with the ZIP file, +> the samples collection, and GitHub, see [Get the UWP samples from GitHub](https://aka.ms/ovu2uq). +> For more samples, see the [Samples portal](https://aka.ms/winsamples) on the Windows Dev Center. + +This sample covers the following: + +- How to copy and paste text +- How to copy and paste an image +- How to copy and paste files +- How to get the formats on the Clipboard +- How to detect changes to the Clipboard + +**Note** The Windows universal samples require Visual Studio 2017 to build and Windows 10 to execute. + +To obtain information about Windows 10 development, go to the [Windows Dev Center](http://go.microsoft.com/fwlink/?LinkID=532421) + +To obtain information about Microsoft Visual Studio and the tools for developing Windows apps, go to [Visual Studio](http://go.microsoft.com/fwlink/?LinkID=532422) + +## Related topics + +### Reference + +[Clipboard](http://msdn.microsoft.com/library/windows/apps/br205867) +[Guidelines and checklist for clipboard commands](http://msdn.microsoft.com/library/windows/apps/hh700347) +[QuickStart: Clipboard basics](http://msdn.microsoft.com/library/windows/apps/hh750308) +[Windows.ApplicationModel.DataTransfer](http://msdn.microsoft.com/library/windows/apps/br205967) + +## System requirements + +**Client:** Windows 10 + +**Server:** Windows Server 2016 Technical Preview + +**Phone:** Windows 10 + +## Build the sample + +1. If you download the samples ZIP, be sure to unzip the entire archive, not just the folder with the sample you want to build. +2. Start Microsoft Visual Studio 2017 and select **File** \> **Open** \> **Project/Solution**. +3. Starting in the folder where you unzipped the samples, go to the Samples subfolder, then the subfolder for this specific sample, then the subfolder for your preferred language (C++, C#, or JavaScript). Double-click the Visual Studio Solution (.sln) file. +4. Press Ctrl+Shift+B, or select **Build** \> **Build Solution**. + +## Run the sample + +The next steps depend on whether you just want to deploy the sample or you want to both deploy and run it. + +### Deploying the sample + +- Select Build > Deploy Solution. + +### Deploying and running the sample + +- To debug the sample and then run it, press F5 or select Debug > Start Debugging. To run the sample without debugging, press Ctrl+F5 or select Debug > Start Without Debugging. diff --git a/Samples/Clipboard/js/Clipboard.jsproj b/archived/Clipboard/js/Clipboard.jsproj similarity index 81% rename from Samples/Clipboard/js/Clipboard.jsproj rename to archived/Clipboard/js/Clipboard.jsproj index 639fdf7248..82534e4cd9 100644 --- a/Samples/Clipboard/js/Clipboard.jsproj +++ b/archived/Clipboard/js/Clipboard.jsproj @@ -54,7 +54,7 @@ Designer - + default.html @@ -82,10 +82,10 @@ images\windows-sdk.png - + js\default.js - + css\default.css @@ -93,43 +93,43 @@ - + Microsoft.WinJS.4.0\css\ui-dark.css - + Microsoft.WinJS.4.0\css\ui-light.css - + Microsoft.WinJS.4.0\js\en-US\ui.strings.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense-setup.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense.js - + Microsoft.WinJS.4.0\fonts\Symbols.ttf - + Microsoft.WinJS.4.0\js\base.js - + Microsoft.WinJS.4.0\js\ui.js - + sample-utils\footer.html - + sample-utils\header.html - + sample-utils\sample-utils.js - + sample-utils\scenario-select.css - + sample-utils\scenario-select.html diff --git a/Samples/Clipboard/js/Clipboard.sln b/archived/Clipboard/js/Clipboard.sln similarity index 100% rename from Samples/Clipboard/js/Clipboard.sln rename to archived/Clipboard/js/Clipboard.sln diff --git a/Samples/Clipboard/js/Microsoft.WinJS.4.0/css/placeholder.txt b/archived/Clipboard/js/Microsoft.WinJS.4.0/css/placeholder.txt similarity index 100% rename from Samples/Clipboard/js/Microsoft.WinJS.4.0/css/placeholder.txt rename to archived/Clipboard/js/Microsoft.WinJS.4.0/css/placeholder.txt diff --git a/Samples/Clipboard/js/Microsoft.WinJS.4.0/fonts/placeholder b/archived/Clipboard/js/Microsoft.WinJS.4.0/fonts/placeholder similarity index 100% rename from Samples/Clipboard/js/Microsoft.WinJS.4.0/fonts/placeholder rename to archived/Clipboard/js/Microsoft.WinJS.4.0/fonts/placeholder diff --git a/Samples/Clipboard/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt b/archived/Clipboard/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt similarity index 100% rename from Samples/Clipboard/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt rename to archived/Clipboard/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt diff --git a/Samples/Clipboard/js/Package.appxmanifest b/archived/Clipboard/js/Package.appxmanifest similarity index 100% rename from Samples/Clipboard/js/Package.appxmanifest rename to archived/Clipboard/js/Package.appxmanifest diff --git a/Samples/Clipboard/js/css/placeholder.txt b/archived/Clipboard/js/css/placeholder.txt similarity index 100% rename from Samples/Clipboard/js/css/placeholder.txt rename to archived/Clipboard/js/css/placeholder.txt diff --git a/Samples/Clipboard/js/html/files.html b/archived/Clipboard/js/html/files.html similarity index 100% rename from Samples/Clipboard/js/html/files.html rename to archived/Clipboard/js/html/files.html diff --git a/Samples/Clipboard/js/html/image.html b/archived/Clipboard/js/html/image.html similarity index 100% rename from Samples/Clipboard/js/html/image.html rename to archived/Clipboard/js/html/image.html diff --git a/Samples/Clipboard/js/html/other.html b/archived/Clipboard/js/html/other.html similarity index 100% rename from Samples/Clipboard/js/html/other.html rename to archived/Clipboard/js/html/other.html diff --git a/Samples/Clipboard/js/html/text.html b/archived/Clipboard/js/html/text.html similarity index 100% rename from Samples/Clipboard/js/html/text.html rename to archived/Clipboard/js/html/text.html diff --git a/Samples/Clipboard/js/images/placeholder.txt b/archived/Clipboard/js/images/placeholder.txt similarity index 100% rename from Samples/Clipboard/js/images/placeholder.txt rename to archived/Clipboard/js/images/placeholder.txt diff --git a/Samples/Clipboard/js/js/files.js b/archived/Clipboard/js/js/files.js similarity index 100% rename from Samples/Clipboard/js/js/files.js rename to archived/Clipboard/js/js/files.js diff --git a/Samples/Clipboard/js/js/image.js b/archived/Clipboard/js/js/image.js similarity index 100% rename from Samples/Clipboard/js/js/image.js rename to archived/Clipboard/js/js/image.js diff --git a/Samples/Clipboard/js/js/other.js b/archived/Clipboard/js/js/other.js similarity index 100% rename from Samples/Clipboard/js/js/other.js rename to archived/Clipboard/js/js/other.js diff --git a/Samples/Clipboard/js/js/sample-configuration.js b/archived/Clipboard/js/js/sample-configuration.js similarity index 100% rename from Samples/Clipboard/js/js/sample-configuration.js rename to archived/Clipboard/js/js/sample-configuration.js diff --git a/Samples/Clipboard/js/js/text.js b/archived/Clipboard/js/js/text.js similarity index 100% rename from Samples/Clipboard/js/js/text.js rename to archived/Clipboard/js/js/text.js diff --git a/Samples/Clipboard/js/sample-utils/placeholder.txt b/archived/Clipboard/js/sample-utils/placeholder.txt similarity index 100% rename from Samples/Clipboard/js/sample-utils/placeholder.txt rename to archived/Clipboard/js/sample-utils/placeholder.txt diff --git a/archived/Compass/README.md b/archived/Compass/README.md new file mode 100644 index 0000000000..d6123c6359 --- /dev/null +++ b/archived/Compass/README.md @@ -0,0 +1,68 @@ +--- +topic: sample +languages: +- js +products: +- windows +- windows-uwp +--- + +# Compass sample + +Shows how to use the [Windows.Devices.Sensors.Compass](http://msdn.microsoft.com/library/windows/apps/br225705) API. + +> **Note:** This sample is part of a large collection of UWP feature samples. +> If you are unfamiliar with Git and GitHub, you can download the entire collection as a +> [ZIP file](https://github.com/Microsoft/Windows-universal-samples/archive/master.zip), but be +> sure to unzip everything to access shared dependencies. For more info on working with the ZIP file, +> the samples collection, and GitHub, see [Get the UWP samples from GitHub](https://aka.ms/ovu2uq). +> For more samples, see the [Samples portal](https://aka.ms/winsamples) on the Windows Dev Center. + +This sample allows the user to view the compass reading as a magnetic-north and, depending on the installed sensor, a true-north value. You can choose one of three scenarios: + +- Compass data events +- Poll compass readings +- Sensor calibration + +### Compass Data Events + +When you choose the **Enable** button for the **Data Events** option, the app begins streaming compass readings in real time. + +### Poll Compass Readings + +When you choose the **Enable** button for the **Polling** option, the app will retrieve the sensor readings at a fixed interval. + +### Sensor Calibration + +Allows the user to simulate sensor accuracy and demonstrates usage of the calibration bar. + +## Related topics + +[Windows.Devices.Sensors namespace](http://go.microsoft.com/fwlink/p/?linkid=241981) + +## System requirements + +**Client:** Windows 10 + +**Server:** Windows Server 2016 Technical Preview + +**Phone:** Windows 10 + +## Build the sample + +1. If you download the samples ZIP, be sure to unzip the entire archive, not just the folder with the sample you want to build. +2. Start Microsoft Visual Studio 2017 and select **File** \> **Open** \> **Project/Solution**. +3. Starting in the folder where you unzipped the samples, go to the Samples subfolder, then the subfolder for this specific sample, then the subfolder for your preferred language (C++, C#, or JavaScript). Double-click the Visual Studio Solution (.sln) file. +4. Press Ctrl+Shift+B, or select **Build** \> **Build Solution**. + +## Run the sample + +The next steps depend on whether you just want to deploy the sample or you want to both deploy and run it. + +### Deploying the sample + +- Select Build > Deploy Solution. + +### Deploying and running the sample + +- To debug the sample and then run it, press F5 or select Debug > Start Debugging. To run the sample without debugging, press Ctrl+F5 or selectDebug > Start Without Debugging. diff --git a/Samples/Compass/js/Compass.jsproj b/archived/Compass/js/Compass.jsproj similarity index 82% rename from Samples/Compass/js/Compass.jsproj rename to archived/Compass/js/Compass.jsproj index e78530bc08..f9ebaaff4d 100644 --- a/Samples/Compass/js/Compass.jsproj +++ b/archived/Compass/js/Compass.jsproj @@ -58,7 +58,7 @@ - + default.html @@ -90,53 +90,53 @@ images\windows-sdk.png - + js\default.js - + css\default.css - + Microsoft.WinJS.4.0\css\ui-dark.css - + Microsoft.WinJS.4.0\css\ui-light.css - + Microsoft.WinJS.4.0\js\en-US\ui.strings.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense-setup.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense.js - + Microsoft.WinJS.4.0\fonts\Symbols.ttf - + Microsoft.WinJS.4.0\js\base.js - + Microsoft.WinJS.4.0\js\ui.js - + sample-utils\footer.html - + sample-utils\header.html - + sample-utils\sample-utils.js - + sample-utils\scenario-select.css - + sample-utils\scenario-select.html diff --git a/Samples/Compass/js/Compass.sln b/archived/Compass/js/Compass.sln similarity index 100% rename from Samples/Compass/js/Compass.sln rename to archived/Compass/js/Compass.sln diff --git a/Samples/Compass/js/Microsoft.WinJS.4.0/css/placeholder.txt b/archived/Compass/js/Microsoft.WinJS.4.0/css/placeholder.txt similarity index 100% rename from Samples/Compass/js/Microsoft.WinJS.4.0/css/placeholder.txt rename to archived/Compass/js/Microsoft.WinJS.4.0/css/placeholder.txt diff --git a/Samples/Compass/js/Microsoft.WinJS.4.0/fonts/placeholder b/archived/Compass/js/Microsoft.WinJS.4.0/fonts/placeholder similarity index 100% rename from Samples/Compass/js/Microsoft.WinJS.4.0/fonts/placeholder rename to archived/Compass/js/Microsoft.WinJS.4.0/fonts/placeholder diff --git a/Samples/Compass/js/Microsoft.WinJS.4.0/js/en-us/placeholder.txt b/archived/Compass/js/Microsoft.WinJS.4.0/js/en-us/placeholder.txt similarity index 100% rename from Samples/Compass/js/Microsoft.WinJS.4.0/js/en-us/placeholder.txt rename to archived/Compass/js/Microsoft.WinJS.4.0/js/en-us/placeholder.txt diff --git a/Samples/Compass/js/Package.appxmanifest b/archived/Compass/js/Package.appxmanifest similarity index 100% rename from Samples/Compass/js/Package.appxmanifest rename to archived/Compass/js/Package.appxmanifest diff --git a/Samples/Compass/js/css/calibrationBar.css b/archived/Compass/js/css/calibrationBar.css similarity index 100% rename from Samples/Compass/js/css/calibrationBar.css rename to archived/Compass/js/css/calibrationBar.css diff --git a/Samples/Compass/js/css/scenario1_DataEvents.css b/archived/Compass/js/css/scenario1_DataEvents.css similarity index 100% rename from Samples/Compass/js/css/scenario1_DataEvents.css rename to archived/Compass/js/css/scenario1_DataEvents.css diff --git a/Samples/Compass/js/css/scenario2_Polling.css b/archived/Compass/js/css/scenario2_Polling.css similarity index 100% rename from Samples/Compass/js/css/scenario2_Polling.css rename to archived/Compass/js/css/scenario2_Polling.css diff --git a/Samples/Compass/js/css/scenario3_Calibration.css b/archived/Compass/js/css/scenario3_Calibration.css similarity index 100% rename from Samples/Compass/js/css/scenario3_Calibration.css rename to archived/Compass/js/css/scenario3_Calibration.css diff --git a/Samples/Compass/js/html/calibrationBar.html b/archived/Compass/js/html/calibrationBar.html similarity index 100% rename from Samples/Compass/js/html/calibrationBar.html rename to archived/Compass/js/html/calibrationBar.html diff --git a/Samples/Compass/js/html/scenario1_DataEvents.html b/archived/Compass/js/html/scenario1_DataEvents.html similarity index 100% rename from Samples/Compass/js/html/scenario1_DataEvents.html rename to archived/Compass/js/html/scenario1_DataEvents.html diff --git a/Samples/Compass/js/html/scenario2_Polling.html b/archived/Compass/js/html/scenario2_Polling.html similarity index 100% rename from Samples/Compass/js/html/scenario2_Polling.html rename to archived/Compass/js/html/scenario2_Polling.html diff --git a/Samples/Compass/js/html/scenario3_Calibration.html b/archived/Compass/js/html/scenario3_Calibration.html similarity index 100% rename from Samples/Compass/js/html/scenario3_Calibration.html rename to archived/Compass/js/html/scenario3_Calibration.html diff --git a/Samples/Compass/js/js/calibrationBar.js b/archived/Compass/js/js/calibrationBar.js similarity index 100% rename from Samples/Compass/js/js/calibrationBar.js rename to archived/Compass/js/js/calibrationBar.js diff --git a/Samples/Compass/js/js/sample-configuration.js b/archived/Compass/js/js/sample-configuration.js similarity index 100% rename from Samples/Compass/js/js/sample-configuration.js rename to archived/Compass/js/js/sample-configuration.js diff --git a/Samples/Compass/js/js/scenario1_DataEvents.js b/archived/Compass/js/js/scenario1_DataEvents.js similarity index 100% rename from Samples/Compass/js/js/scenario1_DataEvents.js rename to archived/Compass/js/js/scenario1_DataEvents.js diff --git a/Samples/Compass/js/js/scenario2_Polling.js b/archived/Compass/js/js/scenario2_Polling.js similarity index 100% rename from Samples/Compass/js/js/scenario2_Polling.js rename to archived/Compass/js/js/scenario2_Polling.js diff --git a/Samples/Compass/js/js/scenario3_Calibration.js b/archived/Compass/js/js/scenario3_Calibration.js similarity index 100% rename from Samples/Compass/js/js/scenario3_Calibration.js rename to archived/Compass/js/js/scenario3_Calibration.js diff --git a/Samples/Compass/js/sample-utils/placeholder.txt b/archived/Compass/js/sample-utils/placeholder.txt similarity index 100% rename from Samples/Compass/js/sample-utils/placeholder.txt rename to archived/Compass/js/sample-utils/placeholder.txt diff --git a/archived/Compression/README.md b/archived/Compression/README.md new file mode 100644 index 0000000000..a6f92dc85d --- /dev/null +++ b/archived/Compression/README.md @@ -0,0 +1,79 @@ +--- +topic: sample +languages: +- js +products: +- windows +- windows-uwp +--- + +# Compression sample + +Shows how to read structured data from a file and write compressed data to a new file and how to read compressed data and write decompressed data to a new file. + +> **Note:** This sample is part of a large collection of UWP feature samples. +> If you are unfamiliar with Git and GitHub, you can download the entire collection as a +> [ZIP file](https://github.com/Microsoft/Windows-universal-samples/archive/master.zip), but be +> sure to unzip everything to access shared dependencies. For more info on working with the ZIP file, +> the samples collection, and GitHub, see [Get the UWP samples from GitHub](https://aka.ms/ovu2uq). +> For more samples, see the [Samples portal](https://aka.ms/winsamples) on the Windows Dev Center. + +Many apps need to compress and decompress data. The [Windows.Storage.Compression](http://msdn.microsoft.com/library/windows/apps/br207698) +namespace simplifies this task by providing a unified interface that exposes the MSZIP, XPRESS, XPRESS\_HUFF, and LZMS compression algorithms. +This lets you manage versions, service, and extend the exposed compression algorithms and frees you from responsibility for managing block sizes, +compression parameters, and other details that the native [Compression API](http://msdn.microsoft.com/library/windows/apps/hh437596) requires. +A subset of [Win32 and COM for apps](http://go.microsoft.com/fwlink/p/?linkid=246262) can be used by apps to support scenarios not already covered +by the Windows Runtime, HTML/Cascading Style Sheets (CSS), or other supported languages or standards. For this purpose, you can also use the native +Compression API to develop apps. + +Specifically, this sample shows the following: + +- Read uncompressed data from an existing file +- Specify the compression algorithm to use. +- Compress the data using the selected compression algorithm. +- Write the compressed data to a new file. +- Read the compressed data from a file. +- Decompress the data. + +To obtain information about Microsoft Visual Studio and the tools for developing Windows apps, go to [Visual Studio](http://go.microsoft.com/fwlink/?LinkID=532422) + +## Operating system requirements + +Client + +Windows 10 + +Server + +Windows Server 2012 R2 + +Phone + +Windows 10 Mobile + +## Build the sample + +1. If you download the samples ZIP, be sure to unzip the entire archive, not just the folder with the sample you want to build. +2. Start Microsoft Visual Studio 2017 and select **File** \> **Open** \> **Project/Solution**. +3. Starting in the folder where you unzipped the samples, go to the Samples subfolder, then the subfolder for this specific sample, then the subfolder for your preferred language (C++, C#, or JavaScript). Double-click the Visual Studio Solution (.sln) file. +4. Press Ctrl+Shift+B, or select **Build** \> **Build Solution**. + +## Run the sample + +The next steps depend on whether you just want to deploy the sample or you want to both deploy and run it. + +**Deploying the sample** + +- To deploy the built sample: + + 1. Select **Compression** in **Solution Explorer**. + 2. Use **Build** \> **Deploy Solution** or **Build** \> **Deploy Compression**. + +**Deploying and running the sample** + +- To deploy and run the sample: + + 1. Right-click **Compression** in **Solution Explorer** and select **Set as StartUp Project**. + 2. To debug the sample and then run it, press F5 or use **Debug** \> **Start Debugging**. To run the sample without debugging, press Ctrl+F5 or use **Debug** \> **Start Without Debugging**. +- To deploy and run the Windows Phone version of the sample: + diff --git a/Samples/Compression/js/Compression.jsproj b/archived/Compression/js/Compression.jsproj similarity index 80% rename from Samples/Compression/js/Compression.jsproj rename to archived/Compression/js/Compression.jsproj index 89b8e24f22..9f61412a24 100644 --- a/Samples/Compression/js/Compression.jsproj +++ b/archived/Compression/js/Compression.jsproj @@ -56,7 +56,7 @@ - + default.html @@ -83,52 +83,52 @@ images\windows-sdk.png - + js\default.js - + css\default.css - + Microsoft.WinJS.4.0\css\ui-dark.css - + Microsoft.WinJS.4.0\css\ui-light.css - + Microsoft.WinJS.4.0\js\en-US\ui.strings.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense-setup.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense.js - + Microsoft.WinJS.4.0\fonts\Symbols.ttf - + Microsoft.WinJS.4.0\js\base.js - + Microsoft.WinJS.4.0\js\ui.js - + sample-utils\footer.html - + sample-utils\header.html - + sample-utils\sample-utils.js - + sample-utils\scenario-select.css - + sample-utils\scenario-select.html diff --git a/Samples/Compression/js/Compression.sln b/archived/Compression/js/Compression.sln similarity index 100% rename from Samples/Compression/js/Compression.sln rename to archived/Compression/js/Compression.sln diff --git a/Samples/Compression/js/Microsoft.WinJS.4.0/css/placeholder.txt b/archived/Compression/js/Microsoft.WinJS.4.0/css/placeholder.txt similarity index 100% rename from Samples/Compression/js/Microsoft.WinJS.4.0/css/placeholder.txt rename to archived/Compression/js/Microsoft.WinJS.4.0/css/placeholder.txt diff --git a/Samples/Compression/js/Microsoft.WinJS.4.0/fonts/placeholder b/archived/Compression/js/Microsoft.WinJS.4.0/fonts/placeholder similarity index 100% rename from Samples/Compression/js/Microsoft.WinJS.4.0/fonts/placeholder rename to archived/Compression/js/Microsoft.WinJS.4.0/fonts/placeholder diff --git a/Samples/Compression/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt b/archived/Compression/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt similarity index 100% rename from Samples/Compression/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt rename to archived/Compression/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt diff --git a/Samples/Compression/js/Package.appxmanifest b/archived/Compression/js/Package.appxmanifest similarity index 100% rename from Samples/Compression/js/Package.appxmanifest rename to archived/Compression/js/Package.appxmanifest diff --git a/Samples/Compression/js/css/object.css b/archived/Compression/js/css/object.css similarity index 100% rename from Samples/Compression/js/css/object.css rename to archived/Compression/js/css/object.css diff --git a/Samples/Compression/js/css/stream.css b/archived/Compression/js/css/stream.css similarity index 100% rename from Samples/Compression/js/css/stream.css rename to archived/Compression/js/css/stream.css diff --git a/Samples/Compression/js/html/object.html b/archived/Compression/js/html/object.html similarity index 100% rename from Samples/Compression/js/html/object.html rename to archived/Compression/js/html/object.html diff --git a/Samples/Compression/js/html/stream.html b/archived/Compression/js/html/stream.html similarity index 100% rename from Samples/Compression/js/html/stream.html rename to archived/Compression/js/html/stream.html diff --git a/Samples/Compression/js/images/placeholder.txt b/archived/Compression/js/images/placeholder.txt similarity index 100% rename from Samples/Compression/js/images/placeholder.txt rename to archived/Compression/js/images/placeholder.txt diff --git a/Samples/Compression/js/js/compression.js b/archived/Compression/js/js/compression.js similarity index 100% rename from Samples/Compression/js/js/compression.js rename to archived/Compression/js/js/compression.js diff --git a/Samples/Compression/js/js/object.js b/archived/Compression/js/js/object.js similarity index 100% rename from Samples/Compression/js/js/object.js rename to archived/Compression/js/js/object.js diff --git a/Samples/Compression/js/js/sample-configuration.js b/archived/Compression/js/js/sample-configuration.js similarity index 100% rename from Samples/Compression/js/js/sample-configuration.js rename to archived/Compression/js/js/sample-configuration.js diff --git a/Samples/Compression/js/js/stream.js b/archived/Compression/js/js/stream.js similarity index 100% rename from Samples/Compression/js/js/stream.js rename to archived/Compression/js/js/stream.js diff --git a/Samples/Compression/js/sample-utils/placeholder.txt b/archived/Compression/js/sample-utils/placeholder.txt similarity index 100% rename from Samples/Compression/js/sample-utils/placeholder.txt rename to archived/Compression/js/sample-utils/placeholder.txt diff --git a/archived/ContactCards/README.md b/archived/ContactCards/README.md new file mode 100644 index 0000000000..ce1388a789 --- /dev/null +++ b/archived/ContactCards/README.md @@ -0,0 +1,93 @@ +--- +topic: sample +languages: +- js +products: +- windows +- windows-uwp +--- + +# Contact cards sample + +Shows how to display contact cards using methods of the +[ContactManager](https://msdn.microsoft.com/library/windows/apps/windows.applicationmodel.contacts.contactmanager.aspx) +class. + +> **Note:** This sample is part of a large collection of UWP feature samples. +> If you are unfamiliar with Git and GitHub, you can download the entire collection as a +> [ZIP file](https://github.com/Microsoft/Windows-universal-samples/archive/master.zip), but be +> sure to unzip everything to access shared dependencies. For more info on working with the ZIP file, +> the samples collection, and GitHub, see [Get the UWP samples from GitHub](https://aka.ms/ovu2uq). +> For more samples, see the [Samples portal](https://aka.ms/winsamples) on the Windows Dev Center. + +This sample has three scenarios. + +- **Show mini contact card** + + Mini contact cards appear as a pop-up window inside the app. + Apps provide an anchor rectangle around which the mini card will be displayed + and can provide a suggested position of the mini contact card relative to the anchor rectangle. + The [ShowContactCard](https://msdn.microsoft.com/library/windows/apps/windows.applicationmodel.contacts.contactmanager.showcontactcard.aspx) + method displays a mini contact card. + +- **Show mini contact card with delay loaded-data** + + Display the mini contact card immediately + while the app obtains additional information about the contact in the background. + The card is updated when the additional information is available. + The [ShowDelayLoadedContactCard](https://msdn.microsoft.com/library/windows/apps/windows.applicationmodel.contacts.contactmanager.showdelayloadedcontactcard.aspx) + method displays a delay loaded mini contact card. + +- **Show full contact card** + + Full contact cards appear as a separate window. + The [ShowFullContactCard](https://msdn.microsoft.com/library/windows/apps/windows.applicationmodel.contacts.contactmanager.showfullcontactcard.aspx) + method displays a full contact card. + +Not all devices support mini contact cards. +The samples also demonstrate how to detect support for mini contact cards. + +**Note** The Universal Windows app samples require Visual Studio 2017 to build and Windows 10 to execute. + +To obtain information about Windows 10 development, go to the [Windows Dev Center](http://go.microsoft.com/fwlink/?LinkID=532421) + +To obtain information about Microsoft Visual Studio and the tools for developing Windows apps, go to [Visual Studio](http://go.microsoft.com/fwlink/?LinkID=532422) + +## Related topics + +### Samples + +[ContactPicker](../ContactPicker) + +### Reference + +[Contact](http://msdn.microsoft.com/library/windows/apps/br224849) +[ContactCardDelayedDataLoader](http://msdn.microsoft.com/library/windows/apps/dn297400) +[Windows.ApplicationModel.Contacts](http://msdn.microsoft.com/library/windows/apps/br225002) + +## System requirements + +**Client:** Windows 10 + +**Server:** Windows Server 2016 Technical Preview + +**Phone:** Windows 10 (full contact cards only) + +## Build the sample + +1. If you download the samples ZIP, be sure to unzip the entire archive, not just the folder with the sample you want to build. +2. Start Microsoft Visual Studio 2017 and select **File** \> **Open** \> **Project/Solution**. +3. Starting in the folder where you unzipped the samples, go to the Samples subfolder, then the subfolder for this specific sample, then the subfolder for your preferred language (C++, C#, or JavaScript). Double-click the Visual Studio Solution (.sln) file. +4. Press Ctrl+Shift+B, or select **Build** \> **Build Solution**. + +## Run the sample + +The next steps depend on whether you just want to deploy the sample or you want to both deploy and run it. + +### Deploying the sample + +- Select Build > Deploy Solution. + +### Deploying and running the sample + +- To debug the sample and then run it, press F5 or select Debug > Start Debugging. To run the sample without debugging, press Ctrl+F5 or select Debug > Start Without Debugging. diff --git a/Samples/ContactCards/js/ContactCards.jsproj b/archived/ContactCards/js/ContactCards.jsproj similarity index 80% rename from Samples/ContactCards/js/ContactCards.jsproj rename to archived/ContactCards/js/ContactCards.jsproj index b571e19eb3..f1abe8d54d 100644 --- a/Samples/ContactCards/js/ContactCards.jsproj +++ b/archived/ContactCards/js/ContactCards.jsproj @@ -54,7 +54,7 @@ Designer - + default.html @@ -81,53 +81,53 @@ images\windows-sdk.png - + js\default.js - + css\default.css - + Microsoft.WinJS.4.0\css\ui-dark.css - + Microsoft.WinJS.4.0\css\ui-light.css - + Microsoft.WinJS.4.0\js\en-US\ui.strings.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense-setup.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense.js - + Microsoft.WinJS.4.0\fonts\Symbols.ttf - + Microsoft.WinJS.4.0\js\base.js - + Microsoft.WinJS.4.0\js\ui.js - + sample-utils\footer.html - + sample-utils\header.html - + sample-utils\sample-utils.js - + sample-utils\scenario-select.css - + sample-utils\scenario-select.html diff --git a/Samples/ContactCards/js/ContactCards.sln b/archived/ContactCards/js/ContactCards.sln similarity index 100% rename from Samples/ContactCards/js/ContactCards.sln rename to archived/ContactCards/js/ContactCards.sln diff --git a/Samples/ContactCards/js/Microsoft.WinJS.4.0/css/placeholder.txt b/archived/ContactCards/js/Microsoft.WinJS.4.0/css/placeholder.txt similarity index 100% rename from Samples/ContactCards/js/Microsoft.WinJS.4.0/css/placeholder.txt rename to archived/ContactCards/js/Microsoft.WinJS.4.0/css/placeholder.txt diff --git a/Samples/ContactCards/js/Microsoft.WinJS.4.0/fonts/placeholder b/archived/ContactCards/js/Microsoft.WinJS.4.0/fonts/placeholder similarity index 100% rename from Samples/ContactCards/js/Microsoft.WinJS.4.0/fonts/placeholder rename to archived/ContactCards/js/Microsoft.WinJS.4.0/fonts/placeholder diff --git a/Samples/ContactCards/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt b/archived/ContactCards/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt similarity index 100% rename from Samples/ContactCards/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt rename to archived/ContactCards/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt diff --git a/Samples/ContactCards/js/Package.appxmanifest b/archived/ContactCards/js/Package.appxmanifest similarity index 100% rename from Samples/ContactCards/js/Package.appxmanifest rename to archived/ContactCards/js/Package.appxmanifest diff --git a/Samples/ContactCards/js/css/placeholder.txt b/archived/ContactCards/js/css/placeholder.txt similarity index 100% rename from Samples/ContactCards/js/css/placeholder.txt rename to archived/ContactCards/js/css/placeholder.txt diff --git a/Samples/ContactCards/js/html/scenario1-mini.html b/archived/ContactCards/js/html/scenario1-mini.html similarity index 100% rename from Samples/ContactCards/js/html/scenario1-mini.html rename to archived/ContactCards/js/html/scenario1-mini.html diff --git a/Samples/ContactCards/js/html/scenario2-delayMini.html b/archived/ContactCards/js/html/scenario2-delayMini.html similarity index 100% rename from Samples/ContactCards/js/html/scenario2-delayMini.html rename to archived/ContactCards/js/html/scenario2-delayMini.html diff --git a/Samples/ContactCards/js/html/scenario3-full.html b/archived/ContactCards/js/html/scenario3-full.html similarity index 100% rename from Samples/ContactCards/js/html/scenario3-full.html rename to archived/ContactCards/js/html/scenario3-full.html diff --git a/Samples/ContactCards/js/images/placeholder.txt b/archived/ContactCards/js/images/placeholder.txt similarity index 100% rename from Samples/ContactCards/js/images/placeholder.txt rename to archived/ContactCards/js/images/placeholder.txt diff --git a/Samples/ContactCards/js/js/sample-configuration.js b/archived/ContactCards/js/js/sample-configuration.js similarity index 100% rename from Samples/ContactCards/js/js/sample-configuration.js rename to archived/ContactCards/js/js/sample-configuration.js diff --git a/Samples/ContactCards/js/js/scenario1-mini.js b/archived/ContactCards/js/js/scenario1-mini.js similarity index 100% rename from Samples/ContactCards/js/js/scenario1-mini.js rename to archived/ContactCards/js/js/scenario1-mini.js diff --git a/Samples/ContactCards/js/js/scenario2-delayMini.js b/archived/ContactCards/js/js/scenario2-delayMini.js similarity index 100% rename from Samples/ContactCards/js/js/scenario2-delayMini.js rename to archived/ContactCards/js/js/scenario2-delayMini.js diff --git a/Samples/ContactCards/js/js/scenario3-full.js b/archived/ContactCards/js/js/scenario3-full.js similarity index 100% rename from Samples/ContactCards/js/js/scenario3-full.js rename to archived/ContactCards/js/js/scenario3-full.js diff --git a/Samples/ContactCards/js/sample-utils/placeholder.txt b/archived/ContactCards/js/sample-utils/placeholder.txt similarity index 100% rename from Samples/ContactCards/js/sample-utils/placeholder.txt rename to archived/ContactCards/js/sample-utils/placeholder.txt diff --git a/archived/ContactPicker/README.md b/archived/ContactPicker/README.md new file mode 100644 index 0000000000..390ce53c7d --- /dev/null +++ b/archived/ContactPicker/README.md @@ -0,0 +1,71 @@ +--- +topic: sample +languages: +- js +products: +- windows +- windows-uwp +--- + +# Contact picker sample + +Shows how to use the [ContactPicker](http://msdn.microsoft.com/library/windows/apps/br224913) +class to select one or more contacts. + +> **Note:** This sample is part of a large collection of UWP feature samples. +> If you are unfamiliar with Git and GitHub, you can download the entire collection as a +> [ZIP file](https://github.com/Microsoft/Windows-universal-samples/archive/master.zip), but be +> sure to unzip everything to access shared dependencies. For more info on working with the ZIP file, +> the samples collection, and GitHub, see [Get the UWP samples from GitHub](https://aka.ms/ovu2uq). +> For more samples, see the [Samples portal](https://aka.ms/winsamples) on the Windows Dev Center. + +The sample demonstrates the following tasks: + +- Picking the email address of a single contact. +- Picking the phone number of a single contact. +- Picking the email addresses of multiple contacts. +- Picking the phone numbers of multiple contacts. + +**Note** The Windows universal samples require Visual Studio 2017 to build and Windows 10 to execute. + +To obtain information about Windows 10 development, go to the [Windows Dev Center](http://go.microsoft.com/fwlink/?LinkID=532421) + +To obtain information about Microsoft Visual Studio and the tools for developing Windows apps, go to [Visual Studio](http://go.microsoft.com/fwlink/?LinkID=532422) + +## Related topics + +### Samples + +[ContactCards](/Samples/ContactCards) + +### Reference + +[ContactPicker class](http://msdn.microsoft.com/library/windows/apps/br224913) +[Contacts and calendar](https://msdn.microsoft.com/library/windows/apps/mt269388) + +## System requirements + +**Client:** Windows 10 + +**Server:** Windows Server 2016 Technical Preview + +**Phone:** Windows 10 + +## Build the sample + +1. If you download the samples ZIP, be sure to unzip the entire archive, not just the folder with the sample you want to build. +2. Start Microsoft Visual Studio 2017 and select **File** \> **Open** \> **Project/Solution**. +3. Starting in the folder where you unzipped the samples, go to the Samples subfolder, then the subfolder for this specific sample, then the subfolder for your preferred language (C++, C#, or JavaScript). Double-click the Visual Studio Solution (.sln) file. +4. Press Ctrl+Shift+B, or select **Build** \> **Build Solution**. + +## Run the sample + +The next steps depend on whether you just want to deploy the sample or you want to both deploy and run it. + +### Deploying the sample + +- Select Build > Deploy Solution. + +### Deploying and running the sample + +- To debug the sample and then run it, press F5 or select Debug > Start Debugging. To run the sample without debugging, press Ctrl+F5 or select Debug > Start Without Debugging. diff --git a/Samples/ContactPicker/js/ContactPicker.jsproj b/archived/ContactPicker/js/ContactPicker.jsproj similarity index 80% rename from Samples/ContactPicker/js/ContactPicker.jsproj rename to archived/ContactPicker/js/ContactPicker.jsproj index 8f3caaec0f..d8503d805d 100644 --- a/Samples/ContactPicker/js/ContactPicker.jsproj +++ b/archived/ContactPicker/js/ContactPicker.jsproj @@ -54,7 +54,7 @@ Designer - + default.html @@ -80,52 +80,52 @@ images\windows-sdk.png - + js\default.js - + css\default.css - + Microsoft.WinJS.4.0\css\ui-dark.css - + Microsoft.WinJS.4.0\css\ui-light.css - + Microsoft.WinJS.4.0\js\en-US\ui.strings.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense-setup.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense.js - + Microsoft.WinJS.4.0\fonts\Symbols.ttf - + Microsoft.WinJS.4.0\js\base.js - + Microsoft.WinJS.4.0\js\ui.js - + sample-utils\footer.html - + sample-utils\header.html - + sample-utils\sample-utils.js - + sample-utils\scenario-select.css - + sample-utils\scenario-select.html diff --git a/Samples/ContactPicker/js/ContactPicker.sln b/archived/ContactPicker/js/ContactPicker.sln similarity index 100% rename from Samples/ContactPicker/js/ContactPicker.sln rename to archived/ContactPicker/js/ContactPicker.sln diff --git a/Samples/ContactPicker/js/Microsoft.WinJS.4.0/css/placeholder.txt b/archived/ContactPicker/js/Microsoft.WinJS.4.0/css/placeholder.txt similarity index 100% rename from Samples/ContactPicker/js/Microsoft.WinJS.4.0/css/placeholder.txt rename to archived/ContactPicker/js/Microsoft.WinJS.4.0/css/placeholder.txt diff --git a/Samples/ContactPicker/js/Microsoft.WinJS.4.0/fonts/placeholder b/archived/ContactPicker/js/Microsoft.WinJS.4.0/fonts/placeholder similarity index 100% rename from Samples/ContactPicker/js/Microsoft.WinJS.4.0/fonts/placeholder rename to archived/ContactPicker/js/Microsoft.WinJS.4.0/fonts/placeholder diff --git a/Samples/ContactPicker/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt b/archived/ContactPicker/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt similarity index 100% rename from Samples/ContactPicker/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt rename to archived/ContactPicker/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt diff --git a/Samples/ContactPicker/js/Package.appxmanifest b/archived/ContactPicker/js/Package.appxmanifest similarity index 100% rename from Samples/ContactPicker/js/Package.appxmanifest rename to archived/ContactPicker/js/Package.appxmanifest diff --git a/Samples/ContactPicker/js/css/placeholder.txt b/archived/ContactPicker/js/css/placeholder.txt similarity index 100% rename from Samples/ContactPicker/js/css/placeholder.txt rename to archived/ContactPicker/js/css/placeholder.txt diff --git a/Samples/ContactPicker/js/html/scenario1-single.html b/archived/ContactPicker/js/html/scenario1-single.html similarity index 100% rename from Samples/ContactPicker/js/html/scenario1-single.html rename to archived/ContactPicker/js/html/scenario1-single.html diff --git a/Samples/ContactPicker/js/html/scenario2-multiple.html b/archived/ContactPicker/js/html/scenario2-multiple.html similarity index 100% rename from Samples/ContactPicker/js/html/scenario2-multiple.html rename to archived/ContactPicker/js/html/scenario2-multiple.html diff --git a/Samples/ContactPicker/js/images/placeholder.txt b/archived/ContactPicker/js/images/placeholder.txt similarity index 100% rename from Samples/ContactPicker/js/images/placeholder.txt rename to archived/ContactPicker/js/images/placeholder.txt diff --git a/Samples/ContactPicker/js/js/sample-configuration.js b/archived/ContactPicker/js/js/sample-configuration.js similarity index 100% rename from Samples/ContactPicker/js/js/sample-configuration.js rename to archived/ContactPicker/js/js/sample-configuration.js diff --git a/Samples/ContactPicker/js/js/scenario1-single.js b/archived/ContactPicker/js/js/scenario1-single.js similarity index 100% rename from Samples/ContactPicker/js/js/scenario1-single.js rename to archived/ContactPicker/js/js/scenario1-single.js diff --git a/Samples/ContactPicker/js/js/scenario2-multiple.js b/archived/ContactPicker/js/js/scenario2-multiple.js similarity index 100% rename from Samples/ContactPicker/js/js/scenario2-multiple.js rename to archived/ContactPicker/js/js/scenario2-multiple.js diff --git a/Samples/ContactPicker/js/sample-utils/placeholder.txt b/archived/ContactPicker/js/sample-utils/placeholder.txt similarity index 100% rename from Samples/ContactPicker/js/sample-utils/placeholder.txt rename to archived/ContactPicker/js/sample-utils/placeholder.txt diff --git a/archived/ContentIndexer/README.md b/archived/ContentIndexer/README.md new file mode 100644 index 0000000000..6bc080d4f0 --- /dev/null +++ b/archived/ContentIndexer/README.md @@ -0,0 +1,95 @@ +--- +topic: sample +languages: +- js +products: +- windows +- windows-uwp +--- + +# Content indexer sample + +Shows how to add, update, and retrieve items and properties from the indexer. + +> **Note:** This sample is part of a large collection of UWP feature samples. +> If you are unfamiliar with Git and GitHub, you can download the entire collection as a +> [ZIP file](https://github.com/Microsoft/Windows-universal-samples/archive/master.zip), but be +> sure to unzip everything to access shared dependencies. For more info on working with the ZIP file, +> the samples collection, and GitHub, see [Get the UWP samples from GitHub](https://aka.ms/ovu2uq). +> For more samples, see the [Samples portal](https://aka.ms/winsamples) on the Windows Dev Center. + +Two methods of doing so are demonstrated. +The first is using the ContentIndexer APIs to directly interface with the indexer. The second is writing .appcontent-ms files, +which contain information to be indexed that the indexer will pick up once the file has been written. + +The sample demonstrates these tasks: + +1. **Add an item to the system index** + + Uses the [AddAsync](http://msdn.microsoft.com/library/windows/apps/dn298342) method to make app content searchable in the system index. + +2. **Update and delete items in the index** + + Uses the [UpdateAsync](http://msdn.microsoft.com/library/windows/apps/dn298355) method to update an item and the [DeleteAsync](http://msdn.microsoft.com/library/windows/apps/dn298348), [DeleteMultipleAsync](http://msdn.microsoft.com/library/windows/apps/dn298349), and [DeleteAllAsync](http://msdn.microsoft.com/library/windows/apps/dn298347) methods to remove content from the system index. + +3. **Get items from the system index by using a query** + + Uses the [CreateQuery](http://msdn.microsoft.com/library/windows/apps/dn298343) and [GetAsync](http://msdn.microsoft.com/library/windows/apps/dn298334) methods to retrieve items from the system index. + +4. **Check the revision number of the indexer** + + Uses the [Revision](http://msdn.microsoft.com/library/windows/apps/dn298354) property and the app's [LocalSettings](http://msdn.microsoft.com/library/windows/apps/br241622) to check if the app's expected revision number matches the actual index revision number. + +5. **Add app content files to be indexed** + + Copies app-specific files to the app's LocalState\\Indexed folder to make app content searchable in the system index. + +6. **Remove file content from the system index** + + Deletes app-specific files from the app's LocalState\\Indexed folder to remove app content from the system index. + +7. **Get indexed file properties** + + Uses the [CreateFileQuery](http://msdn.microsoft.com/library/windows/apps/br227252) and [CreateFileQueryWithOptions](http://msdn.microsoft.com/library/windows/apps/br211591) methods to query the system index for file properties. + +**Note** The Windows universal samples require Visual Studio 2017 to build and Windows 10 to execute. + +To obtain information about Windows 10 development, go to the [Windows Dev Center](http://go.microsoft.com/fwlink/?LinkID=532421) + +To obtain information about Microsoft Visual Studio and the tools for developing Windows apps, go to [Visual Studio](http://go.microsoft.com/fwlink/?LinkID=532422) + +## Related topics + +### Reference + +[ContentIndexer](http://msdn.microsoft.com/library/windows/apps/dn298331) +[ContentIndexerQuery](http://msdn.microsoft.com/library/windows/apps/dn298332) +[CreateFileQuery](http://msdn.microsoft.com/library/windows/apps/br227252) +[CreateFileQueryWithOptions](http://msdn.microsoft.com/library/windows/apps/br211591) + +## System requirements + +**Client:** Windows 10 + +**Server:** Windows Server 2016 Technical Preview + +**Phone:** Windows 10 + +## Build the sample + +1. If you download the samples ZIP, be sure to unzip the entire archive, not just the folder with the sample you want to build. +2. Start Microsoft Visual Studio 2017 and select **File** \> **Open** \> **Project/Solution**. +3. Starting in the folder where you unzipped the samples, go to the Samples subfolder, then the subfolder for this specific sample, then the subfolder for your preferred language (C++, C#, or JavaScript). Double-click the Visual Studio Solution (.sln) file. +4. Press Ctrl+Shift+B, or select **Build** \> **Build Solution**. + +## Run the sample + +The next steps depend on whether you just want to deploy the sample or you want to both deploy and run it. + +### Deploying the sample + +- Select Build > Deploy Solution. + +### Deploying and running the sample + +- To debug the sample and then run it, press F5 or select Debug > Start Debugging. To run the sample without debugging, press Ctrl+F5 or select Debug > Start Without Debugging. diff --git a/Samples/ContentIndexer/js/ContentIndexer.jsproj b/archived/ContentIndexer/js/ContentIndexer.jsproj similarity index 83% rename from Samples/ContentIndexer/js/ContentIndexer.jsproj rename to archived/ContentIndexer/js/ContentIndexer.jsproj index 02148b4bad..e6f2ec3e53 100644 --- a/Samples/ContentIndexer/js/ContentIndexer.jsproj +++ b/archived/ContentIndexer/js/ContentIndexer.jsproj @@ -63,7 +63,7 @@ appcontent-ms\sample3.appcontent-ms - + default.html @@ -97,7 +97,7 @@ - + js\default.js @@ -106,46 +106,46 @@ - + Microsoft.WinJS.4.0\css\ui-dark.css - + Microsoft.WinJS.4.0\css\ui-light.css - + Microsoft.WinJS.4.0\js\en-US\ui.strings.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense-setup.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense.js - + Microsoft.WinJS.4.0\fonts\Symbols.ttf - + Microsoft.WinJS.4.0\js\base.js - + Microsoft.WinJS.4.0\js\ui.js - + sample-utils\footer.html - + sample-utils\header.html - + css\default.css - + sample-utils\scenario-select.css - + sample-utils\scenario-select.html - + sample-utils\sample-utils.js diff --git a/Samples/ContentIndexer/js/ContentIndexer.sln b/archived/ContentIndexer/js/ContentIndexer.sln similarity index 100% rename from Samples/ContentIndexer/js/ContentIndexer.sln rename to archived/ContentIndexer/js/ContentIndexer.sln diff --git a/Samples/ContentIndexer/js/Microsoft.WinJS.4.0/css/placeholder.txt b/archived/ContentIndexer/js/Microsoft.WinJS.4.0/css/placeholder.txt similarity index 100% rename from Samples/ContentIndexer/js/Microsoft.WinJS.4.0/css/placeholder.txt rename to archived/ContentIndexer/js/Microsoft.WinJS.4.0/css/placeholder.txt diff --git a/Samples/ContentIndexer/js/Microsoft.WinJS.4.0/fonts/placeholder b/archived/ContentIndexer/js/Microsoft.WinJS.4.0/fonts/placeholder similarity index 100% rename from Samples/ContentIndexer/js/Microsoft.WinJS.4.0/fonts/placeholder rename to archived/ContentIndexer/js/Microsoft.WinJS.4.0/fonts/placeholder diff --git a/Samples/ContentIndexer/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt b/archived/ContentIndexer/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt similarity index 100% rename from Samples/ContentIndexer/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt rename to archived/ContentIndexer/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt diff --git a/Samples/ContentIndexer/js/Package.appxmanifest b/archived/ContentIndexer/js/Package.appxmanifest similarity index 100% rename from Samples/ContentIndexer/js/Package.appxmanifest rename to archived/ContentIndexer/js/Package.appxmanifest diff --git a/Samples/ContentIndexer/js/appcontent-ms/placeholder.txt b/archived/ContentIndexer/js/appcontent-ms/placeholder.txt similarity index 100% rename from Samples/ContentIndexer/js/appcontent-ms/placeholder.txt rename to archived/ContentIndexer/js/appcontent-ms/placeholder.txt diff --git a/Samples/ContentIndexer/js/css/placeholder.txt b/archived/ContentIndexer/js/css/placeholder.txt similarity index 100% rename from Samples/ContentIndexer/js/css/placeholder.txt rename to archived/ContentIndexer/js/css/placeholder.txt diff --git a/Samples/ContentIndexer/js/html/addWithAPI.html b/archived/ContentIndexer/js/html/addWithAPI.html similarity index 100% rename from Samples/ContentIndexer/js/html/addWithAPI.html rename to archived/ContentIndexer/js/html/addWithAPI.html diff --git a/Samples/ContentIndexer/js/html/addWithAppContent.html b/archived/ContentIndexer/js/html/addWithAppContent.html similarity index 100% rename from Samples/ContentIndexer/js/html/addWithAppContent.html rename to archived/ContentIndexer/js/html/addWithAppContent.html diff --git a/Samples/ContentIndexer/js/html/checkIndexRevision.html b/archived/ContentIndexer/js/html/checkIndexRevision.html similarity index 100% rename from Samples/ContentIndexer/js/html/checkIndexRevision.html rename to archived/ContentIndexer/js/html/checkIndexRevision.html diff --git a/Samples/ContentIndexer/js/html/deleteWithAppContent.html b/archived/ContentIndexer/js/html/deleteWithAppContent.html similarity index 100% rename from Samples/ContentIndexer/js/html/deleteWithAppContent.html rename to archived/ContentIndexer/js/html/deleteWithAppContent.html diff --git a/Samples/ContentIndexer/js/html/retrieveWithAPI.html b/archived/ContentIndexer/js/html/retrieveWithAPI.html similarity index 100% rename from Samples/ContentIndexer/js/html/retrieveWithAPI.html rename to archived/ContentIndexer/js/html/retrieveWithAPI.html diff --git a/Samples/ContentIndexer/js/html/retrieveWithAppContent.html b/archived/ContentIndexer/js/html/retrieveWithAppContent.html similarity index 100% rename from Samples/ContentIndexer/js/html/retrieveWithAppContent.html rename to archived/ContentIndexer/js/html/retrieveWithAppContent.html diff --git a/Samples/ContentIndexer/js/html/updateAndDeleteWithAPI.html b/archived/ContentIndexer/js/html/updateAndDeleteWithAPI.html similarity index 100% rename from Samples/ContentIndexer/js/html/updateAndDeleteWithAPI.html rename to archived/ContentIndexer/js/html/updateAndDeleteWithAPI.html diff --git a/Samples/ContentIndexer/js/images/placeholder.txt b/archived/ContentIndexer/js/images/placeholder.txt similarity index 100% rename from Samples/ContentIndexer/js/images/placeholder.txt rename to archived/ContentIndexer/js/images/placeholder.txt diff --git a/Samples/ContentIndexer/js/js/addWithAPI.js b/archived/ContentIndexer/js/js/addWithAPI.js similarity index 100% rename from Samples/ContentIndexer/js/js/addWithAPI.js rename to archived/ContentIndexer/js/js/addWithAPI.js diff --git a/Samples/ContentIndexer/js/js/addWithAppContent.js b/archived/ContentIndexer/js/js/addWithAppContent.js similarity index 100% rename from Samples/ContentIndexer/js/js/addWithAppContent.js rename to archived/ContentIndexer/js/js/addWithAppContent.js diff --git a/Samples/ContentIndexer/js/js/checkIndexRevision.js b/archived/ContentIndexer/js/js/checkIndexRevision.js similarity index 100% rename from Samples/ContentIndexer/js/js/checkIndexRevision.js rename to archived/ContentIndexer/js/js/checkIndexRevision.js diff --git a/Samples/ContentIndexer/js/js/deleteWithAppContent.js b/archived/ContentIndexer/js/js/deleteWithAppContent.js similarity index 100% rename from Samples/ContentIndexer/js/js/deleteWithAppContent.js rename to archived/ContentIndexer/js/js/deleteWithAppContent.js diff --git a/Samples/ContentIndexer/js/js/helperFunctions.js b/archived/ContentIndexer/js/js/helperFunctions.js similarity index 100% rename from Samples/ContentIndexer/js/js/helperFunctions.js rename to archived/ContentIndexer/js/js/helperFunctions.js diff --git a/Samples/ContentIndexer/js/js/retrieveWithAPI.js b/archived/ContentIndexer/js/js/retrieveWithAPI.js similarity index 100% rename from Samples/ContentIndexer/js/js/retrieveWithAPI.js rename to archived/ContentIndexer/js/js/retrieveWithAPI.js diff --git a/Samples/ContentIndexer/js/js/retrieveWithAppContent.js b/archived/ContentIndexer/js/js/retrieveWithAppContent.js similarity index 100% rename from Samples/ContentIndexer/js/js/retrieveWithAppContent.js rename to archived/ContentIndexer/js/js/retrieveWithAppContent.js diff --git a/Samples/ContentIndexer/js/js/sample-configuration.js b/archived/ContentIndexer/js/js/sample-configuration.js similarity index 100% rename from Samples/ContentIndexer/js/js/sample-configuration.js rename to archived/ContentIndexer/js/js/sample-configuration.js diff --git a/Samples/ContentIndexer/js/js/updateAndDeleteWithAPI.js b/archived/ContentIndexer/js/js/updateAndDeleteWithAPI.js similarity index 100% rename from Samples/ContentIndexer/js/js/updateAndDeleteWithAPI.js rename to archived/ContentIndexer/js/js/updateAndDeleteWithAPI.js diff --git a/Samples/ContentIndexer/js/sample-utils/placeholder.txt b/archived/ContentIndexer/js/sample-utils/placeholder.txt similarity index 100% rename from Samples/ContentIndexer/js/sample-utils/placeholder.txt rename to archived/ContentIndexer/js/sample-utils/placeholder.txt diff --git a/archived/ContextMenu/README.md b/archived/ContextMenu/README.md new file mode 100644 index 0000000000..f3e59222e7 --- /dev/null +++ b/archived/ContextMenu/README.md @@ -0,0 +1,79 @@ +--- +topic: sample +languages: +- js +products: +- windows +- windows-uwp +--- + +# Context menu sample + +Shows how to create a context menu and how to replace the default context menu for text. + +> **Note:** This sample is part of a large collection of UWP feature samples. +> If you are unfamiliar with Git and GitHub, you can download the entire collection as a +> [ZIP file](https://github.com/Microsoft/Windows-universal-samples/archive/master.zip), but be +> sure to unzip everything to access shared dependencies. For more info on working with the ZIP file, +> the samples collection, and GitHub, see [Get the UWP samples from GitHub](https://aka.ms/ovu2uq). +> For more samples, see the [Samples portal](https://aka.ms/winsamples) on the Windows Dev Center. + +This sample uses [Windows.UI.Popups](http://msdn.microsoft.com/library/windows/apps/br242180) API, +including the [PopupMenu](http://msdn.microsoft.com/library/windows/apps/br208693) and the +[contextmenu | oncontextmenu](http://msdn.microsoft.com/library/windows/apps/hh441317) event. + +The sample demonstrates these two tasks: + +- **Creating a context menu to show for a file** + +- **Replacing the default commands in the context menu that is shown for text** + +To learn about choosing commands and designing a context menu, see [Guidelines and checklist for context menus](http://msdn.microsoft.com/library/windows/apps/hh465308). + +For XAML-based apps, we recommend that developers +[use the ContextFlyout property to implement context menus](https://docs.microsoft.com/en-us/windows/uwp/design/controls-and-patterns/menus) +This sample uses the PopupMenu class for illustration purposes. + +Additional APIs for this sample include: + +- [UICommand](http://msdn.microsoft.com/library/windows/apps/br242166) class +- [UICommandSeparator](http://msdn.microsoft.com/library/windows/apps/br242168) class + +**Note** The Windows universal samples require Visual Studio 2017 to build and Windows 10 to execute. + +To obtain information about Windows 10 development, go to the [Windows Dev Center](http://go.microsoft.com/fwlink/?LinkID=532421) + +To obtain information about Microsoft Visual Studio and the tools for developing Windows apps, go to [Visual Studio](http://go.microsoft.com/fwlink/?LinkID=532422) + +## Related topics + +### Reference + +[Windows.UI.Popups](http://msdn.microsoft.com/library/windows/apps/br242180) + +## System requirements + +**Client:** Windows 10 + +**Server:** Windows Server 2016 Technical Preview + +**Phone:** Windows 10 + +## Build the sample + +1. If you download the samples ZIP, be sure to unzip the entire archive, not just the folder with the sample you want to build. +2. Start Microsoft Visual Studio 2017 and select **File** \> **Open** \> **Project/Solution**. +3. Starting in the folder where you unzipped the samples, go to the Samples subfolder, then the subfolder for this specific sample, then the subfolder for your preferred language (C++, C#, or JavaScript). Double-click the Visual Studio Solution (.sln) file. +4. Press Ctrl+Shift+B, or select **Build** \> **Build Solution**. + +## Run the sample + +The next steps depend on whether you just want to deploy the sample or you want to both deploy and run it. + +### Deploying the sample + +- Select Build > Deploy Solution. + +### Deploying and running the sample + +- To debug the sample and then run it, press F5 or select Debug > Start Debugging. To run the sample without debugging, press Ctrl+F5 or select Debug > Start Without Debugging. diff --git a/Samples/ContextMenu/js/ContextMenu.jsproj b/archived/ContextMenu/js/ContextMenu.jsproj similarity index 80% rename from Samples/ContextMenu/js/ContextMenu.jsproj rename to archived/ContextMenu/js/ContextMenu.jsproj index cf443e8e52..4fa507304d 100644 --- a/Samples/ContextMenu/js/ContextMenu.jsproj +++ b/archived/ContextMenu/js/ContextMenu.jsproj @@ -55,7 +55,7 @@ Designer - + default.html @@ -81,52 +81,52 @@ images\windows-sdk.png - + js\default.js - + css\default.css - + Microsoft.WinJS.4.0\css\ui-dark.css - + Microsoft.WinJS.4.0\css\ui-light.css - + Microsoft.WinJS.4.0\js\en-US\ui.strings.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense-setup.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense.js - + Microsoft.WinJS.4.0\fonts\Symbols.ttf - + Microsoft.WinJS.4.0\js\base.js - + Microsoft.WinJS.4.0\js\ui.js - + sample-utils\footer.html - + sample-utils\header.html - + sample-utils\sample-utils.js - + sample-utils\scenario-select.css - + sample-utils\scenario-select.html diff --git a/Samples/ContextMenu/js/ContextMenu.sln b/archived/ContextMenu/js/ContextMenu.sln similarity index 100% rename from Samples/ContextMenu/js/ContextMenu.sln rename to archived/ContextMenu/js/ContextMenu.sln diff --git a/Samples/ContextMenu/js/Microsoft.WinJS.4.0/css/placeholder.txt b/archived/ContextMenu/js/Microsoft.WinJS.4.0/css/placeholder.txt similarity index 100% rename from Samples/ContextMenu/js/Microsoft.WinJS.4.0/css/placeholder.txt rename to archived/ContextMenu/js/Microsoft.WinJS.4.0/css/placeholder.txt diff --git a/Samples/ContextMenu/js/Microsoft.WinJS.4.0/fonts/placeholder b/archived/ContextMenu/js/Microsoft.WinJS.4.0/fonts/placeholder similarity index 100% rename from Samples/ContextMenu/js/Microsoft.WinJS.4.0/fonts/placeholder rename to archived/ContextMenu/js/Microsoft.WinJS.4.0/fonts/placeholder diff --git a/Samples/ContextMenu/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt b/archived/ContextMenu/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt similarity index 100% rename from Samples/ContextMenu/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt rename to archived/ContextMenu/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt diff --git a/Samples/ContextMenu/js/Package.appxmanifest b/archived/ContextMenu/js/Package.appxmanifest similarity index 100% rename from Samples/ContextMenu/js/Package.appxmanifest rename to archived/ContextMenu/js/Package.appxmanifest diff --git a/Samples/ContextMenu/js/css/scenario2.css b/archived/ContextMenu/js/css/scenario2.css similarity index 100% rename from Samples/ContextMenu/js/css/scenario2.css rename to archived/ContextMenu/js/css/scenario2.css diff --git a/Samples/ContextMenu/js/html/scenario1.html b/archived/ContextMenu/js/html/scenario1.html similarity index 100% rename from Samples/ContextMenu/js/html/scenario1.html rename to archived/ContextMenu/js/html/scenario1.html diff --git a/Samples/ContextMenu/js/html/scenario2.html b/archived/ContextMenu/js/html/scenario2.html similarity index 100% rename from Samples/ContextMenu/js/html/scenario2.html rename to archived/ContextMenu/js/html/scenario2.html diff --git a/Samples/ContextMenu/js/images/placeholder-sdk.png b/archived/ContextMenu/js/images/placeholder-sdk.png similarity index 100% rename from Samples/ContextMenu/js/images/placeholder-sdk.png rename to archived/ContextMenu/js/images/placeholder-sdk.png diff --git a/Samples/ContextMenu/js/js/sample-configuration.js b/archived/ContextMenu/js/js/sample-configuration.js similarity index 100% rename from Samples/ContextMenu/js/js/sample-configuration.js rename to archived/ContextMenu/js/js/sample-configuration.js diff --git a/Samples/ContextMenu/js/js/scenario1.js b/archived/ContextMenu/js/js/scenario1.js similarity index 100% rename from Samples/ContextMenu/js/js/scenario1.js rename to archived/ContextMenu/js/js/scenario1.js diff --git a/Samples/ContextMenu/js/js/scenario2.js b/archived/ContextMenu/js/js/scenario2.js similarity index 100% rename from Samples/ContextMenu/js/js/scenario2.js rename to archived/ContextMenu/js/js/scenario2.js diff --git a/Samples/ContextMenu/js/sample-utils/placeholder.txt b/archived/ContextMenu/js/sample-utils/placeholder.txt similarity index 100% rename from Samples/ContextMenu/js/sample-utils/placeholder.txt rename to archived/ContextMenu/js/sample-utils/placeholder.txt diff --git a/archived/CortanaVoiceCommand/README.md b/archived/CortanaVoiceCommand/README.md new file mode 100644 index 0000000000..b93986ff7d --- /dev/null +++ b/archived/CortanaVoiceCommand/README.md @@ -0,0 +1,138 @@ +--- +topic: sample +languages: +- js +products: +- windows +- windows-uwp +--- + +# Cortana voice command sample + +Shows how to integrate with Cortana by providing Voice Command Definitions (VCDs) that allow an app to be invoked in a variety of ways. + +> **Note:** This sample is part of a large collection of UWP feature samples. +> If you are unfamiliar with Git and GitHub, you can download the entire collection as a +> [ZIP file](https://github.com/Microsoft/Windows-universal-samples/archive/master.zip), but be +> sure to unzip everything to access shared dependencies. For more info on working with the ZIP file, +> the samples collection, and GitHub, see [Get the UWP samples from GitHub](https://aka.ms/ovu2uq). +> For more samples, see the [Samples portal](https://aka.ms/winsamples) on the Windows Dev Center. + +Specifically, this sample covers: + +**C#**: + +- Installing a VCD file. (AdventureWorksCommands.xml, App.xaml.cs:OnLaunched() ) +- Updating a phrase list within a VCD file at runtime. (TripViewModel.cs:UpdateDestinationPhraseList()) +- Handling App.OnActivation() being called with details of a voice command. (App.xaml.cs:OnActivation()) +- Handling registration of a background task and hooking it up to a voice command. (Package.appxmanifest, AdventureWorksCommands.xml) +- Implementing the headless invocation APIs for Cortana to acknowledge the invocation, handle cancellation, and completion of the headless invocation to maintain the contract with Cortana, and avoid being terminated. (AdventureWorksVoiceCommandService.cs:Run()) +- Providing various responses to Cortana, which Cortana will display within its own UI, including text, images, app activation URIs, etc. (AdventureWorksVoiceCommandService.cs:SendCompletionMessageForDestination()) +- Implements disambiguation, providing a user with multiple choices, which can either be chosen via voice, or other input mechanisms. (AdventureWorksVoicecommandService.cs:DisambiguateTrips()) +- Implements a confirmation dialog in Cortana, ensuring a user can review a destructive action that will be taken (AdventureWorksVoiceCommandService.cs:SendCompletionMessageForCancellation()) +- Implements progress screens, ensuring that Cortana does not time out during lengthy I/O operations (AdventureWorksVoiceCommandService.cs:ShowProgressScreen()) +- Infix/Suffix Voice Command support, allowing for more natural phrases to be used. + + +**WinJS:** + +- Installing a VCD file. (installVCD.js, AdventureWorksCommands.xml) +- Using a WebWorker to install the VCD in the background, speeding up app initialization (default.js, installVCD.js) +- Updating a phrase list within a VCD file at runtime. (installVCD.js, tripDetails.js) +- Registration of a background task and protocol handler for Cortana (Package.appxmanifest, AdventureWorksCommands.xml) +- Implement a background task and Voice Command services for Cortana (voiceCommandService.js), including: + - Simple headless Cortana background activation for displaying content within Cortana (when is my trip to *destination*) + - Confirmation dialogs (cancel trip to *destination*) + - Disambiguation of multiple items with automatic reprompting. + - Resolution scaling images + - Progress dialogs for lengthy operations. + +**C++/CX** + +- Installing a VCD file. (adventureworkscommands.xml, App.xaml.cpp:OnLaunched() ) +- Updating a phrase list within a VCD file at runtime. (TripViewModel.cpp:UpdateDestinationPhraseList()) +- Handling App::OnActivation() being called with details of a voice command (App.xaml.cs:OnActivation()) +- Handling registration of a background task and hooking it up to a voice command. (Package.appxmanifest, AdventureWorksCommands.xml) +- Implementing the headless invocation APIs for Cortana to acknowledge the invocation, handle cancellation, and completion of the headless invocation to maintain the contract with Cortana, and avoid being terminated. (AdventureworksVoiceCommandService.cpp:Run()) +- Providing various responses to Cortana, which Cortana will display within its own UI, including text, images, app activation URIs, etc. (AdventureworksVoiceCommandService.cpp:SendCompletionMessageForDestination()) +- Implements disambiguation, providing a user with multiple choices, which can either be chosen via voice, or other input mechanisms. (AdventureworksVoiceCommandService.cpp:DisambiguateTrips()) +- Implements a confirmation dialog in Cortana, ensuring a user can review a destructive action that will be taken (AdventureworksVoiceCommandService.cpp:SendCompletionMessageForCancellation()) +- Implements progress screens, ensuring that Cortana does not time out during lengthy I/O operations (AdventureworksVoiceCommandService.cpp:ShowProgressScreen()) +- Infix/Suffix Voice Command support, allowing for more natural phrases to be used. + +The sample also includes a basic application in order to demonstrate how to integrate this functionality with applications. + +## Setup + +1. Ensure Cortana is signed in with an MSA account. This can be achieved by opening Cortana once and following the sign-in process. +2. Follow the steps in the "Build the sample" section below, then run the application normally once (using either F5 to debug or deploying and then launching normally). This installs the voice command definitions. +3. Close the app. +4. Click on the microphone icon in Cortana's search bar. +5. Say one of the supported voice commands (see below) + +(Note: it may take a small amount of time for Cortana to refresh its installed voice commands.) + +## Usage + +When Cortana is listening, any of the following voice commands are supported. By default, "London", "Melbourne", and "Yosemite National Park" are provided as sample destinations. New destinations can be added in the app. + +- "Adventure Works, show trip to London" +- "Adventure Works, when is my trip to London" +- "Adventure Works, cancel trip to London" + +Infix and suffix forms are also supported. + +- "Show trip to London in Adventure Works" +- "Show my Adventure Works trip to London" + +Duplicates can also be handled. For an example of handling disambiguation, add a second trip to London in the app and try the following: + +- "Adventure Works, cancel trip to London" + +## Known Issues + +* WinJS version of the sample app is not localized. It should handle dates correctly in alternate regions, but currently does not install a localized VCD, or provide localized strings to Cortana. + +## Related topics + +[Cortana design guidelines](https://msdn.microsoft.com/library/windows/apps/xaml/dn974233.aspx) +[Cortana interactions (XAML)](https://msdn.microsoft.com/library/windows/apps/mt185598) +[Cortana interactions (HTML)](https://msdn.microsoft.com/library/windows/apps/dn974231.aspx) + +## See also + +[Family Notes sample](https://github.com/Microsoft/Windows-appsample-familynotes) +[Hue Lights sample](https://github.com/Microsoft/Windows-appsample-huelightcontroller) +[WebWorkers](https://msdn.microsoft.com/library/hh673568.aspx) + +## System requirements + +**Client:** Windows 10 + +**Server:** Windows Server 2016 Technical Preview + +**Phone:** Windows 10 + +Cortana requires an appropriate recording device, and the system must be associated with a Microsoft Account in order for Cortana to function. + +## Build the sample + +**Note:** This sample has special instructions in the Setup section above. + +1. If you download the samples ZIP, be sure to unzip the entire archive, not just the folder with the sample you want to build. +2. Start Microsoft Visual Studio 2017 and select **File** \> **Open** \> **Project/Solution**. +3. Starting in the folder where you unzipped the samples, go to the Samples subfolder, then the subfolder for this specific sample, then the subfolder for your preferred language (C++, C#, or JavaScript). Double-click the Visual Studio Solution (.sln) file. +4. Press Ctrl+Shift+B, or select **Build** \> **Build Solution**. + +## Run the sample + +The next steps depend on whether you just want to deploy the sample or you want to both deploy and run it. + +### Deploying the sample + +- Select Build > Deploy Solution. + +### Deploying and running the sample + +- To debug the sample and then run it, press F5 or select Debug > Start Debugging. To run the sample without debugging, press Ctrl+F5 or selectDebug > Start Without Debugging. + diff --git a/Samples/CortanaVoiceCommand/js/AdventureWorks.sln b/archived/CortanaVoiceCommand/js/AdventureWorks.sln similarity index 100% rename from Samples/CortanaVoiceCommand/js/AdventureWorks.sln rename to archived/CortanaVoiceCommand/js/AdventureWorks.sln diff --git a/Samples/CortanaVoiceCommand/js/AdventureWorks/AdventureWorks.jsproj b/archived/CortanaVoiceCommand/js/AdventureWorks/AdventureWorks.jsproj similarity index 89% rename from Samples/CortanaVoiceCommand/js/AdventureWorks/AdventureWorks.jsproj rename to archived/CortanaVoiceCommand/js/AdventureWorks/AdventureWorks.jsproj index ab60ec5c11..36668650d5 100644 --- a/Samples/CortanaVoiceCommand/js/AdventureWorks/AdventureWorks.jsproj +++ b/archived/CortanaVoiceCommand/js/AdventureWorks/AdventureWorks.jsproj @@ -88,28 +88,28 @@ - + Microsoft.WinJS.4.0\css\ui-dark.css - + Microsoft.WinJS.4.0\css\ui-light.css - + Microsoft.WinJS.4.0\js\en-US\ui.strings.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense-setup.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense.js - + Microsoft.WinJS.4.0\fonts\Symbols.ttf - + Microsoft.WinJS.4.0\js\base.js - + Microsoft.WinJS.4.0\js\ui.js diff --git a/Samples/CortanaVoiceCommand/js/AdventureWorks/Microsoft.WinJS.4.0/css/placeholder.txt b/archived/CortanaVoiceCommand/js/AdventureWorks/Microsoft.WinJS.4.0/css/placeholder.txt similarity index 100% rename from Samples/CortanaVoiceCommand/js/AdventureWorks/Microsoft.WinJS.4.0/css/placeholder.txt rename to archived/CortanaVoiceCommand/js/AdventureWorks/Microsoft.WinJS.4.0/css/placeholder.txt diff --git a/Samples/CortanaVoiceCommand/js/AdventureWorks/Microsoft.WinJS.4.0/fonts/placeholder.txt b/archived/CortanaVoiceCommand/js/AdventureWorks/Microsoft.WinJS.4.0/fonts/placeholder.txt similarity index 100% rename from Samples/CortanaVoiceCommand/js/AdventureWorks/Microsoft.WinJS.4.0/fonts/placeholder.txt rename to archived/CortanaVoiceCommand/js/AdventureWorks/Microsoft.WinJS.4.0/fonts/placeholder.txt diff --git a/Samples/CortanaVoiceCommand/js/AdventureWorks/Microsoft.WinJS.4.0/js/en-us/placeholder.txt b/archived/CortanaVoiceCommand/js/AdventureWorks/Microsoft.WinJS.4.0/js/en-us/placeholder.txt similarity index 100% rename from Samples/CortanaVoiceCommand/js/AdventureWorks/Microsoft.WinJS.4.0/js/en-us/placeholder.txt rename to archived/CortanaVoiceCommand/js/AdventureWorks/Microsoft.WinJS.4.0/js/en-us/placeholder.txt diff --git a/Samples/CortanaVoiceCommand/js/AdventureWorks/Strings/de-DE/placeholder.txt b/archived/CortanaVoiceCommand/js/AdventureWorks/Strings/de-DE/placeholder.txt similarity index 100% rename from Samples/CortanaVoiceCommand/js/AdventureWorks/Strings/de-DE/placeholder.txt rename to archived/CortanaVoiceCommand/js/AdventureWorks/Strings/de-DE/placeholder.txt diff --git a/Samples/CortanaVoiceCommand/js/AdventureWorks/Strings/en-AU/placeholder.txt b/archived/CortanaVoiceCommand/js/AdventureWorks/Strings/en-AU/placeholder.txt similarity index 100% rename from Samples/CortanaVoiceCommand/js/AdventureWorks/Strings/en-AU/placeholder.txt rename to archived/CortanaVoiceCommand/js/AdventureWorks/Strings/en-AU/placeholder.txt diff --git a/Samples/CortanaVoiceCommand/js/AdventureWorks/Strings/en-CA/placeholder.txt b/archived/CortanaVoiceCommand/js/AdventureWorks/Strings/en-CA/placeholder.txt similarity index 100% rename from Samples/CortanaVoiceCommand/js/AdventureWorks/Strings/en-CA/placeholder.txt rename to archived/CortanaVoiceCommand/js/AdventureWorks/Strings/en-CA/placeholder.txt diff --git a/Samples/CortanaVoiceCommand/js/AdventureWorks/Strings/en-GB/placeholder.txt b/archived/CortanaVoiceCommand/js/AdventureWorks/Strings/en-GB/placeholder.txt similarity index 100% rename from Samples/CortanaVoiceCommand/js/AdventureWorks/Strings/en-GB/placeholder.txt rename to archived/CortanaVoiceCommand/js/AdventureWorks/Strings/en-GB/placeholder.txt diff --git a/Samples/CortanaVoiceCommand/js/AdventureWorks/Strings/en-IN/placeholder.txt b/archived/CortanaVoiceCommand/js/AdventureWorks/Strings/en-IN/placeholder.txt similarity index 100% rename from Samples/CortanaVoiceCommand/js/AdventureWorks/Strings/en-IN/placeholder.txt rename to archived/CortanaVoiceCommand/js/AdventureWorks/Strings/en-IN/placeholder.txt diff --git a/Samples/CortanaVoiceCommand/js/AdventureWorks/Strings/en-US/placeholder.txt b/archived/CortanaVoiceCommand/js/AdventureWorks/Strings/en-US/placeholder.txt similarity index 100% rename from Samples/CortanaVoiceCommand/js/AdventureWorks/Strings/en-US/placeholder.txt rename to archived/CortanaVoiceCommand/js/AdventureWorks/Strings/en-US/placeholder.txt diff --git a/Samples/CortanaVoiceCommand/js/AdventureWorks/Strings/es-ES/placeholder.txt b/archived/CortanaVoiceCommand/js/AdventureWorks/Strings/es-ES/placeholder.txt similarity index 100% rename from Samples/CortanaVoiceCommand/js/AdventureWorks/Strings/es-ES/placeholder.txt rename to archived/CortanaVoiceCommand/js/AdventureWorks/Strings/es-ES/placeholder.txt diff --git a/Samples/CortanaVoiceCommand/js/AdventureWorks/Strings/fr-FR/placeholder.txt b/archived/CortanaVoiceCommand/js/AdventureWorks/Strings/fr-FR/placeholder.txt similarity index 100% rename from Samples/CortanaVoiceCommand/js/AdventureWorks/Strings/fr-FR/placeholder.txt rename to archived/CortanaVoiceCommand/js/AdventureWorks/Strings/fr-FR/placeholder.txt diff --git a/Samples/CortanaVoiceCommand/js/AdventureWorks/Strings/it-IT/placeholder.txt b/archived/CortanaVoiceCommand/js/AdventureWorks/Strings/it-IT/placeholder.txt similarity index 100% rename from Samples/CortanaVoiceCommand/js/AdventureWorks/Strings/it-IT/placeholder.txt rename to archived/CortanaVoiceCommand/js/AdventureWorks/Strings/it-IT/placeholder.txt diff --git a/Samples/CortanaVoiceCommand/js/AdventureWorks/Strings/zh-CN/placeholder.txt b/archived/CortanaVoiceCommand/js/AdventureWorks/Strings/zh-CN/placeholder.txt similarity index 100% rename from Samples/CortanaVoiceCommand/js/AdventureWorks/Strings/zh-CN/placeholder.txt rename to archived/CortanaVoiceCommand/js/AdventureWorks/Strings/zh-CN/placeholder.txt diff --git a/Samples/CortanaVoiceCommand/js/AdventureWorks/css/default.css b/archived/CortanaVoiceCommand/js/AdventureWorks/css/default.css similarity index 100% rename from Samples/CortanaVoiceCommand/js/AdventureWorks/css/default.css rename to archived/CortanaVoiceCommand/js/AdventureWorks/css/default.css diff --git a/Samples/CortanaVoiceCommand/js/AdventureWorks/css/tripDetails.css b/archived/CortanaVoiceCommand/js/AdventureWorks/css/tripDetails.css similarity index 100% rename from Samples/CortanaVoiceCommand/js/AdventureWorks/css/tripDetails.css rename to archived/CortanaVoiceCommand/js/AdventureWorks/css/tripDetails.css diff --git a/Samples/CortanaVoiceCommand/js/AdventureWorks/css/tripListView.css b/archived/CortanaVoiceCommand/js/AdventureWorks/css/tripListView.css similarity index 100% rename from Samples/CortanaVoiceCommand/js/AdventureWorks/css/tripListView.css rename to archived/CortanaVoiceCommand/js/AdventureWorks/css/tripListView.css diff --git a/Samples/CortanaVoiceCommand/js/AdventureWorks/default.html b/archived/CortanaVoiceCommand/js/AdventureWorks/default.html similarity index 100% rename from Samples/CortanaVoiceCommand/js/AdventureWorks/default.html rename to archived/CortanaVoiceCommand/js/AdventureWorks/default.html diff --git a/Samples/CortanaVoiceCommand/js/AdventureWorks/html/tripDetails.html b/archived/CortanaVoiceCommand/js/AdventureWorks/html/tripDetails.html similarity index 100% rename from Samples/CortanaVoiceCommand/js/AdventureWorks/html/tripDetails.html rename to archived/CortanaVoiceCommand/js/AdventureWorks/html/tripDetails.html diff --git a/Samples/CortanaVoiceCommand/js/AdventureWorks/html/tripListView.html b/archived/CortanaVoiceCommand/js/AdventureWorks/html/tripListView.html similarity index 100% rename from Samples/CortanaVoiceCommand/js/AdventureWorks/html/tripListView.html rename to archived/CortanaVoiceCommand/js/AdventureWorks/html/tripListView.html diff --git a/Samples/CortanaVoiceCommand/js/AdventureWorks/images/GreyTile.scale-100.png b/archived/CortanaVoiceCommand/js/AdventureWorks/images/GreyTile.scale-100.png similarity index 100% rename from Samples/CortanaVoiceCommand/js/AdventureWorks/images/GreyTile.scale-100.png rename to archived/CortanaVoiceCommand/js/AdventureWorks/images/GreyTile.scale-100.png diff --git a/Samples/CortanaVoiceCommand/js/AdventureWorks/images/GreyTile.scale-150.png b/archived/CortanaVoiceCommand/js/AdventureWorks/images/GreyTile.scale-150.png similarity index 100% rename from Samples/CortanaVoiceCommand/js/AdventureWorks/images/GreyTile.scale-150.png rename to archived/CortanaVoiceCommand/js/AdventureWorks/images/GreyTile.scale-150.png diff --git a/Samples/CortanaVoiceCommand/js/AdventureWorks/images/GreyTile.scale-200.png b/archived/CortanaVoiceCommand/js/AdventureWorks/images/GreyTile.scale-200.png similarity index 100% rename from Samples/CortanaVoiceCommand/js/AdventureWorks/images/GreyTile.scale-200.png rename to archived/CortanaVoiceCommand/js/AdventureWorks/images/GreyTile.scale-200.png diff --git a/Samples/CortanaVoiceCommand/js/AdventureWorks/images/GreyTile.scale-225.png b/archived/CortanaVoiceCommand/js/AdventureWorks/images/GreyTile.scale-225.png similarity index 100% rename from Samples/CortanaVoiceCommand/js/AdventureWorks/images/GreyTile.scale-225.png rename to archived/CortanaVoiceCommand/js/AdventureWorks/images/GreyTile.scale-225.png diff --git a/Samples/CortanaVoiceCommand/js/AdventureWorks/images/GreyTile.scale-400.png b/archived/CortanaVoiceCommand/js/AdventureWorks/images/GreyTile.scale-400.png similarity index 100% rename from Samples/CortanaVoiceCommand/js/AdventureWorks/images/GreyTile.scale-400.png rename to archived/CortanaVoiceCommand/js/AdventureWorks/images/GreyTile.scale-400.png diff --git a/Samples/CortanaVoiceCommand/js/AdventureWorks/js/default.js b/archived/CortanaVoiceCommand/js/AdventureWorks/js/default.js similarity index 100% rename from Samples/CortanaVoiceCommand/js/AdventureWorks/js/default.js rename to archived/CortanaVoiceCommand/js/AdventureWorks/js/default.js diff --git a/Samples/CortanaVoiceCommand/js/AdventureWorks/js/installVCD.js b/archived/CortanaVoiceCommand/js/AdventureWorks/js/installVCD.js similarity index 100% rename from Samples/CortanaVoiceCommand/js/AdventureWorks/js/installVCD.js rename to archived/CortanaVoiceCommand/js/AdventureWorks/js/installVCD.js diff --git a/Samples/CortanaVoiceCommand/js/AdventureWorks/js/store.js b/archived/CortanaVoiceCommand/js/AdventureWorks/js/store.js similarity index 100% rename from Samples/CortanaVoiceCommand/js/AdventureWorks/js/store.js rename to archived/CortanaVoiceCommand/js/AdventureWorks/js/store.js diff --git a/Samples/CortanaVoiceCommand/js/AdventureWorks/js/tripDetails.js b/archived/CortanaVoiceCommand/js/AdventureWorks/js/tripDetails.js similarity index 100% rename from Samples/CortanaVoiceCommand/js/AdventureWorks/js/tripDetails.js rename to archived/CortanaVoiceCommand/js/AdventureWorks/js/tripDetails.js diff --git a/Samples/CortanaVoiceCommand/js/AdventureWorks/js/tripListView.js b/archived/CortanaVoiceCommand/js/AdventureWorks/js/tripListView.js similarity index 100% rename from Samples/CortanaVoiceCommand/js/AdventureWorks/js/tripListView.js rename to archived/CortanaVoiceCommand/js/AdventureWorks/js/tripListView.js diff --git a/Samples/CortanaVoiceCommand/js/AdventureWorks/js/voiceCommandService.js b/archived/CortanaVoiceCommand/js/AdventureWorks/js/voiceCommandService.js similarity index 100% rename from Samples/CortanaVoiceCommand/js/AdventureWorks/js/voiceCommandService.js rename to archived/CortanaVoiceCommand/js/AdventureWorks/js/voiceCommandService.js diff --git a/Samples/CortanaVoiceCommand/js/AdventureWorks/package.appxmanifest b/archived/CortanaVoiceCommand/js/AdventureWorks/package.appxmanifest similarity index 100% rename from Samples/CortanaVoiceCommand/js/AdventureWorks/package.appxmanifest rename to archived/CortanaVoiceCommand/js/AdventureWorks/package.appxmanifest diff --git a/archived/CredentialPicker/README.md b/archived/CredentialPicker/README.md new file mode 100644 index 0000000000..a3772d308a --- /dev/null +++ b/archived/CredentialPicker/README.md @@ -0,0 +1,57 @@ +--- +topic: sample +languages: +- js +products: +- windows +- windows-uwp +--- + +# Credential picker sample + +Shows how to use the Windows.Security.Credentials.UI.CredentialPicker class to retrieve credentials, +which can then be passed to APIs that may require credentials (for example, HttpClient). This can be used in support of single sign on (SSO). + +> **Note:** This sample is part of a large collection of UWP feature samples. +> If you are unfamiliar with Git and GitHub, you can download the entire collection as a +> [ZIP file](https://github.com/Microsoft/Windows-universal-samples/archive/master.zip), but be +> sure to unzip everything to access shared dependencies. For more info on working with the ZIP file, +> the samples collection, and GitHub, see [Get the UWP samples from GitHub](https://aka.ms/ovu2uq). +> For more samples, see the [Samples portal](https://aka.ms/winsamples) on the Windows Dev Center. + +This sample allows the user launch different types of credential prompts. You can choose one of three scenarios: +- Message +- Message and Caption +- Message, Caption, Save Credential Option, and a type of protocol. + +Operating system requirements +----------------------------- + +Windows 10 + +Related topics +--------------- + +[Windows.Security.Credentials](https://msdn.microsoft.com/library/windows/apps/br227089) +[Windows.Security.Credentials.UI](https://msdn.microsoft.com/library/windows/apps/hh701356) + +Build the sample +---------------- + +1. If you download the samples ZIP, be sure to unzip the entire archive, not just the folder with the sample you want to build. +2. Start Microsoft Visual Studio 2017 and select **File** \> **Open** \> **Project/Solution**. +3. Starting in the folder where you unzipped the samples, go to the Samples subfolder, then the subfolder for this specific sample, then the subfolder for your preferred language (C++, C#, or JavaScript). Double-click the Visual Studio Solution (.sln) file. +4. Press Ctrl+Shift+B, or select **Build** \> **Build Solution**. + +Run the sample +-------------- + +The next steps depend on whether you just want to deploy the sample or you want to both deploy and run it. + +**Deploying the sample** + +1. Select **Build** \> **Deploy Solution**. + +**Deploying and running the sample** + +1. To debug the sample and then run it, press F5 or select **Debug** \> **Start Debugging**. To run the sample without debugging, press Ctrl+F5 or select**Debug** \> **Start Without Debugging**. \ No newline at end of file diff --git a/Samples/CredentialPicker/js/CredentialPicker.jsproj b/archived/CredentialPicker/js/CredentialPicker.jsproj similarity index 80% rename from Samples/CredentialPicker/js/CredentialPicker.jsproj rename to archived/CredentialPicker/js/CredentialPicker.jsproj index aac5ad84af..35aa9b8cfe 100644 --- a/Samples/CredentialPicker/js/CredentialPicker.jsproj +++ b/archived/CredentialPicker/js/CredentialPicker.jsproj @@ -54,7 +54,7 @@ Designer - + default.html @@ -81,53 +81,53 @@ images\windows-sdk.png - + js\default.js - + css\default.css - + Microsoft.WinJS.4.0\css\ui-dark.css - + Microsoft.WinJS.4.0\css\ui-light.css - + Microsoft.WinJS.4.0\js\en-US\ui.strings.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense-setup.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense.js - + Microsoft.WinJS.4.0\fonts\Symbols.ttf - + Microsoft.WinJS.4.0\js\base.js - + Microsoft.WinJS.4.0\js\ui.js - + sample-utils\footer.html - + sample-utils\header.html - + sample-utils\sample-utils.js - + sample-utils\scenario-select.css - + sample-utils\scenario-select.html diff --git a/Samples/CredentialPicker/js/CredentialPicker.sln b/archived/CredentialPicker/js/CredentialPicker.sln similarity index 100% rename from Samples/CredentialPicker/js/CredentialPicker.sln rename to archived/CredentialPicker/js/CredentialPicker.sln diff --git a/Samples/CredentialPicker/js/Microsoft.WinJS.4.0/css/placeholder.txt b/archived/CredentialPicker/js/Microsoft.WinJS.4.0/css/placeholder.txt similarity index 100% rename from Samples/CredentialPicker/js/Microsoft.WinJS.4.0/css/placeholder.txt rename to archived/CredentialPicker/js/Microsoft.WinJS.4.0/css/placeholder.txt diff --git a/Samples/CredentialPicker/js/Microsoft.WinJS.4.0/fonts/placeholder b/archived/CredentialPicker/js/Microsoft.WinJS.4.0/fonts/placeholder similarity index 100% rename from Samples/CredentialPicker/js/Microsoft.WinJS.4.0/fonts/placeholder rename to archived/CredentialPicker/js/Microsoft.WinJS.4.0/fonts/placeholder diff --git a/Samples/CredentialPicker/js/Microsoft.WinJS.4.0/js/en-us/placeholder.txt b/archived/CredentialPicker/js/Microsoft.WinJS.4.0/js/en-us/placeholder.txt similarity index 100% rename from Samples/CredentialPicker/js/Microsoft.WinJS.4.0/js/en-us/placeholder.txt rename to archived/CredentialPicker/js/Microsoft.WinJS.4.0/js/en-us/placeholder.txt diff --git a/Samples/CredentialPicker/js/Package.appxmanifest b/archived/CredentialPicker/js/Package.appxmanifest similarity index 100% rename from Samples/CredentialPicker/js/Package.appxmanifest rename to archived/CredentialPicker/js/Package.appxmanifest diff --git a/Samples/CredentialPicker/js/css/placeholder.txt b/archived/CredentialPicker/js/css/placeholder.txt similarity index 100% rename from Samples/CredentialPicker/js/css/placeholder.txt rename to archived/CredentialPicker/js/css/placeholder.txt diff --git a/Samples/CredentialPicker/js/html/scenario1.html b/archived/CredentialPicker/js/html/scenario1.html similarity index 100% rename from Samples/CredentialPicker/js/html/scenario1.html rename to archived/CredentialPicker/js/html/scenario1.html diff --git a/Samples/CredentialPicker/js/html/scenario2.html b/archived/CredentialPicker/js/html/scenario2.html similarity index 100% rename from Samples/CredentialPicker/js/html/scenario2.html rename to archived/CredentialPicker/js/html/scenario2.html diff --git a/Samples/CredentialPicker/js/html/scenario3.html b/archived/CredentialPicker/js/html/scenario3.html similarity index 100% rename from Samples/CredentialPicker/js/html/scenario3.html rename to archived/CredentialPicker/js/html/scenario3.html diff --git a/Samples/CredentialPicker/js/js/sample-configuration.js b/archived/CredentialPicker/js/js/sample-configuration.js similarity index 100% rename from Samples/CredentialPicker/js/js/sample-configuration.js rename to archived/CredentialPicker/js/js/sample-configuration.js diff --git a/Samples/CredentialPicker/js/js/scenario1.js b/archived/CredentialPicker/js/js/scenario1.js similarity index 100% rename from Samples/CredentialPicker/js/js/scenario1.js rename to archived/CredentialPicker/js/js/scenario1.js diff --git a/Samples/CredentialPicker/js/js/scenario2.js b/archived/CredentialPicker/js/js/scenario2.js similarity index 100% rename from Samples/CredentialPicker/js/js/scenario2.js rename to archived/CredentialPicker/js/js/scenario2.js diff --git a/Samples/CredentialPicker/js/js/scenario3.js b/archived/CredentialPicker/js/js/scenario3.js similarity index 100% rename from Samples/CredentialPicker/js/js/scenario3.js rename to archived/CredentialPicker/js/js/scenario3.js diff --git a/Samples/CredentialPicker/js/sample-utils/placeholder.txt b/archived/CredentialPicker/js/sample-utils/placeholder.txt similarity index 100% rename from Samples/CredentialPicker/js/sample-utils/placeholder.txt rename to archived/CredentialPicker/js/sample-utils/placeholder.txt diff --git a/archived/CustomCapability/README.md b/archived/CustomCapability/README.md new file mode 100644 index 0000000000..fa95d855d8 --- /dev/null +++ b/archived/CustomCapability/README.md @@ -0,0 +1,209 @@ +--- +topic: sample +languages: +- js +products: +- windows +- windows-uwp +--- + +# Custom Capability sample + +Shows the use of custom capabilities. + +Note that the SCCD file included with this sample is not valid, +but it is included for instructional purposes. +If the PC is Developer Mode, the sample will deploy despite the invalid SCCD file. +When writing your own app, follow the instructions in +[Custom Capabilities for Universal Windows Platform apps](https://msdn.microsoft.com/windows/hardware/drivers/devapps/custom-capabilities-for-universal-windows-platform-apps) +to obtain a properly-signed SCCD file. + +## Using a custom capability to connect to an NT service + +The "Connect to an NT service" scenario uses a custom capability +to control access to an NT service. +For demonstration purposes, the service reads data from an imaginary device. + +The scenario demonstrates the following: + +- Declaring a custom capability "microsoft.hsaTestCustomCapability_q536wpkpf5cy2" in the manifest. +- Establishing an RPC connection to the NT service. +- Invoking methods over RPC to initiate data collection and alter the sampling period. +- Using an RPC callback to receive data from the imaginary device. + +The service portion of this sample demonstrates the following: + +- Converting the capability string to a SID using the `DeriveCapabilitySidsFromName` function. +- Using that SID to create the Security Descriptor for the RPC endpoint. + +The following diagram summarizes the communication between the app and the NT service: + +```sh + CLIENT SERVER + ------------------------ ----------------- + | | | | + | CustomCapability.exe | | RpcServer.exe | + | | | | + ------------------------ ----------------- + | | + | | + Click Start button |-------------StartMetering-------------->| + | [Blocking call] | + | | + | | + Updates Sample |<------------MeteringData----------------| + text box | [Sent at choosen sample period] | + | | + | | + Move the sample |-----------SetSamplePeriod-------------->| + period slider |<-------SetSamplePeriod completes--------| + | | + Click Stop button |-------------StopMetering--------------->| + |<--------StopMetering completes----------| + | | + |<-------StartMetering completes----------| + | | +``` + +Before you run this scenario, you must start the corresponding NT service. + +* Build the NT service portion of the sample, which requires that the Windows SDK for Desktop C++ Apps be installed. +* Start the service from an elevated command prompt in one of two ways: + * Install it as a service using `rpcserver.exe -install` and start it using `sc start hsaservice`. + * Run the service in console mode: `rpcserver.exe -console` + +## Using a custom capability to access a custom device + +A series of scenarios demonstrate how to use a custom capability to access the +OSR USB FX-2 Learning Kit device. +The code for the OSR USB FX-2 driver can be found in the +[Microsoft Windows-driver-samples repo](https://github.com/Microsoft/Windows-driver-samples/) +under +[usb/umdf2_fx2/driver](https://github.com/Microsoft/Windows-driver-samples/tree/master/usb/umdf2_fx2/driver). +The driver must be built for Windows 10 version 1703 or higher in order to support +the custom capability used by this sample. + +The "Connect to the OSR FX-2 device" scenario demonstrates the following: + +- Declaring a custom capability "microsoft.hsaTestCustomCapability_q536wpkpf5cy2" in the manifest. +- Updating driver code or driver INF to enable access to driver interface using the custom capability +- Using a `DeviceWatcher` to enumerate OSR FX-2 devices by using its device interface GUID. +- Using the `CustomDevice.FromIdAsync` method to access a particular instance of the device. + +The "Send IOCTLs to the device" scenario demonstrates the following: + +- Sending an IOCTL to the device to set the 7 segment LED value. +- Sending an IOCTL to the device to get the 7 segment LED value. + - The values and meanings of I/O control codes are defined by the device. + +The "Handle asynchronous device events" scenario demonstrates the following: + +- Sending an IOCTL that does not complete until the DIP switches change. +- Canceling the task which is waiting for the switches to change. +- Sending an IOCTL to read the current state of the switches. + - The values and meanings of I/O control codes are defined by the device. + +To use this scenario, click "Begin Receiving Switch Change Events" and then +change the DIP switches. The app displays the state of the switches when they +change. You can also click "Get Switch State" to read the switch state immediately. + +The "Read and Write operations" scenario demonstrates the following: + +- Writing data to the device's internal memory by writing to its OutputStream. +- Reading data from the device's internal memory by reading from its InputStream. + +Each time you click "Write Block", a message is written to the device, +and each time you click "Read Block", a message is read from the device. +The OSR FX-2 has four message buffers. +When they are full, the next write operation will wait until a message is read, +thereby freeing up a message buffer. +When they are empty, the next read operation will wait until a message is written. + +## Raising Custom System Event Trigger + +Demonstrates how to register background task with the CustomSystemEventTrigger type and +raise a custom system event when an OSR FX-2 device is connected to a system. The code to +raise the event is part of the OSR FX-2 driver. This enables custom devices/NT services to raise a custom system event which triggers a background task. + +The code for the OSR USB FX-2 driver can be found in the +[Microsoft Windows-driver-samples repo](https://github.com/Microsoft/Windows-driver-samples/) +under +[usb/kmdf_fx2/driver](https://github.com/Microsoft/Windows-driver-samples/tree/master/usb/kmdf_fx2). +The driver must be built for Windows 10 version 1803 or higher in order to support +the custom system event trigger used by this sample. + +## Firmware access + +Declaring the restricted capability `smbios` allows apps to read the SMBIOS. +Call the +[GetSystemFirmwareTable](https://msdn.microsoft.com/en-us/library/windows/desktop/ms724379(v=vs.85).aspx) +and +[EnumSystemFirmwareTables](https://msdn.microsoft.com/en-us/library/windows/desktop/ms724259(v=vs.85).aspx) +functions with the 'RSMB' (Raw SMBIOS) table provider. + +The following custom capabilities can be used for accessing UEFI variables: + +- `microsoft.firmwareRead_cw5n1h2txyewy`: Read UEFI variables using [GetFirmwareEnvironmentVariable](https://msdn.microsoft.com/en-us/library/windows/desktop/ms724325(v=vs.85).aspx) +- `microsoft.firmwareWrite_cw5n1h2txyewy`: Read/Write UEFI variables using [SetFirmwareEnvironmentVariable](https://msdn.microsoft.com/en-us/library/windows/desktop/ms724934(v=vs.85).aspx) + +UEFI access also requires the app to declare 'protectedApp' restricted capability and enable [INTEGRITYCHECK](https://docs.microsoft.com/en-us/cpp/build/reference/integritycheck-require-signature-check) for the project. This would trigger necessary store signing for protected apps during store submission. Currently the [INTEGRITYCHECK](https://docs.microsoft.com/en-us/cpp/build/reference/integritycheck-require-signature-check) can only be enabled on C++ projects properties. + +UEFI variables can be accessed only when the app is being used by a user belonging to Administrators group. + +**Note** The Windows universal samples require Visual Studio 2017 to build and Windows 10 to execute. + +To obtain information about Windows 10 development, go to the [Windows Dev Center](http://go.microsoft.com/fwlink/?LinkID=532421) + +To obtain information about Microsoft Visual Studio and the tools for developing Windows apps, go to [Visual Studio](http://go.microsoft.com/fwlink/?LinkID=532422) + +## Related topics + +### Samples + +* [IoT-GPIO](/Samples/IoT-GPIO) +* [IoT-I2C](/Samples/IoT-I2C) +* [IoT-SPI](/Samples/IoT-SPI) +* [Custom HID device access](/Samples/CustomHidDeviceAccess) +* [Custom serial device access](/Samples/CustomSerialDeviceAccess) +* [Custom USB device access](/Samples/CustomUsbDeviceAccess) + +### Reference + +* [Windows.Devices.Custom.CustomDevice runtime class](https://msdn.microsoft.com/library/windows/apps/windows.devices.custom.customdevice.aspx) class +* The [Custom driver access sample](https://code.msdn.microsoft.com/windowsapps/Custom-device-access-sample-43bde679) + sample has been converted to a Windows 10 app. +* [How to use RPC callbacks](https://support.microsoft.com/kb/96781) +* [Custom Capabilities for Universal Windows Platform apps](https://msdn.microsoft.com/windows/hardware/drivers/devapps/custom-capabilities-for-universal-windows-platform-apps) +* [Hardware access for Universal Windows Platform apps](https://msdn.microsoft.com/windows/hardware/drivers/devapps/hardware-access-for-universal-windows-platform-apps) + +## System requirements + +**Client:** Windows 10 version 1703 + +**Server:** Windows Server 2016 Technical Preview + +**Phone:** Windows 10 version 1703 + +## Build the sample + +1. If you download the samples ZIP, be sure to unzip the entire archive, not just the folder with the sample you want to build. +2. Start Microsoft Visual Studio 2017 and select **File** \> **Open** \> **Project/Solution**. +3. Starting in the folder where you unzipped the samples, go to the Samples subfolder, then the subfolder for this specific sample, then the subfolder for your preferred language (C++, C#, or JavaScript). Double-click the Visual Studio 2017 Solution (.sln) file. +4. Press Ctrl+Shift+B, or select **Build** \> **Build Solution**. + +## Run the sample + +The next steps depend on whether you just want to deploy the sample or you want to both deploy and run it. + +### Deploying the sample + +- Select Build > Deploy Solution. + +### Deploying and running the sample + +- To debug the sample and then run it, press F5 or select Debug > Start Debugging. To run the sample without debugging, press Ctrl+F5 or select Debug > Start Without Debugging. +- To run the "Connect to an NT service" scenario, see additional instructions above. + +### Modifying the sample + +- If you modify the sample, make sure to [change the interface ID in `RpcInterface.idl`](Service/Interface/RpcInterface.idl#L15), because interface IDs must be unique. diff --git a/Samples/CustomCapability/js/CustomCapability.SCCD b/archived/CustomCapability/js/CustomCapability.SCCD similarity index 100% rename from Samples/CustomCapability/js/CustomCapability.SCCD rename to archived/CustomCapability/js/CustomCapability.SCCD diff --git a/Samples/CustomCapability/js/CustomCapability.jsproj b/archived/CustomCapability/js/CustomCapability.jsproj similarity index 86% rename from Samples/CustomCapability/js/CustomCapability.jsproj rename to archived/CustomCapability/js/CustomCapability.jsproj index eafb67fbbf..2440a3829e 100644 --- a/Samples/CustomCapability/js/CustomCapability.jsproj +++ b/archived/CustomCapability/js/CustomCapability.jsproj @@ -81,13 +81,13 @@ Designer - + default.html - + js\default.js - + css\default.css @@ -111,43 +111,43 @@ images\windows-sdk.png - + Microsoft.WinJS.4.0\css\ui-dark.css - + Microsoft.WinJS.4.0\css\ui-light.css - + Microsoft.WinJS.4.0\js\en-US\ui.strings.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense-setup.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense.js - + Microsoft.WinJS.4.0\fonts\Symbols.ttf - + Microsoft.WinJS.4.0\js\base.js - + Microsoft.WinJS.4.0\js\ui.js - + sample-utils\footer.html - + sample-utils\header.html - + sample-utils\sample-utils.js - + sample-utils\scenario-select.css - + sample-utils\scenario-select.html diff --git a/Samples/CustomCapability/js/CustomCapability.sln b/archived/CustomCapability/js/CustomCapability.sln similarity index 100% rename from Samples/CustomCapability/js/CustomCapability.sln rename to archived/CustomCapability/js/CustomCapability.sln diff --git a/Samples/CustomCapability/js/RpcClientRt/RpcClientRt.cpp b/archived/CustomCapability/js/RpcClientRt/RpcClientRt.cpp similarity index 100% rename from Samples/CustomCapability/js/RpcClientRt/RpcClientRt.cpp rename to archived/CustomCapability/js/RpcClientRt/RpcClientRt.cpp diff --git a/Samples/CustomCapability/js/RpcClientRt/RpcClientRt.h b/archived/CustomCapability/js/RpcClientRt/RpcClientRt.h similarity index 100% rename from Samples/CustomCapability/js/RpcClientRt/RpcClientRt.h rename to archived/CustomCapability/js/RpcClientRt/RpcClientRt.h diff --git a/Samples/CustomCapability/js/RpcClientRt/RpcClientRt.vcxproj b/archived/CustomCapability/js/RpcClientRt/RpcClientRt.vcxproj similarity index 100% rename from Samples/CustomCapability/js/RpcClientRt/RpcClientRt.vcxproj rename to archived/CustomCapability/js/RpcClientRt/RpcClientRt.vcxproj diff --git a/Samples/CustomCapability/js/RpcClientRt/RpcClientRt.vcxproj.filters b/archived/CustomCapability/js/RpcClientRt/RpcClientRt.vcxproj.filters similarity index 100% rename from Samples/CustomCapability/js/RpcClientRt/RpcClientRt.vcxproj.filters rename to archived/CustomCapability/js/RpcClientRt/RpcClientRt.vcxproj.filters diff --git a/Samples/CustomCapability/js/RpcClientRt/SmbiosRT.cpp b/archived/CustomCapability/js/RpcClientRt/SmbiosRT.cpp similarity index 100% rename from Samples/CustomCapability/js/RpcClientRt/SmbiosRT.cpp rename to archived/CustomCapability/js/RpcClientRt/SmbiosRT.cpp diff --git a/Samples/CustomCapability/js/RpcClientRt/SmbiosRT.h b/archived/CustomCapability/js/RpcClientRt/SmbiosRT.h similarity index 100% rename from Samples/CustomCapability/js/RpcClientRt/SmbiosRT.h rename to archived/CustomCapability/js/RpcClientRt/SmbiosRT.h diff --git a/Samples/CustomCapability/js/RpcClientRt/pch.cpp b/archived/CustomCapability/js/RpcClientRt/pch.cpp similarity index 100% rename from Samples/CustomCapability/js/RpcClientRt/pch.cpp rename to archived/CustomCapability/js/RpcClientRt/pch.cpp diff --git a/Samples/CustomCapability/js/RpcClientRt/pch.h b/archived/CustomCapability/js/RpcClientRt/pch.h similarity index 100% rename from Samples/CustomCapability/js/RpcClientRt/pch.h rename to archived/CustomCapability/js/RpcClientRt/pch.h diff --git a/Samples/CustomCapability/js/css/Scenario1_MeteringData.css b/archived/CustomCapability/js/css/Scenario1_MeteringData.css similarity index 100% rename from Samples/CustomCapability/js/css/Scenario1_MeteringData.css rename to archived/CustomCapability/js/css/Scenario1_MeteringData.css diff --git a/Samples/CustomCapability/js/css/scenario2_deviceConnect.css b/archived/CustomCapability/js/css/scenario2_deviceConnect.css similarity index 100% rename from Samples/CustomCapability/js/css/scenario2_deviceConnect.css rename to archived/CustomCapability/js/css/scenario2_deviceConnect.css diff --git a/Samples/CustomCapability/js/css/scenario3_deviceIO.css b/archived/CustomCapability/js/css/scenario3_deviceIO.css similarity index 100% rename from Samples/CustomCapability/js/css/scenario3_deviceIO.css rename to archived/CustomCapability/js/css/scenario3_deviceIO.css diff --git a/Samples/CustomCapability/js/css/scenario4_deviceEvents.css b/archived/CustomCapability/js/css/scenario4_deviceEvents.css similarity index 100% rename from Samples/CustomCapability/js/css/scenario4_deviceEvents.css rename to archived/CustomCapability/js/css/scenario4_deviceEvents.css diff --git a/Samples/CustomCapability/js/css/scenario5_deviceReadWrite.css b/archived/CustomCapability/js/css/scenario5_deviceReadWrite.css similarity index 100% rename from Samples/CustomCapability/js/css/scenario5_deviceReadWrite.css rename to archived/CustomCapability/js/css/scenario5_deviceReadWrite.css diff --git a/Samples/CustomCapability/js/html/Scenario1_MeteringData.html b/archived/CustomCapability/js/html/Scenario1_MeteringData.html similarity index 100% rename from Samples/CustomCapability/js/html/Scenario1_MeteringData.html rename to archived/CustomCapability/js/html/Scenario1_MeteringData.html diff --git a/Samples/CustomCapability/js/html/scenario2_deviceConnect.html b/archived/CustomCapability/js/html/scenario2_deviceConnect.html similarity index 100% rename from Samples/CustomCapability/js/html/scenario2_deviceConnect.html rename to archived/CustomCapability/js/html/scenario2_deviceConnect.html diff --git a/Samples/CustomCapability/js/html/scenario3_deviceIO.html b/archived/CustomCapability/js/html/scenario3_deviceIO.html similarity index 100% rename from Samples/CustomCapability/js/html/scenario3_deviceIO.html rename to archived/CustomCapability/js/html/scenario3_deviceIO.html diff --git a/Samples/CustomCapability/js/html/scenario4_deviceEvents.html b/archived/CustomCapability/js/html/scenario4_deviceEvents.html similarity index 100% rename from Samples/CustomCapability/js/html/scenario4_deviceEvents.html rename to archived/CustomCapability/js/html/scenario4_deviceEvents.html diff --git a/Samples/CustomCapability/js/html/scenario5_deviceReadWrite.html b/archived/CustomCapability/js/html/scenario5_deviceReadWrite.html similarity index 100% rename from Samples/CustomCapability/js/html/scenario5_deviceReadWrite.html rename to archived/CustomCapability/js/html/scenario5_deviceReadWrite.html diff --git a/Samples/CustomCapability/js/html/scenario6_customTrigger.html b/archived/CustomCapability/js/html/scenario6_customTrigger.html similarity index 100% rename from Samples/CustomCapability/js/html/scenario6_customTrigger.html rename to archived/CustomCapability/js/html/scenario6_customTrigger.html diff --git a/Samples/CustomCapability/js/html/scenario7_firmwareAccess.html b/archived/CustomCapability/js/html/scenario7_firmwareAccess.html similarity index 100% rename from Samples/CustomCapability/js/html/scenario7_firmwareAccess.html rename to archived/CustomCapability/js/html/scenario7_firmwareAccess.html diff --git a/Samples/CustomCapability/js/js/Scenario1_MeteringData.js b/archived/CustomCapability/js/js/Scenario1_MeteringData.js similarity index 100% rename from Samples/CustomCapability/js/js/Scenario1_MeteringData.js rename to archived/CustomCapability/js/js/Scenario1_MeteringData.js diff --git a/Samples/CustomCapability/js/js/deviceList.js b/archived/CustomCapability/js/js/deviceList.js similarity index 100% rename from Samples/CustomCapability/js/js/deviceList.js rename to archived/CustomCapability/js/js/deviceList.js diff --git a/Samples/CustomCapability/js/js/fx2Driver.js b/archived/CustomCapability/js/js/fx2Driver.js similarity index 100% rename from Samples/CustomCapability/js/js/fx2Driver.js rename to archived/CustomCapability/js/js/fx2Driver.js diff --git a/Samples/CustomCapability/js/js/sample-configuration.js b/archived/CustomCapability/js/js/sample-configuration.js similarity index 100% rename from Samples/CustomCapability/js/js/sample-configuration.js rename to archived/CustomCapability/js/js/sample-configuration.js diff --git a/Samples/CustomCapability/js/js/scenario2_deviceConnect.js b/archived/CustomCapability/js/js/scenario2_deviceConnect.js similarity index 100% rename from Samples/CustomCapability/js/js/scenario2_deviceConnect.js rename to archived/CustomCapability/js/js/scenario2_deviceConnect.js diff --git a/Samples/CustomCapability/js/js/scenario3_deviceIO.js b/archived/CustomCapability/js/js/scenario3_deviceIO.js similarity index 100% rename from Samples/CustomCapability/js/js/scenario3_deviceIO.js rename to archived/CustomCapability/js/js/scenario3_deviceIO.js diff --git a/Samples/CustomCapability/js/js/scenario4_deviceEvents.js b/archived/CustomCapability/js/js/scenario4_deviceEvents.js similarity index 100% rename from Samples/CustomCapability/js/js/scenario4_deviceEvents.js rename to archived/CustomCapability/js/js/scenario4_deviceEvents.js diff --git a/Samples/CustomCapability/js/js/scenario5_deviceReadWrite.js b/archived/CustomCapability/js/js/scenario5_deviceReadWrite.js similarity index 100% rename from Samples/CustomCapability/js/js/scenario5_deviceReadWrite.js rename to archived/CustomCapability/js/js/scenario5_deviceReadWrite.js diff --git a/Samples/CustomCapability/js/js/scenario6_customTrigger.js b/archived/CustomCapability/js/js/scenario6_customTrigger.js similarity index 100% rename from Samples/CustomCapability/js/js/scenario6_customTrigger.js rename to archived/CustomCapability/js/js/scenario6_customTrigger.js diff --git a/Samples/CustomCapability/js/js/scenario7_firmwareAccess.js b/archived/CustomCapability/js/js/scenario7_firmwareAccess.js similarity index 100% rename from Samples/CustomCapability/js/js/scenario7_firmwareAccess.js rename to archived/CustomCapability/js/js/scenario7_firmwareAccess.js diff --git a/Samples/CustomCapability/js/package.appxmanifest b/archived/CustomCapability/js/package.appxmanifest similarity index 100% rename from Samples/CustomCapability/js/package.appxmanifest rename to archived/CustomCapability/js/package.appxmanifest diff --git a/archived/CustomSensors/README.md b/archived/CustomSensors/README.md new file mode 100644 index 0000000000..33be9072da --- /dev/null +++ b/archived/CustomSensors/README.md @@ -0,0 +1,59 @@ +--- +topic: sample +languages: +- js +products: +- windows +- windows-uwp +--- + +# Custom sensors sample + +Shows how to use the [Windows.Devices.Sensors.Custom](https://msdn.microsoft.com/library/windows/apps/windows.devices.sensors.custom.aspx) namespace. + +> **Note:** This sample is part of a large collection of UWP feature samples. +> If you are unfamiliar with Git and GitHub, you can download the entire collection as a +> [ZIP file](https://github.com/Microsoft/Windows-universal-samples/archive/master.zip), but be +> sure to unzip everything to access shared dependencies. For more info on working with the ZIP file, +> the samples collection, and GitHub, see [Get the UWP samples from GitHub](https://aka.ms/ovu2uq). +> For more samples, see the [Samples portal](https://aka.ms/winsamples) on the Windows Dev Center. + +This sample allows the user to view the CO2 level for custom sensor based CO2 sensor. You can choose one of two scenarios: + +- Custom sensor data events +- Polling custom sensor readings + +### Custom Sensor Data Events + +When you click on the **Enable** button for the **Data Events** option, the app will begin streaming Custom Sensor readings in real time. + +### Polling Custom Sensor Readings + +When you click on the **Get CO2 level** button for the **Polling** option, the app will retrieve the current sensor readings. + +## System requirements + +**Client:** Windows 10 + +**Server:** Windows Server 2016 Technical Preview + +**Phone:** Windows 10 + +## Build the sample + +1. If you download the samples ZIP, be sure to unzip the entire archive, not just the folder with the sample you want to build. +2. Start Microsoft Visual Studio 2017 and select **File** \> **Open** \> **Project/Solution**. +3. Starting in the folder where you unzipped the samples, go to the Samples subfolder, then the subfolder for this specific sample, then the subfolder for your preferred language (C++, C#, or JavaScript). Double-click the Visual Studio Solution (.sln) file. +4. Press Ctrl+Shift+B, or select **Build** \> **Build Solution**. + +## Run the sample + +The next steps depend on whether you just want to deploy the sample or you want to both deploy and run it. + +### Deploying the sample + +- Select Build > Deploy Solution. + +### Deploying and running the sample + +- To debug the sample and then run it, press F5 or select Debug > Start Debugging. To run the sample without debugging, press Ctrl+F5 or selectDebug > Start Without Debugging. diff --git a/Samples/CustomSensors/js/CustomSensor.jsproj b/archived/CustomSensors/js/CustomSensor.jsproj similarity index 81% rename from Samples/CustomSensors/js/CustomSensor.jsproj rename to archived/CustomSensors/js/CustomSensor.jsproj index aaee317684..9b40413053 100644 --- a/Samples/CustomSensors/js/CustomSensor.jsproj +++ b/archived/CustomSensors/js/CustomSensor.jsproj @@ -56,7 +56,7 @@ - + default.html @@ -82,52 +82,52 @@ images\windows-sdk.png - + js\default.js - + css\default.css - + Microsoft.WinJS.4.0\css\ui-dark.css - + Microsoft.WinJS.4.0\css\ui-light.css - + Microsoft.WinJS.4.0\js\en-US\ui.strings.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense-setup.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense.js - + Microsoft.WinJS.4.0\fonts\Symbols.ttf - + Microsoft.WinJS.4.0\js\base.js - + Microsoft.WinJS.4.0\js\ui.js - + sample-utils\footer.html - + sample-utils\header.html - + sample-utils\sample-utils.js - + sample-utils\scenario-select.css - + sample-utils\scenario-select.html diff --git a/Samples/CustomSensors/js/CustomSensor.sln b/archived/CustomSensors/js/CustomSensor.sln similarity index 100% rename from Samples/CustomSensors/js/CustomSensor.sln rename to archived/CustomSensors/js/CustomSensor.sln diff --git a/Samples/CustomSensors/js/Microsoft.WinJS.4.0/css/placeholder.txt b/archived/CustomSensors/js/Microsoft.WinJS.4.0/css/placeholder.txt similarity index 100% rename from Samples/CustomSensors/js/Microsoft.WinJS.4.0/css/placeholder.txt rename to archived/CustomSensors/js/Microsoft.WinJS.4.0/css/placeholder.txt diff --git a/Samples/CustomSensors/js/Microsoft.WinJS.4.0/fonts/placeholder b/archived/CustomSensors/js/Microsoft.WinJS.4.0/fonts/placeholder similarity index 100% rename from Samples/CustomSensors/js/Microsoft.WinJS.4.0/fonts/placeholder rename to archived/CustomSensors/js/Microsoft.WinJS.4.0/fonts/placeholder diff --git a/Samples/CustomSensors/js/Microsoft.WinJS.4.0/js/en-us/placeholder.txt b/archived/CustomSensors/js/Microsoft.WinJS.4.0/js/en-us/placeholder.txt similarity index 100% rename from Samples/CustomSensors/js/Microsoft.WinJS.4.0/js/en-us/placeholder.txt rename to archived/CustomSensors/js/Microsoft.WinJS.4.0/js/en-us/placeholder.txt diff --git a/Samples/CustomSensors/js/Package.appxmanifest b/archived/CustomSensors/js/Package.appxmanifest similarity index 100% rename from Samples/CustomSensors/js/Package.appxmanifest rename to archived/CustomSensors/js/Package.appxmanifest diff --git a/Samples/CustomSensors/js/css/scenario1_DataEvents.css b/archived/CustomSensors/js/css/scenario1_DataEvents.css similarity index 100% rename from Samples/CustomSensors/js/css/scenario1_DataEvents.css rename to archived/CustomSensors/js/css/scenario1_DataEvents.css diff --git a/Samples/CustomSensors/js/css/scenario2_Polling.css b/archived/CustomSensors/js/css/scenario2_Polling.css similarity index 100% rename from Samples/CustomSensors/js/css/scenario2_Polling.css rename to archived/CustomSensors/js/css/scenario2_Polling.css diff --git a/Samples/CustomSensors/js/html/scenario1_DataEvents.html b/archived/CustomSensors/js/html/scenario1_DataEvents.html similarity index 100% rename from Samples/CustomSensors/js/html/scenario1_DataEvents.html rename to archived/CustomSensors/js/html/scenario1_DataEvents.html diff --git a/Samples/CustomSensors/js/html/scenario2_Polling.html b/archived/CustomSensors/js/html/scenario2_Polling.html similarity index 100% rename from Samples/CustomSensors/js/html/scenario2_Polling.html rename to archived/CustomSensors/js/html/scenario2_Polling.html diff --git a/Samples/CustomSensors/js/js/sample-configuration.js b/archived/CustomSensors/js/js/sample-configuration.js similarity index 100% rename from Samples/CustomSensors/js/js/sample-configuration.js rename to archived/CustomSensors/js/js/sample-configuration.js diff --git a/Samples/CustomSensors/js/js/scenario1_DataEvents.js b/archived/CustomSensors/js/js/scenario1_DataEvents.js similarity index 100% rename from Samples/CustomSensors/js/js/scenario1_DataEvents.js rename to archived/CustomSensors/js/js/scenario1_DataEvents.js diff --git a/Samples/CustomSensors/js/js/scenario2_Polling.js b/archived/CustomSensors/js/js/scenario2_Polling.js similarity index 100% rename from Samples/CustomSensors/js/js/scenario2_Polling.js rename to archived/CustomSensors/js/js/scenario2_Polling.js diff --git a/Samples/CustomSensors/js/sample-utils/placeholder.txt b/archived/CustomSensors/js/sample-utils/placeholder.txt similarity index 100% rename from Samples/CustomSensors/js/sample-utils/placeholder.txt rename to archived/CustomSensors/js/sample-utils/placeholder.txt diff --git a/archived/CustomSerialDeviceAccess/README.md b/archived/CustomSerialDeviceAccess/README.md new file mode 100644 index 0000000000..afa3df3718 --- /dev/null +++ b/archived/CustomSerialDeviceAccess/README.md @@ -0,0 +1,60 @@ +--- +topic: sample +languages: +- js +products: +- windows +- windows-uwp +--- + +# Custom serial device sample + +Shows how to use the [Windows.Devices.SerialCommunication](https://msdn.microsoft.com/library/windows/apps/windows.devices.serialcommunication.aspx) +namespace to communicate with a serial device. + +> **Note:** This sample is part of a large collection of UWP feature samples. +> If you are unfamiliar with Git and GitHub, you can download the entire collection as a +> [ZIP file](https://github.com/Microsoft/Windows-universal-samples/archive/master.zip), but be +> sure to unzip everything to access shared dependencies. For more info on working with the ZIP file, +> the samples collection, and GitHub, see [Get the UWP samples from GitHub](https://aka.ms/ovu2uq). +> For more samples, see the [Samples portal](https://aka.ms/winsamples) on the Windows Dev Center. + +This sample allows the user to configure and communicate with a Serial device. You can choose one of four scenarios: + +- Connect/Disconnect using Device Selection list +- Configure the Serial device +- Communicate with the Serial device +- Register for Events on the Serial device + +**Connect/Disconnect using Device Selection list** + +When the application starts, a list of available Serial devices matching the search criterion specified by the application is displayer along with options to Connect/Disconnect to/from a selected device. + +**Configure the Serial device** + +This scenario demonstrates the use of various Get/Set property APIs in order to query for/alter Serial device properties such as Baud Rate, Stop Bits etc. + +**Communicate with the Serial device** + +This scenario demonstrates the use of Input and Output streams on the SerialDevice object in order to communicate with the Serial device. + +**Register for Events on the Serial device** + +This scenario demonstrates the use of event notification APIs provided by Windows.Devices.SerialCommunication for **Pin Changed** and **Error Received** event types. + +## Operating system requirements + +**Client:** Windows 10 + +**Server:** Windows Server 2016 Technical Preview + +## Build the sample + +1. If you download the samples ZIP, be sure to unzip the entire archive, not just the folder with the sample you want to build. +2. Start Microsoft Visual Studio 2017 and select **File** \> **Open** \> **Project/Solution**. +3. Starting in the folder where you unzipped the samples, go to the Samples subfolder, then the subfolder for this specific sample, then the subfolder for your preferred language (C++, C#, or JavaScript). Double-click the Visual Studio Solution (.sln) file. +4. Press Ctrl+Shift+B, or select **Build** \> **Build Solution**. + +## Run the sample + +To run this sample after building it, press F5 (run with debugging enabled) or Ctrl+F5 (run without debugging enabled) from Visual Studio. (Or select the corresponding options from the Debug menu.) diff --git a/Samples/CustomSerialDeviceAccess/js/CustomSerialDeviceAccess.jsproj b/archived/CustomSerialDeviceAccess/js/CustomSerialDeviceAccess.jsproj similarity index 82% rename from Samples/CustomSerialDeviceAccess/js/CustomSerialDeviceAccess.jsproj rename to archived/CustomSerialDeviceAccess/js/CustomSerialDeviceAccess.jsproj index 1b72806be3..194a7d3c19 100644 --- a/Samples/CustomSerialDeviceAccess/js/CustomSerialDeviceAccess.jsproj +++ b/archived/CustomSerialDeviceAccess/js/CustomSerialDeviceAccess.jsproj @@ -58,7 +58,7 @@ - + default.html @@ -87,10 +87,10 @@ images\windows-sdk.png - + js\default.js - + css\default.css @@ -101,43 +101,43 @@ - + Microsoft.WinJS.4.0\css\ui-dark.css - + Microsoft.WinJS.4.0\css\ui-light.css - + Microsoft.WinJS.4.0\js\en-US\ui.strings.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense-setup.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense.js - + Microsoft.WinJS.4.0\fonts\Symbols.ttf - + Microsoft.WinJS.4.0\js\base.js - + Microsoft.WinJS.4.0\js\ui.js - + sample-utils\footer.html - + sample-utils\header.html - + sample-utils\sample-utils.js - + sample-utils\scenario-select.css - + sample-utils\scenario-select.html diff --git a/Samples/CustomSerialDeviceAccess/js/CustomSerialDeviceAccess.sln b/archived/CustomSerialDeviceAccess/js/CustomSerialDeviceAccess.sln similarity index 100% rename from Samples/CustomSerialDeviceAccess/js/CustomSerialDeviceAccess.sln rename to archived/CustomSerialDeviceAccess/js/CustomSerialDeviceAccess.sln diff --git a/Samples/CustomSerialDeviceAccess/js/Microsoft.WinJS.4.0/css/placeholder.txt b/archived/CustomSerialDeviceAccess/js/Microsoft.WinJS.4.0/css/placeholder.txt similarity index 100% rename from Samples/CustomSerialDeviceAccess/js/Microsoft.WinJS.4.0/css/placeholder.txt rename to archived/CustomSerialDeviceAccess/js/Microsoft.WinJS.4.0/css/placeholder.txt diff --git a/Samples/CustomSerialDeviceAccess/js/Microsoft.WinJS.4.0/fonts/placeholder b/archived/CustomSerialDeviceAccess/js/Microsoft.WinJS.4.0/fonts/placeholder similarity index 100% rename from Samples/CustomSerialDeviceAccess/js/Microsoft.WinJS.4.0/fonts/placeholder rename to archived/CustomSerialDeviceAccess/js/Microsoft.WinJS.4.0/fonts/placeholder diff --git a/Samples/CustomSerialDeviceAccess/js/Microsoft.WinJS.4.0/js/en-us/placeholder.txt b/archived/CustomSerialDeviceAccess/js/Microsoft.WinJS.4.0/js/en-us/placeholder.txt similarity index 100% rename from Samples/CustomSerialDeviceAccess/js/Microsoft.WinJS.4.0/js/en-us/placeholder.txt rename to archived/CustomSerialDeviceAccess/js/Microsoft.WinJS.4.0/js/en-us/placeholder.txt diff --git a/Samples/CustomSerialDeviceAccess/js/Package.appxmanifest b/archived/CustomSerialDeviceAccess/js/Package.appxmanifest similarity index 100% rename from Samples/CustomSerialDeviceAccess/js/Package.appxmanifest rename to archived/CustomSerialDeviceAccess/js/Package.appxmanifest diff --git a/Samples/CustomSerialDeviceAccess/js/css/scenario1_connectDisconnect.css b/archived/CustomSerialDeviceAccess/js/css/scenario1_connectDisconnect.css similarity index 100% rename from Samples/CustomSerialDeviceAccess/js/css/scenario1_connectDisconnect.css rename to archived/CustomSerialDeviceAccess/js/css/scenario1_connectDisconnect.css diff --git a/Samples/CustomSerialDeviceAccess/js/css/scenario2_configureDevice.css b/archived/CustomSerialDeviceAccess/js/css/scenario2_configureDevice.css similarity index 100% rename from Samples/CustomSerialDeviceAccess/js/css/scenario2_configureDevice.css rename to archived/CustomSerialDeviceAccess/js/css/scenario2_configureDevice.css diff --git a/Samples/CustomSerialDeviceAccess/js/css/scenario3_readWrite.css b/archived/CustomSerialDeviceAccess/js/css/scenario3_readWrite.css similarity index 100% rename from Samples/CustomSerialDeviceAccess/js/css/scenario3_readWrite.css rename to archived/CustomSerialDeviceAccess/js/css/scenario3_readWrite.css diff --git a/Samples/CustomSerialDeviceAccess/js/css/scenario4_events.css b/archived/CustomSerialDeviceAccess/js/css/scenario4_events.css similarity index 100% rename from Samples/CustomSerialDeviceAccess/js/css/scenario4_events.css rename to archived/CustomSerialDeviceAccess/js/css/scenario4_events.css diff --git a/Samples/CustomSerialDeviceAccess/js/html/scenario1_connectDisconnect.html b/archived/CustomSerialDeviceAccess/js/html/scenario1_connectDisconnect.html similarity index 100% rename from Samples/CustomSerialDeviceAccess/js/html/scenario1_connectDisconnect.html rename to archived/CustomSerialDeviceAccess/js/html/scenario1_connectDisconnect.html diff --git a/Samples/CustomSerialDeviceAccess/js/html/scenario2_configureDevice.html b/archived/CustomSerialDeviceAccess/js/html/scenario2_configureDevice.html similarity index 100% rename from Samples/CustomSerialDeviceAccess/js/html/scenario2_configureDevice.html rename to archived/CustomSerialDeviceAccess/js/html/scenario2_configureDevice.html diff --git a/Samples/CustomSerialDeviceAccess/js/html/scenario3_readWrite.html b/archived/CustomSerialDeviceAccess/js/html/scenario3_readWrite.html similarity index 100% rename from Samples/CustomSerialDeviceAccess/js/html/scenario3_readWrite.html rename to archived/CustomSerialDeviceAccess/js/html/scenario3_readWrite.html diff --git a/Samples/CustomSerialDeviceAccess/js/html/scenario4_events.html b/archived/CustomSerialDeviceAccess/js/html/scenario4_events.html similarity index 100% rename from Samples/CustomSerialDeviceAccess/js/html/scenario4_events.html rename to archived/CustomSerialDeviceAccess/js/html/scenario4_events.html diff --git a/Samples/CustomSerialDeviceAccess/js/js/constants.js b/archived/CustomSerialDeviceAccess/js/js/constants.js similarity index 100% rename from Samples/CustomSerialDeviceAccess/js/js/constants.js rename to archived/CustomSerialDeviceAccess/js/js/constants.js diff --git a/Samples/CustomSerialDeviceAccess/js/js/deviceListEntry.js b/archived/CustomSerialDeviceAccess/js/js/deviceListEntry.js similarity index 100% rename from Samples/CustomSerialDeviceAccess/js/js/deviceListEntry.js rename to archived/CustomSerialDeviceAccess/js/js/deviceListEntry.js diff --git a/Samples/CustomSerialDeviceAccess/js/js/eventHandlerForDevice.js b/archived/CustomSerialDeviceAccess/js/js/eventHandlerForDevice.js similarity index 100% rename from Samples/CustomSerialDeviceAccess/js/js/eventHandlerForDevice.js rename to archived/CustomSerialDeviceAccess/js/js/eventHandlerForDevice.js diff --git a/Samples/CustomSerialDeviceAccess/js/js/sample-configuration.js b/archived/CustomSerialDeviceAccess/js/js/sample-configuration.js similarity index 100% rename from Samples/CustomSerialDeviceAccess/js/js/sample-configuration.js rename to archived/CustomSerialDeviceAccess/js/js/sample-configuration.js diff --git a/Samples/CustomSerialDeviceAccess/js/js/scenario1_connectDisconnect.js b/archived/CustomSerialDeviceAccess/js/js/scenario1_connectDisconnect.js similarity index 100% rename from Samples/CustomSerialDeviceAccess/js/js/scenario1_connectDisconnect.js rename to archived/CustomSerialDeviceAccess/js/js/scenario1_connectDisconnect.js diff --git a/Samples/CustomSerialDeviceAccess/js/js/scenario2_configureDevice.js b/archived/CustomSerialDeviceAccess/js/js/scenario2_configureDevice.js similarity index 100% rename from Samples/CustomSerialDeviceAccess/js/js/scenario2_configureDevice.js rename to archived/CustomSerialDeviceAccess/js/js/scenario2_configureDevice.js diff --git a/Samples/CustomSerialDeviceAccess/js/js/scenario3_readWrite.js b/archived/CustomSerialDeviceAccess/js/js/scenario3_readWrite.js similarity index 100% rename from Samples/CustomSerialDeviceAccess/js/js/scenario3_readWrite.js rename to archived/CustomSerialDeviceAccess/js/js/scenario3_readWrite.js diff --git a/Samples/CustomSerialDeviceAccess/js/js/scenario4_events.js b/archived/CustomSerialDeviceAccess/js/js/scenario4_events.js similarity index 100% rename from Samples/CustomSerialDeviceAccess/js/js/scenario4_events.js rename to archived/CustomSerialDeviceAccess/js/js/scenario4_events.js diff --git a/Samples/CustomSerialDeviceAccess/js/js/utilities.js b/archived/CustomSerialDeviceAccess/js/js/utilities.js similarity index 100% rename from Samples/CustomSerialDeviceAccess/js/js/utilities.js rename to archived/CustomSerialDeviceAccess/js/js/utilities.js diff --git a/Samples/CustomSerialDeviceAccess/js/sample-utils/placeholder.txt b/archived/CustomSerialDeviceAccess/js/sample-utils/placeholder.txt similarity index 100% rename from Samples/CustomSerialDeviceAccess/js/sample-utils/placeholder.txt rename to archived/CustomSerialDeviceAccess/js/sample-utils/placeholder.txt diff --git a/archived/CustomUsbDeviceAccess/README.md b/archived/CustomUsbDeviceAccess/README.md new file mode 100644 index 0000000000..659d023cc2 --- /dev/null +++ b/archived/CustomUsbDeviceAccess/README.md @@ -0,0 +1,223 @@ +--- +topic: sample +languages: +- js +products: +- windows +- windows-uwp +--- + +# Custom USB device sample + +Shows how to communicate with a USB device by using the [Windows.Devices.Usb](http://msdn.microsoft.com/library/windows/apps/dn278466) namespace. + +> **Note:** This sample is part of a large collection of UWP feature samples. +> If you are unfamiliar with Git and GitHub, you can download the entire collection as a +> [ZIP file](https://github.com/Microsoft/Windows-universal-samples/archive/master.zip), but be +> sure to unzip everything to access shared dependencies. For more info on working with the ZIP file, +> the samples collection, and GitHub, see [Get the UWP samples from GitHub](https://aka.ms/ovu2uq). +> For more samples, see the [Samples portal](https://aka.ms/winsamples) on the Windows Dev Center. + +The sample can communicate with these devices: + +- The OSR USB FX2 learning kit. You can get the learning kit from [OSR Online](http://www.osronline.com/). +- The SuperMUTT device. You can purchase the device from [JJG Technologies](http://jjgtechnologies.com/mutt.htm). You must update the device firmware before using it (discussed later). + +The sample demonstrates these key scenarios: + +- [How to connect to a USB device](http://msdn.microsoft.com/library/windows/apps/dn303343) +- [How to send a USB control transfer](http://msdn.microsoft.com/library/windows/apps/dn303347) +- [How to send a USB interrupt transfer](http://msdn.microsoft.com/library/windows/apps/dn303348) +- [How to send a USB bulk transfer](http://msdn.microsoft.com/library/windows/apps/dn303346) +- [How to get USB descriptors](http://msdn.microsoft.com/library/windows/apps/dn303344) +- [How to select a USB interface setting](http://msdn.microsoft.com/library/windows/apps/dn303345) +- How to handle app suspension and resume events + +For step-by-step instructions about implementing USB features in a Windows Runtime app, see [Talking to USB devices, start to finish](http://msdn.microsoft.com/library/windows/apps/dn312121) and [Writing a Windows store app for a USB device](http://msdn.microsoft.com/library/windows/apps/dn303355). + +## Code Structure + +* **App** + + Invoked when the sample app is activated. The OnActivated implementation causes the app to get launched when the device is connected to the system. When the app is activated, the user is shown information about which device launched the app. + +* **DeviceListEntry** + + This class stores [DeviceInformation](http://msdn.microsoft.com/library/windows/apps/br225393) objects associated with each device, dynamically detected by the [DeviceWatcher](http://msdn.microsoft.com/library/windows/apps/br225446) object. This class is used by the UI to display device-specific information. For example, the UI uses this class to get the device interface path so that the user can identify the device and use it for data transfers. + +* **EventHandlerForDevice** + + This class implements all event handlers required by the sample app. There two types of events that the app handles: + + - App events: + + Windows can suspend, resume, or terminate an app as a result of a change in system state or user action. Windows notifies the app about the state through **Suspending** and **Resuming** events. By implementing handlers, the app can save app or session data before the state changes. In the sample, the app stops all [DeviceWatcher](http://msdn.microsoft.com/library/windows/apps/br225446) objects on suspension. Otherwise, **DeviceWatcher** continues to raise events even when the app is suspended. On resume, the app starts them. + + In order to serialize events, on suspension, this class calls a registered callback (provided by a scenario). That allows the app to respond to app suspension before the app closes the device. + + Additionally, when an app suspends, the API releases the [UsbDevice](http://msdn.microsoft.com/library/windows/apps/dn263883) object. To avoid using a stale reference on resume, the sample explicitly closes the device in its **Suspending** event handler. In the **Resuming** handler, the sample opens a handle to the device and obtains a new reference to the **UsbDevice** object. + + - [DeviceWatcher](http://msdn.microsoft.com/library/windows/apps/br225446) events: + + The sample registers for these [DeviceWatcher](http://msdn.microsoft.com/library/windows/apps/br225446) events: [Added](http://msdn.microsoft.com/library/windows/apps/br225450), [Removed](http://msdn.microsoft.com/library/windows/apps/br225453), and [EnumerationCompleted](http://msdn.microsoft.com/library/windows/apps/br225451). Detects when the current connected device is removed or reconnected. It then opens the device and obtains a [UsbDevice](http://msdn.microsoft.com/library/windows/apps/dn263883) reference and releases that reference on disconnect. + + The app calls the when EventHandlerForDevice:OpenAsync to open the device. The class also handles the surprise remove event. When the physical device is device unplugged, the [UsbDevice](http://msdn.microsoft.com/library/windows/apps/dn263883) is released. On reconnect, EventHandlerForDevice opens the device again. + + The class also holds a reference to the currently connected device for which the class handles events. The app can get a reference to the EventHandlerForDevice singleton and can access the [UsbDevice](http://msdn.microsoft.com/library/windows/apps/dn263883) by using EventHandlerForDevice::Current-\>Device. + +* **Scenario1\_DeviceConnect** + + This class implements methods that use the [DeviceWatcher](http://msdn.microsoft.com/library/windows/apps/br225446) object to dynamically detect devices (see EventHandlerForDevice). That reference is used through the sample to interact with the device. When finished, the sample closes the device by releasing that reference. + + When the class is instantiated, the app creates [DeviceWatcher](http://msdn.microsoft.com/library/windows/apps/br225446) objects for SuperMUTT and OSRFX2 devices. Those types of devices are detected by their respective **DeviceWatcher** objects. + +* **Scenario2\_ControlTransfer** + + This class implements methods that demonstrate how to initialize USB setup packets and send control transfers to the device. The sample changes the blink pattern (SuperMUTT) and seven segment display (OSRFX2) by using control transfers. + +* **Scenario3\_InterruptPipes** + + This class implements methods that write to a USB interrupt pipe (only applies to SuperMUTT)and read from another interrupt pipe as data arrives in the pipe. To read data, the sample registers an event handler that gets invoked every time there is data to read. In the sample's event handler, it reads the received data and displays number of times it read data. + +* **Scenario4\_BulkPipes** + + The class implements methods to read and write data to and from USB bulk pipes. The sample demonstrates how to start and cancel asynchronous operations for bulk transfers. After the transfer is complete, the sample displays the number of bytes read or written. Data is read and written by using [DataReader](http://msdn.microsoft.com/library/windows/apps/br208119) and [DataWriter](http://msdn.microsoft.com/library/windows/apps/br208154) objects. + +* **Scenario5\_UsbDescriptors** + + The class implements methods that display all USB descriptors associated with the current device. The sample displays the device descriptor, configuration descriptor, interface descriptors for all settings and their endpoint descriptors. + + It also shows how to obtain the entire USB configuration descriptor as a raw descriptor and use the [DataReader](http://msdn.microsoft.com/library/windows/apps/br208119) to read bytes from the descriptor. + +* **Scenario6\_InterfaceSettings** + + This class implements methods that demonstrate how to enumerate USB alternate settings for an interface, get an active setting and, select an alternate setting. Selecting an alternate setting applies to the SuperMUTT device. Retrieving number of interface settings (drop down list) and getting active interface setting applies to OSRFX2 and SuperMUTT devices. + +* **Scenario7\_SyncDevice** + + This class implements methods that syncs data with the device in a background task. Because only one process can access [UsbDevice](http://msdn.microsoft.com/library/windows/apps/dn263883) object, the app closes the previous reference obtained in Scenario1\_DeviceConnect and opens the device again after the task is complete. Sync completion is is notified though a registered callback registered by the app. + + For more information, see [this topic](http://go.microsoft.com/fwlink/p/?linkid=306314) about sync-ing with a device. + +## App manifest package + +The sample adds the [DeviceCapability](http://msdn.microsoft.com/library/windows/apps/br211430) element in the Package.appxmanifest file. Device information includes the device's vendor/product Ids and device class information. For OSRFX2 and SuperMUTT devices, the device class is specified by indicating the device class code and a string for the code. + +``` {.syntax xml:space="preserve"} + + + + + + + + + + + + + + + +``` + +## Related technologies + +* [Windows.Devices.Usb](http://msdn.microsoft.com/library/windows/apps/dn278466) + + Provides Windows Runtime classes and enumerations that a Windows store app can use to communicate with an external USB device that uses WinUSB (Winusb.sys) as the device driver. + +* [Windows.Devices.Enumeration](http://msdn.microsoft.com/library/windows/apps/br225459) + + Provides Windows Runtime classes for device discovery and notifications about devices for apps that use them. [Windows.ApplicationModel.Background](http://msdn.microsoft.com/library/windows/apps/br224847) + +* [Windows.ApplicationModel.Background](http://msdn.microsoft.com/library/windows/apps/br224847) + + Enables an app to schedule background tasks to run app code even when the app is suspended. + +* [DeviceWatcher](http://msdn.microsoft.com/library/windows/apps/br225446) + + Enumerates devices dynamically, so that the app receives notifications if devices are added, removed, or changed after the initial enumeration is complete. + +* [DataReader](http://msdn.microsoft.com/library/windows/apps/br208119) + + Reads data from an input stream. Used for reading data from a USB pipe. + +* [DataWriter](http://msdn.microsoft.com/library/windows/apps/br208154) + + Writes data to an output stream. Used for writing data to a USB pipe. + +## Operating system requirements + +**Client:** Windows 10 + +**Server:** Windows Server 2016 Technical Preview + +## Driver requirements + +The sample app communicates with the device through the Microsoft-provided kernel-mode driver, Winusb.sys. You must install it as the device driver. + +Hardware manufacturers can specify Winusb.sys as the device driver in either of these two ways: + +- By providing a custom INF that references the Microsoft-provided Winusb.inf file. For more information, see [WinUSB (Winusb.sys) Installation](http://msdn.microsoft.com/library/windows/apps/ff540283). +- By setting Microsoft operating system (OS) feature descriptors that report the compatible ID as "WINUSB". In this case, Windows matches the compatible ID with the driver and automatically loads Winusb.sys as the device driver. For more information, see [WinUSB Device](http://msdn.microsoft.com/library/windows/apps/hh450799). + +When you connect your device, you might notice that Windows loads Winusb.sys automatically. Otherwise follow these instructions to load the driver: + +1. Open Device Manager and locate the device. +2. Right-click the device and select **Update driver software...** from the context menu. +3. In the wizard, select **Browse my computer for driver software**. +4. Select **Let me pick from a list of device drivers on my computer**. +5. From the list of device classes, select **Universal Serial Bus devices**. +6. The wizard displays **WinUsb Device**. Select it to load the driver. + +## If you are using the OSRFX2 device... + +The preceding procedure does not add a device interface GUID for the app to access the device. You must add the GUID manually by following this procedure. + +1. Load the driver as described in the preceding procedure. +2. Generate a device interface GUID for the OSRFX2 device, by using a tool such as guidgen.exe. +3. Find the registry key for your OSRFX2 device under this key. In this example, VID and PID of the device is VID\_0547&PID\_1002: + + **HKEY\_LOCAL\_MACHINE\\SYSTEM\\CurrentControlSet\\Enum\\USB\\VID\_0547&PID\_1002** + +4. Under the **Device Parameters** key, add a String registry entry named **DeviceInterfaceGUID** or a Multi-String entry named **DeviceInterfaceGUIDs**. Set the value to the GUID you generated in step 2. +5. Disconnect the device from the system and reconnect it to the same physical port. + + **Note** If you change the physical port then you must repeat steps 1 through 4. + +## If you are using the SuperMUTT device... + +Windows automatically loads Winusb.sys as the device driver. Otherwise, manually install the driver by using the preceding instructions. + +1. Download and install the [MUTT Software Package](http://msdn.microsoft.com/library/windows/hardware/jj590752.aspx). +2. Open a command prompt and run the MuttUtil tool included in the package. Use the tool to update the firmware: + + `MuttUtil.exe -forceupdatefirmware` + +3. By using the MuttUtil tool, change the device mode to WinRTUsbPersonality: + + `MuttUtil.exe -SetWinRTUsb` + + The SuperMUTT device when configured in WinRTUsbPersonality mode, exposes configuration, interfaces, and endpoints, that work with the sample. + +## Customizing the sample for your device + +You can extend this sample for your device by performing these tasks. + +1. Create a [DeviceWatcher](http://msdn.microsoft.com/library/windows/apps/br225446) object for your device in Scenario1\_DeviceConnect. +2. Add information about your device in the [DeviceCapability](http://msdn.microsoft.com/library/windows/apps/br211430) in the Package.appxmanifest file. The information must be added under the **DeviceCapability** element with **Name** attribute set to "usb". + + If you specify the device class code, make sure that it is supported. For a list of supported device classes see [How to add USB device capabilities to the app manifest](https://msdn.microsoft.com/library/windows/apps/dn303351). + +## Build the sample + +1. If you download the samples ZIP, be sure to unzip the entire archive, not just the folder with the sample you want to build. +2. Start Microsoft Visual Studio 2017 and select **File** \> **Open** \> **Project/Solution**. +3. Starting in the folder where you unzipped the samples, go to the Samples subfolder, then the subfolder for this specific sample, then the subfolder for your preferred language (C++, C#, or JavaScript). Double-click the Visual Studio Solution (.sln) file. +4. Press Ctrl+Shift+B, or select **Build** \> **Build Solution**. + +## Run the sample + +To run this sample after building it, press F5 (run with debugging enabled) or Ctrl+F5 (run without debugging enabled) from Visual Studio. (Or select the corresponding options from the Debug menu.) diff --git a/Samples/CustomUsbDeviceAccess/js/CustomUsbDeviceAccess.jsproj b/archived/CustomUsbDeviceAccess/js/CustomUsbDeviceAccess.jsproj similarity index 83% rename from Samples/CustomUsbDeviceAccess/js/CustomUsbDeviceAccess.jsproj rename to archived/CustomUsbDeviceAccess/js/CustomUsbDeviceAccess.jsproj index 021e379803..9575a53ab6 100644 --- a/Samples/CustomUsbDeviceAccess/js/CustomUsbDeviceAccess.jsproj +++ b/archived/CustomUsbDeviceAccess/js/CustomUsbDeviceAccess.jsproj @@ -61,7 +61,7 @@ - + default.html @@ -93,10 +93,10 @@ images\windows-sdk.png - + js\default.js - + css\default.css @@ -111,43 +111,43 @@ - + Microsoft.WinJS.4.0\css\ui-dark.css - + Microsoft.WinJS.4.0\css\ui-light.css - + Microsoft.WinJS.4.0\js\en-US\ui.strings.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense-setup.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense.js - + Microsoft.WinJS.4.0\fonts\Symbols.ttf - + Microsoft.WinJS.4.0\js\base.js - + Microsoft.WinJS.4.0\js\ui.js - + sample-utils\footer.html - + sample-utils\header.html - + sample-utils\sample-utils.js - + sample-utils\scenario-select.css - + sample-utils\scenario-select.html diff --git a/Samples/CustomUsbDeviceAccess/js/CustomUsbDeviceAccess.sln b/archived/CustomUsbDeviceAccess/js/CustomUsbDeviceAccess.sln similarity index 100% rename from Samples/CustomUsbDeviceAccess/js/CustomUsbDeviceAccess.sln rename to archived/CustomUsbDeviceAccess/js/CustomUsbDeviceAccess.sln diff --git a/Samples/CustomUsbDeviceAccess/js/Microsoft.WinJS.4.0/css/placeholder.txt b/archived/CustomUsbDeviceAccess/js/Microsoft.WinJS.4.0/css/placeholder.txt similarity index 100% rename from Samples/CustomUsbDeviceAccess/js/Microsoft.WinJS.4.0/css/placeholder.txt rename to archived/CustomUsbDeviceAccess/js/Microsoft.WinJS.4.0/css/placeholder.txt diff --git a/Samples/CustomUsbDeviceAccess/js/Microsoft.WinJS.4.0/fonts/placeholder b/archived/CustomUsbDeviceAccess/js/Microsoft.WinJS.4.0/fonts/placeholder similarity index 100% rename from Samples/CustomUsbDeviceAccess/js/Microsoft.WinJS.4.0/fonts/placeholder rename to archived/CustomUsbDeviceAccess/js/Microsoft.WinJS.4.0/fonts/placeholder diff --git a/Samples/CustomUsbDeviceAccess/js/Microsoft.WinJS.4.0/js/en-us/placeholder.txt b/archived/CustomUsbDeviceAccess/js/Microsoft.WinJS.4.0/js/en-us/placeholder.txt similarity index 100% rename from Samples/CustomUsbDeviceAccess/js/Microsoft.WinJS.4.0/js/en-us/placeholder.txt rename to archived/CustomUsbDeviceAccess/js/Microsoft.WinJS.4.0/js/en-us/placeholder.txt diff --git a/Samples/CustomUsbDeviceAccess/js/Package.appxmanifest b/archived/CustomUsbDeviceAccess/js/Package.appxmanifest similarity index 100% rename from Samples/CustomUsbDeviceAccess/js/Package.appxmanifest rename to archived/CustomUsbDeviceAccess/js/Package.appxmanifest diff --git a/Samples/CustomUsbDeviceAccess/js/css/scenario1_connectDisconnect.css b/archived/CustomUsbDeviceAccess/js/css/scenario1_connectDisconnect.css similarity index 100% rename from Samples/CustomUsbDeviceAccess/js/css/scenario1_connectDisconnect.css rename to archived/CustomUsbDeviceAccess/js/css/scenario1_connectDisconnect.css diff --git a/Samples/CustomUsbDeviceAccess/js/css/scenario2_controlTransfer.css b/archived/CustomUsbDeviceAccess/js/css/scenario2_controlTransfer.css similarity index 100% rename from Samples/CustomUsbDeviceAccess/js/css/scenario2_controlTransfer.css rename to archived/CustomUsbDeviceAccess/js/css/scenario2_controlTransfer.css diff --git a/Samples/CustomUsbDeviceAccess/js/css/scenario3_interruptPipes.css b/archived/CustomUsbDeviceAccess/js/css/scenario3_interruptPipes.css similarity index 100% rename from Samples/CustomUsbDeviceAccess/js/css/scenario3_interruptPipes.css rename to archived/CustomUsbDeviceAccess/js/css/scenario3_interruptPipes.css diff --git a/Samples/CustomUsbDeviceAccess/js/css/scenario4_bulkPipes.css b/archived/CustomUsbDeviceAccess/js/css/scenario4_bulkPipes.css similarity index 100% rename from Samples/CustomUsbDeviceAccess/js/css/scenario4_bulkPipes.css rename to archived/CustomUsbDeviceAccess/js/css/scenario4_bulkPipes.css diff --git a/Samples/CustomUsbDeviceAccess/js/css/scenario5_usbDescriptors.css b/archived/CustomUsbDeviceAccess/js/css/scenario5_usbDescriptors.css similarity index 100% rename from Samples/CustomUsbDeviceAccess/js/css/scenario5_usbDescriptors.css rename to archived/CustomUsbDeviceAccess/js/css/scenario5_usbDescriptors.css diff --git a/Samples/CustomUsbDeviceAccess/js/css/scenario6_interfaceSettings.css b/archived/CustomUsbDeviceAccess/js/css/scenario6_interfaceSettings.css similarity index 100% rename from Samples/CustomUsbDeviceAccess/js/css/scenario6_interfaceSettings.css rename to archived/CustomUsbDeviceAccess/js/css/scenario6_interfaceSettings.css diff --git a/Samples/CustomUsbDeviceAccess/js/css/scenario7_syncDevice.css b/archived/CustomUsbDeviceAccess/js/css/scenario7_syncDevice.css similarity index 100% rename from Samples/CustomUsbDeviceAccess/js/css/scenario7_syncDevice.css rename to archived/CustomUsbDeviceAccess/js/css/scenario7_syncDevice.css diff --git a/Samples/CustomUsbDeviceAccess/js/html/scenario1_connectDisconnect.html b/archived/CustomUsbDeviceAccess/js/html/scenario1_connectDisconnect.html similarity index 100% rename from Samples/CustomUsbDeviceAccess/js/html/scenario1_connectDisconnect.html rename to archived/CustomUsbDeviceAccess/js/html/scenario1_connectDisconnect.html diff --git a/Samples/CustomUsbDeviceAccess/js/html/scenario2_controlTransfer.html b/archived/CustomUsbDeviceAccess/js/html/scenario2_controlTransfer.html similarity index 100% rename from Samples/CustomUsbDeviceAccess/js/html/scenario2_controlTransfer.html rename to archived/CustomUsbDeviceAccess/js/html/scenario2_controlTransfer.html diff --git a/Samples/CustomUsbDeviceAccess/js/html/scenario3_interruptPipes.html b/archived/CustomUsbDeviceAccess/js/html/scenario3_interruptPipes.html similarity index 100% rename from Samples/CustomUsbDeviceAccess/js/html/scenario3_interruptPipes.html rename to archived/CustomUsbDeviceAccess/js/html/scenario3_interruptPipes.html diff --git a/Samples/CustomUsbDeviceAccess/js/html/scenario4_bulkPipes.html b/archived/CustomUsbDeviceAccess/js/html/scenario4_bulkPipes.html similarity index 100% rename from Samples/CustomUsbDeviceAccess/js/html/scenario4_bulkPipes.html rename to archived/CustomUsbDeviceAccess/js/html/scenario4_bulkPipes.html diff --git a/Samples/CustomUsbDeviceAccess/js/html/scenario5_usbDescriptors.html b/archived/CustomUsbDeviceAccess/js/html/scenario5_usbDescriptors.html similarity index 100% rename from Samples/CustomUsbDeviceAccess/js/html/scenario5_usbDescriptors.html rename to archived/CustomUsbDeviceAccess/js/html/scenario5_usbDescriptors.html diff --git a/Samples/CustomUsbDeviceAccess/js/html/scenario6_interfaceSettings.html b/archived/CustomUsbDeviceAccess/js/html/scenario6_interfaceSettings.html similarity index 100% rename from Samples/CustomUsbDeviceAccess/js/html/scenario6_interfaceSettings.html rename to archived/CustomUsbDeviceAccess/js/html/scenario6_interfaceSettings.html diff --git a/Samples/CustomUsbDeviceAccess/js/html/scenario7_syncDevice.html b/archived/CustomUsbDeviceAccess/js/html/scenario7_syncDevice.html similarity index 100% rename from Samples/CustomUsbDeviceAccess/js/html/scenario7_syncDevice.html rename to archived/CustomUsbDeviceAccess/js/html/scenario7_syncDevice.html diff --git a/Samples/CustomUsbDeviceAccess/js/js/constants.js b/archived/CustomUsbDeviceAccess/js/js/constants.js similarity index 100% rename from Samples/CustomUsbDeviceAccess/js/js/constants.js rename to archived/CustomUsbDeviceAccess/js/js/constants.js diff --git a/Samples/CustomUsbDeviceAccess/js/js/deviceListEntry.js b/archived/CustomUsbDeviceAccess/js/js/deviceListEntry.js similarity index 100% rename from Samples/CustomUsbDeviceAccess/js/js/deviceListEntry.js rename to archived/CustomUsbDeviceAccess/js/js/deviceListEntry.js diff --git a/Samples/CustomUsbDeviceAccess/js/js/eventHandlerForDevice.js b/archived/CustomUsbDeviceAccess/js/js/eventHandlerForDevice.js similarity index 100% rename from Samples/CustomUsbDeviceAccess/js/js/eventHandlerForDevice.js rename to archived/CustomUsbDeviceAccess/js/js/eventHandlerForDevice.js diff --git a/Samples/CustomUsbDeviceAccess/js/js/ioSyncBackgroundTask.js b/archived/CustomUsbDeviceAccess/js/js/ioSyncBackgroundTask.js similarity index 100% rename from Samples/CustomUsbDeviceAccess/js/js/ioSyncBackgroundTask.js rename to archived/CustomUsbDeviceAccess/js/js/ioSyncBackgroundTask.js diff --git a/Samples/CustomUsbDeviceAccess/js/js/sample-configuration.js b/archived/CustomUsbDeviceAccess/js/js/sample-configuration.js similarity index 100% rename from Samples/CustomUsbDeviceAccess/js/js/sample-configuration.js rename to archived/CustomUsbDeviceAccess/js/js/sample-configuration.js diff --git a/Samples/CustomUsbDeviceAccess/js/js/scenario1_connectDisconnect.js b/archived/CustomUsbDeviceAccess/js/js/scenario1_connectDisconnect.js similarity index 100% rename from Samples/CustomUsbDeviceAccess/js/js/scenario1_connectDisconnect.js rename to archived/CustomUsbDeviceAccess/js/js/scenario1_connectDisconnect.js diff --git a/Samples/CustomUsbDeviceAccess/js/js/scenario2_controlTransfer.js b/archived/CustomUsbDeviceAccess/js/js/scenario2_controlTransfer.js similarity index 100% rename from Samples/CustomUsbDeviceAccess/js/js/scenario2_controlTransfer.js rename to archived/CustomUsbDeviceAccess/js/js/scenario2_controlTransfer.js diff --git a/Samples/CustomUsbDeviceAccess/js/js/scenario3_interruptPipes.js b/archived/CustomUsbDeviceAccess/js/js/scenario3_interruptPipes.js similarity index 100% rename from Samples/CustomUsbDeviceAccess/js/js/scenario3_interruptPipes.js rename to archived/CustomUsbDeviceAccess/js/js/scenario3_interruptPipes.js diff --git a/Samples/CustomUsbDeviceAccess/js/js/scenario4_bulkPipes.js b/archived/CustomUsbDeviceAccess/js/js/scenario4_bulkPipes.js similarity index 100% rename from Samples/CustomUsbDeviceAccess/js/js/scenario4_bulkPipes.js rename to archived/CustomUsbDeviceAccess/js/js/scenario4_bulkPipes.js diff --git a/Samples/CustomUsbDeviceAccess/js/js/scenario5_usbDescriptors.js b/archived/CustomUsbDeviceAccess/js/js/scenario5_usbDescriptors.js similarity index 100% rename from Samples/CustomUsbDeviceAccess/js/js/scenario5_usbDescriptors.js rename to archived/CustomUsbDeviceAccess/js/js/scenario5_usbDescriptors.js diff --git a/Samples/CustomUsbDeviceAccess/js/js/scenario6_interfaceSettings.js b/archived/CustomUsbDeviceAccess/js/js/scenario6_interfaceSettings.js similarity index 100% rename from Samples/CustomUsbDeviceAccess/js/js/scenario6_interfaceSettings.js rename to archived/CustomUsbDeviceAccess/js/js/scenario6_interfaceSettings.js diff --git a/Samples/CustomUsbDeviceAccess/js/js/scenario7_syncDevice.js b/archived/CustomUsbDeviceAccess/js/js/scenario7_syncDevice.js similarity index 100% rename from Samples/CustomUsbDeviceAccess/js/js/scenario7_syncDevice.js rename to archived/CustomUsbDeviceAccess/js/js/scenario7_syncDevice.js diff --git a/Samples/CustomUsbDeviceAccess/js/js/utilities.js b/archived/CustomUsbDeviceAccess/js/js/utilities.js similarity index 100% rename from Samples/CustomUsbDeviceAccess/js/js/utilities.js rename to archived/CustomUsbDeviceAccess/js/js/utilities.js diff --git a/Samples/CustomUsbDeviceAccess/js/sample-utils/placeholder.txt b/archived/CustomUsbDeviceAccess/js/sample-utils/placeholder.txt similarity index 100% rename from Samples/CustomUsbDeviceAccess/js/sample-utils/placeholder.txt rename to archived/CustomUsbDeviceAccess/js/sample-utils/placeholder.txt diff --git a/archived/DataReaderWriter/README.md b/archived/DataReaderWriter/README.md new file mode 100644 index 0000000000..73eded9efb --- /dev/null +++ b/archived/DataReaderWriter/README.md @@ -0,0 +1,70 @@ +--- +topic: sample +languages: +- js +products: +- windows +- windows-uwp +--- + +# Serializing and deserializing data sample + +Shows how to use the [DataReader](http://msdn.microsoft.com/library/windows/apps/br208119) and +[DataWriter](http://msdn.microsoft.com/library/windows/apps/br208154) classes to store and retrieve data. + +> **Note:** This sample is part of a large collection of UWP feature samples. +> If you are unfamiliar with Git and GitHub, you can download the entire collection as a +> [ZIP file](https://github.com/Microsoft/Windows-universal-samples/archive/master.zip), but be +> sure to unzip everything to access shared dependencies. For more info on working with the ZIP file, +> the samples collection, and GitHub, see [Get the UWP samples from GitHub](https://aka.ms/ovu2uq). +> For more samples, see the [Samples portal](https://aka.ms/winsamples) on the Windows Dev Center. + +Specifically, this sample shows how to: + +- Create a memory-backed stream by using the [InMemoryRandomAccessStream](http://msdn.microsoft.com/library/windows/apps/br241720) class and storing strings by using a [DataWriter](http://msdn.microsoft.com/library/windows/apps/br208154) object. When the write operation completes, a [DataReader](http://msdn.microsoft.com/library/windows/apps/br208119) object extracts the stored strings from the stream and displays them. +- Open a sequential-access stream over an image by using the [OpenSequentialReadAsync](http://msdn.microsoft.com/library/windows/apps/hh701853) and [ReadBytes](http://msdn.microsoft.com/library/windows/apps/br208139) methods to retrieve and display its binary data. + +**Note** The Windows universal samples require Visual Studio 2017 to build and Windows 10 to execute. + +To obtain information about Windows 10 development, go to the [Windows Dev Center](http://go.microsoft.com/fwlink/?LinkID=532421) + +To obtain information about Microsoft Visual Studio and the tools for developing Windows apps, go to [Visual Studio](http://go.microsoft.com/fwlink/?LinkID=532422) + +## Related topics + +[DataReader](http://msdn.microsoft.com/library/windows/apps/br208119) +[DataWriter](http://msdn.microsoft.com/library/windows/apps/br208154) +[OpenSequentialReadAsync](http://msdn.microsoft.com/library/windows/apps/hh701853) +[InMemoryRandomAccessStream](http://msdn.microsoft.com/library/windows/apps/br241720) + +### Reference + +[Streams](http://msdn.microsoft.com/library/windows/apps/br241791) + +## System requirements + +**Client:** Windows 10 + +**Server:** Windows Server 2016 Technical Preview + +**Phone:** Windows 10 + +## Build the sample + +1. If you download the samples ZIP, be sure to unzip the entire archive, not just the folder with the sample you want to build. +2. Start Microsoft Visual Studio 2017 and select **File** \> **Open** \> **Project/Solution**. +3. Starting in the folder where you unzipped the samples, go to the Samples subfolder, then the subfolder for this specific sample, then the subfolder for your preferred language (C++, C#, or JavaScript). Double-click the Visual Studio Solution (.sln) file. +4. Press Ctrl+Shift+B, or select **Build** \> **Build Solution**. + +## Run the sample + +The next steps depend on whether you just want to deploy the sample or you want to both deploy and run it. + +### Deploying the sample + +- Select Build > Deploy Solution. + +### Deploying and running the sample + +- To debug the sample and then run it, press F5 or select Debug > Start Debugging. To run the sample without debugging, press Ctrl+F5 or selectDebug > Start Without Debugging. + diff --git a/Samples/DataReaderWriter/js/DataReaderWriter.jsproj b/archived/DataReaderWriter/js/DataReaderWriter.jsproj similarity index 80% rename from Samples/DataReaderWriter/js/DataReaderWriter.jsproj rename to archived/DataReaderWriter/js/DataReaderWriter.jsproj index 08bc9ded9d..f76de4caf2 100644 --- a/Samples/DataReaderWriter/js/DataReaderWriter.jsproj +++ b/archived/DataReaderWriter/js/DataReaderWriter.jsproj @@ -54,11 +54,11 @@ Designer - + css\default.css - + default.html @@ -84,49 +84,49 @@ images\windows-sdk.png - + js\default.js - + Microsoft.WinJS.4.0\css\ui-dark.css - + Microsoft.WinJS.4.0\css\ui-light.css - + Microsoft.WinJS.4.0\js\en-US\ui.strings.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense-setup.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense.js - + Microsoft.WinJS.4.0\fonts\Symbols.ttf - + Microsoft.WinJS.4.0\js\base.js - + Microsoft.WinJS.4.0\js\ui.js - + sample-utils\footer.html - + sample-utils\header.html - + sample-utils\sample-utils.js - + sample-utils\scenario-select.css - + sample-utils\scenario-select.html diff --git a/Samples/DataReaderWriter/js/DataReaderWriter.sln b/archived/DataReaderWriter/js/DataReaderWriter.sln similarity index 100% rename from Samples/DataReaderWriter/js/DataReaderWriter.sln rename to archived/DataReaderWriter/js/DataReaderWriter.sln diff --git a/Samples/DataReaderWriter/js/Microsoft.WinJS.4.0/css/placeholder.txt b/archived/DataReaderWriter/js/Microsoft.WinJS.4.0/css/placeholder.txt similarity index 100% rename from Samples/DataReaderWriter/js/Microsoft.WinJS.4.0/css/placeholder.txt rename to archived/DataReaderWriter/js/Microsoft.WinJS.4.0/css/placeholder.txt diff --git a/Samples/DataReaderWriter/js/Microsoft.WinJS.4.0/fonts/placeholder b/archived/DataReaderWriter/js/Microsoft.WinJS.4.0/fonts/placeholder similarity index 100% rename from Samples/DataReaderWriter/js/Microsoft.WinJS.4.0/fonts/placeholder rename to archived/DataReaderWriter/js/Microsoft.WinJS.4.0/fonts/placeholder diff --git a/Samples/DataReaderWriter/js/Microsoft.WinJS.4.0/js/en-us/placeholder.txt b/archived/DataReaderWriter/js/Microsoft.WinJS.4.0/js/en-us/placeholder.txt similarity index 100% rename from Samples/DataReaderWriter/js/Microsoft.WinJS.4.0/js/en-us/placeholder.txt rename to archived/DataReaderWriter/js/Microsoft.WinJS.4.0/js/en-us/placeholder.txt diff --git a/Samples/DataReaderWriter/js/Package.appxmanifest b/archived/DataReaderWriter/js/Package.appxmanifest similarity index 100% rename from Samples/DataReaderWriter/js/Package.appxmanifest rename to archived/DataReaderWriter/js/Package.appxmanifest diff --git a/Samples/DataReaderWriter/js/css/scenario2_ReadBytes.css b/archived/DataReaderWriter/js/css/scenario2_ReadBytes.css similarity index 100% rename from Samples/DataReaderWriter/js/css/scenario2_ReadBytes.css rename to archived/DataReaderWriter/js/css/scenario2_ReadBytes.css diff --git a/Samples/DataReaderWriter/js/html/scenario1_WriteReadStream.html b/archived/DataReaderWriter/js/html/scenario1_WriteReadStream.html similarity index 100% rename from Samples/DataReaderWriter/js/html/scenario1_WriteReadStream.html rename to archived/DataReaderWriter/js/html/scenario1_WriteReadStream.html diff --git a/Samples/DataReaderWriter/js/html/scenario2_ReadBytes.html b/archived/DataReaderWriter/js/html/scenario2_ReadBytes.html similarity index 100% rename from Samples/DataReaderWriter/js/html/scenario2_ReadBytes.html rename to archived/DataReaderWriter/js/html/scenario2_ReadBytes.html diff --git a/Samples/DataReaderWriter/js/js/sample-configuration.js b/archived/DataReaderWriter/js/js/sample-configuration.js similarity index 100% rename from Samples/DataReaderWriter/js/js/sample-configuration.js rename to archived/DataReaderWriter/js/js/sample-configuration.js diff --git a/Samples/DataReaderWriter/js/js/scenario1_WriteReadStream.js b/archived/DataReaderWriter/js/js/scenario1_WriteReadStream.js similarity index 100% rename from Samples/DataReaderWriter/js/js/scenario1_WriteReadStream.js rename to archived/DataReaderWriter/js/js/scenario1_WriteReadStream.js diff --git a/Samples/DataReaderWriter/js/js/scenario2_ReadBytes.js b/archived/DataReaderWriter/js/js/scenario2_ReadBytes.js similarity index 100% rename from Samples/DataReaderWriter/js/js/scenario2_ReadBytes.js rename to archived/DataReaderWriter/js/js/scenario2_ReadBytes.js diff --git a/Samples/DataReaderWriter/js/sample-utils/placeholder.txt b/archived/DataReaderWriter/js/sample-utils/placeholder.txt similarity index 100% rename from Samples/DataReaderWriter/js/sample-utils/placeholder.txt rename to archived/DataReaderWriter/js/sample-utils/placeholder.txt diff --git a/archived/DatagramSocket/README.md b/archived/DatagramSocket/README.md new file mode 100644 index 0000000000..03da608f8f --- /dev/null +++ b/archived/DatagramSocket/README.md @@ -0,0 +1,114 @@ +--- +topic: sample +languages: +- js +products: +- windows +- windows-uwp +--- + +# DatagramSocket sample + +Shows how to a use datagram (UDP) socket to send and receive data using the [DatagramSocket](http://msdn.microsoft.com/library/windows/apps/br241319) +and related classes in the [Windows.Networking.Sockets](http://msdn.microsoft.com/library/windows/apps/br226960) namespace in your Universal Windows Platform (UWP) app. + +> **Note:** This sample is part of a large collection of UWP feature samples. +> If you are unfamiliar with Git and GitHub, you can download the entire collection as a +> [ZIP file](https://github.com/Microsoft/Windows-universal-samples/archive/master.zip), but be +> sure to unzip everything to access shared dependencies. For more info on working with the ZIP file, +> the samples collection, and GitHub, see [Get the UWP samples from GitHub](https://aka.ms/ovu2uq). +> For more samples, see the [Samples portal](https://aka.ms/winsamples) on the Windows Dev Center. + +The client component of the sample creates a UDP socket, uses the socket to send and receive data, and closes the socket. The server component of the sample creates a UDP socket to listen for incoming network packets, receives incoming UDP packets from the client, sends data to the client, and closes the socket. This sample is provided in the JavaScript, C\#, and C++ programming languages. + +The client component of the sample demonstrates the following features: + +- Use the [DatagramSocket](http://msdn.microsoft.com/library/windows/apps/br241319) class to create a UDP socket for the client to send and receive data. +- Add a handler for a [DatagramSocket.MessageReceived](http://msdn.microsoft.com/library/windows/apps/br241358) event that indicates that a UDP datagram was received on the [DatagramSocket](http://msdn.microsoft.com/library/windows/apps/br241319) object. +- Set the remote endpoint for a UDP network server where packets should be sent using one of the [DatagramSocket.ConnectAsync](http://msdn.microsoft.com/library/windows/apps/hh701219) methods. +- Send data to the server using the [Streams.DataWriter](http://msdn.microsoft.com/library/windows/apps/br208154) object which allows a programmer to write common types (integers and strings, for example) on any stream. +- Close the socket. +- Send multicast and broadcast packets using IOutputStreams obtained through [DatagramSocket.GetOutputStreamAsync](https://msdn.microsoft.com/library/windows/apps/hh701265.aspx). + +The server component of the sample demonstrates the following features: + +- Use the [DatagramSocket](http://msdn.microsoft.com/library/windows/apps/br241319) class to create a UDP socket to listen for and receive incoming datagram packets and for sending packets. +- Add a handler for a [DatagramSocket.MessageReceived](http://msdn.microsoft.com/library/windows/apps/br241358) event that indicates that a UDP datagram was received on the [DatagramSocket](http://msdn.microsoft.com/library/windows/apps/br241319) object. +- Bind the socket to a local service name to listen for incoming UDP packets using the [DatagramSocket.BindServiceNameAsync](http://msdn.microsoft.com/library/windows/apps/dn279143) method. +- Receive a [DatagramSocket.MessageReceived](http://msdn.microsoft.com/library/windows/apps/br241358) event that indicates that a UDP datagram was received on the [DatagramSocket](http://msdn.microsoft.com/library/windows/apps/br241319) object. +- Receive data from the client using the [DatagramSocket.MessageReceived](http://msdn.microsoft.com/library/windows/apps/br241358) handler. The [DatagramSocketMessageReceivedEventArgs](http://msdn.microsoft.com/library/windows/apps/br241344) object passed to the **DatagramSocket.MessageReceived** handler allows an app to receive data from the client and also determine the remote address and port that sent the data. +- Close the socket. +- Listen for multicast packets while coexisting with other multicast applications by using the [DatagramSocketControl.MulticastOnly](https://msdn.microsoft.com/library/windows/apps/windows.networking.sockets.datagramsocketcontrol.multicastonly.aspx) control option. + +For a sample that shows how to use a stream (TCP) socket to send and receive data in a UWP app, download the [StreamSocket sample](/Samples/StreamSocket). + +If you are interested in developing an app that is always connected and always reachable using background network notifications in a UWP app, refer to the [SocketActivityTrigger](https://msdn.microsoft.com/library/windows/apps/windows.applicationmodel.background.socketactivitytrigger.aspx) documentation. The [SocketActivityTrigger StreamSocket Sample](/Samples/SocketActivityStreamSocket) is a good starting point, since the programming pattern with DatagramSocket is essentially the same as with StreamSocket. + +## Network capabilities + +This sample requires that network capabilities be set in the *Package.appxmanifest* file to allow the app to access the network at runtime. These capabilities can be set in the app manifest using Microsoft Visual Studio. For more information on network capabilities, see [How to set network capabilities](http://msdn.microsoft.com/library/windows/apps/hh770532). + +**Note** Network communications using an IP loopback address cannot normally be used for interprocess communication between a Universal Windows Platform (UWP) app and a different process (a different UWP app or a desktop app) because this is restricted by network isolation. Network communication using an IP loopback address is allowed within the same process for communication purposes in a UWP app. For more information, see [How to set network capabilities](http://msdn.microsoft.com/library/windows/apps/hh770532). + +## Related topics + +### Reference + +[DatagramSocket](http://msdn.microsoft.com/library/windows/apps/br226882) +[DatagramSocketMessageReceivedEventArgs](http://msdn.microsoft.com/library/windows/apps/br241344) +[Windows.Networking](http://msdn.microsoft.com/library/windows/apps/br207124) +[Windows.Networking.Sockets](http://msdn.microsoft.com/library/windows/apps/br226960) +[Windows.Storage.Streams.DataReader](http://msdn.microsoft.com/library/windows/apps/br208119) +[Windows.Storage.Streams.DataWriter](http://msdn.microsoft.com/library/windows/apps/br208154) +[SocketActivityTrigger](https://msdn.microsoft.com/library/windows/apps/windows.applicationmodel.background.socketactivitytrigger.aspx) + +### Samples + +[StreamSocket sample](/Samples/StreamSocket) +[SocketActivityTrigger StreamSocket Sample](/Samples/SocketActivityStreamSocket) + +### Other - C\#/VB/C++ and XAML + +[Adding support for networking (XAML)](http://msdn.microsoft.com/library/windows/apps/hh452751) +[Connecting to network services (XAML)](http://msdn.microsoft.com/library/windows/apps/hh452976) +[How to send and receive network data with a datagram socket (XAML)](http://msdn.microsoft.com/library/windows/apps/hh452986) +[Networking basics](https://msdn.microsoft.com/library/windows/apps/mt280233) +[How to use advanced socket controls (XAML)](http://msdn.microsoft.com/library/windows/apps/jj150598) +[Troubleshooting and debugging network connections](http://msdn.microsoft.com/library/windows/apps/hh770534) + +### Other - JavaScript and HTML + +[Adding support for networking (HTML)](http://msdn.microsoft.com/library/windows/apps/hh452752) +[Connecting to network services (HTML)](http://msdn.microsoft.com/library/windows/apps/hh452977) +[How to send and receive network data with a datagram socket (HTML)](http://msdn.microsoft.com/library/windows/apps/hh452986) +[How to set network capabilities (HTML)](http://msdn.microsoft.com/library/windows/apps/hh770532) +[How to use advanced socket controls (HTML)](http://msdn.microsoft.com/library/windows/apps/hh780596) +[Troubleshooting and debugging network connections](http://msdn.microsoft.com/library/windows/apps/hh770534) + +## System requirements + +**Client:** Windows 10 + +**Server:** Windows Server 2016 Technical Preview + +**Phone:** Windows 10 + +## Build the sample + +1. If you download the samples ZIP, be sure to unzip the entire archive, not just the folder with the sample you want to build. +2. Start Microsoft Visual Studio 2017 and select **File** \> **Open** \> **Project/Solution**. +3. Starting in the folder where you unzipped the samples, go to the Samples subfolder, then the subfolder for this specific sample, then the subfolder for your preferred language (C++, C#, or JavaScript). Double-click the Visual Studio Solution (.sln) file. +4. Press Ctrl+Shift+B, or select **Build** \> **Build Solution**. + +## Run the sample + +The next steps depend on whether you just want to deploy the sample or you want to both deploy and run it. + +### Deploying the sample + +- Select Build > Deploy Solution. + +### Deploying and running the sample + +- To debug the sample and then run it, press F5 or select Debug > Start Debugging. To run the sample without debugging, press Ctrl+F5 or selectDebug > Start Without Debugging. + diff --git a/Samples/DatagramSocket/js/DatagramSocket.jsproj b/archived/DatagramSocket/js/DatagramSocket.jsproj similarity index 81% rename from Samples/DatagramSocket/js/DatagramSocket.jsproj rename to archived/DatagramSocket/js/DatagramSocket.jsproj index d70c15ef30..aa1bdcb98a 100644 --- a/Samples/DatagramSocket/js/DatagramSocket.jsproj +++ b/archived/DatagramSocket/js/DatagramSocket.jsproj @@ -54,7 +54,7 @@ Designer - + default.html @@ -83,10 +83,10 @@ images\windows-sdk.png - + js\default.js - + css\default.css @@ -96,43 +96,43 @@ - + Microsoft.WinJS.4.0\css\ui-dark.css - + Microsoft.WinJS.4.0\css\ui-light.css - + Microsoft.WinJS.4.0\js\en-US\ui.strings.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense-setup.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense.js - + Microsoft.WinJS.4.0\fonts\Symbols.ttf - + Microsoft.WinJS.4.0\js\base.js - + Microsoft.WinJS.4.0\js\ui.js - + sample-utils\footer.html - + sample-utils\header.html - + sample-utils\sample-utils.js - + sample-utils\scenario-select.css - + sample-utils\scenario-select.html diff --git a/Samples/DatagramSocket/js/DatagramSocket.sln b/archived/DatagramSocket/js/DatagramSocket.sln similarity index 100% rename from Samples/DatagramSocket/js/DatagramSocket.sln rename to archived/DatagramSocket/js/DatagramSocket.sln diff --git a/Samples/DatagramSocket/js/Microsoft.WinJS.4.0/css/placeholder.txt b/archived/DatagramSocket/js/Microsoft.WinJS.4.0/css/placeholder.txt similarity index 100% rename from Samples/DatagramSocket/js/Microsoft.WinJS.4.0/css/placeholder.txt rename to archived/DatagramSocket/js/Microsoft.WinJS.4.0/css/placeholder.txt diff --git a/Samples/DatagramSocket/js/Microsoft.WinJS.4.0/fonts/placeholder b/archived/DatagramSocket/js/Microsoft.WinJS.4.0/fonts/placeholder similarity index 100% rename from Samples/DatagramSocket/js/Microsoft.WinJS.4.0/fonts/placeholder rename to archived/DatagramSocket/js/Microsoft.WinJS.4.0/fonts/placeholder diff --git a/Samples/DatagramSocket/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt b/archived/DatagramSocket/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt similarity index 100% rename from Samples/DatagramSocket/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt rename to archived/DatagramSocket/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt diff --git a/Samples/DatagramSocket/js/Package.appxmanifest b/archived/DatagramSocket/js/Package.appxmanifest similarity index 100% rename from Samples/DatagramSocket/js/Package.appxmanifest rename to archived/DatagramSocket/js/Package.appxmanifest diff --git a/Samples/DatagramSocket/js/css/placeholder.txt b/archived/DatagramSocket/js/css/placeholder.txt similarity index 100% rename from Samples/DatagramSocket/js/css/placeholder.txt rename to archived/DatagramSocket/js/css/placeholder.txt diff --git a/Samples/DatagramSocket/js/html/scenario1_Start.html b/archived/DatagramSocket/js/html/scenario1_Start.html similarity index 100% rename from Samples/DatagramSocket/js/html/scenario1_Start.html rename to archived/DatagramSocket/js/html/scenario1_Start.html diff --git a/Samples/DatagramSocket/js/html/scenario2_Connect.html b/archived/DatagramSocket/js/html/scenario2_Connect.html similarity index 100% rename from Samples/DatagramSocket/js/html/scenario2_Connect.html rename to archived/DatagramSocket/js/html/scenario2_Connect.html diff --git a/Samples/DatagramSocket/js/html/scenario3_Send.html b/archived/DatagramSocket/js/html/scenario3_Send.html similarity index 100% rename from Samples/DatagramSocket/js/html/scenario3_Send.html rename to archived/DatagramSocket/js/html/scenario3_Send.html diff --git a/Samples/DatagramSocket/js/html/scenario4_Close.html b/archived/DatagramSocket/js/html/scenario4_Close.html similarity index 100% rename from Samples/DatagramSocket/js/html/scenario4_Close.html rename to archived/DatagramSocket/js/html/scenario4_Close.html diff --git a/Samples/DatagramSocket/js/html/scenario5_MulticastAndBroadcast.html b/archived/DatagramSocket/js/html/scenario5_MulticastAndBroadcast.html similarity index 100% rename from Samples/DatagramSocket/js/html/scenario5_MulticastAndBroadcast.html rename to archived/DatagramSocket/js/html/scenario5_MulticastAndBroadcast.html diff --git a/Samples/DatagramSocket/js/images/placeholder.txt b/archived/DatagramSocket/js/images/placeholder.txt similarity index 100% rename from Samples/DatagramSocket/js/images/placeholder.txt rename to archived/DatagramSocket/js/images/placeholder.txt diff --git a/Samples/DatagramSocket/js/js/sample-configuration.js b/archived/DatagramSocket/js/js/sample-configuration.js similarity index 100% rename from Samples/DatagramSocket/js/js/sample-configuration.js rename to archived/DatagramSocket/js/js/sample-configuration.js diff --git a/Samples/DatagramSocket/js/js/scenario1_Start.js b/archived/DatagramSocket/js/js/scenario1_Start.js similarity index 100% rename from Samples/DatagramSocket/js/js/scenario1_Start.js rename to archived/DatagramSocket/js/js/scenario1_Start.js diff --git a/Samples/DatagramSocket/js/js/scenario2_Connect.js b/archived/DatagramSocket/js/js/scenario2_Connect.js similarity index 100% rename from Samples/DatagramSocket/js/js/scenario2_Connect.js rename to archived/DatagramSocket/js/js/scenario2_Connect.js diff --git a/Samples/DatagramSocket/js/js/scenario3_Send.js b/archived/DatagramSocket/js/js/scenario3_Send.js similarity index 100% rename from Samples/DatagramSocket/js/js/scenario3_Send.js rename to archived/DatagramSocket/js/js/scenario3_Send.js diff --git a/Samples/DatagramSocket/js/js/scenario4_Close.js b/archived/DatagramSocket/js/js/scenario4_Close.js similarity index 100% rename from Samples/DatagramSocket/js/js/scenario4_Close.js rename to archived/DatagramSocket/js/js/scenario4_Close.js diff --git a/Samples/DatagramSocket/js/js/scenario5_MulticastAndBroadcast.js b/archived/DatagramSocket/js/js/scenario5_MulticastAndBroadcast.js similarity index 100% rename from Samples/DatagramSocket/js/js/scenario5_MulticastAndBroadcast.js rename to archived/DatagramSocket/js/js/scenario5_MulticastAndBroadcast.js diff --git a/Samples/DatagramSocket/js/js/socketsSample.js b/archived/DatagramSocket/js/js/socketsSample.js similarity index 100% rename from Samples/DatagramSocket/js/js/socketsSample.js rename to archived/DatagramSocket/js/js/socketsSample.js diff --git a/Samples/DatagramSocket/js/sample-utils/placeholder.txt b/archived/DatagramSocket/js/sample-utils/placeholder.txt similarity index 100% rename from Samples/DatagramSocket/js/sample-utils/placeholder.txt rename to archived/DatagramSocket/js/sample-utils/placeholder.txt diff --git a/archived/DateTimeFormatting/README.md b/archived/DateTimeFormatting/README.md new file mode 100644 index 0000000000..a96e2676e1 --- /dev/null +++ b/archived/DateTimeFormatting/README.md @@ -0,0 +1,81 @@ +--- +topic: sample +languages: +- js +products: +- windows +- windows-uwp +--- + +# Date and time formatting sample + +Shows how to use the [DateTimeFormatter](http://msdn.microsoft.com/library/windows/apps/br206828) +class in the [Windows.Globalization.DateTimeFormatting](http://msdn.microsoft.com/library/windows/apps/br206859) +namespace to display dates and times according to the user's preferences. + +> **Note:** This sample is part of a large collection of UWP feature samples. +> If you are unfamiliar with Git and GitHub, you can download the entire collection as a +> [ZIP file](https://github.com/Microsoft/Windows-universal-samples/archive/master.zip), but be +> sure to unzip everything to access shared dependencies. For more info on working with the ZIP file, +> the samples collection, and GitHub, see [Get the UWP samples from GitHub](https://aka.ms/ovu2uq). +> For more samples, see the [Samples portal](https://aka.ms/winsamples) on the Windows Dev Center. + +The **DateTimeFormatter** +class provides a globally-aware method for formatting a date or time into a string for display to a user. +It can either use the default preferences of the current user, +or the caller can override these to specify other languages, geographic region, +and clock and calendar systems. +The caller can request a format using the well-known constants +(shorttime, longtime, shortdate or longdate) or define the specific elements required. + +The sample also uses the [Windows.Globalization.CalendarIdentifiers](http://msdn.microsoft.com/library/windows/apps/br229460) +and [Windows.Globalization.ClockIdentifiers](http://msdn.microsoft.com/library/windows/apps/br229462) classes. + +This sample contains scenarios that demonstrate: + +- How to format the current date and time using the Long and Short formats. +- How to format the current date and time using custom formats that are specified using a template string or a parameterized template. +- How to format dates and times by overriding the user's default global context. This is used when an app presents dates or times that reflect different settings from the user's current defaults. +- How to format dates and times by using Unicode extensions in specified languages, overriding the user's default global context if applicable. +- How to convert and format the current date and time using the time zone support available in the [Format](http://msdn.microsoft.com/library/windows/apps/dn264145) method. + +## Related topics + +### Samples + +[Calendar sample](../Calendar) +[GlobalizationPreferences sample](../GlobalizationPreferences) +[NumberFormatting sample](../NumberFormatting) + +### Reference + +[Windows.Globalization.CalendarIdentifiers](http://msdn.microsoft.com/library/windows/apps/br229460) +[Windows.Globalization.ClockIdentifiers](http://msdn.microsoft.com/library/windows/apps/br229462) +[Windows.Globalization.DateTimeFormatting.DateTimeFormatter](http://msdn.microsoft.com/library/windows/apps/br206828) + +## System requirements + +**Client:** Windows 10 + +**Server:** Windows Server 2016 Technical Preview + +**Phone:** Windows 10 + +## Build the sample + +1. If you download the samples ZIP, be sure to unzip the entire archive, not just the folder with the sample you want to build. +2. Start Microsoft Visual Studio 2017 and select **File** \> **Open** \> **Project/Solution**. +3. Starting in the folder where you unzipped the samples, go to the Samples subfolder, then the subfolder for this specific sample, then the subfolder for your preferred language (C++, C#, or JavaScript). Double-click the Visual Studio Solution (.sln) file. +4. Press Ctrl+Shift+B, or select **Build** \> **Build Solution**. + +## Run the sample + +The next steps depend on whether you just want to deploy the sample or you want to both deploy and run it. + +### Deploying the sample + +- Select Build > Deploy Solution. + +### Deploying and running the sample + +- To debug the sample and then run it, press F5 or select Debug > Start Debugging. To run the sample without debugging, press Ctrl+F5 or select Debug > Start Without Debugging. diff --git a/Samples/DateTimeFormatting/js/DateTimeFormatting.jsproj b/archived/DateTimeFormatting/js/DateTimeFormatting.jsproj similarity index 82% rename from Samples/DateTimeFormatting/js/DateTimeFormatting.jsproj rename to archived/DateTimeFormatting/js/DateTimeFormatting.jsproj index 53f46a6b1c..ba05a4846d 100644 --- a/Samples/DateTimeFormatting/js/DateTimeFormatting.jsproj +++ b/archived/DateTimeFormatting/js/DateTimeFormatting.jsproj @@ -54,7 +54,7 @@ Designer - + default.html @@ -84,10 +84,10 @@ images\windows-sdk.png - + js\default.js - + css\default.css @@ -97,43 +97,43 @@ - + Microsoft.WinJS.4.0\css\ui-dark.css - + Microsoft.WinJS.4.0\css\ui-light.css - + Microsoft.WinJS.4.0\js\en-US\ui.strings.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense-setup.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense.js - + Microsoft.WinJS.4.0\fonts\Symbols.ttf - + Microsoft.WinJS.4.0\js\base.js - + Microsoft.WinJS.4.0\js\ui.js - + sample-utils\footer.html - + sample-utils\header.html - + sample-utils\sample-utils.js - + sample-utils\scenario-select.css - + sample-utils\scenario-select.html diff --git a/Samples/DateTimeFormatting/js/DateTimeFormatting.sln b/archived/DateTimeFormatting/js/DateTimeFormatting.sln similarity index 100% rename from Samples/DateTimeFormatting/js/DateTimeFormatting.sln rename to archived/DateTimeFormatting/js/DateTimeFormatting.sln diff --git a/Samples/DateTimeFormatting/js/Microsoft.WinJS.4.0/css/placeholder.txt b/archived/DateTimeFormatting/js/Microsoft.WinJS.4.0/css/placeholder.txt similarity index 100% rename from Samples/DateTimeFormatting/js/Microsoft.WinJS.4.0/css/placeholder.txt rename to archived/DateTimeFormatting/js/Microsoft.WinJS.4.0/css/placeholder.txt diff --git a/Samples/DateTimeFormatting/js/Microsoft.WinJS.4.0/fonts/placeholder b/archived/DateTimeFormatting/js/Microsoft.WinJS.4.0/fonts/placeholder similarity index 100% rename from Samples/DateTimeFormatting/js/Microsoft.WinJS.4.0/fonts/placeholder rename to archived/DateTimeFormatting/js/Microsoft.WinJS.4.0/fonts/placeholder diff --git a/Samples/DateTimeFormatting/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt b/archived/DateTimeFormatting/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt similarity index 100% rename from Samples/DateTimeFormatting/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt rename to archived/DateTimeFormatting/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt diff --git a/Samples/DateTimeFormatting/js/Package.appxmanifest b/archived/DateTimeFormatting/js/Package.appxmanifest similarity index 100% rename from Samples/DateTimeFormatting/js/Package.appxmanifest rename to archived/DateTimeFormatting/js/Package.appxmanifest diff --git a/Samples/DateTimeFormatting/js/css/placeholder.txt b/archived/DateTimeFormatting/js/css/placeholder.txt similarity index 100% rename from Samples/DateTimeFormatting/js/css/placeholder.txt rename to archived/DateTimeFormatting/js/css/placeholder.txt diff --git a/Samples/DateTimeFormatting/js/html/scenario1-longAndShortFormats.html b/archived/DateTimeFormatting/js/html/scenario1-longAndShortFormats.html similarity index 100% rename from Samples/DateTimeFormatting/js/html/scenario1-longAndShortFormats.html rename to archived/DateTimeFormatting/js/html/scenario1-longAndShortFormats.html diff --git a/Samples/DateTimeFormatting/js/html/scenario2-stringTemplate.html b/archived/DateTimeFormatting/js/html/scenario2-stringTemplate.html similarity index 100% rename from Samples/DateTimeFormatting/js/html/scenario2-stringTemplate.html rename to archived/DateTimeFormatting/js/html/scenario2-stringTemplate.html diff --git a/Samples/DateTimeFormatting/js/html/scenario3-parameterizedTemplate.html b/archived/DateTimeFormatting/js/html/scenario3-parameterizedTemplate.html similarity index 100% rename from Samples/DateTimeFormatting/js/html/scenario3-parameterizedTemplate.html rename to archived/DateTimeFormatting/js/html/scenario3-parameterizedTemplate.html diff --git a/Samples/DateTimeFormatting/js/html/scenario4-override.html b/archived/DateTimeFormatting/js/html/scenario4-override.html similarity index 100% rename from Samples/DateTimeFormatting/js/html/scenario4-override.html rename to archived/DateTimeFormatting/js/html/scenario4-override.html diff --git a/Samples/DateTimeFormatting/js/html/scenario5-unicodeExtensions.html b/archived/DateTimeFormatting/js/html/scenario5-unicodeExtensions.html similarity index 100% rename from Samples/DateTimeFormatting/js/html/scenario5-unicodeExtensions.html rename to archived/DateTimeFormatting/js/html/scenario5-unicodeExtensions.html diff --git a/Samples/DateTimeFormatting/js/html/scenario6-timeZone.html b/archived/DateTimeFormatting/js/html/scenario6-timeZone.html similarity index 100% rename from Samples/DateTimeFormatting/js/html/scenario6-timeZone.html rename to archived/DateTimeFormatting/js/html/scenario6-timeZone.html diff --git a/Samples/DateTimeFormatting/js/images/placeholder.txt b/archived/DateTimeFormatting/js/images/placeholder.txt similarity index 100% rename from Samples/DateTimeFormatting/js/images/placeholder.txt rename to archived/DateTimeFormatting/js/images/placeholder.txt diff --git a/Samples/DateTimeFormatting/js/js/sample-configuration.js b/archived/DateTimeFormatting/js/js/sample-configuration.js similarity index 100% rename from Samples/DateTimeFormatting/js/js/sample-configuration.js rename to archived/DateTimeFormatting/js/js/sample-configuration.js diff --git a/Samples/DateTimeFormatting/js/js/scenario1-longAndShortFormats.js b/archived/DateTimeFormatting/js/js/scenario1-longAndShortFormats.js similarity index 100% rename from Samples/DateTimeFormatting/js/js/scenario1-longAndShortFormats.js rename to archived/DateTimeFormatting/js/js/scenario1-longAndShortFormats.js diff --git a/Samples/DateTimeFormatting/js/js/scenario2-stringTemplate.js b/archived/DateTimeFormatting/js/js/scenario2-stringTemplate.js similarity index 100% rename from Samples/DateTimeFormatting/js/js/scenario2-stringTemplate.js rename to archived/DateTimeFormatting/js/js/scenario2-stringTemplate.js diff --git a/Samples/DateTimeFormatting/js/js/scenario3-parameterizedTemplate.js b/archived/DateTimeFormatting/js/js/scenario3-parameterizedTemplate.js similarity index 100% rename from Samples/DateTimeFormatting/js/js/scenario3-parameterizedTemplate.js rename to archived/DateTimeFormatting/js/js/scenario3-parameterizedTemplate.js diff --git a/Samples/DateTimeFormatting/js/js/scenario4-override.js b/archived/DateTimeFormatting/js/js/scenario4-override.js similarity index 100% rename from Samples/DateTimeFormatting/js/js/scenario4-override.js rename to archived/DateTimeFormatting/js/js/scenario4-override.js diff --git a/Samples/DateTimeFormatting/js/js/scenario5-unicodeExtensions.js b/archived/DateTimeFormatting/js/js/scenario5-unicodeExtensions.js similarity index 100% rename from Samples/DateTimeFormatting/js/js/scenario5-unicodeExtensions.js rename to archived/DateTimeFormatting/js/js/scenario5-unicodeExtensions.js diff --git a/Samples/DateTimeFormatting/js/js/scenario6-timeZone.js b/archived/DateTimeFormatting/js/js/scenario6-timeZone.js similarity index 100% rename from Samples/DateTimeFormatting/js/js/scenario6-timeZone.js rename to archived/DateTimeFormatting/js/js/scenario6-timeZone.js diff --git a/Samples/DateTimeFormatting/js/sample-utils/placeholder.txt b/archived/DateTimeFormatting/js/sample-utils/placeholder.txt similarity index 100% rename from Samples/DateTimeFormatting/js/sample-utils/placeholder.txt rename to archived/DateTimeFormatting/js/sample-utils/placeholder.txt diff --git a/archived/DeviceEnumerationAndPairing/README.md b/archived/DeviceEnumerationAndPairing/README.md new file mode 100644 index 0000000000..42c5a43a34 --- /dev/null +++ b/archived/DeviceEnumerationAndPairing/README.md @@ -0,0 +1,77 @@ +--- +topic: sample +languages: +- js +products: +- windows +- windows-uwp +--- + +# Device enumeration and pairing sample + +Shows how to use the Windows.Devices.Enumeration APIs find devices internally connected to the system, externally connected, +or nearby over wireless or networking protocols and get information about them. It also shows how to pair wireless and networking devices with the system. + +> **Note:** This sample is part of a large collection of UWP feature samples. +> If you are unfamiliar with Git and GitHub, you can download the entire collection as a +> [ZIP file](https://github.com/Microsoft/Windows-universal-samples/archive/master.zip), but be +> sure to unzip everything to access shared dependencies. For more info on working with the ZIP file, +> the samples collection, and GitHub, see [Get the UWP samples from GitHub](https://aka.ms/ovu2uq). +> For more samples, see the [Samples portal](https://aka.ms/winsamples) on the Windows Dev Center. + +The sample demonstrates eight scenarios: + +1. **Device Picker Common Control:** This scenario demonstrates the use of the Windows.Devices.Enumeration.DevicePicker. DevicePicker is a UI control that allows users of your app to pick a device. After they pick a device you can get information from it and start using it through the appropriate device API. + +2. **Enumerate and Watch Devices:** This scenario demonstrates the use of the Windows.Devices.Enumeration DeviceWatcher. Device Watcher allows you to find and recieve updates for devices you're interested in. Even if you don't need updates for devices as the arrive, depart, or change, this method still has advantages over FindAllAsync in that the results come back one-by-one has they are discovered, rather than waiting for all results to be retreived and then returned in a single collection. + +3. **Enumerate and Watch Devices in a Background Task:** This scenario demonstrates the use of the Windows.Devices.Enumeration DeviceWatcherTrigger. DeviceWatcherTrigger is similar to DeviceWatcher, but is performed in a background task. First you create a DeviceWatcher object, but instead of starting the DeviceWatcher in the foreground, you get the background trigger and then register it. Your background task is called with initial results and then called repeatedly over time as the device you're watching arrive, depart, or change. + +4. **Enumerate Snapshot of Devices:** This scenario demonstrates the use of the Windows.Devices.Enumeration DeviceInformation.FindAllAsync. Use for grabbing a quick snapshot of devices you're interested in. This method is simplier to use than the DeviceWatcher, but doesn't allow you to process results as they arrive. Rather all results are internally added to a collection until the enumeration is complete, then the collection is returned when the async operation completes. + +5. **Get Single Device:** This scenario demonstrates the use of the Windows.Devices.Enumeration DeviceInformation.CreateFromIdAsync. This would typically be used when you have a device id saved, and want to retrieve information about that device again. Other uses would be if you have a DeviceInformation.Id from another API and need to obtain a DeviceInformation object. + +6. **Custom Filter with Additional Properties:** This scenario demonstrates using custom filters and/or requesting additional properties with the DeviceWatcher. A custom filter and/or requested additional properties can also be done with the DevicePicker, FindAllAsync, and DeviceWatcherTrigger + +7. **Request Specific DeviceInformationKind:** This scenario demonstrates requesting various DeviceInformationKinds. Methods without the DeviceInformationKind parameter default to DeviceInterface. + +8. **Basic Device Pairing:** This scenario demonstrates how to perform basic pairing. Basic pairing allows you to tell Windows which device you want paired, and then Windows will handle the ceremony and the UI. If you want to display your own UI and be involved in the pairing ceremony, please see the Custom Pairing scenario. This method can be used to pair devices like WiFiDirect, WSD, UPnP, Bluetooth or Bluetooth LE devices. Pairing can only be performed on DeviceInformation objects of kind DeviceInformationKind.AssociationEndpoint. + +9. **Custom Device Pairing:** This scenario demonstrates how to perform custom pairing. Custom pairing allows your app to be involved in the pairing ceremony and use your on UI. If you want Windows to control the ceremony and display system UI, please look at the basic pairing scenario. This method can be used to pair devices like WiFiDirect, WSD, UPnP, Bluetooth or Bluetooth LE devices. Pairing can only be performed on DeviceInformation objects of kind DeviceInformationKind.AssociationEndpoint. + + +## Related topics + +### Reference + +[Enumerating devices article](http://msdn.microsoft.com/library/windows/apps/Hh464977) +[Windows.Devices.Enumeration namespace](http://msdn.microsoft.com/library/windows/apps/windows.devices.enumeration.aspx) + +## System requirements + +**Client:** Windows 10 + +**Server:** Windows Server 2016 Technical Preview + +**Phone:** Windows 10 + + +## Build the sample + +1. Start Visual Studio 2017 and select **File** \> **Open** \> **Project/Solution**. +2. Go to the directory to which you unzipped the sample. Then go to the subdirectory containing the sample in the language you desire - either C++, C\#, or JavaScript. Double-click the Visual Studio Solution (.sln) file. +3. Select the appropriate target: x86, x64, ARM. Press Ctrl+Shift+B, or select **Build** \> **Build Solution**. + + +## Run the sample + +The next steps depend on whether you just want to deploy the sample or you want to both deploy and run it. + +### Deploying the sample + +- Select **Build** \> **Deploy Solution**. + +### Deploying the sample + +- To debug the sample and then run it, press F5 or select **Debug** \> **Start Debugging**. To run the sample without debugging, press Ctrl+F5 or select**Debug** \> **Start Without Debugging**. + diff --git a/Samples/DeviceEnumerationAndPairing/js/DeviceEnumeration.jsproj b/archived/DeviceEnumerationAndPairing/js/DeviceEnumeration.jsproj similarity index 83% rename from Samples/DeviceEnumerationAndPairing/js/DeviceEnumeration.jsproj rename to archived/DeviceEnumerationAndPairing/js/DeviceEnumeration.jsproj index 05a0249548..c8ad56488c 100644 --- a/Samples/DeviceEnumerationAndPairing/js/DeviceEnumeration.jsproj +++ b/archived/DeviceEnumerationAndPairing/js/DeviceEnumeration.jsproj @@ -54,7 +54,7 @@ Designer - + default.html @@ -88,10 +88,10 @@ images\windows-sdk.png - + js\default.js - + css\default.css @@ -105,43 +105,43 @@ - + Microsoft.WinJS.4.0\css\ui-dark.css - + Microsoft.WinJS.4.0\css\ui-light.css - + Microsoft.WinJS.4.0\js\en-US\ui.strings.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense-setup.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense.js - + Microsoft.WinJS.4.0\fonts\Symbols.ttf - + Microsoft.WinJS.4.0\js\base.js - + Microsoft.WinJS.4.0\js\ui.js - + sample-utils\footer.html - + sample-utils\header.html - + sample-utils\sample-utils.js - + sample-utils\scenario-select.css - + sample-utils\scenario-select.html diff --git a/Samples/DeviceEnumerationAndPairing/js/DeviceEnumeration.sln b/archived/DeviceEnumerationAndPairing/js/DeviceEnumeration.sln similarity index 100% rename from Samples/DeviceEnumerationAndPairing/js/DeviceEnumeration.sln rename to archived/DeviceEnumerationAndPairing/js/DeviceEnumeration.sln diff --git a/Samples/DeviceEnumerationAndPairing/js/Microsoft.WinJS.4.0/css/placeholder.txt b/archived/DeviceEnumerationAndPairing/js/Microsoft.WinJS.4.0/css/placeholder.txt similarity index 100% rename from Samples/DeviceEnumerationAndPairing/js/Microsoft.WinJS.4.0/css/placeholder.txt rename to archived/DeviceEnumerationAndPairing/js/Microsoft.WinJS.4.0/css/placeholder.txt diff --git a/Samples/DeviceEnumerationAndPairing/js/Microsoft.WinJS.4.0/fonts/placeholder b/archived/DeviceEnumerationAndPairing/js/Microsoft.WinJS.4.0/fonts/placeholder similarity index 100% rename from Samples/DeviceEnumerationAndPairing/js/Microsoft.WinJS.4.0/fonts/placeholder rename to archived/DeviceEnumerationAndPairing/js/Microsoft.WinJS.4.0/fonts/placeholder diff --git a/Samples/DeviceEnumerationAndPairing/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt b/archived/DeviceEnumerationAndPairing/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt similarity index 100% rename from Samples/DeviceEnumerationAndPairing/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt rename to archived/DeviceEnumerationAndPairing/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt diff --git a/Samples/DeviceEnumerationAndPairing/js/Package.appxmanifest b/archived/DeviceEnumerationAndPairing/js/Package.appxmanifest similarity index 100% rename from Samples/DeviceEnumerationAndPairing/js/Package.appxmanifest rename to archived/DeviceEnumerationAndPairing/js/Package.appxmanifest diff --git a/Samples/DeviceEnumerationAndPairing/js/css/placeholder.txt b/archived/DeviceEnumerationAndPairing/js/css/placeholder.txt similarity index 100% rename from Samples/DeviceEnumerationAndPairing/js/css/placeholder.txt rename to archived/DeviceEnumerationAndPairing/js/css/placeholder.txt diff --git a/Samples/DeviceEnumerationAndPairing/js/html/scenario1_devicepicker.html b/archived/DeviceEnumerationAndPairing/js/html/scenario1_devicepicker.html similarity index 100% rename from Samples/DeviceEnumerationAndPairing/js/html/scenario1_devicepicker.html rename to archived/DeviceEnumerationAndPairing/js/html/scenario1_devicepicker.html diff --git a/Samples/DeviceEnumerationAndPairing/js/html/scenario2_devicewatcher.html b/archived/DeviceEnumerationAndPairing/js/html/scenario2_devicewatcher.html similarity index 100% rename from Samples/DeviceEnumerationAndPairing/js/html/scenario2_devicewatcher.html rename to archived/DeviceEnumerationAndPairing/js/html/scenario2_devicewatcher.html diff --git a/Samples/DeviceEnumerationAndPairing/js/html/scenario3_backgrounddevicewatcher.html b/archived/DeviceEnumerationAndPairing/js/html/scenario3_backgrounddevicewatcher.html similarity index 100% rename from Samples/DeviceEnumerationAndPairing/js/html/scenario3_backgrounddevicewatcher.html rename to archived/DeviceEnumerationAndPairing/js/html/scenario3_backgrounddevicewatcher.html diff --git a/Samples/DeviceEnumerationAndPairing/js/html/scenario4_snapshot.html b/archived/DeviceEnumerationAndPairing/js/html/scenario4_snapshot.html similarity index 100% rename from Samples/DeviceEnumerationAndPairing/js/html/scenario4_snapshot.html rename to archived/DeviceEnumerationAndPairing/js/html/scenario4_snapshot.html diff --git a/Samples/DeviceEnumerationAndPairing/js/html/scenario5_getsingledevice.html b/archived/DeviceEnumerationAndPairing/js/html/scenario5_getsingledevice.html similarity index 100% rename from Samples/DeviceEnumerationAndPairing/js/html/scenario5_getsingledevice.html rename to archived/DeviceEnumerationAndPairing/js/html/scenario5_getsingledevice.html diff --git a/Samples/DeviceEnumerationAndPairing/js/html/scenario6_customfilteraddedprops.html b/archived/DeviceEnumerationAndPairing/js/html/scenario6_customfilteraddedprops.html similarity index 100% rename from Samples/DeviceEnumerationAndPairing/js/html/scenario6_customfilteraddedprops.html rename to archived/DeviceEnumerationAndPairing/js/html/scenario6_customfilteraddedprops.html diff --git a/Samples/DeviceEnumerationAndPairing/js/html/scenario7_deviceinformationkind.html b/archived/DeviceEnumerationAndPairing/js/html/scenario7_deviceinformationkind.html similarity index 100% rename from Samples/DeviceEnumerationAndPairing/js/html/scenario7_deviceinformationkind.html rename to archived/DeviceEnumerationAndPairing/js/html/scenario7_deviceinformationkind.html diff --git a/Samples/DeviceEnumerationAndPairing/js/html/scenario8_pairdevice.html b/archived/DeviceEnumerationAndPairing/js/html/scenario8_pairdevice.html similarity index 100% rename from Samples/DeviceEnumerationAndPairing/js/html/scenario8_pairdevice.html rename to archived/DeviceEnumerationAndPairing/js/html/scenario8_pairdevice.html diff --git a/Samples/DeviceEnumerationAndPairing/js/html/scenario9_custompairdevice.html b/archived/DeviceEnumerationAndPairing/js/html/scenario9_custompairdevice.html similarity index 100% rename from Samples/DeviceEnumerationAndPairing/js/html/scenario9_custompairdevice.html rename to archived/DeviceEnumerationAndPairing/js/html/scenario9_custompairdevice.html diff --git a/Samples/DeviceEnumerationAndPairing/js/images/placeholder.txt b/archived/DeviceEnumerationAndPairing/js/images/placeholder.txt similarity index 100% rename from Samples/DeviceEnumerationAndPairing/js/images/placeholder.txt rename to archived/DeviceEnumerationAndPairing/js/images/placeholder.txt diff --git a/Samples/DeviceEnumerationAndPairing/js/js/BackgroundDeviceWatcher.js b/archived/DeviceEnumerationAndPairing/js/js/BackgroundDeviceWatcher.js similarity index 100% rename from Samples/DeviceEnumerationAndPairing/js/js/BackgroundDeviceWatcher.js rename to archived/DeviceEnumerationAndPairing/js/js/BackgroundDeviceWatcher.js diff --git a/Samples/DeviceEnumerationAndPairing/js/js/displayhelpers.js b/archived/DeviceEnumerationAndPairing/js/js/displayhelpers.js similarity index 100% rename from Samples/DeviceEnumerationAndPairing/js/js/displayhelpers.js rename to archived/DeviceEnumerationAndPairing/js/js/displayhelpers.js diff --git a/Samples/DeviceEnumerationAndPairing/js/js/sample-configuration.js b/archived/DeviceEnumerationAndPairing/js/js/sample-configuration.js similarity index 100% rename from Samples/DeviceEnumerationAndPairing/js/js/sample-configuration.js rename to archived/DeviceEnumerationAndPairing/js/js/sample-configuration.js diff --git a/Samples/DeviceEnumerationAndPairing/js/js/scenario1_devicepicker.js b/archived/DeviceEnumerationAndPairing/js/js/scenario1_devicepicker.js similarity index 100% rename from Samples/DeviceEnumerationAndPairing/js/js/scenario1_devicepicker.js rename to archived/DeviceEnumerationAndPairing/js/js/scenario1_devicepicker.js diff --git a/Samples/DeviceEnumerationAndPairing/js/js/scenario2_devicewatcher.js b/archived/DeviceEnumerationAndPairing/js/js/scenario2_devicewatcher.js similarity index 100% rename from Samples/DeviceEnumerationAndPairing/js/js/scenario2_devicewatcher.js rename to archived/DeviceEnumerationAndPairing/js/js/scenario2_devicewatcher.js diff --git a/Samples/DeviceEnumerationAndPairing/js/js/scenario3_backgrounddevicewatcher.js b/archived/DeviceEnumerationAndPairing/js/js/scenario3_backgrounddevicewatcher.js similarity index 100% rename from Samples/DeviceEnumerationAndPairing/js/js/scenario3_backgrounddevicewatcher.js rename to archived/DeviceEnumerationAndPairing/js/js/scenario3_backgrounddevicewatcher.js diff --git a/Samples/DeviceEnumerationAndPairing/js/js/scenario4_snapshot.js b/archived/DeviceEnumerationAndPairing/js/js/scenario4_snapshot.js similarity index 100% rename from Samples/DeviceEnumerationAndPairing/js/js/scenario4_snapshot.js rename to archived/DeviceEnumerationAndPairing/js/js/scenario4_snapshot.js diff --git a/Samples/DeviceEnumerationAndPairing/js/js/scenario5_getsingledevice.js b/archived/DeviceEnumerationAndPairing/js/js/scenario5_getsingledevice.js similarity index 100% rename from Samples/DeviceEnumerationAndPairing/js/js/scenario5_getsingledevice.js rename to archived/DeviceEnumerationAndPairing/js/js/scenario5_getsingledevice.js diff --git a/Samples/DeviceEnumerationAndPairing/js/js/scenario6_customfilteraddedprops.js b/archived/DeviceEnumerationAndPairing/js/js/scenario6_customfilteraddedprops.js similarity index 100% rename from Samples/DeviceEnumerationAndPairing/js/js/scenario6_customfilteraddedprops.js rename to archived/DeviceEnumerationAndPairing/js/js/scenario6_customfilteraddedprops.js diff --git a/Samples/DeviceEnumerationAndPairing/js/js/scenario7_deviceinformationkind.js b/archived/DeviceEnumerationAndPairing/js/js/scenario7_deviceinformationkind.js similarity index 100% rename from Samples/DeviceEnumerationAndPairing/js/js/scenario7_deviceinformationkind.js rename to archived/DeviceEnumerationAndPairing/js/js/scenario7_deviceinformationkind.js diff --git a/Samples/DeviceEnumerationAndPairing/js/js/scenario8_pairdevice.js b/archived/DeviceEnumerationAndPairing/js/js/scenario8_pairdevice.js similarity index 100% rename from Samples/DeviceEnumerationAndPairing/js/js/scenario8_pairdevice.js rename to archived/DeviceEnumerationAndPairing/js/js/scenario8_pairdevice.js diff --git a/Samples/DeviceEnumerationAndPairing/js/js/scenario9_custompairdevice.js b/archived/DeviceEnumerationAndPairing/js/js/scenario9_custompairdevice.js similarity index 100% rename from Samples/DeviceEnumerationAndPairing/js/js/scenario9_custompairdevice.js rename to archived/DeviceEnumerationAndPairing/js/js/scenario9_custompairdevice.js diff --git a/Samples/DeviceEnumerationAndPairing/js/sample-utils/placeholder.txt b/archived/DeviceEnumerationAndPairing/js/sample-utils/placeholder.txt similarity index 100% rename from Samples/DeviceEnumerationAndPairing/js/sample-utils/placeholder.txt rename to archived/DeviceEnumerationAndPairing/js/sample-utils/placeholder.txt diff --git a/archived/DisablingScreenCapture/README.md b/archived/DisablingScreenCapture/README.md new file mode 100644 index 0000000000..c184983fb7 --- /dev/null +++ b/archived/DisablingScreenCapture/README.md @@ -0,0 +1,69 @@ +--- +topic: sample +languages: +- js +products: +- windows +- windows-uwp +--- + +# Disabling screen capture sample + +Shows how to disable screen capture by setting the +[IsScreenCaptureEnabled](http://msdn.microsoft.com/library/windows/apps/dn281123) +property of the +[ApplicationView](http://msdn.microsoft.com/library/windows/apps/hh701658) +object. + +> **Note:** This sample is part of a large collection of UWP feature samples. +> If you are unfamiliar with Git and GitHub, you can download the entire collection as a +> [ZIP file](https://github.com/Microsoft/Windows-universal-samples/archive/master.zip), but be +> sure to unzip everything to access shared dependencies. For more info on working with the ZIP file, +> the samples collection, and GitHub, see [Get the UWP samples from GitHub](https://aka.ms/ovu2uq). +> For more samples, see the [Samples portal](https://aka.ms/winsamples) on the Windows Dev Center. + +The sample consists of the following scenarios: + +- Allow screen capture by taking no special action. Screen capture is allowed by default. +- Blocking screen capture for a specific page + by setting [IsScreenCaptureEnabled](http://msdn.microsoft.com/library/windows/apps/dn281123) + to **false** when the user navigates to the page, then setting it back to **true** when the user navigates away. + +**Note** The Windows universal samples require Visual Studio 2017 to build and Windows 10 to execute. + +To obtain information about Windows 10 development, go to the [Windows Dev Center](http://go.microsoft.com/fwlink/?LinkID=532421) + +To obtain information about Microsoft Visual Studio and the tools for developing Windows apps, go to [Visual Studio](http://go.microsoft.com/fwlink/?LinkID=532422) + +## Related topics + +### Reference + +[ApplicationView class](https://msdn.microsoft.com/library/windows/apps/windows.ui.viewmanagement.applicationview.aspx) + +## System requirements + +**Client:** Windows 10 + +**Server:** Windows Server 2016 Technical Preview + +**Phone:** Windows 10 + +## Build the sample + +1. If you download the samples ZIP, be sure to unzip the entire archive, not just the folder with the sample you want to build. +2. Start Microsoft Visual Studio 2017 and select **File** \> **Open** \> **Project/Solution**. +3. Starting in the folder where you unzipped the samples, go to the Samples subfolder, then the subfolder for this specific sample, then the subfolder for your preferred language (C++, C#, or JavaScript). Double-click the Visual Studio Solution (.sln) file. +4. Press Ctrl+Shift+B, or select **Build** \> **Build Solution**. + +## Run the sample + +The next steps depend on whether you just want to deploy the sample or you want to both deploy and run it. + +### Deploying the sample + +- Select Build > Deploy Solution. + +### Deploying and running the sample + +- To debug the sample and then run it, press F5 or select Debug > Start Debugging. To run the sample without debugging, press Ctrl+F5 or select Debug > Start Without Debugging. diff --git a/Samples/DisablingScreenCapture/js/DisablingScreenCapture.jsproj b/archived/DisablingScreenCapture/js/DisablingScreenCapture.jsproj similarity index 80% rename from Samples/DisablingScreenCapture/js/DisablingScreenCapture.jsproj rename to archived/DisablingScreenCapture/js/DisablingScreenCapture.jsproj index 5e360d29d6..0994052d56 100644 --- a/Samples/DisablingScreenCapture/js/DisablingScreenCapture.jsproj +++ b/archived/DisablingScreenCapture/js/DisablingScreenCapture.jsproj @@ -54,7 +54,7 @@ Designer - + default.html @@ -80,52 +80,52 @@ images\windows-sdk.png - + js\default.js - + css\default.css - + Microsoft.WinJS.4.0\css\ui-dark.css - + Microsoft.WinJS.4.0\css\ui-light.css - + Microsoft.WinJS.4.0\js\en-US\ui.strings.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense-setup.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense.js - + Microsoft.WinJS.4.0\fonts\Symbols.ttf - + Microsoft.WinJS.4.0\js\base.js - + Microsoft.WinJS.4.0\js\ui.js - + sample-utils\footer.html - + sample-utils\header.html - + sample-utils\sample-utils.js - + sample-utils\scenario-select.css - + sample-utils\scenario-select.html diff --git a/Samples/DisablingScreenCapture/js/DisablingScreenCapture.sln b/archived/DisablingScreenCapture/js/DisablingScreenCapture.sln similarity index 100% rename from Samples/DisablingScreenCapture/js/DisablingScreenCapture.sln rename to archived/DisablingScreenCapture/js/DisablingScreenCapture.sln diff --git a/Samples/DisablingScreenCapture/js/Microsoft.WinJS.4.0/css/placeholder.txt b/archived/DisablingScreenCapture/js/Microsoft.WinJS.4.0/css/placeholder.txt similarity index 100% rename from Samples/DisablingScreenCapture/js/Microsoft.WinJS.4.0/css/placeholder.txt rename to archived/DisablingScreenCapture/js/Microsoft.WinJS.4.0/css/placeholder.txt diff --git a/Samples/DisablingScreenCapture/js/Microsoft.WinJS.4.0/fonts/placeholder b/archived/DisablingScreenCapture/js/Microsoft.WinJS.4.0/fonts/placeholder similarity index 100% rename from Samples/DisablingScreenCapture/js/Microsoft.WinJS.4.0/fonts/placeholder rename to archived/DisablingScreenCapture/js/Microsoft.WinJS.4.0/fonts/placeholder diff --git a/Samples/DisablingScreenCapture/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt b/archived/DisablingScreenCapture/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt similarity index 100% rename from Samples/DisablingScreenCapture/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt rename to archived/DisablingScreenCapture/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt diff --git a/Samples/DisablingScreenCapture/js/Package.appxmanifest b/archived/DisablingScreenCapture/js/Package.appxmanifest similarity index 100% rename from Samples/DisablingScreenCapture/js/Package.appxmanifest rename to archived/DisablingScreenCapture/js/Package.appxmanifest diff --git a/Samples/DisablingScreenCapture/js/css/placeholder.txt b/archived/DisablingScreenCapture/js/css/placeholder.txt similarity index 100% rename from Samples/DisablingScreenCapture/js/css/placeholder.txt rename to archived/DisablingScreenCapture/js/css/placeholder.txt diff --git a/Samples/DisablingScreenCapture/js/html/scenario1-enable.html b/archived/DisablingScreenCapture/js/html/scenario1-enable.html similarity index 100% rename from Samples/DisablingScreenCapture/js/html/scenario1-enable.html rename to archived/DisablingScreenCapture/js/html/scenario1-enable.html diff --git a/Samples/DisablingScreenCapture/js/html/scenario2-disable.html b/archived/DisablingScreenCapture/js/html/scenario2-disable.html similarity index 100% rename from Samples/DisablingScreenCapture/js/html/scenario2-disable.html rename to archived/DisablingScreenCapture/js/html/scenario2-disable.html diff --git a/Samples/DisablingScreenCapture/js/images/placeholder.txt b/archived/DisablingScreenCapture/js/images/placeholder.txt similarity index 100% rename from Samples/DisablingScreenCapture/js/images/placeholder.txt rename to archived/DisablingScreenCapture/js/images/placeholder.txt diff --git a/Samples/DisablingScreenCapture/js/js/sample-configuration.js b/archived/DisablingScreenCapture/js/js/sample-configuration.js similarity index 100% rename from Samples/DisablingScreenCapture/js/js/sample-configuration.js rename to archived/DisablingScreenCapture/js/js/sample-configuration.js diff --git a/Samples/DisablingScreenCapture/js/js/scenario1-enable.js b/archived/DisablingScreenCapture/js/js/scenario1-enable.js similarity index 100% rename from Samples/DisablingScreenCapture/js/js/scenario1-enable.js rename to archived/DisablingScreenCapture/js/js/scenario1-enable.js diff --git a/Samples/DisablingScreenCapture/js/js/scenario2-disable.js b/archived/DisablingScreenCapture/js/js/scenario2-disable.js similarity index 100% rename from Samples/DisablingScreenCapture/js/js/scenario2-disable.js rename to archived/DisablingScreenCapture/js/js/scenario2-disable.js diff --git a/Samples/DisablingScreenCapture/js/sample-utils/placeholder.txt b/archived/DisablingScreenCapture/js/sample-utils/placeholder.txt similarity index 100% rename from Samples/DisablingScreenCapture/js/sample-utils/placeholder.txt rename to archived/DisablingScreenCapture/js/sample-utils/placeholder.txt diff --git a/archived/DisplayOrientation/README.md b/archived/DisplayOrientation/README.md new file mode 100644 index 0000000000..5cff08fdfc --- /dev/null +++ b/archived/DisplayOrientation/README.md @@ -0,0 +1,76 @@ +--- +topic: sample +languages: +- js +products: +- windows +- windows-uwp +--- + +# Display orientation sample + +Shows how to use the [DisplayInformation](http://msdn.microsoft.com/library/windows/apps/dn264258) +class for retrieving the display orientation and setting an app's auto-rotation orientation preferences. + +> **Note:** This sample is part of a large collection of UWP feature samples. +> If you are unfamiliar with Git and GitHub, you can download the entire collection as a +> [ZIP file](https://github.com/Microsoft/Windows-universal-samples/archive/master.zip), but be +> sure to unzip everything to access shared dependencies. For more info on working with the ZIP file, +> the samples collection, and GitHub, see [Get the UWP samples from GitHub](https://aka.ms/ovu2uq). +> For more samples, see the [Samples portal](https://aka.ms/winsamples) on the Windows Dev Center. + +Specifically, this sample shows how to: + +- Read the native display orientation. +- Read the current display orientation. +- Respond to changes in display orientation. +- Set auto-rotation orientation preferences. + +This sample does not show how to adjust accelerometer data based +on the display orientation. +For a demonstration of how to perform the adjustment, +see the Orientation Changed scenario of the [the Accelerometer sample](../Accelerometer). + +**Note** The Windows universal samples require Visual Studio 2017 to build and Windows 10 to execute. + +To obtain information about Windows 10 development, go to the [Windows Dev Center](http://go.microsoft.com/fwlink/?LinkID=532421) + +To obtain information about Microsoft Visual Studio and the tools for developing Windows apps, go to [Visual Studio](http://go.microsoft.com/fwlink/?LinkID=532422) + +## Related topics + +### Samples + +[Accelerometer](../Accelerometer) + +### Reference + +[Windows.Graphics.Display namespace](http://msdn.microsoft.com/library/windows/apps/windows.graphics.display.aspx) +[DisplayInformation class](http://msdn.microsoft.com/library/windows/apps/dn264258) + +## System requirements + +**Client:** Windows 10 + +**Server:** Windows Server 2016 Technical Preview + +**Phone:** Windows 10 + +## Build the sample + +1. If you download the samples ZIP, be sure to unzip the entire archive, not just the folder with the sample you want to build. +2. Start Microsoft Visual Studio 2017 and select **File** \> **Open** \> **Project/Solution**. +3. Starting in the folder where you unzipped the samples, go to the Samples subfolder, then the subfolder for this specific sample, then the subfolder for your preferred language (C++, C#, or JavaScript). Double-click the Visual Studio Solution (.sln) file. +4. Press Ctrl+Shift+B, or select **Build** \> **Build Solution**. + +## Run the sample + +The next steps depend on whether you just want to deploy the sample or you want to both deploy and run it. + +### Deploying the sample + +- Select Build > Deploy Solution. + +### Deploying and running the sample + +- To debug the sample and then run it, press F5 or select Debug > Start Debugging. To run the sample without debugging, press Ctrl+F5 or selectDebug > Start Without Debugging. diff --git a/Samples/DisplayOrientation/js/DisplayOrientation.jsproj b/archived/DisplayOrientation/js/DisplayOrientation.jsproj similarity index 80% rename from Samples/DisplayOrientation/js/DisplayOrientation.jsproj rename to archived/DisplayOrientation/js/DisplayOrientation.jsproj index dea0a8e3f3..f65172a2c2 100644 --- a/Samples/DisplayOrientation/js/DisplayOrientation.jsproj +++ b/archived/DisplayOrientation/js/DisplayOrientation.jsproj @@ -54,7 +54,7 @@ Designer - + default.html @@ -79,51 +79,51 @@ images\windows-sdk.png - + js\default.js - + css\default.css - + Microsoft.WinJS.4.0\css\ui-dark.css - + Microsoft.WinJS.4.0\css\ui-light.css - + Microsoft.WinJS.4.0\js\en-US\ui.strings.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense-setup.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense.js - + Microsoft.WinJS.4.0\fonts\Symbols.ttf - + Microsoft.WinJS.4.0\js\base.js - + Microsoft.WinJS.4.0\js\ui.js - + sample-utils\footer.html - + sample-utils\header.html - + sample-utils\sample-utils.js - + sample-utils\scenario-select.css - + sample-utils\scenario-select.html diff --git a/Samples/DisplayOrientation/js/DisplayOrientation.sln b/archived/DisplayOrientation/js/DisplayOrientation.sln similarity index 100% rename from Samples/DisplayOrientation/js/DisplayOrientation.sln rename to archived/DisplayOrientation/js/DisplayOrientation.sln diff --git a/Samples/DisplayOrientation/js/Microsoft.WinJS.4.0/css/placeholder.txt b/archived/DisplayOrientation/js/Microsoft.WinJS.4.0/css/placeholder.txt similarity index 100% rename from Samples/DisplayOrientation/js/Microsoft.WinJS.4.0/css/placeholder.txt rename to archived/DisplayOrientation/js/Microsoft.WinJS.4.0/css/placeholder.txt diff --git a/Samples/DisplayOrientation/js/Microsoft.WinJS.4.0/fonts/placeholder b/archived/DisplayOrientation/js/Microsoft.WinJS.4.0/fonts/placeholder similarity index 100% rename from Samples/DisplayOrientation/js/Microsoft.WinJS.4.0/fonts/placeholder rename to archived/DisplayOrientation/js/Microsoft.WinJS.4.0/fonts/placeholder diff --git a/Samples/DisplayOrientation/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt b/archived/DisplayOrientation/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt similarity index 100% rename from Samples/DisplayOrientation/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt rename to archived/DisplayOrientation/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt diff --git a/Samples/DisplayOrientation/js/Package.appxmanifest b/archived/DisplayOrientation/js/Package.appxmanifest similarity index 100% rename from Samples/DisplayOrientation/js/Package.appxmanifest rename to archived/DisplayOrientation/js/Package.appxmanifest diff --git a/Samples/DisplayOrientation/js/css/placeholder.txt b/archived/DisplayOrientation/js/css/placeholder.txt similarity index 100% rename from Samples/DisplayOrientation/js/css/placeholder.txt rename to archived/DisplayOrientation/js/css/placeholder.txt diff --git a/Samples/DisplayOrientation/js/html/scenario1-orientation.html b/archived/DisplayOrientation/js/html/scenario1-orientation.html similarity index 100% rename from Samples/DisplayOrientation/js/html/scenario1-orientation.html rename to archived/DisplayOrientation/js/html/scenario1-orientation.html diff --git a/Samples/DisplayOrientation/js/images/placeholder.txt b/archived/DisplayOrientation/js/images/placeholder.txt similarity index 100% rename from Samples/DisplayOrientation/js/images/placeholder.txt rename to archived/DisplayOrientation/js/images/placeholder.txt diff --git a/Samples/DisplayOrientation/js/js/sample-configuration.js b/archived/DisplayOrientation/js/js/sample-configuration.js similarity index 100% rename from Samples/DisplayOrientation/js/js/sample-configuration.js rename to archived/DisplayOrientation/js/js/sample-configuration.js diff --git a/Samples/DisplayOrientation/js/js/scenario1-orientation.js b/archived/DisplayOrientation/js/js/scenario1-orientation.js similarity index 100% rename from Samples/DisplayOrientation/js/js/scenario1-orientation.js rename to archived/DisplayOrientation/js/js/scenario1-orientation.js diff --git a/Samples/DisplayOrientation/js/sample-utils/placeholder.txt b/archived/DisplayOrientation/js/sample-utils/placeholder.txt similarity index 100% rename from Samples/DisplayOrientation/js/sample-utils/placeholder.txt rename to archived/DisplayOrientation/js/sample-utils/placeholder.txt diff --git a/archived/DpiScaling/README.md b/archived/DpiScaling/README.md new file mode 100644 index 0000000000..5a36751f6b --- /dev/null +++ b/archived/DpiScaling/README.md @@ -0,0 +1,67 @@ +--- +topic: sample +languages: +- js +products: +- windows +- windows-uwp +--- + +# Scaling according to DPI sample + +Shows how to build an app that scales according to the pixel density (dots per inch or dpi) of the screen by loading images +of the right scale or by overriding default scaling. This sample uses the [Windows.Graphics.Display](http://msdn.microsoft.com/library/windows/apps/br226166) API. + +> **Note:** This sample is part of a large collection of UWP feature samples. +> If you are unfamiliar with Git and GitHub, you can download the entire collection as a +> [ZIP file](https://github.com/Microsoft/Windows-universal-samples/archive/master.zip), but be +> sure to unzip everything to access shared dependencies. For more info on working with the ZIP file, +> the samples collection, and GitHub, see [Get the UWP samples from GitHub](https://aka.ms/ovu2uq). +> For more samples, see the [Samples portal](https://aka.ms/winsamples) on the Windows Dev Center. + +The sample demonstrates these scenarios: + +**Loading images for different dpi scales** +When a screen’s pixel density (dpi) and resolution are very high, Windows scales images and other UI elements to maintain physical sizing across devices. We recommend that you make your app scaling aware by providing multiple versions of these assets so that they retain quality across different scale factors. If you don’t provide multiple versions, Windows will stretch your assets by default. + +**Overriding default scaling of UI elements** +To preserve the physical size of UI, Windows automatically scales UI elements as the scale factor ([ResolutionScale](http://msdn.microsoft.com/library/windows/apps/br226165)) changes. You might not want this behavior especially if your app doesn’t have a high-res version of an element available. This scenario demonstrates how to override the automatic scaling of text and UI as the scale factor changes from 100% to 140%. You might want to use this scenario if you don’t want Windows to automatically scale your images or text. + +Important APIs in this sample include: + +- [onresize](http://msdn.microsoft.com/library/windows/apps/hh466035) event +- [DisplayInformation](http://msdn.microsoft.com/library/windows/apps/dn264258) class +- [RawPixelsPerViewPixel](https://msdn.microsoft.com/library/windows.graphics.display.displayinformation.rawpixelsperviewpixel.aspx) property + +**Note** The Windows universal samples require Visual Studio 2017 to build and Windows 10 to execute. + +To obtain information about Windows 10 development, go to the [Windows Dev Center](http://go.microsoft.com/fwlink/?LinkID=532421) + +To obtain information about Microsoft Visual Studio and the tools for developing Windows apps, go to [Visual Studio](http://go.microsoft.com/fwlink/?LinkID=532422) + +## System requirements + +**Client:** Windows 10 + +**Server:** Windows Server 2016 Technical Preview + +**Phone:** Windows 10 + +## Build the sample + +1. If you download the samples ZIP, be sure to unzip the entire archive, not just the folder with the sample you want to build. +2. Start Microsoft Visual Studio 2017 and select **File** \> **Open** \> **Project/Solution**. +3. Starting in the folder where you unzipped the samples, go to the Samples subfolder, then the subfolder for this specific sample, then the subfolder for your preferred language (C++, C#, or JavaScript). Double-click the Visual Studio Solution (.sln) file. +4. Press Ctrl+Shift+B, or select **Build** \> **Build Solution**. + +## Run the sample + +The next steps depend on whether you just want to deploy the sample or you want to both deploy and run it. + +### Deploying the sample + +- Select Build > Deploy Solution. + +### Deploying and running the sample + +- To debug the sample and then run it, press F5 or select Debug > Start Debugging. To run the sample without debugging, press Ctrl+F5 or select Debug > Start Without Debugging. diff --git a/Samples/DpiScaling/js/DpiScaling.jsproj b/archived/DpiScaling/js/DpiScaling.jsproj similarity index 82% rename from Samples/DpiScaling/js/DpiScaling.jsproj rename to archived/DpiScaling/js/DpiScaling.jsproj index 0565063267..4837b4f7ad 100644 --- a/Samples/DpiScaling/js/DpiScaling.jsproj +++ b/archived/DpiScaling/js/DpiScaling.jsproj @@ -56,7 +56,7 @@ - + default.html @@ -95,52 +95,52 @@ images\windows-sdk.png - + js\default.js - + css\default.css - + Microsoft.WinJS.4.0\css\ui-dark.css - + Microsoft.WinJS.4.0\css\ui-light.css - + Microsoft.WinJS.4.0\js\en-US\ui.strings.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense-setup.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense.js - + Microsoft.WinJS.4.0\fonts\Symbols.ttf - + Microsoft.WinJS.4.0\js\base.js - + Microsoft.WinJS.4.0\js\ui.js - + sample-utils\footer.html - + sample-utils\header.html - + sample-utils\sample-utils.js - + sample-utils\scenario-select.css - + sample-utils\scenario-select.html diff --git a/Samples/DpiScaling/js/DpiScaling.sln b/archived/DpiScaling/js/DpiScaling.sln similarity index 100% rename from Samples/DpiScaling/js/DpiScaling.sln rename to archived/DpiScaling/js/DpiScaling.sln diff --git a/Samples/DpiScaling/js/Microsoft.WinJS.4.0/css/placeholder.txt b/archived/DpiScaling/js/Microsoft.WinJS.4.0/css/placeholder.txt similarity index 100% rename from Samples/DpiScaling/js/Microsoft.WinJS.4.0/css/placeholder.txt rename to archived/DpiScaling/js/Microsoft.WinJS.4.0/css/placeholder.txt diff --git a/Samples/DpiScaling/js/Microsoft.WinJS.4.0/fonts/placeholder b/archived/DpiScaling/js/Microsoft.WinJS.4.0/fonts/placeholder similarity index 100% rename from Samples/DpiScaling/js/Microsoft.WinJS.4.0/fonts/placeholder rename to archived/DpiScaling/js/Microsoft.WinJS.4.0/fonts/placeholder diff --git a/Samples/DpiScaling/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt b/archived/DpiScaling/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt similarity index 100% rename from Samples/DpiScaling/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt rename to archived/DpiScaling/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt diff --git a/Samples/DpiScaling/js/Package.appxmanifest b/archived/DpiScaling/js/Package.appxmanifest similarity index 100% rename from Samples/DpiScaling/js/Package.appxmanifest rename to archived/DpiScaling/js/Package.appxmanifest diff --git a/Samples/DpiScaling/js/css/scenario1.css b/archived/DpiScaling/js/css/scenario1.css similarity index 100% rename from Samples/DpiScaling/js/css/scenario1.css rename to archived/DpiScaling/js/css/scenario1.css diff --git a/Samples/DpiScaling/js/css/scenario2.css b/archived/DpiScaling/js/css/scenario2.css similarity index 100% rename from Samples/DpiScaling/js/css/scenario2.css rename to archived/DpiScaling/js/css/scenario2.css diff --git a/Samples/DpiScaling/js/html/scenario1.html b/archived/DpiScaling/js/html/scenario1.html similarity index 100% rename from Samples/DpiScaling/js/html/scenario1.html rename to archived/DpiScaling/js/html/scenario1.html diff --git a/Samples/DpiScaling/js/html/scenario2.html b/archived/DpiScaling/js/html/scenario2.html similarity index 100% rename from Samples/DpiScaling/js/html/scenario2.html rename to archived/DpiScaling/js/html/scenario2.html diff --git a/Samples/DpiScaling/js/images/projector.svg b/archived/DpiScaling/js/images/projector.svg similarity index 100% rename from Samples/DpiScaling/js/images/projector.svg rename to archived/DpiScaling/js/images/projector.svg diff --git a/Samples/DpiScaling/js/js/sample-configuration.js b/archived/DpiScaling/js/js/sample-configuration.js similarity index 100% rename from Samples/DpiScaling/js/js/sample-configuration.js rename to archived/DpiScaling/js/js/sample-configuration.js diff --git a/Samples/DpiScaling/js/js/scenario1.js b/archived/DpiScaling/js/js/scenario1.js similarity index 100% rename from Samples/DpiScaling/js/js/scenario1.js rename to archived/DpiScaling/js/js/scenario1.js diff --git a/Samples/DpiScaling/js/js/scenario2.js b/archived/DpiScaling/js/js/scenario2.js similarity index 100% rename from Samples/DpiScaling/js/js/scenario2.js rename to archived/DpiScaling/js/js/scenario2.js diff --git a/Samples/DpiScaling/js/sample-utils/placeholder.txt b/archived/DpiScaling/js/sample-utils/placeholder.txt similarity index 100% rename from Samples/DpiScaling/js/sample-utils/placeholder.txt rename to archived/DpiScaling/js/sample-utils/placeholder.txt diff --git a/Samples/EfficientAnimations/README.md b/archived/EfficientAnimations/README.md similarity index 100% rename from Samples/EfficientAnimations/README.md rename to archived/EfficientAnimations/README.md diff --git a/Samples/EfficientAnimations/js/EfficientAnimations.jsproj b/archived/EfficientAnimations/js/EfficientAnimations.jsproj similarity index 81% rename from Samples/EfficientAnimations/js/EfficientAnimations.jsproj rename to archived/EfficientAnimations/js/EfficientAnimations.jsproj index d26f6de871..ccfcf82b05 100644 --- a/Samples/EfficientAnimations/js/EfficientAnimations.jsproj +++ b/archived/EfficientAnimations/js/EfficientAnimations.jsproj @@ -54,7 +54,7 @@ Designer - + default.html @@ -83,51 +83,51 @@ images\windows-sdk.png - + js\default.js - + css\default.css - + Microsoft.WinJS.4.0\css\ui-dark.css - + Microsoft.WinJS.4.0\css\ui-light.css - + Microsoft.WinJS.4.0\js\en-US\ui.strings.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense-setup.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense.js - + Microsoft.WinJS.4.0\fonts\Symbols.ttf - + Microsoft.WinJS.4.0\js\base.js - + Microsoft.WinJS.4.0\js\ui.js - + sample-utils\footer.html - + sample-utils\header.html - + sample-utils\sample-utils.js - + sample-utils\scenario-select.css - + sample-utils\scenario-select.html diff --git a/Samples/EfficientAnimations/js/EfficientAnimations.sln b/archived/EfficientAnimations/js/EfficientAnimations.sln similarity index 100% rename from Samples/EfficientAnimations/js/EfficientAnimations.sln rename to archived/EfficientAnimations/js/EfficientAnimations.sln diff --git a/Samples/EfficientAnimations/js/Microsoft.WinJS.4.0/css/placeholder.txt b/archived/EfficientAnimations/js/Microsoft.WinJS.4.0/css/placeholder.txt similarity index 100% rename from Samples/EfficientAnimations/js/Microsoft.WinJS.4.0/css/placeholder.txt rename to archived/EfficientAnimations/js/Microsoft.WinJS.4.0/css/placeholder.txt diff --git a/Samples/EfficientAnimations/js/Microsoft.WinJS.4.0/fonts/placeholder b/archived/EfficientAnimations/js/Microsoft.WinJS.4.0/fonts/placeholder similarity index 100% rename from Samples/EfficientAnimations/js/Microsoft.WinJS.4.0/fonts/placeholder rename to archived/EfficientAnimations/js/Microsoft.WinJS.4.0/fonts/placeholder diff --git a/Samples/EfficientAnimations/js/Microsoft.WinJS.4.0/js/en-us/placeholder.txt b/archived/EfficientAnimations/js/Microsoft.WinJS.4.0/js/en-us/placeholder.txt similarity index 100% rename from Samples/EfficientAnimations/js/Microsoft.WinJS.4.0/js/en-us/placeholder.txt rename to archived/EfficientAnimations/js/Microsoft.WinJS.4.0/js/en-us/placeholder.txt diff --git a/Samples/EfficientAnimations/js/Package.appxmanifest b/archived/EfficientAnimations/js/Package.appxmanifest similarity index 100% rename from Samples/EfficientAnimations/js/Package.appxmanifest rename to archived/EfficientAnimations/js/Package.appxmanifest diff --git a/Samples/EfficientAnimations/js/css/placeholder.txt b/archived/EfficientAnimations/js/css/placeholder.txt similarity index 100% rename from Samples/EfficientAnimations/js/css/placeholder.txt rename to archived/EfficientAnimations/js/css/placeholder.txt diff --git a/Samples/EfficientAnimations/js/html/scenario1.html b/archived/EfficientAnimations/js/html/scenario1.html similarity index 100% rename from Samples/EfficientAnimations/js/html/scenario1.html rename to archived/EfficientAnimations/js/html/scenario1.html diff --git a/Samples/EfficientAnimations/js/images/fancyclock.png b/archived/EfficientAnimations/js/images/fancyclock.png similarity index 100% rename from Samples/EfficientAnimations/js/images/fancyclock.png rename to archived/EfficientAnimations/js/images/fancyclock.png diff --git a/Samples/EfficientAnimations/js/images/hour.png b/archived/EfficientAnimations/js/images/hour.png similarity index 100% rename from Samples/EfficientAnimations/js/images/hour.png rename to archived/EfficientAnimations/js/images/hour.png diff --git a/Samples/EfficientAnimations/js/images/minute.png b/archived/EfficientAnimations/js/images/minute.png similarity index 100% rename from Samples/EfficientAnimations/js/images/minute.png rename to archived/EfficientAnimations/js/images/minute.png diff --git a/Samples/EfficientAnimations/js/images/second.png b/archived/EfficientAnimations/js/images/second.png similarity index 100% rename from Samples/EfficientAnimations/js/images/second.png rename to archived/EfficientAnimations/js/images/second.png diff --git a/Samples/EfficientAnimations/js/js/sample-configuration.js b/archived/EfficientAnimations/js/js/sample-configuration.js similarity index 100% rename from Samples/EfficientAnimations/js/js/sample-configuration.js rename to archived/EfficientAnimations/js/js/sample-configuration.js diff --git a/Samples/EfficientAnimations/js/js/scenario1.js b/archived/EfficientAnimations/js/js/scenario1.js similarity index 100% rename from Samples/EfficientAnimations/js/js/scenario1.js rename to archived/EfficientAnimations/js/js/scenario1.js diff --git a/Samples/EfficientAnimations/js/sample-utils/placeholder.txt b/archived/EfficientAnimations/js/sample-utils/placeholder.txt similarity index 100% rename from Samples/EfficientAnimations/js/sample-utils/placeholder.txt rename to archived/EfficientAnimations/js/sample-utils/placeholder.txt diff --git a/Samples/FeedReader/README.md b/archived/FeedReader/README.md similarity index 100% rename from Samples/FeedReader/README.md rename to archived/FeedReader/README.md diff --git a/Samples/FeedReader/js/FeedReader.jsproj b/archived/FeedReader/js/FeedReader.jsproj similarity index 89% rename from Samples/FeedReader/js/FeedReader.jsproj rename to archived/FeedReader/js/FeedReader.jsproj index e761e610ac..e4c3669c8f 100644 --- a/Samples/FeedReader/js/FeedReader.jsproj +++ b/archived/FeedReader/js/FeedReader.jsproj @@ -87,28 +87,28 @@ - + Microsoft.WinJS.4.0\css\ui-dark.css - + Microsoft.WinJS.4.0\css\ui-light.css - + Microsoft.WinJS.4.0\js\en-US\ui.strings.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense-setup.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense.js - + Microsoft.WinJS.4.0\fonts\Symbols.ttf - + Microsoft.WinJS.4.0\js\base.js - + Microsoft.WinJS.4.0\js\ui.js diff --git a/Samples/FeedReader/js/FeedReader.sln b/archived/FeedReader/js/FeedReader.sln similarity index 100% rename from Samples/FeedReader/js/FeedReader.sln rename to archived/FeedReader/js/FeedReader.sln diff --git a/Samples/FeedReader/js/Microsoft.WinJS.4.0/css/placeholder.txt b/archived/FeedReader/js/Microsoft.WinJS.4.0/css/placeholder.txt similarity index 100% rename from Samples/FeedReader/js/Microsoft.WinJS.4.0/css/placeholder.txt rename to archived/FeedReader/js/Microsoft.WinJS.4.0/css/placeholder.txt diff --git a/Samples/FeedReader/js/Microsoft.WinJS.4.0/fonts/placeholder b/archived/FeedReader/js/Microsoft.WinJS.4.0/fonts/placeholder similarity index 100% rename from Samples/FeedReader/js/Microsoft.WinJS.4.0/fonts/placeholder rename to archived/FeedReader/js/Microsoft.WinJS.4.0/fonts/placeholder diff --git a/Samples/FeedReader/js/Microsoft.WinJS.4.0/js/en-us/placeholder.txt b/archived/FeedReader/js/Microsoft.WinJS.4.0/js/en-us/placeholder.txt similarity index 100% rename from Samples/FeedReader/js/Microsoft.WinJS.4.0/js/en-us/placeholder.txt rename to archived/FeedReader/js/Microsoft.WinJS.4.0/js/en-us/placeholder.txt diff --git a/Samples/FeedReader/js/Package.appxmanifest b/archived/FeedReader/js/Package.appxmanifest similarity index 100% rename from Samples/FeedReader/js/Package.appxmanifest rename to archived/FeedReader/js/Package.appxmanifest diff --git a/Samples/FeedReader/js/css/default.css b/archived/FeedReader/js/css/default.css similarity index 100% rename from Samples/FeedReader/js/css/default.css rename to archived/FeedReader/js/css/default.css diff --git a/Samples/FeedReader/js/default.html b/archived/FeedReader/js/default.html similarity index 100% rename from Samples/FeedReader/js/default.html rename to archived/FeedReader/js/default.html diff --git a/Samples/FeedReader/js/feedCollection.json b/archived/FeedReader/js/feedCollection.json similarity index 100% rename from Samples/FeedReader/js/feedCollection.json rename to archived/FeedReader/js/feedCollection.json diff --git a/Samples/FeedReader/js/images/LargeRSSLogo-background-white.png b/archived/FeedReader/js/images/LargeRSSLogo-background-white.png similarity index 100% rename from Samples/FeedReader/js/images/LargeRSSLogo-background-white.png rename to archived/FeedReader/js/images/LargeRSSLogo-background-white.png diff --git a/Samples/FeedReader/js/js/data.js b/archived/FeedReader/js/js/data.js similarity index 100% rename from Samples/FeedReader/js/js/data.js rename to archived/FeedReader/js/js/data.js diff --git a/Samples/FeedReader/js/js/io.js b/archived/FeedReader/js/js/io.js similarity index 100% rename from Samples/FeedReader/js/js/io.js rename to archived/FeedReader/js/js/io.js diff --git a/Samples/FeedReader/js/js/main.js b/archived/FeedReader/js/js/main.js similarity index 100% rename from Samples/FeedReader/js/js/main.js rename to archived/FeedReader/js/js/main.js diff --git a/Samples/FeedReader/js/js/navigator.js b/archived/FeedReader/js/js/navigator.js similarity index 100% rename from Samples/FeedReader/js/js/navigator.js rename to archived/FeedReader/js/js/navigator.js diff --git a/Samples/FeedReader/js/js/render.js b/archived/FeedReader/js/js/render.js similarity index 100% rename from Samples/FeedReader/js/js/render.js rename to archived/FeedReader/js/js/render.js diff --git a/Samples/FeedReader/js/pages/article/article.css b/archived/FeedReader/js/pages/article/article.css similarity index 100% rename from Samples/FeedReader/js/pages/article/article.css rename to archived/FeedReader/js/pages/article/article.css diff --git a/Samples/FeedReader/js/pages/article/article.html b/archived/FeedReader/js/pages/article/article.html similarity index 100% rename from Samples/FeedReader/js/pages/article/article.html rename to archived/FeedReader/js/pages/article/article.html diff --git a/Samples/FeedReader/js/pages/article/article.js b/archived/FeedReader/js/pages/article/article.js similarity index 100% rename from Samples/FeedReader/js/pages/article/article.js rename to archived/FeedReader/js/pages/article/article.js diff --git a/Samples/FeedReader/js/pages/feed/feed.css b/archived/FeedReader/js/pages/feed/feed.css similarity index 100% rename from Samples/FeedReader/js/pages/feed/feed.css rename to archived/FeedReader/js/pages/feed/feed.css diff --git a/Samples/FeedReader/js/pages/feed/feed.html b/archived/FeedReader/js/pages/feed/feed.html similarity index 100% rename from Samples/FeedReader/js/pages/feed/feed.html rename to archived/FeedReader/js/pages/feed/feed.html diff --git a/Samples/FeedReader/js/pages/feed/feed.js b/archived/FeedReader/js/pages/feed/feed.js similarity index 100% rename from Samples/FeedReader/js/pages/feed/feed.js rename to archived/FeedReader/js/pages/feed/feed.js diff --git a/Samples/FeedReader/js/pages/news/news.css b/archived/FeedReader/js/pages/news/news.css similarity index 100% rename from Samples/FeedReader/js/pages/news/news.css rename to archived/FeedReader/js/pages/news/news.css diff --git a/Samples/FeedReader/js/pages/news/news.html b/archived/FeedReader/js/pages/news/news.html similarity index 100% rename from Samples/FeedReader/js/pages/news/news.html rename to archived/FeedReader/js/pages/news/news.html diff --git a/Samples/FeedReader/js/pages/news/news.js b/archived/FeedReader/js/pages/news/news.js similarity index 100% rename from Samples/FeedReader/js/pages/news/news.js rename to archived/FeedReader/js/pages/news/news.js diff --git a/Samples/FeedReader/js/pages/subscriptions/subscriptions.css b/archived/FeedReader/js/pages/subscriptions/subscriptions.css similarity index 100% rename from Samples/FeedReader/js/pages/subscriptions/subscriptions.css rename to archived/FeedReader/js/pages/subscriptions/subscriptions.css diff --git a/Samples/FeedReader/js/pages/subscriptions/subscriptions.html b/archived/FeedReader/js/pages/subscriptions/subscriptions.html similarity index 100% rename from Samples/FeedReader/js/pages/subscriptions/subscriptions.html rename to archived/FeedReader/js/pages/subscriptions/subscriptions.html diff --git a/Samples/FeedReader/js/pages/subscriptions/subscriptions.js b/archived/FeedReader/js/pages/subscriptions/subscriptions.js similarity index 100% rename from Samples/FeedReader/js/pages/subscriptions/subscriptions.js rename to archived/FeedReader/js/pages/subscriptions/subscriptions.js diff --git a/archived/FileAccess/README.md b/archived/FileAccess/README.md new file mode 100644 index 0000000000..66bcb77bc1 --- /dev/null +++ b/archived/FileAccess/README.md @@ -0,0 +1,132 @@ +--- +topic: sample +languages: +- js +products: +- windows +- windows-uwp +--- + +# File access sample + +Shows how to create, read, write, copy and delete a file, how to retrieve file properties, and how +to track a file or folder so that your app can access it again. +This sample uses the [Windows.Storage](http://msdn.microsoft.com/library/windows/apps/br227346) and +[Windows.Storage.AccessCache](http://msdn.microsoft.com/library/windows/apps/br207498) APIs. + +> **Note:** This sample is part of a large collection of UWP feature samples. +> If you are unfamiliar with Git and GitHub, you can download the entire collection as a +> [ZIP file](https://github.com/Microsoft/Windows-universal-samples/archive/master.zip), but be +> sure to unzip everything to access shared dependencies. For more info on working with the ZIP file, +> the samples collection, and GitHub, see [Get the UWP samples from GitHub](https://aka.ms/ovu2uq). +> For more samples, see the [Samples portal](https://aka.ms/winsamples) on the Windows Dev Center. + +The sample demonstrates these tasks: + +1. **Create a file in the Pictures library** + + Uses one of the [StorageFolder](http://msdn.microsoft.com/library/windows/apps/br227230).[CreateFileAsync](http://msdn.microsoft.com/library/windows/apps/br227249) methods to create the file. + +2. **Get a file's parent folder** + + Uses the [StorageFile](http://msdn.microsoft.com/library/windows/apps/br227171).[GetParentAsync](http://msdn.microsoft.com/library/windows/apps/dn298477) method to get the parent folder of the file that was created in the Picture folder. The app has the Pictures library capability, so it can access the folder where the file was created. + +3. **Write and read text in a file** + + Uses the [FileIO](http://msdn.microsoft.com/library/windows/apps/hh701440).[WriteTextAsync](http://msdn.microsoft.com/library/windows/apps/hh701505) and [FileIO](http://msdn.microsoft.com/library/windows/apps/hh701440).[ReadTextAsync](http://msdn.microsoft.com/library/windows/apps/hh701482) methods to write and read the file. For more info, see [Create, write, and read a file](https://msdn.microsoft.com/library/windows/apps/mt185401). + +4. **Write and read bytes in a file** + + Uses the [FileIO](http://msdn.microsoft.com/library/windows/apps/hh701440).[WriteBufferAsync](http://msdn.microsoft.com/library/windows/apps/hh701490) and [FileIO](http://msdn.microsoft.com/library/windows/apps/hh701440).[ReadBufferAsync](http://msdn.microsoft.com/library/windows/apps/hh701468) methods to write and read the file. For more info, see [Create, write, and read a file](https://msdn.microsoft.com/library/windows/apps/mt185401). + +5. **Write and read a file using a stream** + + Uses the following API to write and read the file using a stream. + + - [StorageFile](http://msdn.microsoft.com/library/windows/apps/br227171).[OpenTransactedWriteAsync](http://msdn.microsoft.com/library/windows/apps/hh996766) method + - [DataWriter](http://msdn.microsoft.com/library/windows/apps/br208154) class + - [DataReader](http://msdn.microsoft.com/library/windows/apps/br208119) class + + For more info, see [Create, write, and read a file](https://msdn.microsoft.com/library/windows/apps/mt185401). + +6. **Display file properties** + + Uses the [StorageFile](http://msdn.microsoft.com/library/windows/apps/br227171).[GetBasicPropertiesAsync](http://msdn.microsoft.com/library/windows/apps/hh701737) method and the [StorageFile](http://msdn.microsoft.com/library/windows/apps/br227171).[Properties](http://msdn.microsoft.com/library/windows/apps/br227225) property to get the properties of the file. + +7. **Track a file or folder so that you can access it later (persisting access)** + + Uses the [StorageApplicationPermissions](http://msdn.microsoft.com/library/windows/apps/br207456).[FutureAccessList](http://msdn.microsoft.com/library/windows/apps/br207457) and [StorageApplicationPermissions](http://msdn.microsoft.com/library/windows/apps/br207456).[MostRecentlyUsedList](http://msdn.microsoft.com/library/windows/apps/br207458) properties to remember a file or folder so that it can be accessed later. + + For more info, see [Track recently used files and folders](https://msdn.microsoft.com/library/windows/apps/mt186452). + +8. **Copy a file** + + Uses one of the [StorageFile](http://msdn.microsoft.com/library/windows/apps/br227171).[CopyAsync](http://msdn.microsoft.com/library/windows/apps/br227190) methods to copy the file. + +9. **Compare two files to see if they're the same** + + Uses the [StorageFile](http://msdn.microsoft.com/library/windows/apps/br227171).[IsEqual](http://msdn.microsoft.com/library/windows/apps/dn298484) method to compare two files. + +10. **Delete a file** + + Uses one of the [StorageFile](http://msdn.microsoft.com/library/windows/apps/br227171).[DeleteAsync](http://msdn.microsoft.com/library/windows/apps/br227199) methods to delete the file. + +11. **Try to get a file without getting an error** + + Uses the [StorageFolder](http://msdn.microsoft.com/library/windows/apps/br227230).[TryGetItemAsync](http://msdn.microsoft.com/library/windows/apps/dn251721) method to get a file without raising an exception. + +**Note** The Windows universal samples require Visual Studio 2017 to build and Windows 10 to execute. + +To obtain information about Windows 10 development, go to the [Windows Dev Center](http://go.microsoft.com/fwlink/?LinkID=532421) + +To obtain information about Microsoft Visual Studio and the tools for developing Windows apps, go to [Visual Studio](http://go.microsoft.com/fwlink/?LinkID=532422) + +## Related topics + +*Note**  If you want to learn about accessing files using a file picker, see [Open files and folders with a picker](https://msdn.microsoft.com/library/windows/apps/mt186456). + +### Samples + +[File picker sample](http://go.microsoft.com/fwlink/p/?linkid=231464) +[Folder enumeration sample](http://go.microsoft.com/fwlink/p/?linkid=231512) +[Programmatic file search sample](http://go.microsoft.com/fwlink/p/?linkid=231532) +[File and folder thumbnail sample](http://go.microsoft.com/fwlink/p/?linkid=231522) +[RSS reader sample](https://github.com/Microsoft/Windows-appsample-rssreader) +[Family Notes sample](https://github.com/Microsoft/Windows-appsample-familynotes) +[Coloring Book app sample](https://github.com/Microsoft/Windows-appsample-coloringbook) +[Traffic App sample](https://github.com/microsoft/windows-appsample-trafficapp/) + +## Reference + +[Windows.Storage namespace](http://msdn.microsoft.com/library/windows/apps/br227346) +[Windows.Storage.AccessCache namespace](http://msdn.microsoft.com/library/windows/apps/br207498) +[Windows.Storage.FileProperties](http://msdn.microsoft.com/library/windows/apps/br207831) +[Windows.Storage.Streams namespace](http://msdn.microsoft.com/library/windows/apps/br241791) + +## System requirements + +**Client:** Windows 10 build 10500 or higher + +**Server:** Windows Server 2016 Technical Preview build 10500 or higher + +**Phone:** Windows 10 build 10500 or higher + +## Build the sample + +1. If you download the samples ZIP, be sure to unzip the entire archive, not just the folder with the sample you want to build. +2. Start Microsoft Visual Studio 2017 and select **File** \> **Open** \> **Project/Solution**. +3. Starting in the folder where you unzipped the samples, go to the Samples subfolder, then the subfolder for this specific sample, then the subfolder for your preferred language (C++, C#, or JavaScript). Double-click the Visual Studio Solution (.sln) file. +4. Press Ctrl+Shift+B, or select **Build** \> **Build Solution**. + +## Run the sample + +The next steps depend on whether you just want to deploy the sample or you want to both deploy and run it. + +### Deploying the sample + +- Select Build > Deploy Solution. + +### Deploying and running the sample + +- To debug the sample and then run it, press F5 or select Debug > Start Debugging. To run the sample without debugging, press Ctrl+F5 or select Debug > Start Without Debugging. + diff --git a/Samples/FileAccess/js/FileAccess.jsproj b/archived/FileAccess/js/FileAccess.jsproj similarity index 83% rename from Samples/FileAccess/js/FileAccess.jsproj rename to archived/FileAccess/js/FileAccess.jsproj index ebc2e2b466..2ee9b07082 100644 --- a/Samples/FileAccess/js/FileAccess.jsproj +++ b/archived/FileAccess/js/FileAccess.jsproj @@ -54,7 +54,7 @@ Designer - + default.html @@ -89,10 +89,10 @@ images\windows-sdk.png - + js\default.js - + css\default.css @@ -107,43 +107,43 @@ - + Microsoft.WinJS.4.0\css\ui-dark.css - + Microsoft.WinJS.4.0\css\ui-light.css - + Microsoft.WinJS.4.0\js\en-US\ui.strings.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense-setup.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense.js - + Microsoft.WinJS.4.0\fonts\Symbols.ttf - + Microsoft.WinJS.4.0\js\base.js - + Microsoft.WinJS.4.0\js\ui.js - + sample-utils\footer.html - + sample-utils\header.html - + sample-utils\sample-utils.js - + sample-utils\scenario-select.css - + sample-utils\scenario-select.html diff --git a/Samples/FileAccess/js/FileAccess.sln b/archived/FileAccess/js/FileAccess.sln similarity index 100% rename from Samples/FileAccess/js/FileAccess.sln rename to archived/FileAccess/js/FileAccess.sln diff --git a/Samples/FileAccess/js/Microsoft.WinJS.4.0/css/placeholder.txt b/archived/FileAccess/js/Microsoft.WinJS.4.0/css/placeholder.txt similarity index 100% rename from Samples/FileAccess/js/Microsoft.WinJS.4.0/css/placeholder.txt rename to archived/FileAccess/js/Microsoft.WinJS.4.0/css/placeholder.txt diff --git a/Samples/FileAccess/js/Microsoft.WinJS.4.0/fonts/placeholder b/archived/FileAccess/js/Microsoft.WinJS.4.0/fonts/placeholder similarity index 100% rename from Samples/FileAccess/js/Microsoft.WinJS.4.0/fonts/placeholder rename to archived/FileAccess/js/Microsoft.WinJS.4.0/fonts/placeholder diff --git a/Samples/FileAccess/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt b/archived/FileAccess/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt similarity index 100% rename from Samples/FileAccess/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt rename to archived/FileAccess/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt diff --git a/Samples/FileAccess/js/Package.appxmanifest b/archived/FileAccess/js/Package.appxmanifest similarity index 100% rename from Samples/FileAccess/js/Package.appxmanifest rename to archived/FileAccess/js/Package.appxmanifest diff --git a/Samples/FileAccess/js/css/placeholder.txt b/archived/FileAccess/js/css/placeholder.txt similarity index 100% rename from Samples/FileAccess/js/css/placeholder.txt rename to archived/FileAccess/js/css/placeholder.txt diff --git a/Samples/FileAccess/js/html/scenario10_DeleteAFile.html b/archived/FileAccess/js/html/scenario10_DeleteAFile.html similarity index 100% rename from Samples/FileAccess/js/html/scenario10_DeleteAFile.html rename to archived/FileAccess/js/html/scenario10_DeleteAFile.html diff --git a/Samples/FileAccess/js/html/scenario11_TryToGetAFileWithoutGettingAnError.html b/archived/FileAccess/js/html/scenario11_TryToGetAFileWithoutGettingAnError.html similarity index 100% rename from Samples/FileAccess/js/html/scenario11_TryToGetAFileWithoutGettingAnError.html rename to archived/FileAccess/js/html/scenario11_TryToGetAFileWithoutGettingAnError.html diff --git a/Samples/FileAccess/js/html/scenario1_CreateAFileInThePicturesLibrary.html b/archived/FileAccess/js/html/scenario1_CreateAFileInThePicturesLibrary.html similarity index 100% rename from Samples/FileAccess/js/html/scenario1_CreateAFileInThePicturesLibrary.html rename to archived/FileAccess/js/html/scenario1_CreateAFileInThePicturesLibrary.html diff --git a/Samples/FileAccess/js/html/scenario2_GetTheParentFolderOfAFile.html b/archived/FileAccess/js/html/scenario2_GetTheParentFolderOfAFile.html similarity index 100% rename from Samples/FileAccess/js/html/scenario2_GetTheParentFolderOfAFile.html rename to archived/FileAccess/js/html/scenario2_GetTheParentFolderOfAFile.html diff --git a/Samples/FileAccess/js/html/scenario3_WriteAndReadTextInAFile.html b/archived/FileAccess/js/html/scenario3_WriteAndReadTextInAFile.html similarity index 100% rename from Samples/FileAccess/js/html/scenario3_WriteAndReadTextInAFile.html rename to archived/FileAccess/js/html/scenario3_WriteAndReadTextInAFile.html diff --git a/Samples/FileAccess/js/html/scenario4_WriteAndReadBytesInAFile.html b/archived/FileAccess/js/html/scenario4_WriteAndReadBytesInAFile.html similarity index 100% rename from Samples/FileAccess/js/html/scenario4_WriteAndReadBytesInAFile.html rename to archived/FileAccess/js/html/scenario4_WriteAndReadBytesInAFile.html diff --git a/Samples/FileAccess/js/html/scenario5_WriteAndReadAFileUsingAStream.html b/archived/FileAccess/js/html/scenario5_WriteAndReadAFileUsingAStream.html similarity index 100% rename from Samples/FileAccess/js/html/scenario5_WriteAndReadAFileUsingAStream.html rename to archived/FileAccess/js/html/scenario5_WriteAndReadAFileUsingAStream.html diff --git a/Samples/FileAccess/js/html/scenario6_DisplayFileProperties.html b/archived/FileAccess/js/html/scenario6_DisplayFileProperties.html similarity index 100% rename from Samples/FileAccess/js/html/scenario6_DisplayFileProperties.html rename to archived/FileAccess/js/html/scenario6_DisplayFileProperties.html diff --git a/Samples/FileAccess/js/html/scenario7_TrackAFileOrFolderSoThatYouCanAccessItLater.html b/archived/FileAccess/js/html/scenario7_TrackAFileOrFolderSoThatYouCanAccessItLater.html similarity index 100% rename from Samples/FileAccess/js/html/scenario7_TrackAFileOrFolderSoThatYouCanAccessItLater.html rename to archived/FileAccess/js/html/scenario7_TrackAFileOrFolderSoThatYouCanAccessItLater.html diff --git a/Samples/FileAccess/js/html/scenario8_CopyAFile.html b/archived/FileAccess/js/html/scenario8_CopyAFile.html similarity index 100% rename from Samples/FileAccess/js/html/scenario8_CopyAFile.html rename to archived/FileAccess/js/html/scenario8_CopyAFile.html diff --git a/Samples/FileAccess/js/html/scenario9_CompareTwoFilesToSeeIfTheyAreTheSame.html b/archived/FileAccess/js/html/scenario9_CompareTwoFilesToSeeIfTheyAreTheSame.html similarity index 100% rename from Samples/FileAccess/js/html/scenario9_CompareTwoFilesToSeeIfTheyAreTheSame.html rename to archived/FileAccess/js/html/scenario9_CompareTwoFilesToSeeIfTheyAreTheSame.html diff --git a/Samples/FileAccess/js/images/placeholder.txt b/archived/FileAccess/js/images/placeholder.txt similarity index 100% rename from Samples/FileAccess/js/images/placeholder.txt rename to archived/FileAccess/js/images/placeholder.txt diff --git a/Samples/FileAccess/js/js/sample-configuration.js b/archived/FileAccess/js/js/sample-configuration.js similarity index 100% rename from Samples/FileAccess/js/js/sample-configuration.js rename to archived/FileAccess/js/js/sample-configuration.js diff --git a/Samples/FileAccess/js/js/scenario10_DeleteAFile.js b/archived/FileAccess/js/js/scenario10_DeleteAFile.js similarity index 100% rename from Samples/FileAccess/js/js/scenario10_DeleteAFile.js rename to archived/FileAccess/js/js/scenario10_DeleteAFile.js diff --git a/Samples/FileAccess/js/js/scenario11_TryToGetAFileWithoutGettingAnError.js b/archived/FileAccess/js/js/scenario11_TryToGetAFileWithoutGettingAnError.js similarity index 100% rename from Samples/FileAccess/js/js/scenario11_TryToGetAFileWithoutGettingAnError.js rename to archived/FileAccess/js/js/scenario11_TryToGetAFileWithoutGettingAnError.js diff --git a/Samples/FileAccess/js/js/scenario1_CreateAFileInThePicturesLibrary.js b/archived/FileAccess/js/js/scenario1_CreateAFileInThePicturesLibrary.js similarity index 100% rename from Samples/FileAccess/js/js/scenario1_CreateAFileInThePicturesLibrary.js rename to archived/FileAccess/js/js/scenario1_CreateAFileInThePicturesLibrary.js diff --git a/Samples/FileAccess/js/js/scenario2_GetTheParentFolderOfAFile.js b/archived/FileAccess/js/js/scenario2_GetTheParentFolderOfAFile.js similarity index 100% rename from Samples/FileAccess/js/js/scenario2_GetTheParentFolderOfAFile.js rename to archived/FileAccess/js/js/scenario2_GetTheParentFolderOfAFile.js diff --git a/Samples/FileAccess/js/js/scenario3_WriteAndReadTextInAFile.js b/archived/FileAccess/js/js/scenario3_WriteAndReadTextInAFile.js similarity index 100% rename from Samples/FileAccess/js/js/scenario3_WriteAndReadTextInAFile.js rename to archived/FileAccess/js/js/scenario3_WriteAndReadTextInAFile.js diff --git a/Samples/FileAccess/js/js/scenario4_WriteAndReadBytesInAFile.js b/archived/FileAccess/js/js/scenario4_WriteAndReadBytesInAFile.js similarity index 100% rename from Samples/FileAccess/js/js/scenario4_WriteAndReadBytesInAFile.js rename to archived/FileAccess/js/js/scenario4_WriteAndReadBytesInAFile.js diff --git a/Samples/FileAccess/js/js/scenario5_WriteAndReadAFileUsingAStream.js b/archived/FileAccess/js/js/scenario5_WriteAndReadAFileUsingAStream.js similarity index 100% rename from Samples/FileAccess/js/js/scenario5_WriteAndReadAFileUsingAStream.js rename to archived/FileAccess/js/js/scenario5_WriteAndReadAFileUsingAStream.js diff --git a/Samples/FileAccess/js/js/scenario6_DisplayFileProperties.js b/archived/FileAccess/js/js/scenario6_DisplayFileProperties.js similarity index 100% rename from Samples/FileAccess/js/js/scenario6_DisplayFileProperties.js rename to archived/FileAccess/js/js/scenario6_DisplayFileProperties.js diff --git a/Samples/FileAccess/js/js/scenario7_TrackAFileOrFolderSoThatYouCanAccessItLater.js b/archived/FileAccess/js/js/scenario7_TrackAFileOrFolderSoThatYouCanAccessItLater.js similarity index 100% rename from Samples/FileAccess/js/js/scenario7_TrackAFileOrFolderSoThatYouCanAccessItLater.js rename to archived/FileAccess/js/js/scenario7_TrackAFileOrFolderSoThatYouCanAccessItLater.js diff --git a/Samples/FileAccess/js/js/scenario8_CopyAFile.js b/archived/FileAccess/js/js/scenario8_CopyAFile.js similarity index 100% rename from Samples/FileAccess/js/js/scenario8_CopyAFile.js rename to archived/FileAccess/js/js/scenario8_CopyAFile.js diff --git a/Samples/FileAccess/js/js/scenario9_CompareTwoFilesToSeeIfTheyAreTheSame.js b/archived/FileAccess/js/js/scenario9_CompareTwoFilesToSeeIfTheyAreTheSame.js similarity index 100% rename from Samples/FileAccess/js/js/scenario9_CompareTwoFilesToSeeIfTheyAreTheSame.js rename to archived/FileAccess/js/js/scenario9_CompareTwoFilesToSeeIfTheyAreTheSame.js diff --git a/Samples/FileAccess/js/sample-utils/placeholder.txt b/archived/FileAccess/js/sample-utils/placeholder.txt similarity index 100% rename from Samples/FileAccess/js/sample-utils/placeholder.txt rename to archived/FileAccess/js/sample-utils/placeholder.txt diff --git a/archived/FilePicker/README.md b/archived/FilePicker/README.md new file mode 100644 index 0000000000..33c215ac2a --- /dev/null +++ b/archived/FilePicker/README.md @@ -0,0 +1,100 @@ +--- +topic: sample +languages: +- js +products: +- windows +- windows-uwp +--- + +# File picker sample + +Shows how to access files and folders by letting the user choose them through the file pickers and +how to save a file so that the user can specify the name, file type, and location of a file to save. +This sample uses the [Windows.Storage.Pickers](http://msdn.microsoft.com/library/windows/apps/br207928) and +[Windows.Storage](http://msdn.microsoft.com/library/windows/apps/br227346) APIs. + +> **Note:** This sample is part of a large collection of UWP feature samples. +> If you are unfamiliar with Git and GitHub, you can download the entire collection as a +> [ZIP file](https://github.com/Microsoft/Windows-universal-samples/archive/master.zip), but be +> sure to unzip everything to access shared dependencies. For more info on working with the ZIP file, +> the samples collection, and GitHub, see [Get the UWP samples from GitHub](https://aka.ms/ovu2uq). +> For more samples, see the [Samples portal](https://aka.ms/winsamples) on the Windows Dev Center. + +The sample demonstrates these tasks: + +1. **Let the user pick one file to access** + + Uses the [FileOpenPicker](http://msdn.microsoft.com/library/windows/apps/br207847).[PickSingleFileAsync](http://msdn.microsoft.com/library/windows/apps/br207852) method (or [PickSingleFileAndContinue](http://msdn.microsoft.com/library/windows/apps/dn652521)) to call a file picker window and let the user pick a single file. For more info, see [Open files and folders with a picker](https://msdn.microsoft.com/library/windows/apps/mt186456). + +2. **Let the user pick multiple files to access** + + Uses the [FileOpenPicker](http://msdn.microsoft.com/library/windows/apps/br207847).[PickMultipleFilesAsync](http://msdn.microsoft.com/library/windows/apps/br207851) method (or [PickMultipleFilesAndContinue](http://msdn.microsoft.com/library/windows/apps/dn652520)) to call a file picker window and let the user pick multiple files. For more info, see [Open files and folders with a picker](https://msdn.microsoft.com/library/windows/apps/mt186456). + +3. **Let the user pick one folder to access** + + Uses the [FolderPicker](http://msdn.microsoft.com/library/windows/apps/br207881).[PickSingleFolderAsync](http://msdn.microsoft.com/library/windows/apps/br207885) method (or [PickFolderAndContinue](http://msdn.microsoft.com/library/windows/apps/dn652525)) to call a file picker window and let the user pick multiple files. For more info, see [Open files and folders with a picker](https://msdn.microsoft.com/library/windows/apps/mt186456). + +4. **Let the user save a file and specify the name, file type, and/or save location** + + Uses the [FileSavePicker](http://msdn.microsoft.com/library/windows/apps/br207871).[PickSaveFileAsync](http://msdn.microsoft.com/library/windows/apps/br207876) method (or [PickSaveFileAndContinue](http://msdn.microsoft.com/library/windows/apps/dn652523)) to call a file picker window and let the user pick multiple files. For more info, see [Save a file with a picker](https://msdn.microsoft.com/library/windows/apps/mt186455). + +5. **Let the user pick a locally cached file to access** + + The user may choose access a file that is provided by another app (the providing app) that participates in the Cached File Updater contract. Like the first scenario, this scenario uses the [FileOpenPicker](http://msdn.microsoft.com/library/windows/apps/br207847) to access these files and to show how the providing app (the [File picker contracts sample](http://go.microsoft.com/fwlink/p/?linkid=231536)) can interact with the user through the file picker if necessary, for example if credentials are required to access the file. + + **Note** This scenario requires the [File picker contracts sample](http://go.microsoft.com/fwlink/p/?linkid=231536). + +6. **Let the user save a locally cached file** + + The user may choose save a file that was provided by another app (the providing app) that participates in the Cached File Updater contract. This scenario uses the [FileSavePicker](http://msdn.microsoft.com/library/windows/apps/br207871) and the [CachedFileManager](http://msdn.microsoft.com/library/windows/apps/hh701431) to let the user save a file to another app (the [File picker contracts sample](http://go.microsoft.com/fwlink/p/?linkid=231536)) and how the providing app can interact with the user through the file picker if necessary, for example if there is a version conflict. + + **Note** This scenario requires the [File picker contracts sample](http://go.microsoft.com/fwlink/p/?linkid=231536). + +To learn more about accessing and saving files and folders through file pickers, see [Guidelines and checklist for file pickers](http://msdn.microsoft.com/library/windows/apps/hh465182). + +**Note** The Windows universal samples require Visual Studio 2017 to build and Windows 10 to execute. + +To obtain information about Windows 10 development, go to the [Windows Dev Center](http://go.microsoft.com/fwlink/?LinkID=532421) + +To obtain information about Microsoft Visual Studio and the tools for developing Windows apps, go to [Visual Studio](http://go.microsoft.com/fwlink/?LinkID=532422) + +## Related topics + +## Samples + +[File access sample](http://go.microsoft.com/fwlink/p/?linkid=231445) +[Using a Blob to save and load content sample](http://go.microsoft.com/fwlink/p/?linkid=231615) +[File and folder thumbnail sample](http://go.microsoft.com/fwlink/p/?linkid=231522) +[File picker contracts sample](http://go.microsoft.com/fwlink/p/?linkid=231536) + +## Reference + +[Windows.Storage.Pickers namespace](http://msdn.microsoft.com/library/windows/apps/br207928) + +## System requirements + +**Client:** Windows 10 + +**Server:** Windows Server 2016 Technical Preview + +**Phone:** Windows 10 + +## Build the sample + +1. If you download the samples ZIP, be sure to unzip the entire archive, not just the folder with the sample you want to build. +2. Start Microsoft Visual Studio 2017 and select **File** \> **Open** \> **Project/Solution**. +3. Starting in the folder where you unzipped the samples, go to the Samples subfolder, then the subfolder for this specific sample, then the subfolder for your preferred language (C++, C#, or JavaScript). Double-click the Visual Studio Solution (.sln) file. +4. Press Ctrl+Shift+B, or select **Build** \> **Build Solution**. + +## Run the sample + +The next steps depend on whether you just want to deploy the sample or you want to both deploy and run it. + +### Deploying the sample + +- Select Build > Deploy Solution. + +### Deploying and running the sample + +- To debug the sample and then run it, press F5 or select Debug > Start Debugging. To run the sample without debugging, press Ctrl+F5 or select Debug > Start Without Debugging. diff --git a/Samples/FilePicker/js/FilePicker.jsproj b/archived/FilePicker/js/FilePicker.jsproj similarity index 81% rename from Samples/FilePicker/js/FilePicker.jsproj rename to archived/FilePicker/js/FilePicker.jsproj index f5d2519180..485fb5e032 100644 --- a/Samples/FilePicker/js/FilePicker.jsproj +++ b/archived/FilePicker/js/FilePicker.jsproj @@ -54,7 +54,7 @@ Designer - + default.html @@ -83,10 +83,10 @@ images\windows-sdk.png - + js\default.js - + css\default.css @@ -95,43 +95,43 @@ - + Microsoft.WinJS.4.0\css\ui-dark.css - + Microsoft.WinJS.4.0\css\ui-light.css - + Microsoft.WinJS.4.0\js\en-US\ui.strings.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense-setup.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense.js - + Microsoft.WinJS.4.0\fonts\Symbols.ttf - + Microsoft.WinJS.4.0\js\base.js - + Microsoft.WinJS.4.0\js\ui.js - + sample-utils\footer.html - + sample-utils\header.html - + sample-utils\sample-utils.js - + sample-utils\scenario-select.css - + sample-utils\scenario-select.html diff --git a/Samples/FilePicker/js/FilePicker.sln b/archived/FilePicker/js/FilePicker.sln similarity index 100% rename from Samples/FilePicker/js/FilePicker.sln rename to archived/FilePicker/js/FilePicker.sln diff --git a/Samples/FilePicker/js/Microsoft.WinJS.4.0/css/placeholder.txt b/archived/FilePicker/js/Microsoft.WinJS.4.0/css/placeholder.txt similarity index 100% rename from Samples/FilePicker/js/Microsoft.WinJS.4.0/css/placeholder.txt rename to archived/FilePicker/js/Microsoft.WinJS.4.0/css/placeholder.txt diff --git a/Samples/FilePicker/js/Microsoft.WinJS.4.0/fonts/placeholder b/archived/FilePicker/js/Microsoft.WinJS.4.0/fonts/placeholder similarity index 100% rename from Samples/FilePicker/js/Microsoft.WinJS.4.0/fonts/placeholder rename to archived/FilePicker/js/Microsoft.WinJS.4.0/fonts/placeholder diff --git a/Samples/FilePicker/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt b/archived/FilePicker/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt similarity index 100% rename from Samples/FilePicker/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt rename to archived/FilePicker/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt diff --git a/Samples/FilePicker/js/Package.appxmanifest b/archived/FilePicker/js/Package.appxmanifest similarity index 100% rename from Samples/FilePicker/js/Package.appxmanifest rename to archived/FilePicker/js/Package.appxmanifest diff --git a/Samples/FilePicker/js/css/placeholder.txt b/archived/FilePicker/js/css/placeholder.txt similarity index 100% rename from Samples/FilePicker/js/css/placeholder.txt rename to archived/FilePicker/js/css/placeholder.txt diff --git a/Samples/FilePicker/js/html/scenario1_SingleFile.html b/archived/FilePicker/js/html/scenario1_SingleFile.html similarity index 100% rename from Samples/FilePicker/js/html/scenario1_SingleFile.html rename to archived/FilePicker/js/html/scenario1_SingleFile.html diff --git a/Samples/FilePicker/js/html/scenario2_MultiFile.html b/archived/FilePicker/js/html/scenario2_MultiFile.html similarity index 100% rename from Samples/FilePicker/js/html/scenario2_MultiFile.html rename to archived/FilePicker/js/html/scenario2_MultiFile.html diff --git a/Samples/FilePicker/js/html/scenario3_SingleFolder.html b/archived/FilePicker/js/html/scenario3_SingleFolder.html similarity index 100% rename from Samples/FilePicker/js/html/scenario3_SingleFolder.html rename to archived/FilePicker/js/html/scenario3_SingleFolder.html diff --git a/Samples/FilePicker/js/html/scenario4_SaveFile.html b/archived/FilePicker/js/html/scenario4_SaveFile.html similarity index 100% rename from Samples/FilePicker/js/html/scenario4_SaveFile.html rename to archived/FilePicker/js/html/scenario4_SaveFile.html diff --git a/Samples/FilePicker/js/html/scenario5_TriggerCFU.html b/archived/FilePicker/js/html/scenario5_TriggerCFU.html similarity index 100% rename from Samples/FilePicker/js/html/scenario5_TriggerCFU.html rename to archived/FilePicker/js/html/scenario5_TriggerCFU.html diff --git a/Samples/FilePicker/js/images/placeholder.txt b/archived/FilePicker/js/images/placeholder.txt similarity index 100% rename from Samples/FilePicker/js/images/placeholder.txt rename to archived/FilePicker/js/images/placeholder.txt diff --git a/Samples/FilePicker/js/js/sample-configuration.js b/archived/FilePicker/js/js/sample-configuration.js similarity index 100% rename from Samples/FilePicker/js/js/sample-configuration.js rename to archived/FilePicker/js/js/sample-configuration.js diff --git a/Samples/FilePicker/js/js/scenario1_SingleFile.js b/archived/FilePicker/js/js/scenario1_SingleFile.js similarity index 100% rename from Samples/FilePicker/js/js/scenario1_SingleFile.js rename to archived/FilePicker/js/js/scenario1_SingleFile.js diff --git a/Samples/FilePicker/js/js/scenario2_MultiFile.js b/archived/FilePicker/js/js/scenario2_MultiFile.js similarity index 100% rename from Samples/FilePicker/js/js/scenario2_MultiFile.js rename to archived/FilePicker/js/js/scenario2_MultiFile.js diff --git a/Samples/FilePicker/js/js/scenario3_SingleFolder.js b/archived/FilePicker/js/js/scenario3_SingleFolder.js similarity index 100% rename from Samples/FilePicker/js/js/scenario3_SingleFolder.js rename to archived/FilePicker/js/js/scenario3_SingleFolder.js diff --git a/Samples/FilePicker/js/js/scenario4_SaveFile.js b/archived/FilePicker/js/js/scenario4_SaveFile.js similarity index 100% rename from Samples/FilePicker/js/js/scenario4_SaveFile.js rename to archived/FilePicker/js/js/scenario4_SaveFile.js diff --git a/Samples/FilePicker/js/js/scenario5_TriggerCFU.js b/archived/FilePicker/js/js/scenario5_TriggerCFU.js similarity index 100% rename from Samples/FilePicker/js/js/scenario5_TriggerCFU.js rename to archived/FilePicker/js/js/scenario5_TriggerCFU.js diff --git a/Samples/FilePicker/js/sample-utils/placeholder.txt b/archived/FilePicker/js/sample-utils/placeholder.txt similarity index 100% rename from Samples/FilePicker/js/sample-utils/placeholder.txt rename to archived/FilePicker/js/sample-utils/placeholder.txt diff --git a/archived/FileSearch/README.md b/archived/FileSearch/README.md new file mode 100644 index 0000000000..e7d82fa69a --- /dev/null +++ b/archived/FileSearch/README.md @@ -0,0 +1,73 @@ +--- +topic: sample +languages: +- js +products: +- windows +- windows-uwp +--- + +# File search sample + +Shows how to query files in a location (like a folder, library, device, or network location). +Uses the [Windows.Storage.Search](http://msdn.microsoft.com/library/windows/apps/br208106) API. + +> **Note:** This sample is part of a large collection of UWP feature samples. +> If you are unfamiliar with Git and GitHub, you can download the entire collection as a +> [ZIP file](https://github.com/Microsoft/Windows-universal-samples/archive/master.zip), but be +> sure to unzip everything to access shared dependencies. For more info on working with the ZIP file, +> the samples collection, and GitHub, see [Get the UWP samples from GitHub](https://aka.ms/ovu2uq). +> For more samples, see the [Samples portal](https://aka.ms/winsamples) on the Windows Dev Center. + +Important APIs in this sample include: + +- [QueryOptions](http://msdn.microsoft.com/library/windows/apps/br207995) class +- [StorageFileQueryResult](http://msdn.microsoft.com/library/windows/apps/br208046) class +- [StorageFolder](http://msdn.microsoft.com/library/windows/apps/br227230).[CreateFileQueryWithOptions](http://msdn.microsoft.com/library/windows/apps/br211591) method + +For a walkthrough, see [Quickstart: Accessing files programmatically](http://msdn.microsoft.com/library/windows/apps/jj150596). + +**Note** The Windows universal samples require Visual Studio 2017 to build and Windows 10 to execute. + +To obtain information about Windows 10 development, go to the [Windows Dev Center](http://go.microsoft.com/fwlink/?LinkID=532421) + +To obtain information about Microsoft Visual Studio and the tools for developing Windows apps, go to [Visual Studio](http://go.microsoft.com/fwlink/?LinkID=532422) + +## Related topics + +### Samples + +[File access sample](http://go.microsoft.com/fwlink/p/?linkid=231445) +[Folder enumeration sample](http://go.microsoft.com/fwlink/p/?linkid=231512) + +### Reference + +[Windows.Storage namespace](http://msdn.microsoft.com/library/windows/apps/br227346) +[Windows.Storage.Search namespace](http://msdn.microsoft.com/library/windows/apps/br208106) + +## System requirements + +**Client:** Windows 10 build 10500 or higher + +**Server:** Windows Server 2016 Technical Preview build 10500 or higher + +**Phone:** Windows 10 build 10500 or higher + +## Build the sample + +1. If you download the samples ZIP, be sure to unzip the entire archive, not just the folder with the sample you want to build. +2. Start Microsoft Visual Studio 2017 and select **File** \> **Open** \> **Project/Solution**. +3. Starting in the folder where you unzipped the samples, go to the Samples subfolder, then the subfolder for this specific sample, then the subfolder for your preferred language (C++, C#, or JavaScript). Double-click the Visual Studio Solution (.sln) file. +4. Press Ctrl+Shift+B, or select **Build** \> **Build Solution**. + +## Run the sample + +The next steps depend on whether you just want to deploy the sample or you want to both deploy and run it. + +### Deploying the sample + +- Select Build > Deploy Solution. + +### Deploying and running the sample + +- To debug the sample and then run it, press F5 or select Debug > Start Debugging. To run the sample without debugging, press Ctrl+F5 or select Debug > Start Without Debugging. diff --git a/Samples/FileSearch/js/FileSearch.jsproj b/archived/FileSearch/js/FileSearch.jsproj similarity index 80% rename from Samples/FileSearch/js/FileSearch.jsproj rename to archived/FileSearch/js/FileSearch.jsproj index 08af91e517..60a556cbf4 100644 --- a/Samples/FileSearch/js/FileSearch.jsproj +++ b/archived/FileSearch/js/FileSearch.jsproj @@ -54,7 +54,7 @@ Designer - + default.html @@ -79,51 +79,51 @@ images\windows-sdk.png - + js\default.js - + css\default.css - + Microsoft.WinJS.4.0\css\ui-dark.css - + Microsoft.WinJS.4.0\css\ui-light.css - + Microsoft.WinJS.4.0\js\en-US\ui.strings.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense-setup.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense.js - + Microsoft.WinJS.4.0\fonts\Symbols.ttf - + Microsoft.WinJS.4.0\js\base.js - + Microsoft.WinJS.4.0\js\ui.js - + sample-utils\footer.html - + sample-utils\header.html - + sample-utils\sample-utils.js - + sample-utils\scenario-select.css - + sample-utils\scenario-select.html diff --git a/Samples/FileSearch/js/FileSearch.sln b/archived/FileSearch/js/FileSearch.sln similarity index 100% rename from Samples/FileSearch/js/FileSearch.sln rename to archived/FileSearch/js/FileSearch.sln diff --git a/Samples/FileSearch/js/Microsoft.WinJS.4.0/css/placeholder.txt b/archived/FileSearch/js/Microsoft.WinJS.4.0/css/placeholder.txt similarity index 100% rename from Samples/FileSearch/js/Microsoft.WinJS.4.0/css/placeholder.txt rename to archived/FileSearch/js/Microsoft.WinJS.4.0/css/placeholder.txt diff --git a/Samples/FileSearch/js/Microsoft.WinJS.4.0/fonts/placeholder b/archived/FileSearch/js/Microsoft.WinJS.4.0/fonts/placeholder similarity index 100% rename from Samples/FileSearch/js/Microsoft.WinJS.4.0/fonts/placeholder rename to archived/FileSearch/js/Microsoft.WinJS.4.0/fonts/placeholder diff --git a/Samples/FileSearch/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt b/archived/FileSearch/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt similarity index 100% rename from Samples/FileSearch/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt rename to archived/FileSearch/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt diff --git a/Samples/FileSearch/js/Package.appxmanifest b/archived/FileSearch/js/Package.appxmanifest similarity index 100% rename from Samples/FileSearch/js/Package.appxmanifest rename to archived/FileSearch/js/Package.appxmanifest diff --git a/Samples/FileSearch/js/css/placeholder.txt b/archived/FileSearch/js/css/placeholder.txt similarity index 100% rename from Samples/FileSearch/js/css/placeholder.txt rename to archived/FileSearch/js/css/placeholder.txt diff --git a/Samples/FileSearch/js/html/scenario1.html b/archived/FileSearch/js/html/scenario1.html similarity index 100% rename from Samples/FileSearch/js/html/scenario1.html rename to archived/FileSearch/js/html/scenario1.html diff --git a/Samples/FileSearch/js/images/placeholder.txt b/archived/FileSearch/js/images/placeholder.txt similarity index 100% rename from Samples/FileSearch/js/images/placeholder.txt rename to archived/FileSearch/js/images/placeholder.txt diff --git a/Samples/FileSearch/js/js/sample-configuration.js b/archived/FileSearch/js/js/sample-configuration.js similarity index 100% rename from Samples/FileSearch/js/js/sample-configuration.js rename to archived/FileSearch/js/js/sample-configuration.js diff --git a/Samples/FileSearch/js/js/scenario1.js b/archived/FileSearch/js/js/scenario1.js similarity index 100% rename from Samples/FileSearch/js/js/scenario1.js rename to archived/FileSearch/js/js/scenario1.js diff --git a/Samples/FileSearch/js/sample-utils/placeholder.txt b/archived/FileSearch/js/sample-utils/placeholder.txt similarity index 100% rename from Samples/FileSearch/js/sample-utils/placeholder.txt rename to archived/FileSearch/js/sample-utils/placeholder.txt diff --git a/archived/FileThumbnails/README.md b/archived/FileThumbnails/README.md new file mode 100644 index 0000000000..64b9be6381 --- /dev/null +++ b/archived/FileThumbnails/README.md @@ -0,0 +1,92 @@ +--- +topic: sample +languages: +- js +products: +- windows +- windows-uwp +--- + +# File and folder thumbnail sample + +Shows how to retrieve thumbnails for files and folders using [Windows.Storage.FileProperties](http://msdn.microsoft.com/library/windows/apps/br207831). + +> **Note:** This sample is part of a large collection of UWP feature samples. +> If you are unfamiliar with Git and GitHub, you can download the entire collection as a +> [ZIP file](https://github.com/Microsoft/Windows-universal-samples/archive/master.zip), but be +> sure to unzip everything to access shared dependencies. For more info on working with the ZIP file, +> the samples collection, and GitHub, see [Get the UWP samples from GitHub](https://aka.ms/ovu2uq). +> For more samples, see the [Samples portal](https://aka.ms/winsamples) on the Windows Dev Center. + +The sample demonstrates these tasks: + +1. **Retrieve a thumbnail for a picture** + +2. **Retrieve album art as the thumbnail for a song** + +3. **Retrieve an icon as the thumbnail for a document** + +4. **Retrieve a thumbnail for a folder in the file system** + + **Note**  You can't retrieve a thumbnail for the Pictures library itself because it is a virtual folder. You must choose a file system folder that has pictures in it in order to retrieve a thumbnail. + +5. **Retrieve a thumbnail for a file group** + + A file group is a virtual folder where all the files in the group have the criteria that you specify in common. For example, the sample shows a thumbnail for a file group wherein the files in the group all have the same month and year. + +To learn about retrieving the appropriate thumbnail to display to the user, see [Guidelines and checklist for thumbnails](http://msdn.microsoft.com/library/windows/apps/hh465350). + +Important APIs in this sample include: + +- [StorageItemThumbnail](http://msdn.microsoft.com/library/windows/apps/br207802) class +- [ThumbnailMode](http://msdn.microsoft.com/library/windows/apps/br207809) enumeration +- [StorageFile](http://msdn.microsoft.com/library/windows/apps/br227171).[GetThumbnailAsync](http://msdn.microsoft.com/library/windows/apps/br227210) methods +- [StorageFolder](http://msdn.microsoft.com/library/windows/apps/br227230).[GetThumbnailAsync](http://msdn.microsoft.com/library/windows/apps/br227288) methods +- [IStorageItemProperties](http://msdn.microsoft.com/library/windows/apps/hh701614).[GetThumbnailAsync](http://msdn.microsoft.com/library/windows/apps/hh701636) methods + +**Note** The Windows universal samples require Visual Studio 2017 to build and Windows 10 to execute. + +To obtain information about Windows 10 development, go to the [Windows Dev Center](http://go.microsoft.com/fwlink/?LinkID=532421) + +To obtain information about Microsoft Visual Studio and the tools for developing Windows apps, go to [Visual Studio](http://go.microsoft.com/fwlink/?LinkID=532422) + +## Related topics + +## Samples + +[File access sample](http://go.microsoft.com/fwlink/p/?linkid=231445) +[File picker sample](http://go.microsoft.com/fwlink/p/?linkid=231464) +[Folder enumeration sample](http://go.microsoft.com/fwlink/p/?linkid=231512) +[Programmatic file search sample](http://go.microsoft.com/fwlink/p/?linkid=231532) + +## Reference + +[Windows.Storage namespace](http://msdn.microsoft.com/library/windows/apps/br227346) +[Windows.Storage.FileProperties namespace](http://msdn.microsoft.com/library/windows/apps/br207831) + +## System requirements + +**Client:** Windows 10 + +**Server:** Windows Server 2016 Technical Preview + +**Phone:** Windows 10 + +## Build the sample + +1. If you download the samples ZIP, be sure to unzip the entire archive, not just the folder with the sample you want to build. +2. Start Microsoft Visual Studio 2017 and select **File** \> **Open** \> **Project/Solution**. +3. Starting in the folder where you unzipped the samples, go to the Samples subfolder, then the subfolder for this specific sample, then the subfolder for your preferred language (C++, C#, or JavaScript). Double-click the Visual Studio Solution (.sln) file. +4. Press Ctrl+Shift+B, or select **Build** \> **Build Solution**. + +## Run the sample + +The next steps depend on whether you just want to deploy the sample or you want to both deploy and run it. + +### Deploying the sample + +- Select Build > Deploy Solution. + +### Deploying and running the sample + +- To debug the sample and then run it, press F5 or select Debug > Start Debugging. To run the sample without debugging, press Ctrl+F5 or select Debug > Start Without Debugging. diff --git a/Samples/FileThumbnails/js/FileThumbnails.jsproj b/archived/FileThumbnails/js/FileThumbnails.jsproj similarity index 81% rename from Samples/FileThumbnails/js/FileThumbnails.jsproj rename to archived/FileThumbnails/js/FileThumbnails.jsproj index 2dd3531264..c6b5ecc666 100644 --- a/Samples/FileThumbnails/js/FileThumbnails.jsproj +++ b/archived/FileThumbnails/js/FileThumbnails.jsproj @@ -54,7 +54,7 @@ Designer - + default.html @@ -84,10 +84,10 @@ images\windows-sdk.png - + js\default.js - + css\default.css @@ -97,43 +97,43 @@ - + Microsoft.WinJS.4.0\css\ui-dark.css - + Microsoft.WinJS.4.0\css\ui-light.css - + Microsoft.WinJS.4.0\js\en-US\ui.strings.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense-setup.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense.js - + Microsoft.WinJS.4.0\fonts\Symbols.ttf - + Microsoft.WinJS.4.0\js\base.js - + Microsoft.WinJS.4.0\js\ui.js - + sample-utils\footer.html - + sample-utils\header.html - + sample-utils\sample-utils.js - + sample-utils\scenario-select.css - + sample-utils\scenario-select.html diff --git a/Samples/FileThumbnails/js/FileThumbnails.sln b/archived/FileThumbnails/js/FileThumbnails.sln similarity index 100% rename from Samples/FileThumbnails/js/FileThumbnails.sln rename to archived/FileThumbnails/js/FileThumbnails.sln diff --git a/Samples/FileThumbnails/js/Microsoft.WinJS.4.0/css/placeholder.txt b/archived/FileThumbnails/js/Microsoft.WinJS.4.0/css/placeholder.txt similarity index 100% rename from Samples/FileThumbnails/js/Microsoft.WinJS.4.0/css/placeholder.txt rename to archived/FileThumbnails/js/Microsoft.WinJS.4.0/css/placeholder.txt diff --git a/Samples/FileThumbnails/js/Microsoft.WinJS.4.0/fonts/placeholder b/archived/FileThumbnails/js/Microsoft.WinJS.4.0/fonts/placeholder similarity index 100% rename from Samples/FileThumbnails/js/Microsoft.WinJS.4.0/fonts/placeholder rename to archived/FileThumbnails/js/Microsoft.WinJS.4.0/fonts/placeholder diff --git a/Samples/FileThumbnails/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt b/archived/FileThumbnails/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt similarity index 100% rename from Samples/FileThumbnails/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt rename to archived/FileThumbnails/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt diff --git a/Samples/FileThumbnails/js/Package.appxmanifest b/archived/FileThumbnails/js/Package.appxmanifest similarity index 100% rename from Samples/FileThumbnails/js/Package.appxmanifest rename to archived/FileThumbnails/js/Package.appxmanifest diff --git a/Samples/FileThumbnails/js/css/placeholder.txt b/archived/FileThumbnails/js/css/placeholder.txt similarity index 100% rename from Samples/FileThumbnails/js/css/placeholder.txt rename to archived/FileThumbnails/js/css/placeholder.txt diff --git a/Samples/FileThumbnails/js/html/scenario1.html b/archived/FileThumbnails/js/html/scenario1.html similarity index 100% rename from Samples/FileThumbnails/js/html/scenario1.html rename to archived/FileThumbnails/js/html/scenario1.html diff --git a/Samples/FileThumbnails/js/html/scenario2.html b/archived/FileThumbnails/js/html/scenario2.html similarity index 100% rename from Samples/FileThumbnails/js/html/scenario2.html rename to archived/FileThumbnails/js/html/scenario2.html diff --git a/Samples/FileThumbnails/js/html/scenario3.html b/archived/FileThumbnails/js/html/scenario3.html similarity index 100% rename from Samples/FileThumbnails/js/html/scenario3.html rename to archived/FileThumbnails/js/html/scenario3.html diff --git a/Samples/FileThumbnails/js/html/scenario4.html b/archived/FileThumbnails/js/html/scenario4.html similarity index 100% rename from Samples/FileThumbnails/js/html/scenario4.html rename to archived/FileThumbnails/js/html/scenario4.html diff --git a/Samples/FileThumbnails/js/html/scenario5.html b/archived/FileThumbnails/js/html/scenario5.html similarity index 100% rename from Samples/FileThumbnails/js/html/scenario5.html rename to archived/FileThumbnails/js/html/scenario5.html diff --git a/Samples/FileThumbnails/js/html/scenario6.html b/archived/FileThumbnails/js/html/scenario6.html similarity index 100% rename from Samples/FileThumbnails/js/html/scenario6.html rename to archived/FileThumbnails/js/html/scenario6.html diff --git a/Samples/FileThumbnails/js/js/sample-configuration.js b/archived/FileThumbnails/js/js/sample-configuration.js similarity index 100% rename from Samples/FileThumbnails/js/js/sample-configuration.js rename to archived/FileThumbnails/js/js/sample-configuration.js diff --git a/Samples/FileThumbnails/js/js/scenario1.js b/archived/FileThumbnails/js/js/scenario1.js similarity index 100% rename from Samples/FileThumbnails/js/js/scenario1.js rename to archived/FileThumbnails/js/js/scenario1.js diff --git a/Samples/FileThumbnails/js/js/scenario2.js b/archived/FileThumbnails/js/js/scenario2.js similarity index 100% rename from Samples/FileThumbnails/js/js/scenario2.js rename to archived/FileThumbnails/js/js/scenario2.js diff --git a/Samples/FileThumbnails/js/js/scenario3.js b/archived/FileThumbnails/js/js/scenario3.js similarity index 100% rename from Samples/FileThumbnails/js/js/scenario3.js rename to archived/FileThumbnails/js/js/scenario3.js diff --git a/Samples/FileThumbnails/js/js/scenario4.js b/archived/FileThumbnails/js/js/scenario4.js similarity index 100% rename from Samples/FileThumbnails/js/js/scenario4.js rename to archived/FileThumbnails/js/js/scenario4.js diff --git a/Samples/FileThumbnails/js/js/scenario5.js b/archived/FileThumbnails/js/js/scenario5.js similarity index 100% rename from Samples/FileThumbnails/js/js/scenario5.js rename to archived/FileThumbnails/js/js/scenario5.js diff --git a/Samples/FileThumbnails/js/js/scenario6.js b/archived/FileThumbnails/js/js/scenario6.js similarity index 100% rename from Samples/FileThumbnails/js/js/scenario6.js rename to archived/FileThumbnails/js/js/scenario6.js diff --git a/Samples/FileThumbnails/js/sample-utils/placeholder.txt b/archived/FileThumbnails/js/sample-utils/placeholder.txt similarity index 100% rename from Samples/FileThumbnails/js/sample-utils/placeholder.txt rename to archived/FileThumbnails/js/sample-utils/placeholder.txt diff --git a/archived/FolderEnumeration/README.md b/archived/FolderEnumeration/README.md new file mode 100644 index 0000000000..6115de672d --- /dev/null +++ b/archived/FolderEnumeration/README.md @@ -0,0 +1,99 @@ +--- +topic: sample +languages: +- js +products: +- windows +- windows-uwp +--- + +# Folder enumeration sample + +Shows how to enumerate the top-level files and folders inside a location (like a folder, device, or network location), +and how to use queries to enumerate all files inside a location by sorting them into file groups. + +> **Note:** This sample is part of a large collection of UWP feature samples. +> If you are unfamiliar with Git and GitHub, you can download the entire collection as a +> [ZIP file](https://github.com/Microsoft/Windows-universal-samples/archive/master.zip), but be +> sure to unzip everything to access shared dependencies. For more info on working with the ZIP file, +> the samples collection, and GitHub, see [Get the UWP samples from GitHub](https://aka.ms/ovu2uq). +> For more samples, see the [Samples portal](https://aka.ms/winsamples) on the Windows Dev Center. + +This sample uses [Windows.Storage](http://msdn.microsoft.com/library/windows/apps/br227346) and [Windows.Storage.Search](http://msdn.microsoft.com/library/windows/apps/br208106) APIs, including [StorageFolder](http://msdn.microsoft.com/library/windows/apps/br227230) and [StorageFolderQueryResult](http://msdn.microsoft.com/library/windows/apps/br208066). + +The sample demonstrates these tasks: + +1. **Enumerate top-level files and subfolders of a folder** + + Uses the [StorageFolder](http://msdn.microsoft.com/library/windows/apps/br227230).[GetFilesAsync](http://msdn.microsoft.com/library/windows/apps/br227273) +and [StorageFolder.GetFoldersAsync](http://msdn.microsoft.com/library/windows/apps/br227279) methods to enumerate only the top-level files and folders (the immediate children) of the location (in this case, the Pictures library). For a walkthrough of this task, see [Quickstart: Accessing files programmatically](http://msdn.microsoft.com/library/windows/apps/jj150596). + +2. **Query all the files in a folder (and its subfolders) and create groups of files to enumerate** + + Uses the [StorageFolder](http://msdn.microsoft.com/library/windows/apps/br227230).[CreateFolderQueryWithOptions](http://msdn.microsoft.com/library/windows/apps/br211592) method to sort all files in the location (in this case, the Pictures library) into groups based on the criteria that you specify and uses a [StorageFolderQueryResult](http://msdn.microsoft.com/library/windows/apps/br208066).[GetFoldersAsync](http://msdn.microsoft.com/library/windows/apps/br208072) method to retrieve the resulting file groups. + + File groups are virtual folders that are represented by [StorageFolder](http://msdn.microsoft.com/library/windows/apps/br227230) objects. The files in a file group have the criteria that you specify in common. For example, as the sample shows, the files in a group might have the same rating. + + For a walkthrough of this task, see [Quickstart: Accessing files programmatically](http://msdn.microsoft.com/library/windows/apps/jj150596). + +3. **Query all the files in a folder (and its subfolders) and retrieve file properties as a part of getting results for the query** + + Uses [QueryOptions](http://msdn.microsoft.com/library/windows/apps/br207995).[SetPropertyPrefetch](http://msdn.microsoft.com/library/windows/apps/hh973319) to specify properties to retrieve when the query is created. [StorageFolder](http://msdn.microsoft.com/library/windows/apps/br227230).[CreateFolderQueryWithOptions](http://msdn.microsoft.com/library/windows/apps/br211592) and [GetFilesAsync](http://msdn.microsoft.com/library/windows/apps/br227273) are used to create the query and enumerate results. Similarly, you can use [SetThumbnailPrefetch](http://msdn.microsoft.com/library/windows/apps/hh973320) to retrieve thumbnails as a part of creating the query. + + Using [SetPropertyPrefetch](http://msdn.microsoft.com/library/windows/apps/hh973319) and [SetThumbnailPrefetch](http://msdn.microsoft.com/library/windows/apps/hh973320) might make the query take longer to execute, but will make accessing large amounts of file information more efficient. + +4. **Query all the files in a folder and show file provider and availability** + + Uses the [Provider](https://msdn.microsoft.com/library/windows/apps/windows.storage.storagefile.provider.aspx) and [IsAvailable*]() properties to obtain the provider and whether the file is available offline. + +Additional important APIs in this sample include: + +- [CommonFolderQuery](http://msdn.microsoft.com/library/windows/apps/br207957) enumeration +- [CommonFileQuery](http://msdn.microsoft.com/library/windows/apps/br207956) enumeration +- [PropertyPrefetchOptions](http://msdn.microsoft.com/library/windows/apps/hh973317) enumeration + +**Note** The Windows universal samples require Visual Studio 2017 to build and Windows 10 to execute. + +To obtain information about Windows 10 development, go to the [Windows Dev Center](http://go.microsoft.com/fwlink/?LinkID=532421) + +To obtain information about Microsoft Visual Studio and the tools for developing Windows apps, go to [Visual Studio](http://go.microsoft.com/fwlink/?LinkID=532422) + +## Related topics + +### Samples + +[Programmatic file search sample](http://go.microsoft.com/fwlink/p/?linkid=231532) +[File access sample](http://go.microsoft.com/fwlink/p/?linkid=231445) +[File and folder thumbnail sample](http://go.microsoft.com/fwlink/p/?linkid=231522) + +### Reference + +[Windows.Storage namespace](http://msdn.microsoft.com/library/windows/apps/br227346) +[Windows.Storage.Search namespace](http://msdn.microsoft.com/library/windows/apps/br208106) + +## System requirements + +**Client:** Windows 10 build 10500 or higher + +**Server:** Windows Server 2016 Technical Preview build 10500 or higher + +**Phone:** Windows 10 build 10500 or higher + +## Build the sample + +1. If you download the samples ZIP, be sure to unzip the entire archive, not just the folder with the sample you want to build. +2. Start Microsoft Visual Studio 2017 and select **File** \> **Open** \> **Project/Solution**. +3. Starting in the folder where you unzipped the samples, go to the Samples subfolder, then the subfolder for this specific sample, then the subfolder for your preferred language (C++, C#, or JavaScript). Double-click the Visual Studio Solution (.sln) file. +4. Press Ctrl+Shift+B, or select **Build** \> **Build Solution**. + +## Run the sample + +The next steps depend on whether you just want to deploy the sample or you want to both deploy and run it. + +### Deploying the sample + +- Select Build > Deploy Solution. + +### Deploying and running the sample + +- To debug the sample and then run it, press F5 or select Debug > Start Debugging. To run the sample without debugging, press Ctrl+F5 or select Debug > Start Without Debugging. diff --git a/Samples/FolderEnumeration/js/FolderEnumeration.jsproj b/archived/FolderEnumeration/js/FolderEnumeration.jsproj similarity index 81% rename from Samples/FolderEnumeration/js/FolderEnumeration.jsproj rename to archived/FolderEnumeration/js/FolderEnumeration.jsproj index adbbe141ec..b708c727fe 100644 --- a/Samples/FolderEnumeration/js/FolderEnumeration.jsproj +++ b/archived/FolderEnumeration/js/FolderEnumeration.jsproj @@ -54,7 +54,7 @@ Designer - + default.html @@ -82,10 +82,10 @@ images\windows-sdk.png - + js\default.js - + css\default.css @@ -93,43 +93,43 @@ - + Microsoft.WinJS.4.0\css\ui-dark.css - + Microsoft.WinJS.4.0\css\ui-light.css - + Microsoft.WinJS.4.0\js\en-US\ui.strings.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense-setup.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense.js - + Microsoft.WinJS.4.0\fonts\Symbols.ttf - + Microsoft.WinJS.4.0\js\base.js - + Microsoft.WinJS.4.0\js\ui.js - + sample-utils\footer.html - + sample-utils\header.html - + sample-utils\sample-utils.js - + sample-utils\scenario-select.css - + sample-utils\scenario-select.html diff --git a/Samples/FolderEnumeration/js/FolderEnumeration.sln b/archived/FolderEnumeration/js/FolderEnumeration.sln similarity index 100% rename from Samples/FolderEnumeration/js/FolderEnumeration.sln rename to archived/FolderEnumeration/js/FolderEnumeration.sln diff --git a/Samples/FolderEnumeration/js/Microsoft.WinJS.4.0/css/placeholder.txt b/archived/FolderEnumeration/js/Microsoft.WinJS.4.0/css/placeholder.txt similarity index 100% rename from Samples/FolderEnumeration/js/Microsoft.WinJS.4.0/css/placeholder.txt rename to archived/FolderEnumeration/js/Microsoft.WinJS.4.0/css/placeholder.txt diff --git a/Samples/FolderEnumeration/js/Microsoft.WinJS.4.0/fonts/placeholder b/archived/FolderEnumeration/js/Microsoft.WinJS.4.0/fonts/placeholder similarity index 100% rename from Samples/FolderEnumeration/js/Microsoft.WinJS.4.0/fonts/placeholder rename to archived/FolderEnumeration/js/Microsoft.WinJS.4.0/fonts/placeholder diff --git a/Samples/FolderEnumeration/js/Microsoft.WinJS.4.0/js/en-us/placeholder.txt b/archived/FolderEnumeration/js/Microsoft.WinJS.4.0/js/en-us/placeholder.txt similarity index 100% rename from Samples/FolderEnumeration/js/Microsoft.WinJS.4.0/js/en-us/placeholder.txt rename to archived/FolderEnumeration/js/Microsoft.WinJS.4.0/js/en-us/placeholder.txt diff --git a/Samples/FolderEnumeration/js/Package.appxmanifest b/archived/FolderEnumeration/js/Package.appxmanifest similarity index 100% rename from Samples/FolderEnumeration/js/Package.appxmanifest rename to archived/FolderEnumeration/js/Package.appxmanifest diff --git a/Samples/FolderEnumeration/js/css/placeholder.txt b/archived/FolderEnumeration/js/css/placeholder.txt similarity index 100% rename from Samples/FolderEnumeration/js/css/placeholder.txt rename to archived/FolderEnumeration/js/css/placeholder.txt diff --git a/Samples/FolderEnumeration/js/html/scenario1.html b/archived/FolderEnumeration/js/html/scenario1.html similarity index 100% rename from Samples/FolderEnumeration/js/html/scenario1.html rename to archived/FolderEnumeration/js/html/scenario1.html diff --git a/Samples/FolderEnumeration/js/html/scenario2.html b/archived/FolderEnumeration/js/html/scenario2.html similarity index 100% rename from Samples/FolderEnumeration/js/html/scenario2.html rename to archived/FolderEnumeration/js/html/scenario2.html diff --git a/Samples/FolderEnumeration/js/html/scenario3.html b/archived/FolderEnumeration/js/html/scenario3.html similarity index 100% rename from Samples/FolderEnumeration/js/html/scenario3.html rename to archived/FolderEnumeration/js/html/scenario3.html diff --git a/Samples/FolderEnumeration/js/html/scenario4.html b/archived/FolderEnumeration/js/html/scenario4.html similarity index 100% rename from Samples/FolderEnumeration/js/html/scenario4.html rename to archived/FolderEnumeration/js/html/scenario4.html diff --git a/Samples/FolderEnumeration/js/images/placeholder.txt b/archived/FolderEnumeration/js/images/placeholder.txt similarity index 100% rename from Samples/FolderEnumeration/js/images/placeholder.txt rename to archived/FolderEnumeration/js/images/placeholder.txt diff --git a/Samples/FolderEnumeration/js/js/sample-configuration.js b/archived/FolderEnumeration/js/js/sample-configuration.js similarity index 100% rename from Samples/FolderEnumeration/js/js/sample-configuration.js rename to archived/FolderEnumeration/js/js/sample-configuration.js diff --git a/Samples/FolderEnumeration/js/js/scenario1.js b/archived/FolderEnumeration/js/js/scenario1.js similarity index 100% rename from Samples/FolderEnumeration/js/js/scenario1.js rename to archived/FolderEnumeration/js/js/scenario1.js diff --git a/Samples/FolderEnumeration/js/js/scenario2.js b/archived/FolderEnumeration/js/js/scenario2.js similarity index 100% rename from Samples/FolderEnumeration/js/js/scenario2.js rename to archived/FolderEnumeration/js/js/scenario2.js diff --git a/Samples/FolderEnumeration/js/js/scenario3.js b/archived/FolderEnumeration/js/js/scenario3.js similarity index 100% rename from Samples/FolderEnumeration/js/js/scenario3.js rename to archived/FolderEnumeration/js/js/scenario3.js diff --git a/Samples/FolderEnumeration/js/js/scenario4.js b/archived/FolderEnumeration/js/js/scenario4.js similarity index 100% rename from Samples/FolderEnumeration/js/js/scenario4.js rename to archived/FolderEnumeration/js/js/scenario4.js diff --git a/Samples/FolderEnumeration/js/sample-utils/placeholder.txt b/archived/FolderEnumeration/js/sample-utils/placeholder.txt similarity index 100% rename from Samples/FolderEnumeration/js/sample-utils/placeholder.txt rename to archived/FolderEnumeration/js/sample-utils/placeholder.txt diff --git a/archived/FullScreenMode/README.md b/archived/FullScreenMode/README.md new file mode 100644 index 0000000000..4874385421 --- /dev/null +++ b/archived/FullScreenMode/README.md @@ -0,0 +1,70 @@ +--- +topic: sample +languages: +- js +products: +- windows +- windows-uwp +--- + +# Full screen mode sample + +Shows how to use full screen mode so that your app can fill the entire screen. + +> **Note:** This sample is part of a large collection of UWP feature samples. +> If you are unfamiliar with Git and GitHub, you can download the entire collection as a +> [ZIP file](https://github.com/Microsoft/Windows-universal-samples/archive/master.zip), but be +> sure to unzip everything to access shared dependencies. For more info on working with the ZIP file, +> the samples collection, and GitHub, see [Get the UWP samples from GitHub](https://aka.ms/ovu2uq). +> For more samples, see the [Samples portal](https://aka.ms/winsamples) on the Windows Dev Center. + +The sample shows the following techniques: + +- Entering and exiting full screen mode. +- Responding to changes in full screen mode. +- Launching in full screen mode. + +**Note** Although the sample will compile and run, the level of functionality will depend on which build of Windows you are running and what device you are running it on. + +**Note** The Windows universal samples require Visual Studio 2017 to build and Windows 10 to execute. + +To obtain information about Windows 10 development, go to the [Windows Dev Center](http://go.microsoft.com/fwlink/?LinkID=532421) + +To obtain information about Microsoft Visual Studio and the tools for developing Windows apps, go to [Visual Studio](http://go.microsoft.com/fwlink/?LinkID=532422) + +## Related topics + +### Samples + +[FullScreenMode](/Samples/FullScreenMode) + +### Reference + +[ApplicationView class](https://msdn.microsoft.com/library/windows/apps/windows.ui.viewmanagement.applicationview.aspx) + +## System requirements + +**Client:** Windows 10 + +**Server:** Windows Server 2016 Technical Preview + +**Phone:** Windows 10 + +## Build the sample + +1. If you download the samples ZIP, be sure to unzip the entire archive, not just the folder with the sample you want to build. +2. Start Microsoft Visual Studio 2017 and select **File** \> **Open** \> **Project/Solution**. +3. Starting in the folder where you unzipped the samples, go to the Samples subfolder, then the subfolder for this specific sample, then the subfolder for your preferred language (C++, C#, or JavaScript). Double-click the Visual Studio Solution (.sln) file. +4. Press Ctrl+Shift+B, or select **Build** \> **Build Solution**. + +## Run the sample + +The next steps depend on whether you just want to deploy the sample or you want to both deploy and run it. + +### Deploying the sample + +- Select Build > Deploy Solution. + +### Deploying and running the sample + +- To debug the sample and then run it, press F5 or select Debug > Start Debugging. To run the sample without debugging, press Ctrl+F5 or select Debug > Start Without Debugging. diff --git a/Samples/FullScreenMode/js/FullScreenMode.jsproj b/archived/FullScreenMode/js/FullScreenMode.jsproj similarity index 80% rename from Samples/FullScreenMode/js/FullScreenMode.jsproj rename to archived/FullScreenMode/js/FullScreenMode.jsproj index 8bc8e593d9..9374924d8f 100644 --- a/Samples/FullScreenMode/js/FullScreenMode.jsproj +++ b/archived/FullScreenMode/js/FullScreenMode.jsproj @@ -54,7 +54,7 @@ Designer - + default.html @@ -80,52 +80,52 @@ images\windows-sdk.png - + js\default.js - + css\default.css - + Microsoft.WinJS.4.0\css\ui-dark.css - + Microsoft.WinJS.4.0\css\ui-light.css - + Microsoft.WinJS.4.0\js\en-US\ui.strings.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense-setup.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense.js - + Microsoft.WinJS.4.0\fonts\Symbols.ttf - + Microsoft.WinJS.4.0\js\base.js - + Microsoft.WinJS.4.0\js\ui.js - + sample-utils\footer.html - + sample-utils\header.html - + sample-utils\sample-utils.js - + sample-utils\scenario-select.css - + sample-utils\scenario-select.html diff --git a/Samples/FullScreenMode/js/FullScreenMode.sln b/archived/FullScreenMode/js/FullScreenMode.sln similarity index 100% rename from Samples/FullScreenMode/js/FullScreenMode.sln rename to archived/FullScreenMode/js/FullScreenMode.sln diff --git a/Samples/FullScreenMode/js/Microsoft.WinJS.4.0/css/placeholder.txt b/archived/FullScreenMode/js/Microsoft.WinJS.4.0/css/placeholder.txt similarity index 100% rename from Samples/FullScreenMode/js/Microsoft.WinJS.4.0/css/placeholder.txt rename to archived/FullScreenMode/js/Microsoft.WinJS.4.0/css/placeholder.txt diff --git a/Samples/FullScreenMode/js/Microsoft.WinJS.4.0/fonts/placeholder b/archived/FullScreenMode/js/Microsoft.WinJS.4.0/fonts/placeholder similarity index 100% rename from Samples/FullScreenMode/js/Microsoft.WinJS.4.0/fonts/placeholder rename to archived/FullScreenMode/js/Microsoft.WinJS.4.0/fonts/placeholder diff --git a/Samples/FullScreenMode/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt b/archived/FullScreenMode/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt similarity index 100% rename from Samples/FullScreenMode/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt rename to archived/FullScreenMode/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt diff --git a/Samples/FullScreenMode/js/Package.appxmanifest b/archived/FullScreenMode/js/Package.appxmanifest similarity index 100% rename from Samples/FullScreenMode/js/Package.appxmanifest rename to archived/FullScreenMode/js/Package.appxmanifest diff --git a/Samples/FullScreenMode/js/css/placeholder.txt b/archived/FullScreenMode/js/css/placeholder.txt similarity index 100% rename from Samples/FullScreenMode/js/css/placeholder.txt rename to archived/FullScreenMode/js/css/placeholder.txt diff --git a/Samples/FullScreenMode/js/html/scenario1-basic.html b/archived/FullScreenMode/js/html/scenario1-basic.html similarity index 100% rename from Samples/FullScreenMode/js/html/scenario1-basic.html rename to archived/FullScreenMode/js/html/scenario1-basic.html diff --git a/Samples/FullScreenMode/js/html/scenario2-launch.html b/archived/FullScreenMode/js/html/scenario2-launch.html similarity index 100% rename from Samples/FullScreenMode/js/html/scenario2-launch.html rename to archived/FullScreenMode/js/html/scenario2-launch.html diff --git a/Samples/FullScreenMode/js/images/placeholder.txt b/archived/FullScreenMode/js/images/placeholder.txt similarity index 100% rename from Samples/FullScreenMode/js/images/placeholder.txt rename to archived/FullScreenMode/js/images/placeholder.txt diff --git a/Samples/FullScreenMode/js/js/sample-configuration.js b/archived/FullScreenMode/js/js/sample-configuration.js similarity index 100% rename from Samples/FullScreenMode/js/js/sample-configuration.js rename to archived/FullScreenMode/js/js/sample-configuration.js diff --git a/Samples/FullScreenMode/js/js/scenario1-basic.js b/archived/FullScreenMode/js/js/scenario1-basic.js similarity index 100% rename from Samples/FullScreenMode/js/js/scenario1-basic.js rename to archived/FullScreenMode/js/js/scenario1-basic.js diff --git a/Samples/FullScreenMode/js/js/scenario2-launch.js b/archived/FullScreenMode/js/js/scenario2-launch.js similarity index 100% rename from Samples/FullScreenMode/js/js/scenario2-launch.js rename to archived/FullScreenMode/js/js/scenario2-launch.js diff --git a/Samples/FullScreenMode/js/sample-utils/placeholder.txt b/archived/FullScreenMode/js/sample-utils/placeholder.txt similarity index 100% rename from Samples/FullScreenMode/js/sample-utils/placeholder.txt rename to archived/FullScreenMode/js/sample-utils/placeholder.txt diff --git a/archived/Geolocation/README.md b/archived/Geolocation/README.md new file mode 100644 index 0000000000..a8ba776b02 --- /dev/null +++ b/archived/Geolocation/README.md @@ -0,0 +1,89 @@ +--- +topic: sample +languages: +- js +products: +- windows +- windows-uwp +--- + +# Geolocation sample + +Shows how to use the Windows.Devices.Geolocation namespace to get the geographic location of the user's device +and track when the location changes in various ways. + +After obtaining access to the user's location, an app can + +* Retrieve the current location. +* Receiving events when the location changes. +* Receiving events when the device has entered or exited locations of interest. +* Receiving events when the device has spent significant time in a location (a "visit"). + +> **Note:** This sample is part of a large collection of UWP feature samples. +> If you are unfamiliar with Git and GitHub, you can download the entire collection as a +> [ZIP file](https://github.com/Microsoft/Windows-universal-samples/archive/master.zip), but be +> sure to unzip everything to access shared dependencies. For more info on working with the ZIP file, +> the samples collection, and GitHub, see [Get the UWP samples from GitHub](https://aka.ms/ovu2uq). +> For more samples, see the [Samples portal](https://aka.ms/winsamples) on the Windows Dev Center. + +This sample also shows how to: + +- **Use a [geofence](http://msdn.microsoft.com/library/windows/apps/dn263744):** Receive notifications when the user's device has entered or left an area of interest. +- **Handle changes in location permissions**: Register for the Geolocator's StatusChanged event and use the [StatusChangedEventArgs](http://msdn.microsoft.com/library/windows/apps/br225600) to determine the current position status. +- **Get location from a background task** +- **Handle geofencing events from a background task** +- **Handle geovisit events from a background task** +- **Obtain satellite data:** When available, use the [GeocoordinateSatelliteData](http://msdn.microsoft.com/library/windows/apps/jj635260) class to obtain additional information on the quality of the satellite based location data. +- **Display a toast:** Notify the user when a geofencing event has occurred in the background. +- **Refresh geofence binding:** Refresh the binding on resume and after removal of a geofence. Note that removal requires subscribing to removal events if a geofence is set as single use or a duration is set. +- **Request access to the user's location:** Request access to the user's location using the RequestAccessAsync method. Important: call the RequestAccessAsync before accessing the user's location. At that time, your app must be in the foreground and RequestAccessAsync must be called from the UI thread. Until the user grants your app permission to their location, your app can't access location data. +- **Track when the user visits a location:** Poll for or receive notifications when the user spends significant time in a location. +- **Help the user change location settings:** Link to location privacy settings from your app if the user revokes access to location while your app is in the foreground. Call the LaunchUriAsync method with the URI "ms-settings://privacy/location". + +Geofences need to be created in the Foreground Geofencing scenario (Scenario 4) and then you can go to Background Geofencing scenario (Scenario 5) to register for background geofencing events. + +The Geolocation sample formats and parses time and dates in the en-US locale using the Gregorian calendar and 24-hour clock. To help other locales in entering data the edit fields have a format example shown below the control. For example, Start Time would be entered mm/dd/yyyy hh:mm:ss format. February 2, 2014 at 10:34 pm would be written 2/2/2014 22:34:00. For the Dwell Time and Duration the format is dd:hh:mm:ss so a time span of 7 days, 23 hours, 45 minutes and 55 seconds would be written as 7:23:45:55. + +### Declaring the Location capability + +This sample requires that location capability be set in the *Package.appxmanifest* file to allow the app to access location at runtime. The capability can be set in the app manifest using Microsoft Visual Studio. + + +## Related topics + +[Get current location](https://msdn.microsoft.com/library/windows/apps/mt219698) +[Windows.Devices.Geolocation](http://msdn.microsoft.com/library/windows/apps/br225603) +[Windows.Devices.Geolocation.Geofencing](https://msdn.microsoft.com/library/windows/apps/dn263744) +[Guidelines for location-aware apps](https://msdn.microsoft.com/library/windows/apps/hh465148) + +## Related samples + +[Traffic App sample](https://github.com/microsoft/windows-appsample-trafficapp/) +[Lunch Scheduler app sample](https://github.com/Microsoft/Windows-appsample-lunch-scheduler) + +## System requirements + +**Client:** Windows 10 + +**Server:** Windows Server 2016 Technical Preview + +**Phone:** Windows 10 + +## Build the sample + +1. If you download the samples ZIP, be sure to unzip the entire archive, not just the folder with the sample you want to build. +2. Start Microsoft Visual Studio 2017 and select **File** \> **Open** \> **Project/Solution**. +3. Starting in the folder where you unzipped the samples, go to the Samples subfolder, then the subfolder for this specific sample, then the subfolder for your preferred language (C++, C#, or JavaScript). Double-click the Visual Studio Solution (.sln) file. +4. Press Ctrl+Shift+B, or select **Build** \> **Build Solution**. + +## Run the sample + +The next steps depend on whether you just want to deploy the sample or you want to both deploy and run it. + +### Deploying the sample + +- Select Build > Deploy Solution. + +### Deploying and running the sample + +- To debug the sample and then run it, press F5 or select Debug > Start Debugging. To run the sample without debugging, press Ctrl+F5 or selectDebug > Start Without Debugging. diff --git a/Samples/Geolocation/js/Geolocation.sln b/archived/Geolocation/js/Geolocation.sln similarity index 100% rename from Samples/Geolocation/js/Geolocation.sln rename to archived/Geolocation/js/Geolocation.sln diff --git a/Samples/Geolocation/js/geolocationjs/Geolocation.jsproj b/archived/Geolocation/js/geolocationjs/Geolocation.jsproj similarity index 83% rename from Samples/Geolocation/js/geolocationjs/Geolocation.jsproj rename to archived/Geolocation/js/geolocationjs/Geolocation.jsproj index 5724698327..307726e8b4 100644 --- a/Samples/Geolocation/js/geolocationjs/Geolocation.jsproj +++ b/archived/Geolocation/js/geolocationjs/Geolocation.jsproj @@ -54,7 +54,7 @@ Designer - + css\default.css @@ -62,7 +62,7 @@ - + default.html @@ -99,7 +99,7 @@ - + js\default.js @@ -110,43 +110,43 @@ - + Microsoft.WinJS.4.0\css\ui-dark.css - + Microsoft.WinJS.4.0\css\ui-light.css - + Microsoft.WinJS.4.0\js\en-US\ui.strings.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense-setup.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense.js - + Microsoft.WinJS.4.0\fonts\Symbols.ttf - + Microsoft.WinJS.4.0\js\base.js - + Microsoft.WinJS.4.0\js\ui.js - + sample-utils\footer.html - + sample-utils\header.html - + sample-utils\sample-utils.js - + sample-utils\scenario-select.css - + sample-utils\scenario-select.html diff --git a/Samples/Geolocation/js/geolocationjs/Microsoft.WinJS.4.0/css/placeholder.txt b/archived/Geolocation/js/geolocationjs/Microsoft.WinJS.4.0/css/placeholder.txt similarity index 100% rename from Samples/Geolocation/js/geolocationjs/Microsoft.WinJS.4.0/css/placeholder.txt rename to archived/Geolocation/js/geolocationjs/Microsoft.WinJS.4.0/css/placeholder.txt diff --git a/Samples/Geolocation/js/geolocationjs/Microsoft.WinJS.4.0/fonts/placeholder b/archived/Geolocation/js/geolocationjs/Microsoft.WinJS.4.0/fonts/placeholder similarity index 100% rename from Samples/Geolocation/js/geolocationjs/Microsoft.WinJS.4.0/fonts/placeholder rename to archived/Geolocation/js/geolocationjs/Microsoft.WinJS.4.0/fonts/placeholder diff --git a/Samples/Geolocation/js/geolocationjs/Microsoft.WinJS.4.0/js/en-us/placeholder.txt b/archived/Geolocation/js/geolocationjs/Microsoft.WinJS.4.0/js/en-us/placeholder.txt similarity index 100% rename from Samples/Geolocation/js/geolocationjs/Microsoft.WinJS.4.0/js/en-us/placeholder.txt rename to archived/Geolocation/js/geolocationjs/Microsoft.WinJS.4.0/js/en-us/placeholder.txt diff --git a/Samples/Geolocation/js/geolocationjs/Package.appxmanifest b/archived/Geolocation/js/geolocationjs/Package.appxmanifest similarity index 100% rename from Samples/Geolocation/js/geolocationjs/Package.appxmanifest rename to archived/Geolocation/js/geolocationjs/Package.appxmanifest diff --git a/Samples/Geolocation/js/geolocationjs/css/scenario1_TrackPosition.css b/archived/Geolocation/js/geolocationjs/css/scenario1_TrackPosition.css similarity index 100% rename from Samples/Geolocation/js/geolocationjs/css/scenario1_TrackPosition.css rename to archived/Geolocation/js/geolocationjs/css/scenario1_TrackPosition.css diff --git a/Samples/Geolocation/js/geolocationjs/css/scenario2_GetPosition.css b/archived/Geolocation/js/geolocationjs/css/scenario2_GetPosition.css similarity index 100% rename from Samples/Geolocation/js/geolocationjs/css/scenario2_GetPosition.css rename to archived/Geolocation/js/geolocationjs/css/scenario2_GetPosition.css diff --git a/Samples/Geolocation/js/geolocationjs/css/scenario3_BackgroundTask.css b/archived/Geolocation/js/geolocationjs/css/scenario3_BackgroundTask.css similarity index 100% rename from Samples/Geolocation/js/geolocationjs/css/scenario3_BackgroundTask.css rename to archived/Geolocation/js/geolocationjs/css/scenario3_BackgroundTask.css diff --git a/Samples/Geolocation/js/geolocationjs/css/scenario4_ForegroundGeofence.css b/archived/Geolocation/js/geolocationjs/css/scenario4_ForegroundGeofence.css similarity index 100% rename from Samples/Geolocation/js/geolocationjs/css/scenario4_ForegroundGeofence.css rename to archived/Geolocation/js/geolocationjs/css/scenario4_ForegroundGeofence.css diff --git a/Samples/Geolocation/js/geolocationjs/css/scenario5_GeofenceBackgroundTask.css b/archived/Geolocation/js/geolocationjs/css/scenario5_GeofenceBackgroundTask.css similarity index 100% rename from Samples/Geolocation/js/geolocationjs/css/scenario5_GeofenceBackgroundTask.css rename to archived/Geolocation/js/geolocationjs/css/scenario5_GeofenceBackgroundTask.css diff --git a/Samples/Geolocation/js/geolocationjs/css/scenario8_VisitsBackgroundTask.css b/archived/Geolocation/js/geolocationjs/css/scenario8_VisitsBackgroundTask.css similarity index 100% rename from Samples/Geolocation/js/geolocationjs/css/scenario8_VisitsBackgroundTask.css rename to archived/Geolocation/js/geolocationjs/css/scenario8_VisitsBackgroundTask.css diff --git a/Samples/Geolocation/js/geolocationjs/html/scenario1_TrackPosition.html b/archived/Geolocation/js/geolocationjs/html/scenario1_TrackPosition.html similarity index 100% rename from Samples/Geolocation/js/geolocationjs/html/scenario1_TrackPosition.html rename to archived/Geolocation/js/geolocationjs/html/scenario1_TrackPosition.html diff --git a/Samples/Geolocation/js/geolocationjs/html/scenario2_GetPosition.html b/archived/Geolocation/js/geolocationjs/html/scenario2_GetPosition.html similarity index 100% rename from Samples/Geolocation/js/geolocationjs/html/scenario2_GetPosition.html rename to archived/Geolocation/js/geolocationjs/html/scenario2_GetPosition.html diff --git a/Samples/Geolocation/js/geolocationjs/html/scenario3_BackgroundTask.html b/archived/Geolocation/js/geolocationjs/html/scenario3_BackgroundTask.html similarity index 100% rename from Samples/Geolocation/js/geolocationjs/html/scenario3_BackgroundTask.html rename to archived/Geolocation/js/geolocationjs/html/scenario3_BackgroundTask.html diff --git a/Samples/Geolocation/js/geolocationjs/html/scenario4_ForegroundGeofence.html b/archived/Geolocation/js/geolocationjs/html/scenario4_ForegroundGeofence.html similarity index 100% rename from Samples/Geolocation/js/geolocationjs/html/scenario4_ForegroundGeofence.html rename to archived/Geolocation/js/geolocationjs/html/scenario4_ForegroundGeofence.html diff --git a/Samples/Geolocation/js/geolocationjs/html/scenario5_GeofenceBackgroundTask.html b/archived/Geolocation/js/geolocationjs/html/scenario5_GeofenceBackgroundTask.html similarity index 100% rename from Samples/Geolocation/js/geolocationjs/html/scenario5_GeofenceBackgroundTask.html rename to archived/Geolocation/js/geolocationjs/html/scenario5_GeofenceBackgroundTask.html diff --git a/Samples/Geolocation/js/geolocationjs/html/scenario6_GetLastVisit.html b/archived/Geolocation/js/geolocationjs/html/scenario6_GetLastVisit.html similarity index 100% rename from Samples/Geolocation/js/geolocationjs/html/scenario6_GetLastVisit.html rename to archived/Geolocation/js/geolocationjs/html/scenario6_GetLastVisit.html diff --git a/Samples/Geolocation/js/geolocationjs/html/scenario7_ForegroundVisits.html b/archived/Geolocation/js/geolocationjs/html/scenario7_ForegroundVisits.html similarity index 100% rename from Samples/Geolocation/js/geolocationjs/html/scenario7_ForegroundVisits.html rename to archived/Geolocation/js/geolocationjs/html/scenario7_ForegroundVisits.html diff --git a/Samples/Geolocation/js/geolocationjs/html/scenario8_VisitsBackgroundTask.html b/archived/Geolocation/js/geolocationjs/html/scenario8_VisitsBackgroundTask.html similarity index 100% rename from Samples/Geolocation/js/geolocationjs/html/scenario8_VisitsBackgroundTask.html rename to archived/Geolocation/js/geolocationjs/html/scenario8_VisitsBackgroundTask.html diff --git a/Samples/Geolocation/js/geolocationjs/images/badge-logo.png b/archived/Geolocation/js/geolocationjs/images/badge-logo.png similarity index 100% rename from Samples/Geolocation/js/geolocationjs/images/badge-logo.png rename to archived/Geolocation/js/geolocationjs/images/badge-logo.png diff --git a/Samples/Geolocation/js/geolocationjs/js/backgroundtask.js b/archived/Geolocation/js/geolocationjs/js/backgroundtask.js similarity index 100% rename from Samples/Geolocation/js/geolocationjs/js/backgroundtask.js rename to archived/Geolocation/js/geolocationjs/js/backgroundtask.js diff --git a/Samples/Geolocation/js/geolocationjs/js/geofencebackgroundtask.js b/archived/Geolocation/js/geolocationjs/js/geofencebackgroundtask.js similarity index 100% rename from Samples/Geolocation/js/geolocationjs/js/geofencebackgroundtask.js rename to archived/Geolocation/js/geolocationjs/js/geofencebackgroundtask.js diff --git a/Samples/Geolocation/js/geolocationjs/js/geofenceitem.js b/archived/Geolocation/js/geolocationjs/js/geofenceitem.js similarity index 100% rename from Samples/Geolocation/js/geolocationjs/js/geofenceitem.js rename to archived/Geolocation/js/geolocationjs/js/geofenceitem.js diff --git a/Samples/Geolocation/js/geolocationjs/js/sample-configuration.js b/archived/Geolocation/js/geolocationjs/js/sample-configuration.js similarity index 100% rename from Samples/Geolocation/js/geolocationjs/js/sample-configuration.js rename to archived/Geolocation/js/geolocationjs/js/sample-configuration.js diff --git a/Samples/Geolocation/js/geolocationjs/js/scenario1_TrackPosition.js b/archived/Geolocation/js/geolocationjs/js/scenario1_TrackPosition.js similarity index 100% rename from Samples/Geolocation/js/geolocationjs/js/scenario1_TrackPosition.js rename to archived/Geolocation/js/geolocationjs/js/scenario1_TrackPosition.js diff --git a/Samples/Geolocation/js/geolocationjs/js/scenario2_GetPosition.js b/archived/Geolocation/js/geolocationjs/js/scenario2_GetPosition.js similarity index 100% rename from Samples/Geolocation/js/geolocationjs/js/scenario2_GetPosition.js rename to archived/Geolocation/js/geolocationjs/js/scenario2_GetPosition.js diff --git a/Samples/Geolocation/js/geolocationjs/js/scenario3_BackgroundTask.js b/archived/Geolocation/js/geolocationjs/js/scenario3_BackgroundTask.js similarity index 100% rename from Samples/Geolocation/js/geolocationjs/js/scenario3_BackgroundTask.js rename to archived/Geolocation/js/geolocationjs/js/scenario3_BackgroundTask.js diff --git a/Samples/Geolocation/js/geolocationjs/js/scenario4_ForegroundGeofence.js b/archived/Geolocation/js/geolocationjs/js/scenario4_ForegroundGeofence.js similarity index 100% rename from Samples/Geolocation/js/geolocationjs/js/scenario4_ForegroundGeofence.js rename to archived/Geolocation/js/geolocationjs/js/scenario4_ForegroundGeofence.js diff --git a/Samples/Geolocation/js/geolocationjs/js/scenario5_GeofenceBackgroundTask.js b/archived/Geolocation/js/geolocationjs/js/scenario5_GeofenceBackgroundTask.js similarity index 100% rename from Samples/Geolocation/js/geolocationjs/js/scenario5_GeofenceBackgroundTask.js rename to archived/Geolocation/js/geolocationjs/js/scenario5_GeofenceBackgroundTask.js diff --git a/Samples/Geolocation/js/geolocationjs/js/scenario6_GetLastVisit.js b/archived/Geolocation/js/geolocationjs/js/scenario6_GetLastVisit.js similarity index 100% rename from Samples/Geolocation/js/geolocationjs/js/scenario6_GetLastVisit.js rename to archived/Geolocation/js/geolocationjs/js/scenario6_GetLastVisit.js diff --git a/Samples/Geolocation/js/geolocationjs/js/scenario7_ForegroundVisits.js b/archived/Geolocation/js/geolocationjs/js/scenario7_ForegroundVisits.js similarity index 100% rename from Samples/Geolocation/js/geolocationjs/js/scenario7_ForegroundVisits.js rename to archived/Geolocation/js/geolocationjs/js/scenario7_ForegroundVisits.js diff --git a/Samples/Geolocation/js/geolocationjs/js/scenario8_VisitsBackgroundTask.js b/archived/Geolocation/js/geolocationjs/js/scenario8_VisitsBackgroundTask.js similarity index 100% rename from Samples/Geolocation/js/geolocationjs/js/scenario8_VisitsBackgroundTask.js rename to archived/Geolocation/js/geolocationjs/js/scenario8_VisitsBackgroundTask.js diff --git a/Samples/Geolocation/js/geolocationjs/js/visitbackgroundtask.js b/archived/Geolocation/js/geolocationjs/js/visitbackgroundtask.js similarity index 100% rename from Samples/Geolocation/js/geolocationjs/js/visitbackgroundtask.js rename to archived/Geolocation/js/geolocationjs/js/visitbackgroundtask.js diff --git a/Samples/Geolocation/js/geolocationjs/sample-utils/placeholder.txt b/archived/Geolocation/js/geolocationjs/sample-utils/placeholder.txt similarity index 100% rename from Samples/Geolocation/js/geolocationjs/sample-utils/placeholder.txt rename to archived/Geolocation/js/geolocationjs/sample-utils/placeholder.txt diff --git a/archived/Geotag/README.md b/archived/Geotag/README.md new file mode 100644 index 0000000000..64f4fd1110 --- /dev/null +++ b/archived/Geotag/README.md @@ -0,0 +1,46 @@ +--- +topic: sample +languages: +- js +products: +- windows +- windows-uwp +--- + +# Geotag sample + +Shows how to use the GeotagHelper class to read geotag information from a file and set a file's geotag information to a specific location +or to a location obtained from a Geolocator. + +> **Note:** This sample is part of a large collection of UWP feature samples. +> If you are unfamiliar with Git and GitHub, you can download the entire collection as a +> [ZIP file](https://github.com/Microsoft/Windows-universal-samples/archive/master.zip), but be +> sure to unzip everything to access shared dependencies. For more info on working with the ZIP file, +> the samples collection, and GitHub, see [Get the UWP samples from GitHub](https://aka.ms/ovu2uq). +> For more samples, see the [Samples portal](https://aka.ms/winsamples) on the Windows Dev Center. + +Related topics +-------------- + +[GeotagHelper class](https://msdn.microsoft.com/library/windows/apps/windows.storage.fileproperties.geotaghelper.aspx) +[Geolocator class](https://msdn.microsoft.com/library/windows/apps/windows.devices.geolocation.geolocator.aspx) +[Geolocation sample](/Samples/Geolocation) + +System requirements +------------------- + +Windows 10 + +Build the sample +---------------- + +1. If you download the samples ZIP, be sure to unzip the entire archive, not just the folder with the sample you want to build. +2. Start Microsoft Visual Studio 2017 and select **File** \> **Open** \> **Project/Solution**. +3. Starting in the folder where you unzipped the samples, go to the Samples subfolder, then the subfolder for this specific sample, then the subfolder for your preferred language (C++, C#, or JavaScript). Double-click the Visual Studio Solution (.sln) file. +4. Press Ctrl+Shift+B, or select **Build** \> **Build Solution**. + +Run the sample +-------------- + +To debug the app and then run it, press F5 or use **Debug** \> **Start Debugging**. To run the app without debugging, press Ctrl+F5 or use **Debug** \> **Start Without Debugging**. + diff --git a/Samples/Geotag/js/Geotag.jsproj b/archived/Geotag/js/Geotag.jsproj similarity index 80% rename from Samples/Geotag/js/Geotag.jsproj rename to archived/Geotag/js/Geotag.jsproj index 0df450ad1e..cb7826b720 100644 --- a/Samples/Geotag/js/Geotag.jsproj +++ b/archived/Geotag/js/Geotag.jsproj @@ -54,7 +54,7 @@ Designer - + default.html @@ -79,51 +79,51 @@ images\windows-sdk.png - + js\default.js - + css\default.css - + Microsoft.WinJS.4.0\css\ui-dark.css - + Microsoft.WinJS.4.0\css\ui-light.css - + Microsoft.WinJS.4.0\js\en-US\ui.strings.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense-setup.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense.js - + Microsoft.WinJS.4.0\fonts\Symbols.ttf - + Microsoft.WinJS.4.0\js\base.js - + Microsoft.WinJS.4.0\js\ui.js - + sample-utils\footer.html - + sample-utils\header.html - + sample-utils\sample-utils.js - + sample-utils\scenario-select.css - + sample-utils\scenario-select.html diff --git a/Samples/Geotag/js/Geotag.sln b/archived/Geotag/js/Geotag.sln similarity index 100% rename from Samples/Geotag/js/Geotag.sln rename to archived/Geotag/js/Geotag.sln diff --git a/Samples/Geotag/js/Microsoft.WinJS.4.0/css/placeholder.txt b/archived/Geotag/js/Microsoft.WinJS.4.0/css/placeholder.txt similarity index 100% rename from Samples/Geotag/js/Microsoft.WinJS.4.0/css/placeholder.txt rename to archived/Geotag/js/Microsoft.WinJS.4.0/css/placeholder.txt diff --git a/Samples/Geotag/js/Microsoft.WinJS.4.0/fonts/placeholder b/archived/Geotag/js/Microsoft.WinJS.4.0/fonts/placeholder similarity index 100% rename from Samples/Geotag/js/Microsoft.WinJS.4.0/fonts/placeholder rename to archived/Geotag/js/Microsoft.WinJS.4.0/fonts/placeholder diff --git a/Samples/Geotag/js/Microsoft.WinJS.4.0/js/en-us/placeholder.txt b/archived/Geotag/js/Microsoft.WinJS.4.0/js/en-us/placeholder.txt similarity index 100% rename from Samples/Geotag/js/Microsoft.WinJS.4.0/js/en-us/placeholder.txt rename to archived/Geotag/js/Microsoft.WinJS.4.0/js/en-us/placeholder.txt diff --git a/Samples/Geotag/js/Package.appxmanifest b/archived/Geotag/js/Package.appxmanifest similarity index 100% rename from Samples/Geotag/js/Package.appxmanifest rename to archived/Geotag/js/Package.appxmanifest diff --git a/Samples/Geotag/js/css/placeholder.txt b/archived/Geotag/js/css/placeholder.txt similarity index 100% rename from Samples/Geotag/js/css/placeholder.txt rename to archived/Geotag/js/css/placeholder.txt diff --git a/Samples/Geotag/js/html/scenario1.html b/archived/Geotag/js/html/scenario1.html similarity index 100% rename from Samples/Geotag/js/html/scenario1.html rename to archived/Geotag/js/html/scenario1.html diff --git a/Samples/Geotag/js/images/placeholder.txt b/archived/Geotag/js/images/placeholder.txt similarity index 100% rename from Samples/Geotag/js/images/placeholder.txt rename to archived/Geotag/js/images/placeholder.txt diff --git a/Samples/Geotag/js/js/sample-configuration.js b/archived/Geotag/js/js/sample-configuration.js similarity index 100% rename from Samples/Geotag/js/js/sample-configuration.js rename to archived/Geotag/js/js/sample-configuration.js diff --git a/Samples/Geotag/js/js/scenario1.js b/archived/Geotag/js/js/scenario1.js similarity index 100% rename from Samples/Geotag/js/js/scenario1.js rename to archived/Geotag/js/js/scenario1.js diff --git a/Samples/Geotag/js/sample-utils/placeholder.txt b/archived/Geotag/js/sample-utils/placeholder.txt similarity index 100% rename from Samples/Geotag/js/sample-utils/placeholder.txt rename to archived/Geotag/js/sample-utils/placeholder.txt diff --git a/archived/GlobalizationPreferences/README.md b/archived/GlobalizationPreferences/README.md new file mode 100644 index 0000000000..df52c8b75b --- /dev/null +++ b/archived/GlobalizationPreferences/README.md @@ -0,0 +1,88 @@ +--- +topic: sample +languages: +- js +products: +- windows +- windows-uwp +--- + +# Globalization preferences sample + +Shows how to use the [Windows.System.UserProfile.GlobalizationPreferences](http://msdn.microsoft.com/library/windows/apps/br241825) +class to obtain the user's globalization preferences. In addition, it shows how to use the +[GeographicRegion](http://msdn.microsoft.com/library/windows/apps/br206792) and +[Language](http://msdn.microsoft.com/library/windows/apps/br206804) classes in the +[Windows.Globalization](http://msdn.microsoft.com/library/windows/apps/br206813) +namespace in order to display language and geographic region characteristics.. + +> **Note:** This sample is part of a large collection of UWP feature samples. +> If you are unfamiliar with Git and GitHub, you can download the entire collection as a +> [ZIP file](https://github.com/Microsoft/Windows-universal-samples/archive/master.zip), but be +> sure to unzip everything to access shared dependencies. For more info on working with the ZIP file, +> the samples collection, and GitHub, see [Get the UWP samples from GitHub](https://aka.ms/ovu2uq). +> For more samples, see the [Samples portal](https://aka.ms/winsamples) on the Windows Dev Center. + +Several user preferences related to globalization settings are available in the +[Windows.System.UserProfile](http://msdn.microsoft.com/library/windows/apps/br241881) +namespace. The [GlobalizationPreferences](http://msdn.microsoft.com/library/windows/apps/br241825) +class provides specific methods for accessing the following user preferences: + +- Language list ([Languages](http://msdn.microsoft.com/library/windows/apps/br241830)). +- Geographic region ([HomeGeographicRegion](http://msdn.microsoft.com/library/windows/apps/br241829)). +- Calendar system and settings ([Calendars](http://msdn.microsoft.com/library/windows/apps/br241826)). +- Clock ([Clocks](http://msdn.microsoft.com/library/windows/apps/br241827)). +- First day of the week ([WeekStartsOn](http://msdn.microsoft.com/library/windows/apps/br241831)). + +The [GeographicRegion](http://msdn.microsoft.com/library/windows/apps/br206792) +class also enables the caller to obtain details about a given geographic region or language. + +**Note** The Windows universal samples require Visual Studio 2017 to build and Windows 10 to execute. + +To obtain information about Windows 10 development, go to the [Windows Dev Center](http://go.microsoft.com/fwlink/?LinkID=532421) + +To obtain information about Microsoft Visual Studio and the tools for developing Windows apps, go to [Visual Studio](http://go.microsoft.com/fwlink/?LinkID=532422) + +## Related topics + +### Samples + +[Calendar sample](../Calendar) +[DateTimeFormatting sample](../DateTimeFormatting) +[NumberFormatting sample](../NumberFormatting) + +### Reference + +[Windows.System.UserProfile namespace](http://msdn.microsoft.com/library/windows/apps/br241881) +[Windows.System.UserProfile.GlobalizationPreferences class](http://msdn.microsoft.com/library/windows/apps/br241825) +[Windows.Globalization namespace](http://msdn.microsoft.com/library/windows/apps/br206813) +[Windows.Globalization.Calendar](http://msdn.microsoft.com/library/windows/apps/br206724) +[Windows.Globalization.GeographicRegion class](http://msdn.microsoft.com/library/windows/apps/br206792) +[Windows.Globalization.Language class](http://msdn.microsoft.com/library/windows/apps/br206804) + +## System requirements + +**Client:** Windows 10 + +**Server:** Windows Server 2016 Technical Preview + +**Phone:** Windows 10 + +## Build the sample + +1. If you download the samples ZIP, be sure to unzip the entire archive, not just the folder with the sample you want to build. +2. Start Microsoft Visual Studio 2017 and select **File** \> **Open** \> **Project/Solution**. +3. Starting in the folder where you unzipped the samples, go to the Samples subfolder, then the subfolder for this specific sample, then the subfolder for your preferred language (C++, C#, or JavaScript). Double-click the Visual Studio Solution (.sln) file. +4. Press Ctrl+Shift+B, or select **Build** \> **Build Solution**. + +## Run the sample + +The next steps depend on whether you just want to deploy the sample or you want to both deploy and run it. + +### Deploying the sample + +- Select Build > Deploy Solution. + +### Deploying and running the sample + +- To debug the sample and then run it, press F5 or select Debug > Start Debugging. To run the sample without debugging, press Ctrl+F5 or select Debug > Start Without Debugging. diff --git a/Samples/GlobalizationPreferences/js/GlobalizationPreferences.jsproj b/archived/GlobalizationPreferences/js/GlobalizationPreferences.jsproj similarity index 81% rename from Samples/GlobalizationPreferences/js/GlobalizationPreferences.jsproj rename to archived/GlobalizationPreferences/js/GlobalizationPreferences.jsproj index df5943d7b7..5713431640 100644 --- a/Samples/GlobalizationPreferences/js/GlobalizationPreferences.jsproj +++ b/archived/GlobalizationPreferences/js/GlobalizationPreferences.jsproj @@ -54,7 +54,7 @@ Designer - + default.html @@ -82,10 +82,10 @@ images\windows-sdk.png - + js\default.js - + css\default.css @@ -93,43 +93,43 @@ - + Microsoft.WinJS.4.0\css\ui-dark.css - + Microsoft.WinJS.4.0\css\ui-light.css - + Microsoft.WinJS.4.0\js\en-US\ui.strings.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense-setup.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense.js - + Microsoft.WinJS.4.0\fonts\Symbols.ttf - + Microsoft.WinJS.4.0\js\base.js - + Microsoft.WinJS.4.0\js\ui.js - + sample-utils\footer.html - + sample-utils\header.html - + sample-utils\sample-utils.js - + sample-utils\scenario-select.css - + sample-utils\scenario-select.html diff --git a/Samples/GlobalizationPreferences/js/GlobalizationPreferences.sln b/archived/GlobalizationPreferences/js/GlobalizationPreferences.sln similarity index 100% rename from Samples/GlobalizationPreferences/js/GlobalizationPreferences.sln rename to archived/GlobalizationPreferences/js/GlobalizationPreferences.sln diff --git a/Samples/GlobalizationPreferences/js/Microsoft.WinJS.4.0/css/placeholder.txt b/archived/GlobalizationPreferences/js/Microsoft.WinJS.4.0/css/placeholder.txt similarity index 100% rename from Samples/GlobalizationPreferences/js/Microsoft.WinJS.4.0/css/placeholder.txt rename to archived/GlobalizationPreferences/js/Microsoft.WinJS.4.0/css/placeholder.txt diff --git a/Samples/GlobalizationPreferences/js/Microsoft.WinJS.4.0/fonts/placeholder b/archived/GlobalizationPreferences/js/Microsoft.WinJS.4.0/fonts/placeholder similarity index 100% rename from Samples/GlobalizationPreferences/js/Microsoft.WinJS.4.0/fonts/placeholder rename to archived/GlobalizationPreferences/js/Microsoft.WinJS.4.0/fonts/placeholder diff --git a/Samples/GlobalizationPreferences/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt b/archived/GlobalizationPreferences/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt similarity index 100% rename from Samples/GlobalizationPreferences/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt rename to archived/GlobalizationPreferences/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt diff --git a/Samples/GlobalizationPreferences/js/Package.appxmanifest b/archived/GlobalizationPreferences/js/Package.appxmanifest similarity index 100% rename from Samples/GlobalizationPreferences/js/Package.appxmanifest rename to archived/GlobalizationPreferences/js/Package.appxmanifest diff --git a/Samples/GlobalizationPreferences/js/css/placeholder.txt b/archived/GlobalizationPreferences/js/css/placeholder.txt similarity index 100% rename from Samples/GlobalizationPreferences/js/css/placeholder.txt rename to archived/GlobalizationPreferences/js/css/placeholder.txt diff --git a/Samples/GlobalizationPreferences/js/html/scenario1-prefs.html b/archived/GlobalizationPreferences/js/html/scenario1-prefs.html similarity index 100% rename from Samples/GlobalizationPreferences/js/html/scenario1-prefs.html rename to archived/GlobalizationPreferences/js/html/scenario1-prefs.html diff --git a/Samples/GlobalizationPreferences/js/html/scenario2-lang.html b/archived/GlobalizationPreferences/js/html/scenario2-lang.html similarity index 100% rename from Samples/GlobalizationPreferences/js/html/scenario2-lang.html rename to archived/GlobalizationPreferences/js/html/scenario2-lang.html diff --git a/Samples/GlobalizationPreferences/js/html/scenario3-region.html b/archived/GlobalizationPreferences/js/html/scenario3-region.html similarity index 100% rename from Samples/GlobalizationPreferences/js/html/scenario3-region.html rename to archived/GlobalizationPreferences/js/html/scenario3-region.html diff --git a/Samples/GlobalizationPreferences/js/html/scenario4-input.html b/archived/GlobalizationPreferences/js/html/scenario4-input.html similarity index 100% rename from Samples/GlobalizationPreferences/js/html/scenario4-input.html rename to archived/GlobalizationPreferences/js/html/scenario4-input.html diff --git a/Samples/GlobalizationPreferences/js/images/placeholder.txt b/archived/GlobalizationPreferences/js/images/placeholder.txt similarity index 100% rename from Samples/GlobalizationPreferences/js/images/placeholder.txt rename to archived/GlobalizationPreferences/js/images/placeholder.txt diff --git a/Samples/GlobalizationPreferences/js/js/sample-configuration.js b/archived/GlobalizationPreferences/js/js/sample-configuration.js similarity index 100% rename from Samples/GlobalizationPreferences/js/js/sample-configuration.js rename to archived/GlobalizationPreferences/js/js/sample-configuration.js diff --git a/Samples/GlobalizationPreferences/js/js/scenario1-prefs.js b/archived/GlobalizationPreferences/js/js/scenario1-prefs.js similarity index 100% rename from Samples/GlobalizationPreferences/js/js/scenario1-prefs.js rename to archived/GlobalizationPreferences/js/js/scenario1-prefs.js diff --git a/Samples/GlobalizationPreferences/js/js/scenario2-lang.js b/archived/GlobalizationPreferences/js/js/scenario2-lang.js similarity index 100% rename from Samples/GlobalizationPreferences/js/js/scenario2-lang.js rename to archived/GlobalizationPreferences/js/js/scenario2-lang.js diff --git a/Samples/GlobalizationPreferences/js/js/scenario3-region.js b/archived/GlobalizationPreferences/js/js/scenario3-region.js similarity index 100% rename from Samples/GlobalizationPreferences/js/js/scenario3-region.js rename to archived/GlobalizationPreferences/js/js/scenario3-region.js diff --git a/Samples/GlobalizationPreferences/js/js/scenario4-input.js b/archived/GlobalizationPreferences/js/js/scenario4-input.js similarity index 100% rename from Samples/GlobalizationPreferences/js/js/scenario4-input.js rename to archived/GlobalizationPreferences/js/js/scenario4-input.js diff --git a/Samples/GlobalizationPreferences/js/sample-utils/placeholder.txt b/archived/GlobalizationPreferences/js/sample-utils/placeholder.txt similarity index 100% rename from Samples/GlobalizationPreferences/js/sample-utils/placeholder.txt rename to archived/GlobalizationPreferences/js/sample-utils/placeholder.txt diff --git a/archived/Gyrometer/README.md b/archived/Gyrometer/README.md new file mode 100644 index 0000000000..bb722bf98b --- /dev/null +++ b/archived/Gyrometer/README.md @@ -0,0 +1,68 @@ +--- +topic: sample +languages: +- js +products: +- windows +- windows-uwp +--- + +# Gyrometer sample + +Shows how to use the [Windows.Devices.Sensors.Gyrometer](http://msdn.microsoft.com/library/windows/apps/br225718) API. + +> **Note:** This sample is part of a large collection of UWP feature samples. +> If you are unfamiliar with Git and GitHub, you can download the entire collection as a +> [ZIP file](https://github.com/Microsoft/Windows-universal-samples/archive/master.zip), but be +> sure to unzip everything to access shared dependencies. For more info on working with the ZIP file, +> the samples collection, and GitHub, see [Get the UWP samples from GitHub](https://aka.ms/ovu2uq). +> For more samples, see the [Samples portal](https://aka.ms/winsamples) on the Windows Dev Center. + +This sample allows the user to view the angular velocity along the X-, Y-, and Z-axis for a 3-axis gyrometer. You can choose one of three scenarios: + +- Gyrometer data events +- Poll gyrometer readings +- Porting gyrometer logic across platforms + +### Gyrometer Data Events + +When you click the **Enable** button for the **Data Events** option, the app begins streaming gyrometer readings in real time. + +### Poll Gyrometer Readings + +When you click the **Enable** button for the **Polling** option, the app will retrieve the sensor readings at a fixed interval. + +### Porting Gyrometer Logic Across Platforms + +When you click the **Get Sample** button, two sets of readings are displayed: raw gyrometer reading, based on the native orientation of the device, and transformed gyrometer reading based on the native orientation of the device your sensor logic was originally developed for. + +### Related topics + +[Windows.Devices.Sensors namespace](http://go.microsoft.com/fwlink/p/?linkid=241981) + +## System requirements + +**Client:** Windows 10 + +**Server:** Windows Server 2016 Technical Preview + +**Phone:** Windows 10 + +## Build the sample + +1. If you download the samples ZIP, be sure to unzip the entire archive, not just the folder with the sample you want to build. +2. Start Microsoft Visual Studio 2017 and select **File** \> **Open** \> **Project/Solution**. +3. Starting in the folder where you unzipped the samples, go to the Samples subfolder, then the subfolder for this specific sample, then the subfolder for your preferred language (C++, C#, or JavaScript). Double-click the Visual Studio Solution (.sln) file. +4. Press Ctrl+Shift+B, or select **Build** \> **Build Solution**. + +## Run the sample + +The next steps depend on whether you just want to deploy the sample or you want to both deploy and run it. + +### Deploying the sample + +- Select Build > Deploy Solution. + +### Deploying and running the sample + +- To debug the sample and then run it, press F5 or select Debug > Start Debugging. To run the sample without debugging, press Ctrl+F5 or selectDebug > Start Without Debugging. diff --git a/Samples/Gyrometer/js/Gyrometer.jsproj b/archived/Gyrometer/js/Gyrometer.jsproj similarity index 81% rename from Samples/Gyrometer/js/Gyrometer.jsproj rename to archived/Gyrometer/js/Gyrometer.jsproj index aadf9b5c9f..39e84eaf36 100644 --- a/Samples/Gyrometer/js/Gyrometer.jsproj +++ b/archived/Gyrometer/js/Gyrometer.jsproj @@ -57,7 +57,7 @@ - + default.html @@ -84,53 +84,53 @@ images\windows-sdk.png - + js\default.js - + css\default.css - + Microsoft.WinJS.4.0\css\ui-dark.css - + Microsoft.WinJS.4.0\css\ui-light.css - + Microsoft.WinJS.4.0\js\en-US\ui.strings.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense-setup.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense.js - + Microsoft.WinJS.4.0\fonts\Symbols.ttf - + Microsoft.WinJS.4.0\js\base.js - + Microsoft.WinJS.4.0\js\ui.js - + sample-utils\footer.html - + sample-utils\header.html - + sample-utils\sample-utils.js - + sample-utils\scenario-select.css - + sample-utils\scenario-select.html diff --git a/Samples/Gyrometer/js/Gyrometer.sln b/archived/Gyrometer/js/Gyrometer.sln similarity index 100% rename from Samples/Gyrometer/js/Gyrometer.sln rename to archived/Gyrometer/js/Gyrometer.sln diff --git a/Samples/Gyrometer/js/Microsoft.WinJS.4.0/css/placeholder.txt b/archived/Gyrometer/js/Microsoft.WinJS.4.0/css/placeholder.txt similarity index 100% rename from Samples/Gyrometer/js/Microsoft.WinJS.4.0/css/placeholder.txt rename to archived/Gyrometer/js/Microsoft.WinJS.4.0/css/placeholder.txt diff --git a/Samples/Gyrometer/js/Microsoft.WinJS.4.0/fonts/placeholder b/archived/Gyrometer/js/Microsoft.WinJS.4.0/fonts/placeholder similarity index 100% rename from Samples/Gyrometer/js/Microsoft.WinJS.4.0/fonts/placeholder rename to archived/Gyrometer/js/Microsoft.WinJS.4.0/fonts/placeholder diff --git a/Samples/Gyrometer/js/Microsoft.WinJS.4.0/js/en-us/placeholder.txt b/archived/Gyrometer/js/Microsoft.WinJS.4.0/js/en-us/placeholder.txt similarity index 100% rename from Samples/Gyrometer/js/Microsoft.WinJS.4.0/js/en-us/placeholder.txt rename to archived/Gyrometer/js/Microsoft.WinJS.4.0/js/en-us/placeholder.txt diff --git a/Samples/Gyrometer/js/Package.appxmanifest b/archived/Gyrometer/js/Package.appxmanifest similarity index 100% rename from Samples/Gyrometer/js/Package.appxmanifest rename to archived/Gyrometer/js/Package.appxmanifest diff --git a/Samples/Gyrometer/js/css/scenario1_DataEvents.css b/archived/Gyrometer/js/css/scenario1_DataEvents.css similarity index 100% rename from Samples/Gyrometer/js/css/scenario1_DataEvents.css rename to archived/Gyrometer/js/css/scenario1_DataEvents.css diff --git a/Samples/Gyrometer/js/css/scenario2_Polling.css b/archived/Gyrometer/js/css/scenario2_Polling.css similarity index 100% rename from Samples/Gyrometer/js/css/scenario2_Polling.css rename to archived/Gyrometer/js/css/scenario2_Polling.css diff --git a/Samples/Gyrometer/js/css/scenario3_Porting.css b/archived/Gyrometer/js/css/scenario3_Porting.css similarity index 100% rename from Samples/Gyrometer/js/css/scenario3_Porting.css rename to archived/Gyrometer/js/css/scenario3_Porting.css diff --git a/Samples/Gyrometer/js/html/scenario1_DataEvents.html b/archived/Gyrometer/js/html/scenario1_DataEvents.html similarity index 100% rename from Samples/Gyrometer/js/html/scenario1_DataEvents.html rename to archived/Gyrometer/js/html/scenario1_DataEvents.html diff --git a/Samples/Gyrometer/js/html/scenario2_Polling.html b/archived/Gyrometer/js/html/scenario2_Polling.html similarity index 100% rename from Samples/Gyrometer/js/html/scenario2_Polling.html rename to archived/Gyrometer/js/html/scenario2_Polling.html diff --git a/Samples/Gyrometer/js/html/scenario3_Porting.html b/archived/Gyrometer/js/html/scenario3_Porting.html similarity index 100% rename from Samples/Gyrometer/js/html/scenario3_Porting.html rename to archived/Gyrometer/js/html/scenario3_Porting.html diff --git a/Samples/Gyrometer/js/js/sample-configuration.js b/archived/Gyrometer/js/js/sample-configuration.js similarity index 100% rename from Samples/Gyrometer/js/js/sample-configuration.js rename to archived/Gyrometer/js/js/sample-configuration.js diff --git a/Samples/Gyrometer/js/js/scenario1_DataEvents.js b/archived/Gyrometer/js/js/scenario1_DataEvents.js similarity index 100% rename from Samples/Gyrometer/js/js/scenario1_DataEvents.js rename to archived/Gyrometer/js/js/scenario1_DataEvents.js diff --git a/Samples/Gyrometer/js/js/scenario2_Polling.js b/archived/Gyrometer/js/js/scenario2_Polling.js similarity index 100% rename from Samples/Gyrometer/js/js/scenario2_Polling.js rename to archived/Gyrometer/js/js/scenario2_Polling.js diff --git a/Samples/Gyrometer/js/js/scenario3_Porting.js b/archived/Gyrometer/js/js/scenario3_Porting.js similarity index 100% rename from Samples/Gyrometer/js/js/scenario3_Porting.js rename to archived/Gyrometer/js/js/scenario3_Porting.js diff --git a/Samples/Gyrometer/js/sample-utils/placeholder.txt b/archived/Gyrometer/js/sample-utils/placeholder.txt similarity index 100% rename from Samples/Gyrometer/js/sample-utils/placeholder.txt rename to archived/Gyrometer/js/sample-utils/placeholder.txt diff --git a/Samples/HtmlFormValidation/README.md b/archived/HtmlFormValidation/README.md similarity index 100% rename from Samples/HtmlFormValidation/README.md rename to archived/HtmlFormValidation/README.md diff --git a/Samples/HtmlFormValidation/js/HtmlFormValidation.jsproj b/archived/HtmlFormValidation/js/HtmlFormValidation.jsproj similarity index 81% rename from Samples/HtmlFormValidation/js/HtmlFormValidation.jsproj rename to archived/HtmlFormValidation/js/HtmlFormValidation.jsproj index 277aabfe75..9e37698492 100644 --- a/Samples/HtmlFormValidation/js/HtmlFormValidation.jsproj +++ b/archived/HtmlFormValidation/js/HtmlFormValidation.jsproj @@ -56,7 +56,7 @@ - + default.html @@ -85,10 +85,10 @@ images\windows-sdk.png - + js\default.js - + css\default.css @@ -97,43 +97,43 @@ - + Microsoft.WinJS.4.0\css\ui-dark.css - + Microsoft.WinJS.4.0\css\ui-light.css - + Microsoft.WinJS.4.0\js\en-US\ui.strings.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense-setup.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense.js - + Microsoft.WinJS.4.0\fonts\Symbols.ttf - + Microsoft.WinJS.4.0\js\base.js - + Microsoft.WinJS.4.0\js\ui.js - + sample-utils\footer.html - + sample-utils\header.html - + sample-utils\sample-utils.js - + sample-utils\scenario-select.css - + sample-utils\scenario-select.html diff --git a/Samples/HtmlFormValidation/js/HtmlFormValidation.sln b/archived/HtmlFormValidation/js/HtmlFormValidation.sln similarity index 100% rename from Samples/HtmlFormValidation/js/HtmlFormValidation.sln rename to archived/HtmlFormValidation/js/HtmlFormValidation.sln diff --git a/Samples/HtmlFormValidation/js/Microsoft.WinJS.4.0/css/placeholder.txt b/archived/HtmlFormValidation/js/Microsoft.WinJS.4.0/css/placeholder.txt similarity index 100% rename from Samples/HtmlFormValidation/js/Microsoft.WinJS.4.0/css/placeholder.txt rename to archived/HtmlFormValidation/js/Microsoft.WinJS.4.0/css/placeholder.txt diff --git a/Samples/HtmlFormValidation/js/Microsoft.WinJS.4.0/fonts/placeholder b/archived/HtmlFormValidation/js/Microsoft.WinJS.4.0/fonts/placeholder similarity index 100% rename from Samples/HtmlFormValidation/js/Microsoft.WinJS.4.0/fonts/placeholder rename to archived/HtmlFormValidation/js/Microsoft.WinJS.4.0/fonts/placeholder diff --git a/Samples/HtmlFormValidation/js/Microsoft.WinJS.4.0/js/en-us/placeholder.txt b/archived/HtmlFormValidation/js/Microsoft.WinJS.4.0/js/en-us/placeholder.txt similarity index 100% rename from Samples/HtmlFormValidation/js/Microsoft.WinJS.4.0/js/en-us/placeholder.txt rename to archived/HtmlFormValidation/js/Microsoft.WinJS.4.0/js/en-us/placeholder.txt diff --git a/Samples/HtmlFormValidation/js/Package.appxmanifest b/archived/HtmlFormValidation/js/Package.appxmanifest similarity index 100% rename from Samples/HtmlFormValidation/js/Package.appxmanifest rename to archived/HtmlFormValidation/js/Package.appxmanifest diff --git a/Samples/HtmlFormValidation/js/css/scenario3.css b/archived/HtmlFormValidation/js/css/scenario3.css similarity index 100% rename from Samples/HtmlFormValidation/js/css/scenario3.css rename to archived/HtmlFormValidation/js/css/scenario3.css diff --git a/Samples/HtmlFormValidation/js/css/scenario4.css b/archived/HtmlFormValidation/js/css/scenario4.css similarity index 100% rename from Samples/HtmlFormValidation/js/css/scenario4.css rename to archived/HtmlFormValidation/js/css/scenario4.css diff --git a/Samples/HtmlFormValidation/js/html/scenario1.html b/archived/HtmlFormValidation/js/html/scenario1.html similarity index 100% rename from Samples/HtmlFormValidation/js/html/scenario1.html rename to archived/HtmlFormValidation/js/html/scenario1.html diff --git a/Samples/HtmlFormValidation/js/html/scenario2.html b/archived/HtmlFormValidation/js/html/scenario2.html similarity index 100% rename from Samples/HtmlFormValidation/js/html/scenario2.html rename to archived/HtmlFormValidation/js/html/scenario2.html diff --git a/Samples/HtmlFormValidation/js/html/scenario3.html b/archived/HtmlFormValidation/js/html/scenario3.html similarity index 100% rename from Samples/HtmlFormValidation/js/html/scenario3.html rename to archived/HtmlFormValidation/js/html/scenario3.html diff --git a/Samples/HtmlFormValidation/js/html/scenario4.html b/archived/HtmlFormValidation/js/html/scenario4.html similarity index 100% rename from Samples/HtmlFormValidation/js/html/scenario4.html rename to archived/HtmlFormValidation/js/html/scenario4.html diff --git a/Samples/HtmlFormValidation/js/html/scenario5.html b/archived/HtmlFormValidation/js/html/scenario5.html similarity index 100% rename from Samples/HtmlFormValidation/js/html/scenario5.html rename to archived/HtmlFormValidation/js/html/scenario5.html diff --git a/Samples/HtmlFormValidation/js/images/placeholder.txt b/archived/HtmlFormValidation/js/images/placeholder.txt similarity index 100% rename from Samples/HtmlFormValidation/js/images/placeholder.txt rename to archived/HtmlFormValidation/js/images/placeholder.txt diff --git a/Samples/HtmlFormValidation/js/js/sample-configuration.js b/archived/HtmlFormValidation/js/js/sample-configuration.js similarity index 100% rename from Samples/HtmlFormValidation/js/js/sample-configuration.js rename to archived/HtmlFormValidation/js/js/sample-configuration.js diff --git a/Samples/HtmlFormValidation/js/js/scenario1.js b/archived/HtmlFormValidation/js/js/scenario1.js similarity index 100% rename from Samples/HtmlFormValidation/js/js/scenario1.js rename to archived/HtmlFormValidation/js/js/scenario1.js diff --git a/Samples/HtmlFormValidation/js/js/scenario2.js b/archived/HtmlFormValidation/js/js/scenario2.js similarity index 100% rename from Samples/HtmlFormValidation/js/js/scenario2.js rename to archived/HtmlFormValidation/js/js/scenario2.js diff --git a/Samples/HtmlFormValidation/js/js/scenario3.js b/archived/HtmlFormValidation/js/js/scenario3.js similarity index 100% rename from Samples/HtmlFormValidation/js/js/scenario3.js rename to archived/HtmlFormValidation/js/js/scenario3.js diff --git a/Samples/HtmlFormValidation/js/js/scenario4.js b/archived/HtmlFormValidation/js/js/scenario4.js similarity index 100% rename from Samples/HtmlFormValidation/js/js/scenario4.js rename to archived/HtmlFormValidation/js/js/scenario4.js diff --git a/Samples/HtmlFormValidation/js/js/scenario5.js b/archived/HtmlFormValidation/js/js/scenario5.js similarity index 100% rename from Samples/HtmlFormValidation/js/js/scenario5.js rename to archived/HtmlFormValidation/js/js/scenario5.js diff --git a/Samples/HtmlFormValidation/js/sample-utils/placeholder.txt b/archived/HtmlFormValidation/js/sample-utils/placeholder.txt similarity index 100% rename from Samples/HtmlFormValidation/js/sample-utils/placeholder.txt rename to archived/HtmlFormValidation/js/sample-utils/placeholder.txt diff --git a/archived/Inclinometer/README.md b/archived/Inclinometer/README.md new file mode 100644 index 0000000000..d9e7530e79 --- /dev/null +++ b/archived/Inclinometer/README.md @@ -0,0 +1,69 @@ +--- +topic: sample +languages: +- js +products: +- windows +- windows-uwp +--- + +# Inclinometer sample + +Shows how to use the [Windows.Devices.Sensors.Inclinometer](http://msdn.microsoft.com/library/windows/apps/br225766) API. + +> **Note:** This sample is part of a large collection of UWP feature samples. +> If you are unfamiliar with Git and GitHub, you can download the entire collection as a +> [ZIP file](https://github.com/Microsoft/Windows-universal-samples/archive/master.zip), but be +> sure to unzip everything to access shared dependencies. For more info on working with the ZIP file, +> the samples collection, and GitHub, see [Get the UWP samples from GitHub](https://aka.ms/ovu2uq). +> For more samples, see the [Samples portal](https://aka.ms/winsamples) on the Windows Dev Center. + +This sample allows the user to view the angles of incline about the X-, Y-, and Z-axis for a 3-axis inclinometer. (The incline about the X-axis corresponds to the pitch value; the incline about the Y-axis corresponds to the roll value; and the incline about the Z-axis corresponds to the yaw value.) You can choose one of three scenarios: + +- Inclinometer data events +- Poll inclinometer readings +- Sensor calibration + +### Inclinometer Data Events + +When you click the **Enable** button for the **Data Events** option, the app begins streaming inclinometer readings in real time. + +### Poll Inclinometer Readings + +When you choose the **Enable** button for the **Polling** option, the app will retrieve the sensor readings at a fixed interval. + +### Sensor Calibration + +Allows the user to simulate sensor accuracy and demonstrates usage of the calibration bar. + +Related topics +-------------- + +[Windows.Devices.Sensors namespace](http://go.microsoft.com/fwlink/p/?linkid=241981) + +## System requirements + +**Client:** Windows 10 + +**Server:** Windows Server 2016 Technical Preview + +**Phone:** Windows 10 + +## Build the sample + +1. If you download the samples ZIP, be sure to unzip the entire archive, not just the folder with the sample you want to build. +2. Start Microsoft Visual Studio 2017 and select **File** \> **Open** \> **Project/Solution**. +3. Starting in the folder where you unzipped the samples, go to the Samples subfolder, then the subfolder for this specific sample, then the subfolder for your preferred language (C++, C#, or JavaScript). Double-click the Visual Studio Solution (.sln) file. +4. Press Ctrl+Shift+B, or select **Build** \> **Build Solution**. + +## Run the sample + +The next steps depend on whether you just want to deploy the sample or you want to both deploy and run it. + +### Deploying the sample + +- Select Build > Deploy Solution. + +### Deploying and running the sample + +- To debug the sample and then run it, press F5 or select Debug > Start Debugging. To run the sample without debugging, press Ctrl+F5 or selectDebug > Start Without Debugging. diff --git a/Samples/Inclinometer/js/Inclinometer.jsproj b/archived/Inclinometer/js/Inclinometer.jsproj similarity index 82% rename from Samples/Inclinometer/js/Inclinometer.jsproj rename to archived/Inclinometer/js/Inclinometer.jsproj index f6eacd07d4..b53c8a70ac 100644 --- a/Samples/Inclinometer/js/Inclinometer.jsproj +++ b/archived/Inclinometer/js/Inclinometer.jsproj @@ -58,7 +58,7 @@ - + default.html @@ -90,53 +90,53 @@ images\windows-sdk.png - + js\default.js - + css\default.css - + Microsoft.WinJS.4.0\css\ui-dark.css - + Microsoft.WinJS.4.0\css\ui-light.css - + Microsoft.WinJS.4.0\js\en-US\ui.strings.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense-setup.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense.js - + Microsoft.WinJS.4.0\fonts\Symbols.ttf - + Microsoft.WinJS.4.0\js\base.js - + Microsoft.WinJS.4.0\js\ui.js - + sample-utils\footer.html - + sample-utils\header.html - + sample-utils\sample-utils.js - + sample-utils\scenario-select.css - + sample-utils\scenario-select.html diff --git a/Samples/Inclinometer/js/Inclinometer.sln b/archived/Inclinometer/js/Inclinometer.sln similarity index 100% rename from Samples/Inclinometer/js/Inclinometer.sln rename to archived/Inclinometer/js/Inclinometer.sln diff --git a/Samples/Inclinometer/js/Microsoft.WinJS.4.0/css/placeholder.txt b/archived/Inclinometer/js/Microsoft.WinJS.4.0/css/placeholder.txt similarity index 100% rename from Samples/Inclinometer/js/Microsoft.WinJS.4.0/css/placeholder.txt rename to archived/Inclinometer/js/Microsoft.WinJS.4.0/css/placeholder.txt diff --git a/Samples/Inclinometer/js/Microsoft.WinJS.4.0/fonts/placeholder b/archived/Inclinometer/js/Microsoft.WinJS.4.0/fonts/placeholder similarity index 100% rename from Samples/Inclinometer/js/Microsoft.WinJS.4.0/fonts/placeholder rename to archived/Inclinometer/js/Microsoft.WinJS.4.0/fonts/placeholder diff --git a/Samples/Inclinometer/js/Microsoft.WinJS.4.0/js/en-us/placeholder.txt b/archived/Inclinometer/js/Microsoft.WinJS.4.0/js/en-us/placeholder.txt similarity index 100% rename from Samples/Inclinometer/js/Microsoft.WinJS.4.0/js/en-us/placeholder.txt rename to archived/Inclinometer/js/Microsoft.WinJS.4.0/js/en-us/placeholder.txt diff --git a/Samples/Inclinometer/js/Package.appxmanifest b/archived/Inclinometer/js/Package.appxmanifest similarity index 100% rename from Samples/Inclinometer/js/Package.appxmanifest rename to archived/Inclinometer/js/Package.appxmanifest diff --git a/Samples/Inclinometer/js/css/calibrationBar.css b/archived/Inclinometer/js/css/calibrationBar.css similarity index 100% rename from Samples/Inclinometer/js/css/calibrationBar.css rename to archived/Inclinometer/js/css/calibrationBar.css diff --git a/Samples/Inclinometer/js/css/scenario1_DataEvents.css b/archived/Inclinometer/js/css/scenario1_DataEvents.css similarity index 100% rename from Samples/Inclinometer/js/css/scenario1_DataEvents.css rename to archived/Inclinometer/js/css/scenario1_DataEvents.css diff --git a/Samples/Inclinometer/js/css/scenario2_Polling.css b/archived/Inclinometer/js/css/scenario2_Polling.css similarity index 100% rename from Samples/Inclinometer/js/css/scenario2_Polling.css rename to archived/Inclinometer/js/css/scenario2_Polling.css diff --git a/Samples/Inclinometer/js/css/scenario3_Calibration.css b/archived/Inclinometer/js/css/scenario3_Calibration.css similarity index 100% rename from Samples/Inclinometer/js/css/scenario3_Calibration.css rename to archived/Inclinometer/js/css/scenario3_Calibration.css diff --git a/Samples/Inclinometer/js/html/calibrationBar.html b/archived/Inclinometer/js/html/calibrationBar.html similarity index 100% rename from Samples/Inclinometer/js/html/calibrationBar.html rename to archived/Inclinometer/js/html/calibrationBar.html diff --git a/Samples/Inclinometer/js/html/scenario1_DataEvents.html b/archived/Inclinometer/js/html/scenario1_DataEvents.html similarity index 100% rename from Samples/Inclinometer/js/html/scenario1_DataEvents.html rename to archived/Inclinometer/js/html/scenario1_DataEvents.html diff --git a/Samples/Inclinometer/js/html/scenario2_Polling.html b/archived/Inclinometer/js/html/scenario2_Polling.html similarity index 100% rename from Samples/Inclinometer/js/html/scenario2_Polling.html rename to archived/Inclinometer/js/html/scenario2_Polling.html diff --git a/Samples/Inclinometer/js/html/scenario3_Calibration.html b/archived/Inclinometer/js/html/scenario3_Calibration.html similarity index 100% rename from Samples/Inclinometer/js/html/scenario3_Calibration.html rename to archived/Inclinometer/js/html/scenario3_Calibration.html diff --git a/Samples/Inclinometer/js/js/calibrationBar.js b/archived/Inclinometer/js/js/calibrationBar.js similarity index 100% rename from Samples/Inclinometer/js/js/calibrationBar.js rename to archived/Inclinometer/js/js/calibrationBar.js diff --git a/Samples/Inclinometer/js/js/sample-configuration.js b/archived/Inclinometer/js/js/sample-configuration.js similarity index 100% rename from Samples/Inclinometer/js/js/sample-configuration.js rename to archived/Inclinometer/js/js/sample-configuration.js diff --git a/Samples/Inclinometer/js/js/scenario1_DataEvents.js b/archived/Inclinometer/js/js/scenario1_DataEvents.js similarity index 100% rename from Samples/Inclinometer/js/js/scenario1_DataEvents.js rename to archived/Inclinometer/js/js/scenario1_DataEvents.js diff --git a/Samples/Inclinometer/js/js/scenario2_Polling.js b/archived/Inclinometer/js/js/scenario2_Polling.js similarity index 100% rename from Samples/Inclinometer/js/js/scenario2_Polling.js rename to archived/Inclinometer/js/js/scenario2_Polling.js diff --git a/Samples/Inclinometer/js/js/scenario3_Calibration.js b/archived/Inclinometer/js/js/scenario3_Calibration.js similarity index 100% rename from Samples/Inclinometer/js/js/scenario3_Calibration.js rename to archived/Inclinometer/js/js/scenario3_Calibration.js diff --git a/Samples/Inclinometer/js/sample-utils/placeholder.txt b/archived/Inclinometer/js/sample-utils/placeholder.txt similarity index 100% rename from Samples/Inclinometer/js/sample-utils/placeholder.txt rename to archived/Inclinometer/js/sample-utils/placeholder.txt diff --git a/Samples/IndexedDB/README.md b/archived/IndexedDB/README.md similarity index 100% rename from Samples/IndexedDB/README.md rename to archived/IndexedDB/README.md diff --git a/Samples/IndexedDB/js/IndexedDB.jsproj b/archived/IndexedDB/js/IndexedDB.jsproj similarity index 81% rename from Samples/IndexedDB/js/IndexedDB.jsproj rename to archived/IndexedDB/js/IndexedDB.jsproj index 2225220e48..6e1ea62d58 100644 --- a/Samples/IndexedDB/js/IndexedDB.jsproj +++ b/archived/IndexedDB/js/IndexedDB.jsproj @@ -55,7 +55,7 @@ Designer - + default.html @@ -84,53 +84,53 @@ images\windows-sdk.png - + js\default.js - + css\default.css - + Microsoft.WinJS.4.0\css\ui-dark.css - + Microsoft.WinJS.4.0\css\ui-light.css - + Microsoft.WinJS.4.0\js\en-US\ui.strings.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense-setup.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense.js - + Microsoft.WinJS.4.0\fonts\Symbols.ttf - + Microsoft.WinJS.4.0\js\base.js - + Microsoft.WinJS.4.0\js\ui.js - + sample-utils\footer.html - + sample-utils\header.html - + sample-utils\sample-utils.js - + sample-utils\scenario-select.css - + sample-utils\scenario-select.html diff --git a/Samples/IndexedDB/js/IndexedDB.sln b/archived/IndexedDB/js/IndexedDB.sln similarity index 100% rename from Samples/IndexedDB/js/IndexedDB.sln rename to archived/IndexedDB/js/IndexedDB.sln diff --git a/Samples/IndexedDB/js/Microsoft.WinJS.4.0/css/placeholder.txt b/archived/IndexedDB/js/Microsoft.WinJS.4.0/css/placeholder.txt similarity index 100% rename from Samples/IndexedDB/js/Microsoft.WinJS.4.0/css/placeholder.txt rename to archived/IndexedDB/js/Microsoft.WinJS.4.0/css/placeholder.txt diff --git a/Samples/IndexedDB/js/Microsoft.WinJS.4.0/fonts/placeholder b/archived/IndexedDB/js/Microsoft.WinJS.4.0/fonts/placeholder similarity index 100% rename from Samples/IndexedDB/js/Microsoft.WinJS.4.0/fonts/placeholder rename to archived/IndexedDB/js/Microsoft.WinJS.4.0/fonts/placeholder diff --git a/Samples/IndexedDB/js/Microsoft.WinJS.4.0/js/en-us/placeholder.txt b/archived/IndexedDB/js/Microsoft.WinJS.4.0/js/en-us/placeholder.txt similarity index 100% rename from Samples/IndexedDB/js/Microsoft.WinJS.4.0/js/en-us/placeholder.txt rename to archived/IndexedDB/js/Microsoft.WinJS.4.0/js/en-us/placeholder.txt diff --git a/Samples/IndexedDB/js/Package.appxmanifest b/archived/IndexedDB/js/Package.appxmanifest similarity index 100% rename from Samples/IndexedDB/js/Package.appxmanifest rename to archived/IndexedDB/js/Package.appxmanifest diff --git a/Samples/IndexedDB/js/css/placeholder.txt b/archived/IndexedDB/js/css/placeholder.txt similarity index 100% rename from Samples/IndexedDB/js/css/placeholder.txt rename to archived/IndexedDB/js/css/placeholder.txt diff --git a/Samples/IndexedDB/js/data/data.xml b/archived/IndexedDB/js/data/data.xml similarity index 100% rename from Samples/IndexedDB/js/data/data.xml rename to archived/IndexedDB/js/data/data.xml diff --git a/Samples/IndexedDB/js/html/createschema.html b/archived/IndexedDB/js/html/createschema.html similarity index 100% rename from Samples/IndexedDB/js/html/createschema.html rename to archived/IndexedDB/js/html/createschema.html diff --git a/Samples/IndexedDB/js/html/populatedata.html b/archived/IndexedDB/js/html/populatedata.html similarity index 100% rename from Samples/IndexedDB/js/html/populatedata.html rename to archived/IndexedDB/js/html/populatedata.html diff --git a/Samples/IndexedDB/js/html/readdata.html b/archived/IndexedDB/js/html/readdata.html similarity index 100% rename from Samples/IndexedDB/js/html/readdata.html rename to archived/IndexedDB/js/html/readdata.html diff --git a/Samples/IndexedDB/js/html/writedata.html b/archived/IndexedDB/js/html/writedata.html similarity index 100% rename from Samples/IndexedDB/js/html/writedata.html rename to archived/IndexedDB/js/html/writedata.html diff --git a/Samples/IndexedDB/js/images/placeholder.txt b/archived/IndexedDB/js/images/placeholder.txt similarity index 100% rename from Samples/IndexedDB/js/images/placeholder.txt rename to archived/IndexedDB/js/images/placeholder.txt diff --git a/Samples/IndexedDB/js/js/createschema.js b/archived/IndexedDB/js/js/createschema.js similarity index 100% rename from Samples/IndexedDB/js/js/createschema.js rename to archived/IndexedDB/js/js/createschema.js diff --git a/Samples/IndexedDB/js/js/populatedata.js b/archived/IndexedDB/js/js/populatedata.js similarity index 100% rename from Samples/IndexedDB/js/js/populatedata.js rename to archived/IndexedDB/js/js/populatedata.js diff --git a/Samples/IndexedDB/js/js/readdata.js b/archived/IndexedDB/js/js/readdata.js similarity index 100% rename from Samples/IndexedDB/js/js/readdata.js rename to archived/IndexedDB/js/js/readdata.js diff --git a/Samples/IndexedDB/js/js/sample-configuration.js b/archived/IndexedDB/js/js/sample-configuration.js similarity index 100% rename from Samples/IndexedDB/js/js/sample-configuration.js rename to archived/IndexedDB/js/js/sample-configuration.js diff --git a/Samples/IndexedDB/js/js/writedata.js b/archived/IndexedDB/js/js/writedata.js similarity index 100% rename from Samples/IndexedDB/js/js/writedata.js rename to archived/IndexedDB/js/js/writedata.js diff --git a/Samples/IndexedDB/js/sample-utils/placeholder.txt b/archived/IndexedDB/js/sample-utils/placeholder.txt similarity index 100% rename from Samples/IndexedDB/js/sample-utils/placeholder.txt rename to archived/IndexedDB/js/sample-utils/placeholder.txt diff --git a/Samples/Ink/README.md b/archived/Ink/README.md similarity index 100% rename from Samples/Ink/README.md rename to archived/Ink/README.md diff --git a/Samples/Ink/js/Ink.jsproj b/archived/Ink/js/Ink.jsproj similarity index 81% rename from Samples/Ink/js/Ink.jsproj rename to archived/Ink/js/Ink.jsproj index cea9bceea2..c229bbca59 100644 --- a/Samples/Ink/js/Ink.jsproj +++ b/archived/Ink/js/Ink.jsproj @@ -82,52 +82,52 @@ images\windows-sdk.png - + js\default.js - + css\default.css - + Microsoft.WinJS.4.0\css\ui-dark.css - + Microsoft.WinJS.4.0\css\ui-light.css - + Microsoft.WinJS.4.0\js\en-US\ui.strings.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense-setup.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense.js - + Microsoft.WinJS.4.0\fonts\Symbols.ttf - + Microsoft.WinJS.4.0\js\base.js - + Microsoft.WinJS.4.0\js\ui.js - + sample-utils\footer.html - + sample-utils\header.html - + sample-utils\sample-utils.js - + sample-utils\scenario-select.css - + sample-utils\scenario-select.html diff --git a/Samples/Ink/js/Ink.sln b/archived/Ink/js/Ink.sln similarity index 100% rename from Samples/Ink/js/Ink.sln rename to archived/Ink/js/Ink.sln diff --git a/Samples/Ink/js/Microsoft.WinJS.4.0/css/placeholder.txt b/archived/Ink/js/Microsoft.WinJS.4.0/css/placeholder.txt similarity index 100% rename from Samples/Ink/js/Microsoft.WinJS.4.0/css/placeholder.txt rename to archived/Ink/js/Microsoft.WinJS.4.0/css/placeholder.txt diff --git a/Samples/Ink/js/Microsoft.WinJS.4.0/fonts/placeholder b/archived/Ink/js/Microsoft.WinJS.4.0/fonts/placeholder similarity index 100% rename from Samples/Ink/js/Microsoft.WinJS.4.0/fonts/placeholder rename to archived/Ink/js/Microsoft.WinJS.4.0/fonts/placeholder diff --git a/Samples/Ink/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt b/archived/Ink/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt similarity index 100% rename from Samples/Ink/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt rename to archived/Ink/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt diff --git a/Samples/Ink/js/css/scenario1.css b/archived/Ink/js/css/scenario1.css similarity index 100% rename from Samples/Ink/js/css/scenario1.css rename to archived/Ink/js/css/scenario1.css diff --git a/Samples/Ink/js/css/scenario2.css b/archived/Ink/js/css/scenario2.css similarity index 100% rename from Samples/Ink/js/css/scenario2.css rename to archived/Ink/js/css/scenario2.css diff --git a/Samples/Ink/js/default.html b/archived/Ink/js/default.html similarity index 100% rename from Samples/Ink/js/default.html rename to archived/Ink/js/default.html diff --git a/Samples/Ink/js/html/scenario1.html b/archived/Ink/js/html/scenario1.html similarity index 100% rename from Samples/Ink/js/html/scenario1.html rename to archived/Ink/js/html/scenario1.html diff --git a/Samples/Ink/js/html/scenario2.html b/archived/Ink/js/html/scenario2.html similarity index 100% rename from Samples/Ink/js/html/scenario2.html rename to archived/Ink/js/html/scenario2.html diff --git a/Samples/Ink/js/images/Erase.cur b/archived/Ink/js/images/Erase.cur similarity index 100% rename from Samples/Ink/js/images/Erase.cur rename to archived/Ink/js/images/Erase.cur diff --git a/Samples/Ink/js/images/Select.png b/archived/Ink/js/images/Select.png similarity index 100% rename from Samples/Ink/js/images/Select.png rename to archived/Ink/js/images/Select.png diff --git a/Samples/Ink/js/js/sample-configuration.js b/archived/Ink/js/js/sample-configuration.js similarity index 100% rename from Samples/Ink/js/js/sample-configuration.js rename to archived/Ink/js/js/sample-configuration.js diff --git a/Samples/Ink/js/js/scenario1.js b/archived/Ink/js/js/scenario1.js similarity index 100% rename from Samples/Ink/js/js/scenario1.js rename to archived/Ink/js/js/scenario1.js diff --git a/Samples/Ink/js/js/scenario2.js b/archived/Ink/js/js/scenario2.js similarity index 100% rename from Samples/Ink/js/js/scenario2.js rename to archived/Ink/js/js/scenario2.js diff --git a/Samples/Ink/js/package.appxmanifest b/archived/Ink/js/package.appxmanifest similarity index 100% rename from Samples/Ink/js/package.appxmanifest rename to archived/Ink/js/package.appxmanifest diff --git a/Samples/Ink/js/sample-utils/placeholder.txt b/archived/Ink/js/sample-utils/placeholder.txt similarity index 100% rename from Samples/Ink/js/sample-utils/placeholder.txt rename to archived/Ink/js/sample-utils/placeholder.txt diff --git a/archived/IoT-GPIO/README.md b/archived/IoT-GPIO/README.md new file mode 100644 index 0000000000..5ca7e2388e --- /dev/null +++ b/archived/IoT-GPIO/README.md @@ -0,0 +1,68 @@ +--- +topic: sample +languages: +- js +products: +- windows +- windows-uwp +--- + +# General Purpose Input/Output (GPIO) sample + +Shows how to use the [Windows.Devices.Gpio](http://msdn.microsoft.com/library/windows.devices.gpio.aspx) namespace +to allow apps to set, read, and react to state changes in the +General Purpose Input/Output (GPIO) pins +on a Windows IoT (Internet of Things) device. +These pins are often used to access sensors, motors, LEDs, etc. + +> **Note:** This sample is part of a large collection of UWP feature samples. +> If you are unfamiliar with Git and GitHub, you can download the entire collection as a +> [ZIP file](https://github.com/Microsoft/Windows-universal-samples/archive/master.zip), but be +> sure to unzip everything to access shared dependencies. For more info on working with the ZIP file, +> the samples collection, and GitHub, see [Get the UWP samples from GitHub](https://aka.ms/ovu2uq). +> For more samples, see the [Samples portal](https://aka.ms/winsamples) on the Windows Dev Center. + +This sample demonstrates the following: + +- Setting GPIO pin values. +- Getting GPIO pin values. +- Listening for changes in GPIO pin values. + +**Note** The Windows universal samples require Visual Studio 2017 to build and Windows 10 IoT Core to execute. + +To obtain information about Windows 10 IoT Core, go to [Windows on Devices](http://windowsondevices.com). + +You can find more Windows IoT Core samples in the [Windows 10 Internet of Things (IoT) Samples repo](https://go.microsoft.com/fwlink/?linkid=860459). + +To obtain information about Microsoft Visual Studio and the tools for developing Windows apps, go to [Visual Studio](http://go.microsoft.com/fwlink/?LinkID=532422) + +## System requirements + +**IoT:** Windows 10 IoT Core + +## Build the sample + +1. If you download the samples ZIP, be sure to unzip the entire archive, not just the folder with the sample you want to build. +2. Start Microsoft Visual Studio 2017 and select **File** \> **Open** \> **Project/Solution**. +3. Starting in the folder where you unzipped the samples, go to the Samples subfolder, then the subfolder for this specific sample, then the subfolder for your preferred language (C++, C#, or JavaScript). Double-click the Visual Studio Solution (.sln) file. +4. Press Ctrl+Shift+B, or select **Build** \> **Build Solution**. + +## Run the sample + +The next steps depend on whether you just want to deploy the sample or you want to both deploy and run it. + +### Deploying the sample + +- Select the appropriate architecture for the device you want to deploy to (i.e. ARM for Raspberry Pi 2 or x86 for MinnowBoard Max) +- For C#, select Remote Machine from Debug > Target device in your Project properties. For C++ and JavaScript, select Remote Machine from Debugger to launch dropdown in the Debugging tab of your Project properties. +- For C#, enter the target device name or IP address in Debug > Remote Machine in your Project properties. For C++ and JavaScript, enter the target device name or IP address in Debugging > Machine Name in your Project properties. +- For C#, deselect the Use Athentication checkbox in the Debug tab of your Project properties. For C++ and JavaScript, select No for Debugging > Require Authentication in your Project properties. +- Select Build > Deploy Solution. + +### Deploying and running the sample + +- Select the appropriate architecture for the device you want to deploy to (i.e. ARM for Raspberry Pi 2 or x86 for MinnowBoard Max) +- For C#, select Remote Machine from Debug > Target device in your Project properties. For C++ and JavaScript, select Remote Machine from Debugger to launch dropdown in the Debugging tab of your Project properties. +- For C#, enter the target device name or IP address in Debug > Remote Machine in your Project properties. For C++ and JavaScript, enter the target device name or IP address in Debugging > Machine Name in your Project properties. +- For C#, deselect the Use Athentication checkbox in the Debug tab of your Project properties. For C++ and JavaScript, select No for Debugging > Require Authentication in your Project properties. +- Press F5 or select Debug > Start Debugging. To run the sample without debugging, press Ctrl+F5 or select Debug > Start Without Debugging. diff --git a/Samples/IoT-GPIO/js/Gpio.jsproj b/archived/IoT-GPIO/js/Gpio.jsproj similarity index 81% rename from Samples/IoT-GPIO/js/Gpio.jsproj rename to archived/IoT-GPIO/js/Gpio.jsproj index 3b9c9b12a4..7e9eeb52bb 100644 --- a/Samples/IoT-GPIO/js/Gpio.jsproj +++ b/archived/IoT-GPIO/js/Gpio.jsproj @@ -58,7 +58,7 @@ Designer - + default.html @@ -87,52 +87,52 @@ images\windows-sdk.png - + js\default.js - + css\default.css - + Microsoft.WinJS.4.0\css\ui-dark.css - + Microsoft.WinJS.4.0\css\ui-light.css - + Microsoft.WinJS.4.0\js\en-US\ui.strings.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense-setup.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense.js - + Microsoft.WinJS.4.0\fonts\Symbols.ttf - + Microsoft.WinJS.4.0\js\base.js - + Microsoft.WinJS.4.0\js\ui.js - + sample-utils\footer.html - + sample-utils\header.html - + sample-utils\sample-utils.js - + sample-utils\scenario-select.css - + sample-utils\scenario-select.html diff --git a/Samples/IoT-GPIO/js/Gpio.sln b/archived/IoT-GPIO/js/Gpio.sln similarity index 100% rename from Samples/IoT-GPIO/js/Gpio.sln rename to archived/IoT-GPIO/js/Gpio.sln diff --git a/Samples/IoT-GPIO/js/Microsoft.WinJS.4.0/css/placeholder.txt b/archived/IoT-GPIO/js/Microsoft.WinJS.4.0/css/placeholder.txt similarity index 100% rename from Samples/IoT-GPIO/js/Microsoft.WinJS.4.0/css/placeholder.txt rename to archived/IoT-GPIO/js/Microsoft.WinJS.4.0/css/placeholder.txt diff --git a/Samples/IoT-GPIO/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt b/archived/IoT-GPIO/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt similarity index 100% rename from Samples/IoT-GPIO/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt rename to archived/IoT-GPIO/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt diff --git a/Samples/IoT-GPIO/js/css/placeholder.txt b/archived/IoT-GPIO/js/css/placeholder.txt similarity index 100% rename from Samples/IoT-GPIO/js/css/placeholder.txt rename to archived/IoT-GPIO/js/css/placeholder.txt diff --git a/Samples/IoT-GPIO/js/html/scenario1-getandsetpin.html b/archived/IoT-GPIO/js/html/scenario1-getandsetpin.html similarity index 100% rename from Samples/IoT-GPIO/js/html/scenario1-getandsetpin.html rename to archived/IoT-GPIO/js/html/scenario1-getandsetpin.html diff --git a/Samples/IoT-GPIO/js/html/scenario2-listen.html b/archived/IoT-GPIO/js/html/scenario2-listen.html similarity index 100% rename from Samples/IoT-GPIO/js/html/scenario2-listen.html rename to archived/IoT-GPIO/js/html/scenario2-listen.html diff --git a/Samples/IoT-GPIO/js/images/placeholder.txt b/archived/IoT-GPIO/js/images/placeholder.txt similarity index 100% rename from Samples/IoT-GPIO/js/images/placeholder.txt rename to archived/IoT-GPIO/js/images/placeholder.txt diff --git a/Samples/IoT-GPIO/js/js/sample-configuration.js b/archived/IoT-GPIO/js/js/sample-configuration.js similarity index 100% rename from Samples/IoT-GPIO/js/js/sample-configuration.js rename to archived/IoT-GPIO/js/js/sample-configuration.js diff --git a/Samples/IoT-GPIO/js/js/scenario1-getandsetpin.js b/archived/IoT-GPIO/js/js/scenario1-getandsetpin.js similarity index 100% rename from Samples/IoT-GPIO/js/js/scenario1-getandsetpin.js rename to archived/IoT-GPIO/js/js/scenario1-getandsetpin.js diff --git a/Samples/IoT-GPIO/js/js/scenario2-listen.js b/archived/IoT-GPIO/js/js/scenario2-listen.js similarity index 100% rename from Samples/IoT-GPIO/js/js/scenario2-listen.js rename to archived/IoT-GPIO/js/js/scenario2-listen.js diff --git a/Samples/IoT-GPIO/js/package.appxmanifest b/archived/IoT-GPIO/js/package.appxmanifest similarity index 100% rename from Samples/IoT-GPIO/js/package.appxmanifest rename to archived/IoT-GPIO/js/package.appxmanifest diff --git a/Samples/IoT-GPIO/js/sample-utils/placeholder.txt b/archived/IoT-GPIO/js/sample-utils/placeholder.txt similarity index 100% rename from Samples/IoT-GPIO/js/sample-utils/placeholder.txt rename to archived/IoT-GPIO/js/sample-utils/placeholder.txt diff --git a/archived/IoT-I2C/README.md b/archived/IoT-I2C/README.md new file mode 100644 index 0000000000..411a9a424e --- /dev/null +++ b/archived/IoT-I2C/README.md @@ -0,0 +1,67 @@ +--- +topic: sample +languages: +- js +products: +- windows +- windows-uwp +--- + +# Inter-Integrated Circuit (I2C) sample + +Shows how to use the [Windows.Devices.I2c](http://msdn.microsoft.com/library/windows.devices.i2c.aspx) namespace +to allow apps to communicate with Inter-Integrated Circuit devices +(commmonly abbreviated IIC or I2C) +on a Windows IoT (Internet of Things) device. + +> **Note:** This sample is part of a large collection of UWP feature samples. +> If you are unfamiliar with Git and GitHub, you can download the entire collection as a +> [ZIP file](https://github.com/Microsoft/Windows-universal-samples/archive/master.zip), but be +> sure to unzip everything to access shared dependencies. For more info on working with the ZIP file, +> the samples collection, and GitHub, see [Get the UWP samples from GitHub](https://aka.ms/ovu2uq). +> For more samples, see the [Samples portal](https://aka.ms/winsamples) on the Windows Dev Center. + +I2C is a two-wire low-speed bus used to interface devices such as sensors, EEPROMs, and touch controllers. This sample shows how to access the I2C bus. + +The sample shows the following techniques: + +- Reading data from an I2C device. + +**Note** The Windows universal samples require Visual Studio 2017 to build and Windows 10 IoT Core to execute. + +To obtain information about Windows 10 IoT Core, go to [Windows on Devices](http://windowsondevices.com) + +You can find more Windows IoT Core samples in the [Windows 10 Internet of Things (IoT) Samples repo](https://go.microsoft.com/fwlink/?linkid=860459). + +To obtain information about Microsoft Visual Studio and the tools for developing Windows apps, go to [Visual Studio](http://go.microsoft.com/fwlink/?LinkID=532422) + +## System requirements + +**IoT:** Windows 10 IoT Core + +## Build the sample + +1. If you download the samples ZIP, be sure to unzip the entire archive, not just the folder with the sample you want to build. +2. Start Microsoft Visual Studio 2017 and select **File** \> **Open** \> **Project/Solution**. +3. Starting in the folder where you unzipped the samples, go to the Samples subfolder, then the subfolder for this specific sample, then the subfolder for your preferred language (C++, C#, or JavaScript). Double-click the Visual Studio Solution (.sln) file. +4. Press Ctrl+Shift+B, or select **Build** \> **Build Solution**. + +## Run the sample + +The next steps depend on whether you just want to deploy the sample or you want to both deploy and run it. + +### Deploying the sample + +- Select the appropriate architecture for the device you want to deploy to (i.e. ARM for Raspberry Pi 2 or x86 for MinnowBoard Max) +- For C#, select Remote Machine from Debug > Target device in your Project properties. For C++ and JavaScript, select Remote Machine from Debugger to launch dropdown in the Debugging tab of your Project properties. +- For C#, enter the target device name or IP address in Debug > Remote Machine in your Project properties. For C++ and JavaScript, enter the target device name or IP address in Debugging > Machine Name in your Project properties. +- For C#, deselect the Use Athentication checkbox in the Debug tab of your Project properties. For C++ and JavaScript, select No for Debugging > Require Authentication in your Project properties. +- Select Build > Deploy Solution. + +### Deploying and running the sample + +- Select the appropriate architecture for the device you want to deploy to (i.e. ARM for Raspberry Pi 2 or x86 for MinnowBoard Max) +- For C#, select Remote Machine from Debug > Target device in your Project properties. For C++ and JavaScript, select Remote Machine from Debugger to launch dropdown in the Debugging tab of your Project properties. +- For C#, enter the target device name or IP address in Debug > Remote Machine in your Project properties. For C++ and JavaScript, enter the target device name or IP address in Debugging > Machine Name in your Project properties. +- For C#, deselect the Use Athentication checkbox in the Debug tab of your Project properties. For C++ and JavaScript, select No for Debugging > Require Authentication in your Project properties. +- Press F5 or select Debug > Start Debugging. To run the sample without debugging, press Ctrl+F5 or select Debug > Start Without Debugging. diff --git a/Samples/IoT-I2C/js/I2C.jsproj b/archived/IoT-I2C/js/I2C.jsproj similarity index 81% rename from Samples/IoT-I2C/js/I2C.jsproj rename to archived/IoT-I2C/js/I2C.jsproj index 61d4f24c4e..5fdf2ff27b 100644 --- a/Samples/IoT-I2C/js/I2C.jsproj +++ b/archived/IoT-I2C/js/I2C.jsproj @@ -58,7 +58,7 @@ Designer - + default.html @@ -86,51 +86,51 @@ images\windows-sdk.png - + js\default.js - + css\default.css - + Microsoft.WinJS.4.0\css\ui-dark.css - + Microsoft.WinJS.4.0\css\ui-light.css - + Microsoft.WinJS.4.0\js\en-US\ui.strings.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense-setup.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense.js - + Microsoft.WinJS.4.0\fonts\Symbols.ttf - + Microsoft.WinJS.4.0\js\base.js - + Microsoft.WinJS.4.0\js\ui.js - + sample-utils\footer.html - + sample-utils\header.html - + sample-utils\sample-utils.js - + sample-utils\scenario-select.css - + sample-utils\scenario-select.html diff --git a/Samples/IoT-I2C/js/I2C.sln b/archived/IoT-I2C/js/I2C.sln similarity index 100% rename from Samples/IoT-I2C/js/I2C.sln rename to archived/IoT-I2C/js/I2C.sln diff --git a/Samples/IoT-I2C/js/Microsoft.WinJS.4.0/css/placeholder.txt b/archived/IoT-I2C/js/Microsoft.WinJS.4.0/css/placeholder.txt similarity index 100% rename from Samples/IoT-I2C/js/Microsoft.WinJS.4.0/css/placeholder.txt rename to archived/IoT-I2C/js/Microsoft.WinJS.4.0/css/placeholder.txt diff --git a/Samples/IoT-I2C/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt b/archived/IoT-I2C/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt similarity index 100% rename from Samples/IoT-I2C/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt rename to archived/IoT-I2C/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt diff --git a/Samples/IoT-I2C/js/css/placeholder.txt b/archived/IoT-I2C/js/css/placeholder.txt similarity index 100% rename from Samples/IoT-I2C/js/css/placeholder.txt rename to archived/IoT-I2C/js/css/placeholder.txt diff --git a/Samples/IoT-I2C/js/html/scenario1-readdata.html b/archived/IoT-I2C/js/html/scenario1-readdata.html similarity index 100% rename from Samples/IoT-I2C/js/html/scenario1-readdata.html rename to archived/IoT-I2C/js/html/scenario1-readdata.html diff --git a/Samples/IoT-I2C/js/images/placeholder.txt b/archived/IoT-I2C/js/images/placeholder.txt similarity index 100% rename from Samples/IoT-I2C/js/images/placeholder.txt rename to archived/IoT-I2C/js/images/placeholder.txt diff --git a/Samples/IoT-I2C/js/js/sample-configuration.js b/archived/IoT-I2C/js/js/sample-configuration.js similarity index 100% rename from Samples/IoT-I2C/js/js/sample-configuration.js rename to archived/IoT-I2C/js/js/sample-configuration.js diff --git a/Samples/IoT-I2C/js/js/scenario1-readdata.js b/archived/IoT-I2C/js/js/scenario1-readdata.js similarity index 100% rename from Samples/IoT-I2C/js/js/scenario1-readdata.js rename to archived/IoT-I2C/js/js/scenario1-readdata.js diff --git a/Samples/IoT-I2C/js/package.appxmanifest b/archived/IoT-I2C/js/package.appxmanifest similarity index 100% rename from Samples/IoT-I2C/js/package.appxmanifest rename to archived/IoT-I2C/js/package.appxmanifest diff --git a/Samples/IoT-I2C/js/sample-utils/placeholder.txt b/archived/IoT-I2C/js/sample-utils/placeholder.txt similarity index 100% rename from Samples/IoT-I2C/js/sample-utils/placeholder.txt rename to archived/IoT-I2C/js/sample-utils/placeholder.txt diff --git a/archived/IoT-SPI/README.md b/archived/IoT-SPI/README.md new file mode 100644 index 0000000000..0b720736de --- /dev/null +++ b/archived/IoT-SPI/README.md @@ -0,0 +1,68 @@ +--- +topic: sample +languages: +- js +products: +- windows +- windows-uwp +--- + +# Serial Peripheral Interface (SPI) sample + +Shows how to use the [Windows.Devices.Spi](http://msdn.microsoft.com/library/windows.devices.spi.aspx) namespace +to allow apps to communicate with Serial Peripheral Interface (SPI) devices +on a Windows IoT (Internet of Things) device. + +> **Note:** This sample is part of a large collection of UWP feature samples. +> If you are unfamiliar with Git and GitHub, you can download the entire collection as a +> [ZIP file](https://github.com/Microsoft/Windows-universal-samples/archive/master.zip), but be +> sure to unzip everything to access shared dependencies. For more info on working with the ZIP file, +> the samples collection, and GitHub, see [Get the UWP samples from GitHub](https://aka.ms/ovu2uq). +> For more samples, see the [Samples portal](https://aka.ms/winsamples) on the Windows Dev Center. + +SPI is a four-wire bus used to interface devices such as analog to digital converters, +digital to analog converters, IO expanders, displays, and embedded subsystems. +This sample shows how to access the SPI bus. + +The sample shows the following techniques: + +- Reading data from an SPI device. + +**Note** The Windows universal samples require Visual Studio 2017 to build and Windows 10 IoT Core to execute. + +To obtain information about Windows 10 IoT Core, go to [Windows on Devices](http://windowsondevices.com). + +You can find more Windows IoT Core samples in the [Windows 10 Internet of Things (IoT) Samples repo](https://go.microsoft.com/fwlink/?linkid=860459). + +To obtain information about Microsoft Visual Studio and the tools for developing Windows apps, go to [Visual Studio](http://go.microsoft.com/fwlink/?LinkID=532422) + +## System requirements + +**IoT:** Windows 10 IoT Core + +## Build the sample + +1. If you download the samples ZIP, be sure to unzip the entire archive, not just the folder with the sample you want to build. +2. Start Microsoft Visual Studio 2017 and select **File** \> **Open** \> **Project/Solution**. +3. Starting in the folder where you unzipped the samples, go to the Samples subfolder, then the subfolder for this specific sample, then the subfolder for your preferred language (C++, C#, or JavaScript). Double-click the Visual Studio Solution (.sln) file. +4. Press Ctrl+Shift+B, or select **Build** \> **Build Solution**. + +## Run the sample + +The next steps depend on whether you just want to deploy the sample or you want to both deploy and run it. + +### Deploying the sample + +- Select the appropriate architecture for the device you want to deploy to (i.e. ARM for Raspberry Pi 2 or x86 for MinnowBoard Max) +- For C#, select Remote Machine from Debug > Target device in your Project properties. For C++ and JavaScript, select Remote Machine from Debugger to launch dropdown in the Debugging tab of your Project properties. +- For C#, enter the target device name or IP address in Debug > Remote Machine in your Project properties. For C++ and JavaScript, enter the target device name or IP address in Debugging > Machine Name in your Project properties. +- For C#, deselect the Use Athentication checkbox in the Debug tab of your Project properties. For C++ and JavaScript, select No for Debugging > Require Authentication in your Project properties. +- Select Build > Deploy Solution. + +### Deploying and running the sample + +- Select the appropriate architecture for the device you want to deploy to (i.e. ARM for Raspberry Pi 2 or x86 for MinnowBoard Max) +- For C#, select Remote Machine from Debug > Target device in your Project properties. For C++ and JavaScript, select Remote Machine from Debugger to launch dropdown in the Debugging tab of your Project properties. +- For C#, enter the target device name or IP address in Debug > Remote Machine in your Project properties. For C++ and JavaScript, enter the target device name or IP address in Debugging > Machine Name in your Project properties. +- For C#, deselect the Use Athentication checkbox in the Debug tab of your Project properties. For C++ and JavaScript, select No for Debugging > Require Authentication in your Project properties. +- Press F5 or select Debug > Start Debugging. To run the sample without debugging, press Ctrl+F5 or select Debug > Start Without Debugging. diff --git a/Samples/IoT-SPI/js/Microsoft.WinJS.4.0/css/placeholder.txt b/archived/IoT-SPI/js/Microsoft.WinJS.4.0/css/placeholder.txt similarity index 100% rename from Samples/IoT-SPI/js/Microsoft.WinJS.4.0/css/placeholder.txt rename to archived/IoT-SPI/js/Microsoft.WinJS.4.0/css/placeholder.txt diff --git a/Samples/IoT-SPI/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt b/archived/IoT-SPI/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt similarity index 100% rename from Samples/IoT-SPI/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt rename to archived/IoT-SPI/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt diff --git a/Samples/IoT-SPI/js/SPI.jsproj b/archived/IoT-SPI/js/SPI.jsproj similarity index 81% rename from Samples/IoT-SPI/js/SPI.jsproj rename to archived/IoT-SPI/js/SPI.jsproj index f8869706ff..e360371c3b 100644 --- a/Samples/IoT-SPI/js/SPI.jsproj +++ b/archived/IoT-SPI/js/SPI.jsproj @@ -58,7 +58,7 @@ Designer - + default.html @@ -86,51 +86,51 @@ images\windows-sdk.png - + js\default.js - + css\default.css - + Microsoft.WinJS.4.0\css\ui-dark.css - + Microsoft.WinJS.4.0\css\ui-light.css - + Microsoft.WinJS.4.0\js\en-US\ui.strings.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense-setup.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense.js - + Microsoft.WinJS.4.0\fonts\Symbols.ttf - + Microsoft.WinJS.4.0\js\base.js - + Microsoft.WinJS.4.0\js\ui.js - + sample-utils\footer.html - + sample-utils\header.html - + sample-utils\sample-utils.js - + sample-utils\scenario-select.css - + sample-utils\scenario-select.html diff --git a/Samples/IoT-SPI/js/SPI.sln b/archived/IoT-SPI/js/SPI.sln similarity index 100% rename from Samples/IoT-SPI/js/SPI.sln rename to archived/IoT-SPI/js/SPI.sln diff --git a/Samples/IoT-SPI/js/css/placeholder.txt b/archived/IoT-SPI/js/css/placeholder.txt similarity index 100% rename from Samples/IoT-SPI/js/css/placeholder.txt rename to archived/IoT-SPI/js/css/placeholder.txt diff --git a/Samples/IoT-SPI/js/html/scenario1-readdata.html b/archived/IoT-SPI/js/html/scenario1-readdata.html similarity index 100% rename from Samples/IoT-SPI/js/html/scenario1-readdata.html rename to archived/IoT-SPI/js/html/scenario1-readdata.html diff --git a/Samples/IoT-SPI/js/images/placeholder.txt b/archived/IoT-SPI/js/images/placeholder.txt similarity index 100% rename from Samples/IoT-SPI/js/images/placeholder.txt rename to archived/IoT-SPI/js/images/placeholder.txt diff --git a/Samples/IoT-SPI/js/js/sample-configuration.js b/archived/IoT-SPI/js/js/sample-configuration.js similarity index 100% rename from Samples/IoT-SPI/js/js/sample-configuration.js rename to archived/IoT-SPI/js/js/sample-configuration.js diff --git a/Samples/IoT-SPI/js/js/scenario1-readdata.js b/archived/IoT-SPI/js/js/scenario1-readdata.js similarity index 100% rename from Samples/IoT-SPI/js/js/scenario1-readdata.js rename to archived/IoT-SPI/js/js/scenario1-readdata.js diff --git a/Samples/IoT-SPI/js/package.appxmanifest b/archived/IoT-SPI/js/package.appxmanifest similarity index 100% rename from Samples/IoT-SPI/js/package.appxmanifest rename to archived/IoT-SPI/js/package.appxmanifest diff --git a/Samples/IoT-SPI/js/sample-utils/placeholder.txt b/archived/IoT-SPI/js/sample-utils/placeholder.txt similarity index 100% rename from Samples/IoT-SPI/js/sample-utils/placeholder.txt rename to archived/IoT-SPI/js/sample-utils/placeholder.txt diff --git a/archived/JapanesePhoneticAnalysis/README.md b/archived/JapanesePhoneticAnalysis/README.md new file mode 100644 index 0000000000..a31148ddbd --- /dev/null +++ b/archived/JapanesePhoneticAnalysis/README.md @@ -0,0 +1,76 @@ +--- +topic: sample +languages: +- js +products: +- windows +- windows-uwp +--- + +# Japanese phonetic analysis sample + +Shows how to analyze Japanese texts and retrieves words or segments in the text by using the +[JapanesePhoneticAnalyzer](http://msdn.microsoft.com/library/windows/apps/dn434076) class. + +> **Note:** This sample is part of a large collection of UWP feature samples. +> If you are unfamiliar with Git and GitHub, you can download the entire collection as a +> [ZIP file](https://github.com/Microsoft/Windows-universal-samples/archive/master.zip), but be +> sure to unzip everything to access shared dependencies. For more info on working with the ZIP file, +> the samples collection, and GitHub, see [Get the UWP samples from GitHub](https://aka.ms/ovu2uq). +> For more samples, see the [Samples portal](https://aka.ms/winsamples) on the Windows Dev Center. + +The sample demonstrates these tasks: + +1. **Analyze Japanese text** + + This scenario shows how to use the [GetWords](http://msdn.microsoft.com/library/windows/apps/dn434078) method to split Japanese text, one segment per line. + The segments can be words or pronunciation units. + +**Note** The Universal Windows app samples require Visual Studio 2017 to build and Windows 10 to execute. + +To obtain information about Windows 10 development, go to the [Windows Dev Center](http://go.microsoft.com/fwlink/?LinkID=532421) + +To obtain information about Microsoft Visual Studio and the tools for developing Windows apps, go to [Visual Studio](http://go.microsoft.com/fwlink/?LinkID=532422) + +## Related topics + +### Samples + +[Unicode](/Samples/Unicode) + +### Reference + +[JapanesePhoneticAnalyzer class](https://msdn.microsoft.com/library/windows/apps/windows.globalization.japanesephoneticanalyzer.aspx) + +## System requirements + +**Client:** Windows 10 + +**Server:** Windows Server 2016 Technical Preview + +**Phone:** Not supported + +## Build the sample + +1. If you download the samples ZIP, be sure to unzip the entire archive, not just the folder with the sample you want to build. +2. Start Microsoft Visual Studio 2017 and select **File** \> **Open** \> **Project/Solution**. +3. Starting in the folder where you unzipped the samples, go to the Samples subfolder, then the subfolder for this specific sample, then the subfolder for your preferred language (C++, C#, or JavaScript). Double-click the Visual Studio Solution (.sln) file. +4. Press Ctrl+Shift+B, or select **Build** \> **Build Solution**. + +## Run the sample + +The next steps depend on whether you just want to deploy the sample or you want to both deploy and run it. + +### Deploying the sample + +- Select Build > Deploy Solution. + +### Deploying and running the sample + +- To debug the sample and then run it, press F5 or select Debug > Start Debugging. To run the sample without debugging, press Ctrl+F5 or select Debug > Start Without Debugging. + +## How to use the sample + +- Enter Japanese text into the edit control, or use the sample text provided. +- Select whether you wish to split the text based on words or based on units of pronunciation. +- Click the Analyze button to perform phonetic analysis. diff --git a/Samples/JapanesePhoneticAnalysis/js/JapanesePhoneticAnalysis.jsproj b/archived/JapanesePhoneticAnalysis/js/JapanesePhoneticAnalysis.jsproj similarity index 81% rename from Samples/JapanesePhoneticAnalysis/js/JapanesePhoneticAnalysis.jsproj rename to archived/JapanesePhoneticAnalysis/js/JapanesePhoneticAnalysis.jsproj index 391d9c7652..1ba81da890 100644 --- a/Samples/JapanesePhoneticAnalysis/js/JapanesePhoneticAnalysis.jsproj +++ b/archived/JapanesePhoneticAnalysis/js/JapanesePhoneticAnalysis.jsproj @@ -54,7 +54,7 @@ Designer - + default.html @@ -79,48 +79,48 @@ images\windows-sdk.png - + js\default.js - + css\default.css - + Microsoft.WinJS.4.0\css\ui-dark.css - + Microsoft.WinJS.4.0\css\ui-light.css - + Microsoft.WinJS.4.0\js\en-US\ui.strings.js - + Microsoft.WinJS.4.0\js\base.js - + Microsoft.WinJS.4.0\js\ui.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense-setup.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense.js - + sample-utils\footer.html - + sample-utils\header.html - + sample-utils\sample-utils.js - + sample-utils\scenario-select.css - + sample-utils\scenario-select.html diff --git a/Samples/JapanesePhoneticAnalysis/js/JapanesePhoneticAnalysis.sln b/archived/JapanesePhoneticAnalysis/js/JapanesePhoneticAnalysis.sln similarity index 100% rename from Samples/JapanesePhoneticAnalysis/js/JapanesePhoneticAnalysis.sln rename to archived/JapanesePhoneticAnalysis/js/JapanesePhoneticAnalysis.sln diff --git a/Samples/JapanesePhoneticAnalysis/js/Microsoft.WinJS.4.0/css/placeholder.txt b/archived/JapanesePhoneticAnalysis/js/Microsoft.WinJS.4.0/css/placeholder.txt similarity index 100% rename from Samples/JapanesePhoneticAnalysis/js/Microsoft.WinJS.4.0/css/placeholder.txt rename to archived/JapanesePhoneticAnalysis/js/Microsoft.WinJS.4.0/css/placeholder.txt diff --git a/Samples/JapanesePhoneticAnalysis/js/Microsoft.WinJS.4.0/fonts/placeholder.txt b/archived/JapanesePhoneticAnalysis/js/Microsoft.WinJS.4.0/fonts/placeholder.txt similarity index 100% rename from Samples/JapanesePhoneticAnalysis/js/Microsoft.WinJS.4.0/fonts/placeholder.txt rename to archived/JapanesePhoneticAnalysis/js/Microsoft.WinJS.4.0/fonts/placeholder.txt diff --git a/Samples/JapanesePhoneticAnalysis/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt b/archived/JapanesePhoneticAnalysis/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt similarity index 100% rename from Samples/JapanesePhoneticAnalysis/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt rename to archived/JapanesePhoneticAnalysis/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt diff --git a/Samples/JapanesePhoneticAnalysis/js/Package.appxmanifest b/archived/JapanesePhoneticAnalysis/js/Package.appxmanifest similarity index 100% rename from Samples/JapanesePhoneticAnalysis/js/Package.appxmanifest rename to archived/JapanesePhoneticAnalysis/js/Package.appxmanifest diff --git a/Samples/JapanesePhoneticAnalysis/js/css/placeholder.txt b/archived/JapanesePhoneticAnalysis/js/css/placeholder.txt similarity index 100% rename from Samples/JapanesePhoneticAnalysis/js/css/placeholder.txt rename to archived/JapanesePhoneticAnalysis/js/css/placeholder.txt diff --git a/Samples/JapanesePhoneticAnalysis/js/html/scenario1-analyze.html b/archived/JapanesePhoneticAnalysis/js/html/scenario1-analyze.html similarity index 100% rename from Samples/JapanesePhoneticAnalysis/js/html/scenario1-analyze.html rename to archived/JapanesePhoneticAnalysis/js/html/scenario1-analyze.html diff --git a/Samples/JapanesePhoneticAnalysis/js/images/placeholder.txt b/archived/JapanesePhoneticAnalysis/js/images/placeholder.txt similarity index 100% rename from Samples/JapanesePhoneticAnalysis/js/images/placeholder.txt rename to archived/JapanesePhoneticAnalysis/js/images/placeholder.txt diff --git a/Samples/JapanesePhoneticAnalysis/js/js/sample-configuration.js b/archived/JapanesePhoneticAnalysis/js/js/sample-configuration.js similarity index 100% rename from Samples/JapanesePhoneticAnalysis/js/js/sample-configuration.js rename to archived/JapanesePhoneticAnalysis/js/js/sample-configuration.js diff --git a/Samples/JapanesePhoneticAnalysis/js/js/scenario1-analyze.js b/archived/JapanesePhoneticAnalysis/js/js/scenario1-analyze.js similarity index 100% rename from Samples/JapanesePhoneticAnalysis/js/js/scenario1-analyze.js rename to archived/JapanesePhoneticAnalysis/js/js/scenario1-analyze.js diff --git a/Samples/JapanesePhoneticAnalysis/js/sample-utils/placeholder.txt b/archived/JapanesePhoneticAnalysis/js/sample-utils/placeholder.txt similarity index 100% rename from Samples/JapanesePhoneticAnalysis/js/sample-utils/placeholder.txt rename to archived/JapanesePhoneticAnalysis/js/sample-utils/placeholder.txt diff --git a/archived/JumpList/README.md b/archived/JumpList/README.md new file mode 100644 index 0000000000..3c5cab575a --- /dev/null +++ b/archived/JumpList/README.md @@ -0,0 +1,71 @@ +--- +topic: sample +languages: +- js +products: +- windows +- windows-uwp +--- + +# Jump list customization sample + +Shows how to customize your app's jump list. A jump list is a system-provided menu that appears when the user right-clicks a program in the taskbar or on the +Start menu. It is used to provide quick access to recently or frequently-used documents and offer direct links to app functionality. + +> **Note:** This sample is part of a large collection of UWP feature samples. +> If you are unfamiliar with Git and GitHub, you can download the entire collection as a +> [ZIP file](https://github.com/Microsoft/Windows-universal-samples/archive/master.zip), but be +> sure to unzip everything to access shared dependencies. For more info on working with the ZIP file, +> the samples collection, and GitHub, see [Get the UWP samples from GitHub](https://aka.ms/ovu2uq). +> For more samples, see the [Samples portal](https://aka.ms/winsamples) on the Windows Dev Center. + +The sample shows the following techniques: + +- Disable the jump list. +- Create a jump list based on Recent or Frequent items. +- Adding tasks to the jump list. +- Creating groups of items in a jump list. +- Perform an action when a jump list item is activated by the user. + +**Note** Although the sample will compile and run, the level of functionality will depend on which build of Windows you are running and what device you are running it on. +In particular, phone does not support displaying or storing jump list information at this time. + +**Note** The Windows universal samples require Visual Studio 2017 to build and Windows 10 to execute. + +To obtain information about Windows 10, go to [Windows 10](http://go.microsoft.com/fwlink/?LinkID=532421) + +To obtain information about Microsoft Visual Studio and the tools for developing Windows apps, go to [Visual Studio](http://go.microsoft.com/fwlink/?LinkID=532422) + +## Related topics + +### Reference + +[JumpList class](https://msdn.microsoft.com/library/windows/apps/windows.ui.startscreen.jumplist.aspx) +[JumpListItem class](https://msdn.microsoft.com/library/windows/apps/windows.ui.startscreen.jumplistitem.aspx) + +## System requirements + +**Client:** Windows 10 + +**Server:** Windows Server 2016 Technical Preview + +**Phone:** Windows 10 (but non-functional; see discussion above) + +## Build the sample + +1. If you download the samples ZIP, be sure to unzip the entire archive, not just the folder with the sample you want to build. +2. Start Microsoft Visual Studio 2017 and select **File** \> **Open** \> **Project/Solution**. +3. Starting in the folder where you unzipped the samples, go to the Samples subfolder, then the subfolder for this specific sample, then the subfolder for your preferred language (C++, C#, or JavaScript). Double-click the Visual Studio Solution (.sln) file. +4. Press Ctrl+Shift+B, or select **Build** \> **Build Solution**. + +## Run the sample + +The next steps depend on whether you just want to deploy the sample or you want to both deploy and run it. + +### Deploying the sample + +- Select Build > Deploy Solution. + +### Deploying and running the sample + +- To debug the sample and then run it, press F5 or select Debug > Start Debugging. To run the sample without debugging, press Ctrl+F5 or select Debug > Start Without Debugging. diff --git a/Samples/JumpList/js/JumpList.jsproj b/archived/JumpList/js/JumpList.jsproj similarity index 81% rename from Samples/JumpList/js/JumpList.jsproj rename to archived/JumpList/js/JumpList.jsproj index 3e93622857..81557bc1a1 100644 --- a/Samples/JumpList/js/JumpList.jsproj +++ b/archived/JumpList/js/JumpList.jsproj @@ -54,7 +54,7 @@ Designer - + default.html @@ -83,10 +83,10 @@ images\windows-sdk.png - + js\default.js - + css\default.css @@ -95,43 +95,43 @@ - + Microsoft.WinJS.4.0\css\ui-dark.css - + Microsoft.WinJS.4.0\css\ui-light.css - + Microsoft.WinJS.4.0\js\en-US\ui.strings.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense-setup.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense.js - + Microsoft.WinJS.4.0\fonts\Symbols.ttf - + Microsoft.WinJS.4.0\js\base.js - + Microsoft.WinJS.4.0\js\ui.js - + sample-utils\footer.html - + sample-utils\header.html - + sample-utils\sample-utils.js - + sample-utils\scenario-select.css - + sample-utils\scenario-select.html diff --git a/Samples/JumpList/js/JumpList.sln b/archived/JumpList/js/JumpList.sln similarity index 100% rename from Samples/JumpList/js/JumpList.sln rename to archived/JumpList/js/JumpList.sln diff --git a/Samples/JumpList/js/Microsoft.WinJS.4.0/css/placeholder.txt b/archived/JumpList/js/Microsoft.WinJS.4.0/css/placeholder.txt similarity index 100% rename from Samples/JumpList/js/Microsoft.WinJS.4.0/css/placeholder.txt rename to archived/JumpList/js/Microsoft.WinJS.4.0/css/placeholder.txt diff --git a/Samples/JumpList/js/Microsoft.WinJS.4.0/fonts/placeholder.txt b/archived/JumpList/js/Microsoft.WinJS.4.0/fonts/placeholder.txt similarity index 100% rename from Samples/JumpList/js/Microsoft.WinJS.4.0/fonts/placeholder.txt rename to archived/JumpList/js/Microsoft.WinJS.4.0/fonts/placeholder.txt diff --git a/Samples/JumpList/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt b/archived/JumpList/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt similarity index 100% rename from Samples/JumpList/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt rename to archived/JumpList/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt diff --git a/Samples/JumpList/js/Package.appxmanifest b/archived/JumpList/js/Package.appxmanifest similarity index 100% rename from Samples/JumpList/js/Package.appxmanifest rename to archived/JumpList/js/Package.appxmanifest diff --git a/Samples/JumpList/js/css/placeholder.txt b/archived/JumpList/js/css/placeholder.txt similarity index 100% rename from Samples/JumpList/js/css/placeholder.txt rename to archived/JumpList/js/css/placeholder.txt diff --git a/Samples/JumpList/js/html/scenario1-launched.html b/archived/JumpList/js/html/scenario1-launched.html similarity index 100% rename from Samples/JumpList/js/html/scenario1-launched.html rename to archived/JumpList/js/html/scenario1-launched.html diff --git a/Samples/JumpList/js/html/scenario2-remove.html b/archived/JumpList/js/html/scenario2-remove.html similarity index 100% rename from Samples/JumpList/js/html/scenario2-remove.html rename to archived/JumpList/js/html/scenario2-remove.html diff --git a/Samples/JumpList/js/html/scenario3-customitems.html b/archived/JumpList/js/html/scenario3-customitems.html similarity index 100% rename from Samples/JumpList/js/html/scenario3-customitems.html rename to archived/JumpList/js/html/scenario3-customitems.html diff --git a/Samples/JumpList/js/html/scenario4-changesystemgroup.html b/archived/JumpList/js/html/scenario4-changesystemgroup.html similarity index 100% rename from Samples/JumpList/js/html/scenario4-changesystemgroup.html rename to archived/JumpList/js/html/scenario4-changesystemgroup.html diff --git a/Samples/JumpList/js/html/scenario5-issupported.html b/archived/JumpList/js/html/scenario5-issupported.html similarity index 100% rename from Samples/JumpList/js/html/scenario5-issupported.html rename to archived/JumpList/js/html/scenario5-issupported.html diff --git a/Samples/JumpList/js/images/placeholder.txt b/archived/JumpList/js/images/placeholder.txt similarity index 100% rename from Samples/JumpList/js/images/placeholder.txt rename to archived/JumpList/js/images/placeholder.txt diff --git a/Samples/JumpList/js/js/sample-configuration.js b/archived/JumpList/js/js/sample-configuration.js similarity index 100% rename from Samples/JumpList/js/js/sample-configuration.js rename to archived/JumpList/js/js/sample-configuration.js diff --git a/Samples/JumpList/js/js/scenario1-launched.js b/archived/JumpList/js/js/scenario1-launched.js similarity index 100% rename from Samples/JumpList/js/js/scenario1-launched.js rename to archived/JumpList/js/js/scenario1-launched.js diff --git a/Samples/JumpList/js/js/scenario2-remove.js b/archived/JumpList/js/js/scenario2-remove.js similarity index 100% rename from Samples/JumpList/js/js/scenario2-remove.js rename to archived/JumpList/js/js/scenario2-remove.js diff --git a/Samples/JumpList/js/js/scenario3-customitems.js b/archived/JumpList/js/js/scenario3-customitems.js similarity index 100% rename from Samples/JumpList/js/js/scenario3-customitems.js rename to archived/JumpList/js/js/scenario3-customitems.js diff --git a/Samples/JumpList/js/js/scenario4-changesystemgroup.js b/archived/JumpList/js/js/scenario4-changesystemgroup.js similarity index 100% rename from Samples/JumpList/js/js/scenario4-changesystemgroup.js rename to archived/JumpList/js/js/scenario4-changesystemgroup.js diff --git a/Samples/JumpList/js/js/scenario5-issupported.js b/archived/JumpList/js/js/scenario5-issupported.js similarity index 100% rename from Samples/JumpList/js/js/scenario5-issupported.js rename to archived/JumpList/js/js/scenario5-issupported.js diff --git a/Samples/JumpList/js/resources.resjson b/archived/JumpList/js/resources.resjson similarity index 100% rename from Samples/JumpList/js/resources.resjson rename to archived/JumpList/js/resources.resjson diff --git a/Samples/JumpList/js/sample-utils/placeholder.txt b/archived/JumpList/js/sample-utils/placeholder.txt similarity index 100% rename from Samples/JumpList/js/sample-utils/placeholder.txt rename to archived/JumpList/js/sample-utils/placeholder.txt diff --git a/archived/LampDevice/README.md b/archived/LampDevice/README.md new file mode 100644 index 0000000000..d361184982 --- /dev/null +++ b/archived/LampDevice/README.md @@ -0,0 +1,77 @@ +--- +topic: sample +languages: +- js +products: +- windows +- windows-uwp +--- + +# Lamp device sample + +Shows how to use the [Windows.Devices.Lights.Lamp](https://msdn.microsoft.com/library/windows/apps/windows.devices.lights.aspx) +API to enable apps to use the camera flash +independently of the capture device. The Windows.Devices.Lights.Lamp API allows for more control +over the flash device and consumes less power and CPU +resources because the overhead of running capture device is avoided. + +> **Note:** This sample is part of a large collection of UWP feature samples. +> If you are unfamiliar with Git and GitHub, you can download the entire collection as a +> [ZIP file](https://github.com/Microsoft/Windows-universal-samples/archive/master.zip), but be +> sure to unzip everything to access shared dependencies. For more info on working with the ZIP file, +> the samples collection, and GitHub, see [Get the UWP samples from GitHub](https://aka.ms/ovu2uq). +> For more samples, see the [Samples portal](https://aka.ms/winsamples) on the Windows Dev Center. + +This sample covers the three most common scenarios for utilizing the flash: + +Scenario 1: Acquiring a Lamp instance. There are two methods for acquiring the lamp device: + 1) When you choose the "Get Lamp Instance from Device Information" button, the app demonstrates acquiring Lamp by calling DeviceInformation.FindAllAsync() + and passing in the device selection string for the lamp device. Using this method you have more control over picking a specific lamp device. In this example + we get the back lamp device, which is most common lamp location. + 2) When you choose the "Get Default Lamp Instance" button, the app demonstrates a simplified method for getting the default lamp device with Lamp.GetDefaultAsync() call. + +Scenario 2: Enable Lamp and Settings adjustment. This scenario demonstrates determining the capabilities of the lamp and adjusting those capabilities. + 1) When you choose the "Adjust Brightness and turn on Lamp" button, the app queries the lamp device for current brightness level. Then the app demonstrates adjusting the lamp + brightness level to 0.5, or 50%. + 2) When you choose "Adjust Color" button, the app queries the lamp device for Color capability. If the capability is supported the app then adjusts the lamp color to Blue. + +Scenario 3: Lamp Device Change Events. This sample demonstrates registering for Lamp.AvailablityChanged event. If another application on the device starts using the camera, control of the lamp is taken away from your app. +When this happens, an AvailablityChanged event is raised. In this scenario we demonstrate registering for the Lamp.AvailablityChanged event and handling that event by updating the UI when the event is raised. We acquire +the default lamp device when page loads and provide a toggle to turn the lamp on and off. To raise the AvailablityChanged event for your app, launch another app that uses the camera,. Launching the built-in camera app is recommend. + 1) When you choose "Register for AvailablityChanged Event" button, the app registers for the AvailablityChanged event + 2) When you choose "Unregister for AvailablityChanged Event", the app unregisters for the AvailablityChanged event. + +Related topics +-------------- + +[Windows.Media.Devices namespace](https://msdn.microsoft.com/library/windows/apps/windows.media.devices.aspx) + +Windows 8 and 8.1 method for turning on flash (requires starting a video recording session) +[Windows.Media.Devices.VideoDeviceController.TorchControl](https://msdn.microsoft.com/library/windows/apps/windows.media.devices.videodevicecontroller.torchcontrol.aspx) + + +System requirements +----------------------------- +Independent Flash Device +Client +Windows 10 +Windows Phone 10 + +Build the sample +---------------- + +1. If you download the samples ZIP, be sure to unzip the entire archive, not just the folder with the sample you want to build. +2. Start Microsoft Visual Studio 2017 and select **File** \> **Open** \> **Project/Solution**. +3. Starting in the folder where you unzipped the samples, go to the Samples subfolder, then the subfolder for this specific sample, then the subfolder for your preferred language (C++, C#, or JavaScript). Double-click the Visual Studio Solution (.sln) file. +4. Press Ctrl+Shift+B, or select **Build** \> **Build Solution**. + +Run the sample +-------------- + +The next steps depend on whether you just want to deploy the sample or you want to both deploy and run it. + +**Deploying the sample** +1. Select **Build** \> **Deploy Solution**. + +**Deploying and running the sample** +1. To debug the sample and then run it, press F5 or select **Debug** \> **Start Debugging**. To run the sample without debugging, press Ctrl+F5 or select**Debug** \> **Start Without Debugging**. \ No newline at end of file diff --git a/Samples/LampDevice/js/LampDevice.jsproj b/archived/LampDevice/js/LampDevice.jsproj similarity index 80% rename from Samples/LampDevice/js/LampDevice.jsproj rename to archived/LampDevice/js/LampDevice.jsproj index 9cd78302ab..324ebfeef5 100644 --- a/Samples/LampDevice/js/LampDevice.jsproj +++ b/archived/LampDevice/js/LampDevice.jsproj @@ -49,7 +49,7 @@ - + default.html @@ -76,53 +76,53 @@ images\windows-sdk.png - + js\default.js - + css\default.css - + Microsoft.WinJS.4.0\css\ui-dark.css - + Microsoft.WinJS.4.0\css\ui-light.css - + Microsoft.WinJS.4.0\js\en-US\ui.strings.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense-setup.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense.js - + Microsoft.WinJS.4.0\fonts\Symbols.ttf - + Microsoft.WinJS.4.0\js\base.js - + Microsoft.WinJS.4.0\js\ui.js - + sample-utils\footer.html - + sample-utils\header.html - + sample-utils\sample-utils.js - + sample-utils\scenario-select.css - + sample-utils\scenario-select.html diff --git a/Samples/LampDevice/js/LampDevice.sln b/archived/LampDevice/js/LampDevice.sln similarity index 100% rename from Samples/LampDevice/js/LampDevice.sln rename to archived/LampDevice/js/LampDevice.sln diff --git a/Samples/LampDevice/js/Microsoft.WinJS.4.0/css/placeholder.txt b/archived/LampDevice/js/Microsoft.WinJS.4.0/css/placeholder.txt similarity index 100% rename from Samples/LampDevice/js/Microsoft.WinJS.4.0/css/placeholder.txt rename to archived/LampDevice/js/Microsoft.WinJS.4.0/css/placeholder.txt diff --git a/Samples/LampDevice/js/Microsoft.WinJS.4.0/fonts/placeholder b/archived/LampDevice/js/Microsoft.WinJS.4.0/fonts/placeholder similarity index 100% rename from Samples/LampDevice/js/Microsoft.WinJS.4.0/fonts/placeholder rename to archived/LampDevice/js/Microsoft.WinJS.4.0/fonts/placeholder diff --git a/Samples/LampDevice/js/Microsoft.WinJS.4.0/js/en-us/placeholder.txt b/archived/LampDevice/js/Microsoft.WinJS.4.0/js/en-us/placeholder.txt similarity index 100% rename from Samples/LampDevice/js/Microsoft.WinJS.4.0/js/en-us/placeholder.txt rename to archived/LampDevice/js/Microsoft.WinJS.4.0/js/en-us/placeholder.txt diff --git a/Samples/LampDevice/js/Package.appxmanifest b/archived/LampDevice/js/Package.appxmanifest similarity index 100% rename from Samples/LampDevice/js/Package.appxmanifest rename to archived/LampDevice/js/Package.appxmanifest diff --git a/Samples/LampDevice/js/css/Scenario1_GetLamp.css b/archived/LampDevice/js/css/Scenario1_GetLamp.css similarity index 100% rename from Samples/LampDevice/js/css/Scenario1_GetLamp.css rename to archived/LampDevice/js/css/Scenario1_GetLamp.css diff --git a/Samples/LampDevice/js/css/Scenario2_EnableSettings.css b/archived/LampDevice/js/css/Scenario2_EnableSettings.css similarity index 100% rename from Samples/LampDevice/js/css/Scenario2_EnableSettings.css rename to archived/LampDevice/js/css/Scenario2_EnableSettings.css diff --git a/Samples/LampDevice/js/css/Scenario3_AvailabilityChanged.css b/archived/LampDevice/js/css/Scenario3_AvailabilityChanged.css similarity index 100% rename from Samples/LampDevice/js/css/Scenario3_AvailabilityChanged.css rename to archived/LampDevice/js/css/Scenario3_AvailabilityChanged.css diff --git a/Samples/LampDevice/js/html/Scenario1_GetLamp.html b/archived/LampDevice/js/html/Scenario1_GetLamp.html similarity index 100% rename from Samples/LampDevice/js/html/Scenario1_GetLamp.html rename to archived/LampDevice/js/html/Scenario1_GetLamp.html diff --git a/Samples/LampDevice/js/html/Scenario2_EnableSettings.html b/archived/LampDevice/js/html/Scenario2_EnableSettings.html similarity index 100% rename from Samples/LampDevice/js/html/Scenario2_EnableSettings.html rename to archived/LampDevice/js/html/Scenario2_EnableSettings.html diff --git a/Samples/LampDevice/js/html/Scenario3_AvailabilityChanged.html b/archived/LampDevice/js/html/Scenario3_AvailabilityChanged.html similarity index 100% rename from Samples/LampDevice/js/html/Scenario3_AvailabilityChanged.html rename to archived/LampDevice/js/html/Scenario3_AvailabilityChanged.html diff --git a/Samples/LampDevice/js/js/Scenario1_GetLamp.js b/archived/LampDevice/js/js/Scenario1_GetLamp.js similarity index 100% rename from Samples/LampDevice/js/js/Scenario1_GetLamp.js rename to archived/LampDevice/js/js/Scenario1_GetLamp.js diff --git a/Samples/LampDevice/js/js/Scenario2_EnableSettings.js b/archived/LampDevice/js/js/Scenario2_EnableSettings.js similarity index 100% rename from Samples/LampDevice/js/js/Scenario2_EnableSettings.js rename to archived/LampDevice/js/js/Scenario2_EnableSettings.js diff --git a/Samples/LampDevice/js/js/Scenario3_AvailabilityChanged.js b/archived/LampDevice/js/js/Scenario3_AvailabilityChanged.js similarity index 100% rename from Samples/LampDevice/js/js/Scenario3_AvailabilityChanged.js rename to archived/LampDevice/js/js/Scenario3_AvailabilityChanged.js diff --git a/Samples/LampDevice/js/js/sample-configuration.js b/archived/LampDevice/js/js/sample-configuration.js similarity index 100% rename from Samples/LampDevice/js/js/sample-configuration.js rename to archived/LampDevice/js/js/sample-configuration.js diff --git a/Samples/LampDevice/js/sample-utils/placeholder.txt b/archived/LampDevice/js/sample-utils/placeholder.txt similarity index 100% rename from Samples/LampDevice/js/sample-utils/placeholder.txt rename to archived/LampDevice/js/sample-utils/placeholder.txt diff --git a/archived/LanguageFont/README.md b/archived/LanguageFont/README.md new file mode 100644 index 0000000000..80d9253f92 --- /dev/null +++ b/archived/LanguageFont/README.md @@ -0,0 +1,70 @@ +--- +topic: sample +languages: +- js +products: +- windows +- windows-uwp +--- + +# Language font mapping sample + +Shows how to obtain language-specific font recommendations using the [LanguageFontGroup](http://msdn.microsoft.com/library/windows/apps/br206865) +class in the [Windows.Globalization.Fonts](http://msdn.microsoft.com/library/windows/apps/br206881) namespace. + +> **Note:** This sample is part of a large collection of UWP feature samples. +> If you are unfamiliar with Git and GitHub, you can download the entire collection as a +> [ZIP file](https://github.com/Microsoft/Windows-universal-samples/archive/master.zip), but be +> sure to unzip everything to access shared dependencies. For more info on working with the ZIP file, +> the samples collection, and GitHub, see [Get the UWP samples from GitHub](https://aka.ms/ovu2uq). +> For more samples, see the [Samples portal](https://aka.ms/winsamples) on the Windows Dev Center. + +The [LanguageFontGroup](http://msdn.microsoft.com/library/windows/apps/br206865) APIs +([Windows.Globalization.Fonts](http://msdn.microsoft.com/library/windows/apps/br206881) namespace) can indicate an appropriate font to use for a given language. +The caller is assumed to know the language, by whatever means; the API takes a language identifier tag and returns a recommended font. +Scenarios in which this API is recommended are those that include text in multiple languages involving different character sets where a single font +(even one specified in localized application resources) may not provide optimal results for all of the text. Two typical examples are: + +- An app displays notifications from external sources that might be in different languages. +- A content-authoring app wants to pre-select recommended fonts that the user can choose in a font-picker control according to the input languages that the user has enabled. + +Be aware that if the content to which the font is applied contains text that is actually in another language, the recommended font may or may not be able to support that language. If not, some text controls or frameworks that display the text might automatically select a different font during text layout as a fallback to ensure legible display. + +**Note** The Windows universal samples require Visual Studio 2017 to build and Windows 10 to execute. + +To obtain information about Windows 10 development, go to the [Windows Dev Center](http://go.microsoft.com/fwlink/?LinkID=532421) + +To obtain information about Microsoft Visual Studio and the tools for developing Windows apps, go to [Visual Studio](http://go.microsoft.com/fwlink/?LinkID=532422) + +## Related topics + +[Windows.Globalization.Fonts namespace](http://msdn.microsoft.com/library/windows/apps/br206881) +[LanguageFontGroup class](http://msdn.microsoft.com/library/windows/apps/br206865) + +## System requirements + +**Client:** Windows 10 + +**Server:** Windows Server 2016 Technical Preview + +**Phone:** Windows 10 + +## Build the sample + +1. If you download the samples ZIP, be sure to unzip the entire archive, not just the folder with the sample you want to build. +2. Start Microsoft Visual Studio 2017 and select **File** \> **Open** \> **Project/Solution**. +3. Starting in the folder where you unzipped the samples, go to the Samples subfolder, then the subfolder for this specific sample, then the subfolder for your preferred language (C++, C#, or JavaScript). Double-click the Visual Studio Solution (.sln) file. +4. Press Ctrl+Shift+B, or select **Build** \> **Build Solution**. + +## Run the sample + +The next steps depend on whether you just want to deploy the sample or you want to both deploy and run it. + +### Deploying the sample + +- Select Build > Deploy Solution. + +### Deploying and running the sample + +- To debug the sample and then run it, press F5 or select Debug > Start Debugging. To run the sample without debugging, press Ctrl+F5 or select Debug > Start Without Debugging. + diff --git a/Samples/LanguageFont/js/LanguageFont.jsproj b/archived/LanguageFont/js/LanguageFont.jsproj similarity index 81% rename from Samples/LanguageFont/js/LanguageFont.jsproj rename to archived/LanguageFont/js/LanguageFont.jsproj index 8aebddffe5..7da6f603e0 100644 --- a/Samples/LanguageFont/js/LanguageFont.jsproj +++ b/archived/LanguageFont/js/LanguageFont.jsproj @@ -55,7 +55,7 @@ Designer - + default.html @@ -83,10 +83,10 @@ images\windows-sdk.png - + js\default.js - + css\default.css @@ -95,43 +95,43 @@ - + Microsoft.WinJS.4.0\css\ui-dark.css - + Microsoft.WinJS.4.0\css\ui-light.css - + Microsoft.WinJS.4.0\fonts\Symbols.ttf - + Microsoft.WinJS.4.0\js\en-US\ui.strings.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense-setup.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense.js - + Microsoft.WinJS.4.0\js\base.js - + Microsoft.WinJS.4.0\js\ui.js - + sample-utils\footer.html - + sample-utils\header.html - + sample-utils\sample-utils.js - + sample-utils\scenario-select.css - + sample-utils\scenario-select.html diff --git a/Samples/LanguageFont/js/LanguageFont.sln b/archived/LanguageFont/js/LanguageFont.sln similarity index 100% rename from Samples/LanguageFont/js/LanguageFont.sln rename to archived/LanguageFont/js/LanguageFont.sln diff --git a/Samples/LanguageFont/js/Microsoft.WinJS.4.0/css/placeholder.txt b/archived/LanguageFont/js/Microsoft.WinJS.4.0/css/placeholder.txt similarity index 100% rename from Samples/LanguageFont/js/Microsoft.WinJS.4.0/css/placeholder.txt rename to archived/LanguageFont/js/Microsoft.WinJS.4.0/css/placeholder.txt diff --git a/Samples/LanguageFont/js/Microsoft.WinJS.4.0/fonts/placeholder.txt b/archived/LanguageFont/js/Microsoft.WinJS.4.0/fonts/placeholder.txt similarity index 100% rename from Samples/LanguageFont/js/Microsoft.WinJS.4.0/fonts/placeholder.txt rename to archived/LanguageFont/js/Microsoft.WinJS.4.0/fonts/placeholder.txt diff --git a/Samples/LanguageFont/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt b/archived/LanguageFont/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt similarity index 100% rename from Samples/LanguageFont/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt rename to archived/LanguageFont/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt diff --git a/Samples/LanguageFont/js/css/scenario2.css b/archived/LanguageFont/js/css/scenario2.css similarity index 100% rename from Samples/LanguageFont/js/css/scenario2.css rename to archived/LanguageFont/js/css/scenario2.css diff --git a/Samples/LanguageFont/js/default.html b/archived/LanguageFont/js/default.html similarity index 100% rename from Samples/LanguageFont/js/default.html rename to archived/LanguageFont/js/default.html diff --git a/Samples/LanguageFont/js/html/scenario1.html b/archived/LanguageFont/js/html/scenario1.html similarity index 100% rename from Samples/LanguageFont/js/html/scenario1.html rename to archived/LanguageFont/js/html/scenario1.html diff --git a/Samples/LanguageFont/js/html/scenario2.html b/archived/LanguageFont/js/html/scenario2.html similarity index 100% rename from Samples/LanguageFont/js/html/scenario2.html rename to archived/LanguageFont/js/html/scenario2.html diff --git a/Samples/LanguageFont/js/html/scenario3.html b/archived/LanguageFont/js/html/scenario3.html similarity index 100% rename from Samples/LanguageFont/js/html/scenario3.html rename to archived/LanguageFont/js/html/scenario3.html diff --git a/Samples/LanguageFont/js/html/scenario4.html b/archived/LanguageFont/js/html/scenario4.html similarity index 100% rename from Samples/LanguageFont/js/html/scenario4.html rename to archived/LanguageFont/js/html/scenario4.html diff --git a/Samples/LanguageFont/js/images/placeholder.txt b/archived/LanguageFont/js/images/placeholder.txt similarity index 100% rename from Samples/LanguageFont/js/images/placeholder.txt rename to archived/LanguageFont/js/images/placeholder.txt diff --git a/Samples/LanguageFont/js/js/langfont.js b/archived/LanguageFont/js/js/langfont.js similarity index 100% rename from Samples/LanguageFont/js/js/langfont.js rename to archived/LanguageFont/js/js/langfont.js diff --git a/Samples/LanguageFont/js/js/sample-configuration.js b/archived/LanguageFont/js/js/sample-configuration.js similarity index 100% rename from Samples/LanguageFont/js/js/sample-configuration.js rename to archived/LanguageFont/js/js/sample-configuration.js diff --git a/Samples/LanguageFont/js/js/scenario1.js b/archived/LanguageFont/js/js/scenario1.js similarity index 100% rename from Samples/LanguageFont/js/js/scenario1.js rename to archived/LanguageFont/js/js/scenario1.js diff --git a/Samples/LanguageFont/js/js/scenario2.js b/archived/LanguageFont/js/js/scenario2.js similarity index 100% rename from Samples/LanguageFont/js/js/scenario2.js rename to archived/LanguageFont/js/js/scenario2.js diff --git a/Samples/LanguageFont/js/js/scenario3.js b/archived/LanguageFont/js/js/scenario3.js similarity index 100% rename from Samples/LanguageFont/js/js/scenario3.js rename to archived/LanguageFont/js/js/scenario3.js diff --git a/Samples/LanguageFont/js/js/scenario4.js b/archived/LanguageFont/js/js/scenario4.js similarity index 100% rename from Samples/LanguageFont/js/js/scenario4.js rename to archived/LanguageFont/js/js/scenario4.js diff --git a/Samples/LanguageFont/js/package.appxmanifest b/archived/LanguageFont/js/package.appxmanifest similarity index 100% rename from Samples/LanguageFont/js/package.appxmanifest rename to archived/LanguageFont/js/package.appxmanifest diff --git a/Samples/LanguageFont/js/sample-utils/placeholder.txt b/archived/LanguageFont/js/sample-utils/placeholder.txt similarity index 100% rename from Samples/LanguageFont/js/sample-utils/placeholder.txt rename to archived/LanguageFont/js/sample-utils/placeholder.txt diff --git a/archived/LibraryManagement/README.md b/archived/LibraryManagement/README.md new file mode 100644 index 0000000000..d64515dd60 --- /dev/null +++ b/archived/LibraryManagement/README.md @@ -0,0 +1,73 @@ +--- +topic: sample +languages: +- js +products: +- windows +- windows-uwp +--- + +# Library management sample + +Shows how to get a list of the folders in a user's library and how to let users add and remove folders from that list. This samples uses +[Windows.Storage](http://msdn.microsoft.com/library/windows/apps/br227346).[StorageLibrary](http://msdn.microsoft.com/library/windows/apps/dn251722). + +> **Note:** This sample is part of a large collection of UWP feature samples. +> If you are unfamiliar with Git and GitHub, you can download the entire collection as a +> [ZIP file](https://github.com/Microsoft/Windows-universal-samples/archive/master.zip), but be +> sure to unzip everything to access shared dependencies. For more info on working with the ZIP file, +> the samples collection, and GitHub, see [Get the UWP samples from GitHub](https://aka.ms/ovu2uq). +> For more samples, see the [Samples portal](https://aka.ms/winsamples) on the Windows Dev Center. + +The sample demonstrates these tasks: + +1. **Add a folder to a library** + + Uses [StorageLibrary.GetLibraryAsync](http://msdn.microsoft.com/library/windows/apps/dn251725) to get a specific library and [StorageLibrary.RequestAddFolderAsync](http://msdn.microsoft.com/library/windows/apps/dn251726) to display a file picker that the user can use to select a folder to add to the library. + +2. **List the folders in a library** + + Uses [StorageLibrary.GetLibraryAsync](http://msdn.microsoft.com/library/windows/apps/dn251725) to get a specific library and [StorageLibrary.Folders](http://msdn.microsoft.com/library/windows/apps/dn251724) to get a list of folders in the library. + +3. **Remove a folder from a library** + + Uses [StorageLibrary.GetLibraryAsync](http://msdn.microsoft.com/library/windows/apps/dn251725) to get a specific library and [StorageLibrary.Folders](http://msdn.microsoft.com/library/windows/apps/dn251724) to display a list of folders in the library so the user can select one to remove. Then uses [StorageLibrary.RequestRemoveFolderAsync](http://msdn.microsoft.com/library/windows/apps/dn251727) to remove the folder if the user approves. + +**Note** The Windows universal samples require Visual Studio 2017 to build and Windows 10 to execute. + +To obtain information about Windows 10 development, go to the [Windows Dev Center](http://go.microsoft.com/fwlink/?LinkID=532421) + +To obtain information about Microsoft Visual Studio and the tools for developing Windows apps, go to [Visual Studio](http://go.microsoft.com/fwlink/?LinkID=532422) + +## Related topics + +### Reference + +[Windows.Storage](http://msdn.microsoft.com/library/windows/apps/br227346) + +## System requirements + +**Client:** Windows 10 + +**Server:** Windows Server 2016 Technical Preview + +**Phone:** Windows 10. Note that you will not be able to add or remove folders from the library. + +## Build the sample + +1. If you download the samples ZIP, be sure to unzip the entire archive, not just the folder with the sample you want to build. +2. Start Microsoft Visual Studio 2017 and select **File** \> **Open** \> **Project/Solution**. +3. Starting in the folder where you unzipped the samples, go to the Samples subfolder, then the subfolder for this specific sample, then the subfolder for your preferred language (C++, C#, or JavaScript). Double-click the Visual Studio Solution (.sln) file. +4. Press Ctrl+Shift+B, or select **Build** \> **Build Solution**. + +## Run the sample + +The next steps depend on whether you just want to deploy the sample or you want to both deploy and run it. + +### Deploying the sample + +- Select Build > Deploy Solution. + +### Deploying and running the sample + +- To debug the sample and then run it, press F5 or select Debug > Start Debugging. To run the sample without debugging, press Ctrl+F5 or select Debug > Start Without Debugging. diff --git a/Samples/LibraryManagement/js/LibraryManagement.jsproj b/archived/LibraryManagement/js/LibraryManagement.jsproj similarity index 81% rename from Samples/LibraryManagement/js/LibraryManagement.jsproj rename to archived/LibraryManagement/js/LibraryManagement.jsproj index 36fa1e54e9..7e56900635 100644 --- a/Samples/LibraryManagement/js/LibraryManagement.jsproj +++ b/archived/LibraryManagement/js/LibraryManagement.jsproj @@ -55,7 +55,7 @@ Designer - + default.html @@ -82,53 +82,53 @@ images\windows-sdk.png - + js\default.js - + css\default.css - + Microsoft.WinJS.4.0\css\ui-dark.css - + Microsoft.WinJS.4.0\css\ui-light.css - + Microsoft.WinJS.4.0\js\en-US\ui.strings.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense-setup.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense.js - + Microsoft.WinJS.4.0\fonts\Symbols.ttf - + Microsoft.WinJS.4.0\js\base.js - + Microsoft.WinJS.4.0\js\ui.js - + sample-utils\footer.html - + sample-utils\header.html - + sample-utils\sample-utils.js - + sample-utils\scenario-select.css - + sample-utils\scenario-select.html diff --git a/Samples/LibraryManagement/js/LibraryManagement.sln b/archived/LibraryManagement/js/LibraryManagement.sln similarity index 100% rename from Samples/LibraryManagement/js/LibraryManagement.sln rename to archived/LibraryManagement/js/LibraryManagement.sln diff --git a/Samples/LibraryManagement/js/Microsoft.WinJS.4.0/css/placeholder.txt b/archived/LibraryManagement/js/Microsoft.WinJS.4.0/css/placeholder.txt similarity index 100% rename from Samples/LibraryManagement/js/Microsoft.WinJS.4.0/css/placeholder.txt rename to archived/LibraryManagement/js/Microsoft.WinJS.4.0/css/placeholder.txt diff --git a/Samples/LibraryManagement/js/Microsoft.WinJS.4.0/fonts/placeholder b/archived/LibraryManagement/js/Microsoft.WinJS.4.0/fonts/placeholder similarity index 100% rename from Samples/LibraryManagement/js/Microsoft.WinJS.4.0/fonts/placeholder rename to archived/LibraryManagement/js/Microsoft.WinJS.4.0/fonts/placeholder diff --git a/Samples/LibraryManagement/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt b/archived/LibraryManagement/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt similarity index 100% rename from Samples/LibraryManagement/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt rename to archived/LibraryManagement/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt diff --git a/Samples/LibraryManagement/js/Package.appxmanifest b/archived/LibraryManagement/js/Package.appxmanifest similarity index 100% rename from Samples/LibraryManagement/js/Package.appxmanifest rename to archived/LibraryManagement/js/Package.appxmanifest diff --git a/Samples/LibraryManagement/js/css/S3_RemoveFolder.css b/archived/LibraryManagement/js/css/S3_RemoveFolder.css similarity index 100% rename from Samples/LibraryManagement/js/css/S3_RemoveFolder.css rename to archived/LibraryManagement/js/css/S3_RemoveFolder.css diff --git a/Samples/LibraryManagement/js/html/S1_AddFolder.html b/archived/LibraryManagement/js/html/S1_AddFolder.html similarity index 100% rename from Samples/LibraryManagement/js/html/S1_AddFolder.html rename to archived/LibraryManagement/js/html/S1_AddFolder.html diff --git a/Samples/LibraryManagement/js/html/S2_ListFolders.html b/archived/LibraryManagement/js/html/S2_ListFolders.html similarity index 100% rename from Samples/LibraryManagement/js/html/S2_ListFolders.html rename to archived/LibraryManagement/js/html/S2_ListFolders.html diff --git a/Samples/LibraryManagement/js/html/S3_RemoveFolder.html b/archived/LibraryManagement/js/html/S3_RemoveFolder.html similarity index 100% rename from Samples/LibraryManagement/js/html/S3_RemoveFolder.html rename to archived/LibraryManagement/js/html/S3_RemoveFolder.html diff --git a/Samples/LibraryManagement/js/images/placeholder.txt b/archived/LibraryManagement/js/images/placeholder.txt similarity index 100% rename from Samples/LibraryManagement/js/images/placeholder.txt rename to archived/LibraryManagement/js/images/placeholder.txt diff --git a/Samples/LibraryManagement/js/js/S1_AddFolder.js b/archived/LibraryManagement/js/js/S1_AddFolder.js similarity index 100% rename from Samples/LibraryManagement/js/js/S1_AddFolder.js rename to archived/LibraryManagement/js/js/S1_AddFolder.js diff --git a/Samples/LibraryManagement/js/js/S2_ListFolders.js b/archived/LibraryManagement/js/js/S2_ListFolders.js similarity index 100% rename from Samples/LibraryManagement/js/js/S2_ListFolders.js rename to archived/LibraryManagement/js/js/S2_ListFolders.js diff --git a/Samples/LibraryManagement/js/js/S3_RemoveFolder.js b/archived/LibraryManagement/js/js/S3_RemoveFolder.js similarity index 100% rename from Samples/LibraryManagement/js/js/S3_RemoveFolder.js rename to archived/LibraryManagement/js/js/S3_RemoveFolder.js diff --git a/Samples/LibraryManagement/js/js/sample-configuration.js b/archived/LibraryManagement/js/js/sample-configuration.js similarity index 100% rename from Samples/LibraryManagement/js/js/sample-configuration.js rename to archived/LibraryManagement/js/js/sample-configuration.js diff --git a/Samples/LibraryManagement/js/sample-utils/placeholder.txt b/archived/LibraryManagement/js/sample-utils/placeholder.txt similarity index 100% rename from Samples/LibraryManagement/js/sample-utils/placeholder.txt rename to archived/LibraryManagement/js/sample-utils/placeholder.txt diff --git a/archived/LightSensor/README.md b/archived/LightSensor/README.md new file mode 100644 index 0000000000..1d928628dc --- /dev/null +++ b/archived/LightSensor/README.md @@ -0,0 +1,63 @@ +--- +topic: sample +languages: +- js +products: +- windows +- windows-uwp +--- + +# Light sensor sample + +Shows how to use the [Windows.Devices.Sensors.LightSensor](http://msdn.microsoft.com/library/windows/apps/br225790) API. + +> **Note:** This sample is part of a large collection of UWP feature samples. +> If you are unfamiliar with Git and GitHub, you can download the entire collection as a +> [ZIP file](https://github.com/Microsoft/Windows-universal-samples/archive/master.zip), but be +> sure to unzip everything to access shared dependencies. For more info on working with the ZIP file, +> the samples collection, and GitHub, see [Get the UWP samples from GitHub](https://aka.ms/ovu2uq). +> For more samples, see the [Samples portal](https://aka.ms/winsamples) on the Windows Dev Center. + +This sample allows the user to view the ambient light reading as a LUX value. You can choose one of two scenarios: + +- LightSensor data events +- Poll light sensor readings + +### LightSensor Data Events + +When you click the **Enable** button for the **Data Events** option, the app begins streaming light-sensor readings in real time. + +### Poll LightSensor Readings + +When you click the **Enable** button for the **Polling** option, the app will retrieve the sensor readings at a fixed interval. + +## Related topics + +[Windows.Devices.Sensors namespace](http://go.microsoft.com/fwlink/p/?linkid=241981) + +## System requirements + +**Client:** Windows 10 + +**Server:** Windows Server 2016 Technical Preview + +**Phone:** Windows 10 + +## Build the sample + +1. If you download the samples ZIP, be sure to unzip the entire archive, not just the folder with the sample you want to build. +2. Start Microsoft Visual Studio 2017 and select **File** \> **Open** \> **Project/Solution**. +3. Starting in the folder where you unzipped the samples, go to the Samples subfolder, then the subfolder for this specific sample, then the subfolder for your preferred language (C++, C#, or JavaScript). Double-click the Visual Studio Solution (.sln) file. +4. Press Ctrl+Shift+B, or select **Build** \> **Build Solution**. + +## Run the sample + +The next steps depend on whether you just want to deploy the sample or you want to both deploy and run it. + +### Deploying the sample + +- Select Build > Deploy Solution. + +### Deploying and running the sample + +- To debug the sample and then run it, press F5 or select Debug > Start Debugging. To run the sample without debugging, press Ctrl+F5 or selectDebug > Start Without Debugging. diff --git a/Samples/LightSensor/js/LightSensor.jsproj b/archived/LightSensor/js/LightSensor.jsproj similarity index 81% rename from Samples/LightSensor/js/LightSensor.jsproj rename to archived/LightSensor/js/LightSensor.jsproj index 059a56c4d6..9cecb8a499 100644 --- a/Samples/LightSensor/js/LightSensor.jsproj +++ b/archived/LightSensor/js/LightSensor.jsproj @@ -56,7 +56,7 @@ - + default.html @@ -82,52 +82,52 @@ images\windows-sdk.png - + js\default.js - + css\default.css - + Microsoft.WinJS.4.0\css\ui-dark.css - + Microsoft.WinJS.4.0\css\ui-light.css - + Microsoft.WinJS.4.0\js\en-US\ui.strings.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense-setup.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense.js - + Microsoft.WinJS.4.0\fonts\Symbols.ttf - + Microsoft.WinJS.4.0\js\base.js - + Microsoft.WinJS.4.0\js\ui.js - + sample-utils\footer.html - + sample-utils\header.html - + sample-utils\sample-utils.js - + sample-utils\scenario-select.css - + sample-utils\scenario-select.html diff --git a/Samples/LightSensor/js/LightSensor.sln b/archived/LightSensor/js/LightSensor.sln similarity index 100% rename from Samples/LightSensor/js/LightSensor.sln rename to archived/LightSensor/js/LightSensor.sln diff --git a/Samples/LightSensor/js/Microsoft.WinJS.4.0/css/placeholder.txt b/archived/LightSensor/js/Microsoft.WinJS.4.0/css/placeholder.txt similarity index 100% rename from Samples/LightSensor/js/Microsoft.WinJS.4.0/css/placeholder.txt rename to archived/LightSensor/js/Microsoft.WinJS.4.0/css/placeholder.txt diff --git a/Samples/LightSensor/js/Microsoft.WinJS.4.0/fonts/placeholder b/archived/LightSensor/js/Microsoft.WinJS.4.0/fonts/placeholder similarity index 100% rename from Samples/LightSensor/js/Microsoft.WinJS.4.0/fonts/placeholder rename to archived/LightSensor/js/Microsoft.WinJS.4.0/fonts/placeholder diff --git a/Samples/LightSensor/js/Microsoft.WinJS.4.0/js/en-us/placeholder.txt b/archived/LightSensor/js/Microsoft.WinJS.4.0/js/en-us/placeholder.txt similarity index 100% rename from Samples/LightSensor/js/Microsoft.WinJS.4.0/js/en-us/placeholder.txt rename to archived/LightSensor/js/Microsoft.WinJS.4.0/js/en-us/placeholder.txt diff --git a/Samples/LightSensor/js/Package.appxmanifest b/archived/LightSensor/js/Package.appxmanifest similarity index 100% rename from Samples/LightSensor/js/Package.appxmanifest rename to archived/LightSensor/js/Package.appxmanifest diff --git a/Samples/LightSensor/js/css/scenario1_DataEvents.css b/archived/LightSensor/js/css/scenario1_DataEvents.css similarity index 100% rename from Samples/LightSensor/js/css/scenario1_DataEvents.css rename to archived/LightSensor/js/css/scenario1_DataEvents.css diff --git a/Samples/LightSensor/js/css/scenario2_Polling.css b/archived/LightSensor/js/css/scenario2_Polling.css similarity index 100% rename from Samples/LightSensor/js/css/scenario2_Polling.css rename to archived/LightSensor/js/css/scenario2_Polling.css diff --git a/Samples/LightSensor/js/html/scenario1_DataEvents.html b/archived/LightSensor/js/html/scenario1_DataEvents.html similarity index 100% rename from Samples/LightSensor/js/html/scenario1_DataEvents.html rename to archived/LightSensor/js/html/scenario1_DataEvents.html diff --git a/Samples/LightSensor/js/html/scenario2_Polling.html b/archived/LightSensor/js/html/scenario2_Polling.html similarity index 100% rename from Samples/LightSensor/js/html/scenario2_Polling.html rename to archived/LightSensor/js/html/scenario2_Polling.html diff --git a/Samples/LightSensor/js/js/sample-configuration.js b/archived/LightSensor/js/js/sample-configuration.js similarity index 100% rename from Samples/LightSensor/js/js/sample-configuration.js rename to archived/LightSensor/js/js/sample-configuration.js diff --git a/Samples/LightSensor/js/js/scenario1_DataEvents.js b/archived/LightSensor/js/js/scenario1_DataEvents.js similarity index 100% rename from Samples/LightSensor/js/js/scenario1_DataEvents.js rename to archived/LightSensor/js/js/scenario1_DataEvents.js diff --git a/Samples/LightSensor/js/js/scenario2_Polling.js b/archived/LightSensor/js/js/scenario2_Polling.js similarity index 100% rename from Samples/LightSensor/js/js/scenario2_Polling.js rename to archived/LightSensor/js/js/scenario2_Polling.js diff --git a/Samples/LightSensor/js/sample-utils/placeholder.txt b/archived/LightSensor/js/sample-utils/placeholder.txt similarity index 100% rename from Samples/LightSensor/js/sample-utils/placeholder.txt rename to archived/LightSensor/js/sample-utils/placeholder.txt diff --git a/archived/LineDisplay/README.md b/archived/LineDisplay/README.md new file mode 100644 index 0000000000..a5945c6895 --- /dev/null +++ b/archived/LineDisplay/README.md @@ -0,0 +1,102 @@ +--- +topic: sample +languages: +- js +products: +- windows +- windows-uwp +--- + +# Line display sample + +Shows how to use the [ClaimedLineDisplay](https://docs.microsoft.com/uwp/api/Windows.Devices.PointOfService.ClaimedLineDisplay) class. + +> **Note:** This sample is part of a large collection of UWP feature samples. +> If you are unfamiliar with Git and GitHub, you can download the entire collection as a +> [ZIP file](https://github.com/Microsoft/Windows-universal-samples/archive/master.zip), but be +> sure to unzip everything to access shared dependencies. For more info on working with the ZIP file, +> the samples collection, and GitHub, see [Get the UWP samples from GitHub](https://aka.ms/ovu2uq). +> For more samples, see the [Samples portal](https://aka.ms/winsamples) on the Windows Dev Center. + +Specifically, this sample shows how to: + +1. **Finding a line display** + + This scenario demonstrates how to find and then clear the line display. + +2. **Displaying text** + + This scenario demonstrates how to display text on the line display. + It also demonstrates how to detect and take advantage of optional features (in this case, blinking text). + +3. **Windows** + + This scenario creates windows and manipulates them. + +4. **Line display attributes** + + This scenario detects which line display attributes are supported + and changes them. + +5. **Custom glyphs** + + This scenario detects whether custom glyphs are supported + and if so, changes glyphs to a solid black rectangle. + +6. **Cursor attributes** + + This scenario detects which cursor attributes are supported + and changes them. + +7. **Marquee** + + This scenario displays text using a marquee effect, if supported. + +**Note** The Windows universal samples require Visual Studio 2017 to build and Windows 10 to execute. + +To obtain information about Windows 10 development, go to the [Windows Dev Center](http://go.microsoft.com/fwlink/?LinkID=532421) + +To obtain information about Microsoft Visual Studio and the tools for developing Windows apps, go to [Visual Studio](http://go.microsoft.com/fwlink/?LinkID=532422) + +## Related topics + +### Samples + +[Line Display sample](/Samples/LineDisplay) + +### Reference + +[Windows.Devices.PointOfService](http://msdn.microsoft.com/library/windows/apps/dn298071) + +[Windows.Devices.PointOfService.LineDisplay](https://docs.microsoft.com/uwp/api/Windows.Devices.PointOfService.LineDisplay) + +[Windows.Devices.PointOfService.ClaimedLineDisplay](https://docs.microsoft.com/uwp/api/Windows.Devices.PointOfService.ClaimedLineDisplay) + +[Windows app samples](http://go.microsoft.com/fwlink/p/?LinkID=227694) + +## System requirements + +**Client:** Windows 10 + +**Server:** Windows Server 2016 Technical Preview + +**Phone:** Windows 10 + +## Build the sample + +1. If you download the samples ZIP, be sure to unzip the entire archive, not just the folder with the sample you want to build. +2. Start Microsoft Visual Studio 2017 and select **File** \> **Open** \> **Project/Solution**. +3. Starting in the folder where you unzipped the samples, go to the Samples subfolder, then the subfolder for this specific sample, then the subfolder for your preferred language (C++, C#, or JavaScript). Double-click the Visual Studio Solution (.sln) file. +4. Press Ctrl+Shift+B, or select **Build** \> **Build Solution**. + +## Run the sample + +The next steps depend on whether you just want to deploy the sample or you want to both deploy and run it. + +### Deploying the sample + +- Select Build > Deploy Solution. + +### Deploying and running the sample + +- To debug the sample and then run it, press F5 or select Debug > Start Debugging. To run the sample without debugging, press Ctrl+F5 or selectDebug > Start Without Debugging. diff --git a/Samples/LineDisplay/js/LineDisplay.jsproj b/archived/LineDisplay/js/LineDisplay.jsproj similarity index 82% rename from Samples/LineDisplay/js/LineDisplay.jsproj rename to archived/LineDisplay/js/LineDisplay.jsproj index f5b2d78f73..7f7d1703a1 100644 --- a/Samples/LineDisplay/js/LineDisplay.jsproj +++ b/archived/LineDisplay/js/LineDisplay.jsproj @@ -69,7 +69,7 @@ - + default.html @@ -93,49 +93,49 @@ images\windows-sdk.png - + js\default.js - + css\default.css - + Microsoft.WinJS.4.0\css\ui-dark.css - + Microsoft.WinJS.4.0\css\ui-light.css - + Microsoft.WinJS.4.0\js\en-US\ui.strings.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense-setup.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense.js - + Microsoft.WinJS.4.0\fonts\Symbols.ttf - + Microsoft.WinJS.4.0\js\base.js - + Microsoft.WinJS.4.0\js\ui.js - + sample-utils\footer.html - + sample-utils\header.html - + sample-utils\sample-utils.js - + sample-utils\scenario-select.css - + sample-utils\scenario-select.html diff --git a/Samples/LineDisplay/js/LineDisplay.sln b/archived/LineDisplay/js/LineDisplay.sln similarity index 100% rename from Samples/LineDisplay/js/LineDisplay.sln rename to archived/LineDisplay/js/LineDisplay.sln diff --git a/Samples/LineDisplay/js/Microsoft.WinJS.4.0/css/placeholder.txt b/archived/LineDisplay/js/Microsoft.WinJS.4.0/css/placeholder.txt similarity index 100% rename from Samples/LineDisplay/js/Microsoft.WinJS.4.0/css/placeholder.txt rename to archived/LineDisplay/js/Microsoft.WinJS.4.0/css/placeholder.txt diff --git a/Samples/LineDisplay/js/Microsoft.WinJS.4.0/fonts/placeholder.txt b/archived/LineDisplay/js/Microsoft.WinJS.4.0/fonts/placeholder.txt similarity index 100% rename from Samples/LineDisplay/js/Microsoft.WinJS.4.0/fonts/placeholder.txt rename to archived/LineDisplay/js/Microsoft.WinJS.4.0/fonts/placeholder.txt diff --git a/Samples/LineDisplay/js/Microsoft.WinJS.4.0/js/en-us/placeholder.txt b/archived/LineDisplay/js/Microsoft.WinJS.4.0/js/en-us/placeholder.txt similarity index 100% rename from Samples/LineDisplay/js/Microsoft.WinJS.4.0/js/en-us/placeholder.txt rename to archived/LineDisplay/js/Microsoft.WinJS.4.0/js/en-us/placeholder.txt diff --git a/Samples/LineDisplay/js/css/placeholder.txt b/archived/LineDisplay/js/css/placeholder.txt similarity index 100% rename from Samples/LineDisplay/js/css/placeholder.txt rename to archived/LineDisplay/js/css/placeholder.txt diff --git a/Samples/LineDisplay/js/html/scenario1-selectDisplay.html b/archived/LineDisplay/js/html/scenario1-selectDisplay.html similarity index 100% rename from Samples/LineDisplay/js/html/scenario1-selectDisplay.html rename to archived/LineDisplay/js/html/scenario1-selectDisplay.html diff --git a/Samples/LineDisplay/js/html/scenario2-displayText.html b/archived/LineDisplay/js/html/scenario2-displayText.html similarity index 100% rename from Samples/LineDisplay/js/html/scenario2-displayText.html rename to archived/LineDisplay/js/html/scenario2-displayText.html diff --git a/Samples/LineDisplay/js/html/scenario3-usingWindows.html b/archived/LineDisplay/js/html/scenario3-usingWindows.html similarity index 100% rename from Samples/LineDisplay/js/html/scenario3-usingWindows.html rename to archived/LineDisplay/js/html/scenario3-usingWindows.html diff --git a/Samples/LineDisplay/js/html/scenario4-updatingLineDisplayAttributes.html b/archived/LineDisplay/js/html/scenario4-updatingLineDisplayAttributes.html similarity index 100% rename from Samples/LineDisplay/js/html/scenario4-updatingLineDisplayAttributes.html rename to archived/LineDisplay/js/html/scenario4-updatingLineDisplayAttributes.html diff --git a/Samples/LineDisplay/js/html/scenario5-definingCustomGlyphs.html b/archived/LineDisplay/js/html/scenario5-definingCustomGlyphs.html similarity index 100% rename from Samples/LineDisplay/js/html/scenario5-definingCustomGlyphs.html rename to archived/LineDisplay/js/html/scenario5-definingCustomGlyphs.html diff --git a/Samples/LineDisplay/js/html/scenario6-manipulatingCursorAttributes.html b/archived/LineDisplay/js/html/scenario6-manipulatingCursorAttributes.html similarity index 100% rename from Samples/LineDisplay/js/html/scenario6-manipulatingCursorAttributes.html rename to archived/LineDisplay/js/html/scenario6-manipulatingCursorAttributes.html diff --git a/Samples/LineDisplay/js/html/scenario7-scrollingContentUsingMarquee.html b/archived/LineDisplay/js/html/scenario7-scrollingContentUsingMarquee.html similarity index 100% rename from Samples/LineDisplay/js/html/scenario7-scrollingContentUsingMarquee.html rename to archived/LineDisplay/js/html/scenario7-scrollingContentUsingMarquee.html diff --git a/Samples/LineDisplay/js/images/placeholder.txt b/archived/LineDisplay/js/images/placeholder.txt similarity index 100% rename from Samples/LineDisplay/js/images/placeholder.txt rename to archived/LineDisplay/js/images/placeholder.txt diff --git a/Samples/LineDisplay/js/js/sample-configuration.js b/archived/LineDisplay/js/js/sample-configuration.js similarity index 100% rename from Samples/LineDisplay/js/js/sample-configuration.js rename to archived/LineDisplay/js/js/sample-configuration.js diff --git a/Samples/LineDisplay/js/js/scenario1-selectDisplay.js b/archived/LineDisplay/js/js/scenario1-selectDisplay.js similarity index 100% rename from Samples/LineDisplay/js/js/scenario1-selectDisplay.js rename to archived/LineDisplay/js/js/scenario1-selectDisplay.js diff --git a/Samples/LineDisplay/js/js/scenario2-displayText.js b/archived/LineDisplay/js/js/scenario2-displayText.js similarity index 100% rename from Samples/LineDisplay/js/js/scenario2-displayText.js rename to archived/LineDisplay/js/js/scenario2-displayText.js diff --git a/Samples/LineDisplay/js/js/scenario3-usingWindows.js b/archived/LineDisplay/js/js/scenario3-usingWindows.js similarity index 100% rename from Samples/LineDisplay/js/js/scenario3-usingWindows.js rename to archived/LineDisplay/js/js/scenario3-usingWindows.js diff --git a/Samples/LineDisplay/js/js/scenario4-updatingLineDisplayAttributes.js b/archived/LineDisplay/js/js/scenario4-updatingLineDisplayAttributes.js similarity index 100% rename from Samples/LineDisplay/js/js/scenario4-updatingLineDisplayAttributes.js rename to archived/LineDisplay/js/js/scenario4-updatingLineDisplayAttributes.js diff --git a/Samples/LineDisplay/js/js/scenario5-definingCustomGlyphs.js b/archived/LineDisplay/js/js/scenario5-definingCustomGlyphs.js similarity index 100% rename from Samples/LineDisplay/js/js/scenario5-definingCustomGlyphs.js rename to archived/LineDisplay/js/js/scenario5-definingCustomGlyphs.js diff --git a/Samples/LineDisplay/js/js/scenario6-manipulatingCursorAttributes.js b/archived/LineDisplay/js/js/scenario6-manipulatingCursorAttributes.js similarity index 100% rename from Samples/LineDisplay/js/js/scenario6-manipulatingCursorAttributes.js rename to archived/LineDisplay/js/js/scenario6-manipulatingCursorAttributes.js diff --git a/Samples/LineDisplay/js/js/scenario7-scrollingContentUsingMarquee.js b/archived/LineDisplay/js/js/scenario7-scrollingContentUsingMarquee.js similarity index 100% rename from Samples/LineDisplay/js/js/scenario7-scrollingContentUsingMarquee.js rename to archived/LineDisplay/js/js/scenario7-scrollingContentUsingMarquee.js diff --git a/Samples/LineDisplay/js/package.appxmanifest b/archived/LineDisplay/js/package.appxmanifest similarity index 100% rename from Samples/LineDisplay/js/package.appxmanifest rename to archived/LineDisplay/js/package.appxmanifest diff --git a/Samples/LineDisplay/js/sample-utils/placeholder.txt b/archived/LineDisplay/js/sample-utils/placeholder.txt similarity index 100% rename from Samples/LineDisplay/js/sample-utils/placeholder.txt rename to archived/LineDisplay/js/sample-utils/placeholder.txt diff --git a/archived/Logging/README.md b/archived/Logging/README.md new file mode 100644 index 0000000000..d148f21de3 --- /dev/null +++ b/archived/Logging/README.md @@ -0,0 +1,167 @@ +--- +topic: sample +languages: +- js +products: +- windows +- windows-uwp +--- + +# Logging sample + +Shows how to use the Logging APIs in the +Windows.Foundation.Diagnostics namespace, including LoggingChannel, +LoggingActivity, LoggingSession, and FileLoggingSession. These classes are +designed for diagnostic logging within a modern application. + +> **Note:** This sample is part of a large collection of UWP feature samples. +> If you are unfamiliar with Git and GitHub, you can download the entire collection as a +> [ZIP file](https://github.com/Microsoft/Windows-universal-samples/archive/master.zip), but be +> sure to unzip everything to access shared dependencies. For more info on working with the ZIP file, +> the samples collection, and GitHub, see [Get the UWP samples from GitHub](https://aka.ms/ovu2uq). +> For more samples, see the [Samples portal](https://aka.ms/winsamples) on the Windows Dev Center. + +These APIs were +added in Windows 8.1. The LoggingChannel and LoggingActivity APIs have been +extended in Windows 10 to support writing complex events using TraceLogging +event encoding. + +- **LoggingChannel:** The LoggingChannel class is used to generate events. + The core LoggingChannel APIs can create simple events - events with + a name and a string value, or events with a name, a string value, and an + integer value. Starting with Windows 10, the LoggingChannel class can use + TraceLogging event encoding to create complex events with arbitrary + structured data. +- **LoggingActivity:** The LoggingActivity class is used to encapsulate an + activity by writing a Start event when the activity is created and a Stop + event when the activity is closed. Starting with Windows 10, the + LoggingActivity class can use TraceLogging event encoding to write + complex events associated with the activity and to support nested activities. +- **LoggingSession:** The LoggingSession class captures events into an + in-memory circular buffer with the ability to save the buffer contents to a + log file on-demand. +- **FileLoggingSession:** The FileLoggingSession class captures events directly + to a sequence of log files, switching to a new log file when the maximum file + size is reached. + +The Logging classes are based on Windows ETW APIs. Events from these classes +can be captured using ETW tools such as xperf. The log files are generated in +ETL format so they can be viewed and processed by the Windows Performance +Toolkit (WPT), as well as utilities such as tracerpt.exe or xperf.exe. + +**Note** The Windows universal samples require Visual Studio 2017 to build and Windows 10 to execute. + +To obtain information about Windows 10 development, go to the [Windows Dev Center](http://go.microsoft.com/fwlink/?LinkID=532421) + +To obtain information about Microsoft Visual Studio and the tools for developing Windows apps, go to [Visual Studio](http://go.microsoft.com/fwlink/?LinkID=532422) + +## How to capture logging output + +You can collect the events generated by the logging classes with xperf or another +ETL controller tool. To collect these events in an ETL file, first start the capture +session by running the command + + xperf -start MySession -f MyFile.etl -on Id + +where the Id is given below. + +Next, run the sample and run the appropriate scenario. + +When done, run the command + + xperf -stop MySession + +After collecting the ETL file, you can decode the trace using xperf, wpa, +or tracerpt. For example, to decode MyFile.etl with tracerpt, run the command + + tracerpt MyFile.etl + +This generates the file `dumpfile.xml`. + +Note that decoding TraceLogging events requires Windows 10. Earlier versions +of Windows can only reliably decode the simple (manifest-based) events. + +### Windows 8.1 style events + +If you use the `LoggingChannel` class's one-parameter constructor, +the result is a Windows 8.1-style logging channel. + +* The channel's ETW Id is `4bd2826e-54a1-4ba9-bf63-92b73ea1ac4a` +* The channel's ETW Name is `Microsoft-Windows-Diagnostics-LoggingChannel` +* A LoggingChannelName field containing the Channel Name is automatically added to each event. +* Simple events will be written using manifested-event encoding. + +Therefore, you would use the command line + + xperf -start MySession -f MyFile.etl -on 4bd2826e-54a1-4ba9-bf63-92b73ea1ac4a + +to start capturing events with xperf. + +Note that complex events can be written even when using Windows 8.1 mode. +Complex events always use TraceLogging encoding. + +The 1-parameter constructor is marked as obsolete to ensure that +developers are aware of the changes in semantics. The Windows 10 semantics +are useful because they enable use of the ETW Provider Id for event +filtering. + +### Windows 10 style events + +If you use the `LoggingChannel` class's two-parameter or three-parameter constructor, +the result is a Windows 10-style logging channel. + +* The channel's ETW Id is specified by the third constructor parameter, if present; otherwise it is generated from the Channel Name by the same hashing algorithm as the .NET EventSource class. +* The channel's ETW Name is specified by the first constructor parameter. + +In the sample, the channel name is "SampleProvider", which hashes to `eff1e128-4903-5093-096a-bdc29b38456f`. + +Therefore, you would use the command line + + xperf -start MySession -f MyFile.etl -on eff1e128-4903-5093-096a-bdc29b38456f + +to start capturing events with xperf. + +xperf version 10.0.16299 and higher support specifying the channel name with a leading asterisk: + + xperf -start MySession -f MyFile.etl -on *SampleProvider + +## Related topics + +### Samples + +[Logging Sample](/Samples/Logging) + +### Reference + +[LoggingChannel](https://msdn.microsoft.com/library/windows/apps/windows.foundation.diagnostics.loggingchannel.aspx) +[LoggingActivity](https://msdn.microsoft.com/library/windows/apps/windows.foundation.diagnostics.loggingactivity.aspx) +[LoggingSession](https://msdn.microsoft.com/library/windows/apps/windows.foundation.diagnostics.loggingsession.aspx) +[FileLoggingSession](https://msdn.microsoft.com/library/windows/apps/windows.foundation.diagnostics.fileloggingsession.aspx) +[Windows Performance Toolkit](https://docs.microsoft.com/en-us/windows-hardware/test/wpt/index) + +## System requirements + +**Client:** Windows 10 + +**Server:** Windows Server 2016 Technical Preview + +**Phone:** Windows 10 + +## Build the sample + +1. If you download the samples ZIP, be sure to unzip the entire archive, not just the folder with the sample you want to build. +2. Start Microsoft Visual Studio 2017 and select **File** \> **Open** \> **Project/Solution**. +3. Starting in the folder where you unzipped the samples, go to the Samples subfolder, then the subfolder for this specific sample, then the subfolder for your preferred language (C++, C#, or JavaScript). Double-click the Visual Studio Solution (.sln) file. +4. Press Ctrl+Shift+B, or select **Build** \> **Build Solution**. + +## Run the sample + +The next steps depend on whether you just want to deploy the sample or you want to both deploy and run it. + +### Deploying the sample + +- Select Build > Deploy Solution. + +### Deploying and running the sample + +- To debug the sample and then run it, press F5 or select Debug > Start Debugging. To run the sample without debugging, press Ctrl+F5 or selectDebug > Start Without Debugging. diff --git a/Samples/Logging/js/Logging.jsproj b/archived/Logging/js/Logging.jsproj similarity index 81% rename from Samples/Logging/js/Logging.jsproj rename to archived/Logging/js/Logging.jsproj index 1702303c60..9dea6c384a 100644 --- a/Samples/Logging/js/Logging.jsproj +++ b/archived/Logging/js/Logging.jsproj @@ -54,7 +54,7 @@ Designer - + default.html @@ -81,10 +81,10 @@ images\windows-sdk.png - + js\default.js - + css\default.css @@ -94,43 +94,43 @@ - + Microsoft.WinJS.4.0\css\ui-dark.css - + Microsoft.WinJS.4.0\css\ui-light.css - + Microsoft.WinJS.4.0\js\en-US\ui.strings.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense-setup.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense.js - + Microsoft.WinJS.4.0\fonts\Symbols.ttf - + Microsoft.WinJS.4.0\js\base.js - + Microsoft.WinJS.4.0\js\ui.js - + sample-utils\footer.html - + sample-utils\header.html - + sample-utils\sample-utils.js - + sample-utils\scenario-select.css - + sample-utils\scenario-select.html diff --git a/Samples/Logging/js/Logging.sln b/archived/Logging/js/Logging.sln similarity index 100% rename from Samples/Logging/js/Logging.sln rename to archived/Logging/js/Logging.sln diff --git a/Samples/Logging/js/Microsoft.WinJS.4.0/css/placeholder.txt b/archived/Logging/js/Microsoft.WinJS.4.0/css/placeholder.txt similarity index 100% rename from Samples/Logging/js/Microsoft.WinJS.4.0/css/placeholder.txt rename to archived/Logging/js/Microsoft.WinJS.4.0/css/placeholder.txt diff --git a/Samples/Logging/js/Microsoft.WinJS.4.0/fonts/placeholder b/archived/Logging/js/Microsoft.WinJS.4.0/fonts/placeholder similarity index 100% rename from Samples/Logging/js/Microsoft.WinJS.4.0/fonts/placeholder rename to archived/Logging/js/Microsoft.WinJS.4.0/fonts/placeholder diff --git a/Samples/Logging/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt b/archived/Logging/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt similarity index 100% rename from Samples/Logging/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt rename to archived/Logging/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt diff --git a/Samples/Logging/js/Package.appxmanifest b/archived/Logging/js/Package.appxmanifest similarity index 100% rename from Samples/Logging/js/Package.appxmanifest rename to archived/Logging/js/Package.appxmanifest diff --git a/Samples/Logging/js/css/placeholder.txt b/archived/Logging/js/css/placeholder.txt similarity index 100% rename from Samples/Logging/js/css/placeholder.txt rename to archived/Logging/js/css/placeholder.txt diff --git a/Samples/Logging/js/html/scenario1.html b/archived/Logging/js/html/scenario1.html similarity index 100% rename from Samples/Logging/js/html/scenario1.html rename to archived/Logging/js/html/scenario1.html diff --git a/Samples/Logging/js/html/scenario2.html b/archived/Logging/js/html/scenario2.html similarity index 100% rename from Samples/Logging/js/html/scenario2.html rename to archived/Logging/js/html/scenario2.html diff --git a/Samples/Logging/js/html/scenario3.html b/archived/Logging/js/html/scenario3.html similarity index 100% rename from Samples/Logging/js/html/scenario3.html rename to archived/Logging/js/html/scenario3.html diff --git a/Samples/Logging/js/images/placeholder.txt b/archived/Logging/js/images/placeholder.txt similarity index 100% rename from Samples/Logging/js/images/placeholder.txt rename to archived/Logging/js/images/placeholder.txt diff --git a/Samples/Logging/js/js/fileLoggingSessionScenario.js b/archived/Logging/js/js/fileLoggingSessionScenario.js similarity index 100% rename from Samples/Logging/js/js/fileLoggingSessionScenario.js rename to archived/Logging/js/js/fileLoggingSessionScenario.js diff --git a/Samples/Logging/js/js/loggingChannelScenario.js b/archived/Logging/js/js/loggingChannelScenario.js similarity index 100% rename from Samples/Logging/js/js/loggingChannelScenario.js rename to archived/Logging/js/js/loggingChannelScenario.js diff --git a/Samples/Logging/js/js/loggingSessionScenario.js b/archived/Logging/js/js/loggingSessionScenario.js similarity index 100% rename from Samples/Logging/js/js/loggingSessionScenario.js rename to archived/Logging/js/js/loggingSessionScenario.js diff --git a/Samples/Logging/js/js/sample-configuration.js b/archived/Logging/js/js/sample-configuration.js similarity index 100% rename from Samples/Logging/js/js/sample-configuration.js rename to archived/Logging/js/js/sample-configuration.js diff --git a/Samples/Logging/js/js/scenario1.js b/archived/Logging/js/js/scenario1.js similarity index 100% rename from Samples/Logging/js/js/scenario1.js rename to archived/Logging/js/js/scenario1.js diff --git a/Samples/Logging/js/js/scenario2.js b/archived/Logging/js/js/scenario2.js similarity index 100% rename from Samples/Logging/js/js/scenario2.js rename to archived/Logging/js/js/scenario2.js diff --git a/Samples/Logging/js/js/scenario3.js b/archived/Logging/js/js/scenario3.js similarity index 100% rename from Samples/Logging/js/js/scenario3.js rename to archived/Logging/js/js/scenario3.js diff --git a/Samples/Logging/js/sample-utils/placeholder.txt b/archived/Logging/js/sample-utils/placeholder.txt similarity index 100% rename from Samples/Logging/js/sample-utils/placeholder.txt rename to archived/Logging/js/sample-utils/placeholder.txt diff --git a/archived/MagneticStripeReader/README.md b/archived/MagneticStripeReader/README.md new file mode 100644 index 0000000000..a47fe7a5a7 --- /dev/null +++ b/archived/MagneticStripeReader/README.md @@ -0,0 +1,95 @@ +--- +topic: sample +languages: +- js +products: +- windows +- windows-uwp +--- + +# Magnetic stripe reader sample + +Shows how to create a magnetic stripe reader, claim it for exclusive use, enable it to receive data, and read data from a bank card or a motor vehicle card. +This sample uses the [Windows.Devices.PointOfService](http://msdn.microsoft.com/library/windows/apps/dn298071) API. + +> **Note:** This sample is part of a large collection of UWP feature samples. +> If you are unfamiliar with Git and GitHub, you can download the entire collection as a +> [ZIP file](https://github.com/Microsoft/Windows-universal-samples/archive/master.zip), but be +> sure to unzip everything to access shared dependencies. For more info on working with the ZIP file, +> the samples collection, and GitHub, see [Get the UWP samples from GitHub](https://aka.ms/ovu2uq). +> For more samples, see the [Samples portal](https://aka.ms/winsamples) on the Windows Dev Center. + +Specifically, this sample shows how to: + +1. **Get the magnetic stripe reader** + + Uses a [**DeviceWatcher**](https://docs.microsoft.com/uwp/api/Windows.Devices.Enumeration.DeviceWatcher) + to enumerate and select the first magnetic stripe reader. + +2. **Claim the magnetic stripe reader for exclusive use** + + Uses [ClaimReaderAsync](http://msdn.microsoft.com/library/windows/apps/dn297979) to claim the device. + +3. **Add event handlers** + + Uses [BankCardDataReceived](http://msdn.microsoft.com/library/windows/apps/dn278599), [AamvaCardDataReceived](http://msdn.microsoft.com/library/windows/apps/dn278595), and [ReleaseDeviceRequested](http://msdn.microsoft.com/library/windows/apps/dn278626) events. + + When an application gets a request from another application to release its exclusive claim to the magnetic stripe reader, it must handle the request by retaining the device; otherwise, it will lose its claim. The event handler for [ReleaseDeviceRequested](http://msdn.microsoft.com/library/windows/apps/dn278626) shows how to do this. + +4. **Enable the device to receive data** + + Uses [EnableAsync](http://msdn.microsoft.com/library/windows/apps/dn278612). + +The app package manifest shows how to specify the device capability name for the Point of Service (POS) devices. All POS apps are required declare [DeviceCapability](http://msdn.microsoft.com/library/windows/apps/br211430) in the app package manifest, either by using "PointofService" as shown in this sample or by using device specific GUID, such as "2A9FE532-0CDC-44F9-9827-76192F2CA2FB" for a magnetic stripe reader. + +The following list shows the magnetic stripe readers that were used with this code sample: + +- MagTek MagneSafe HID USB reader (VID 0801, PID 0011) +- MagTek SureSwipe HID USB reader ( VID 0801, PID 0002) +- MagTek BulleT Bluetooth/USB reader, when connected via USB (VID 0801, PID 0011) +- ID TECH SecureMag HID USB reader (VID 0ACD, PID 2010) +- ID TECH MiniMag HID USB reader (VID 0ACD, PID 0500) + +**Note** The Windows universal samples require Visual Studio 2017 to build and Windows 10 to execute. + +To obtain information about Windows 10 development, go to the [Windows Dev Center](http://go.microsoft.com/fwlink/?LinkID=532421) + +To obtain information about Microsoft Visual Studio and the tools for developing Windows apps, go to [Visual Studio](http://go.microsoft.com/fwlink/?LinkID=532422) + +## Related topics + +### Samples + +[Magnetic Stripe Reader sample](/Samples/MagneticStripeReader) + +### Reference + +[Windows.Devices.PointOfService](http://msdn.microsoft.com/library/windows/apps/dn298071) +[Windows app samples](http://go.microsoft.com/fwlink/p/?LinkID=227694) + +## System requirements + +**Client:** Windows 10 + +**Server:** Windows Server 2016 Technical Preview + +**Phone:** Windows 10 + +## Build the sample + +1. If you download the samples ZIP, be sure to unzip the entire archive, not just the folder with the sample you want to build. +2. Start Microsoft Visual Studio 2017 and select **File** \> **Open** \> **Project/Solution**. +3. Starting in the folder where you unzipped the samples, go to the Samples subfolder, then the subfolder for this specific sample, then the subfolder for your preferred language (C++, C#, or JavaScript). Double-click the Visual Studio Solution (.sln) file. +4. Press Ctrl+Shift+B, or select **Build** \> **Build Solution**. + +## Run the sample + +The next steps depend on whether you just want to deploy the sample or you want to both deploy and run it. + +### Deploying the sample + +- Select Build > Deploy Solution. + +### Deploying and running the sample + +- To debug the sample and then run it, press F5 or select Debug > Start Debugging. To run the sample without debugging, press Ctrl+F5 or selectDebug > Start Without Debugging. diff --git a/Samples/MagneticStripeReader/js/MagneticStripeReader.jsproj b/archived/MagneticStripeReader/js/MagneticStripeReader.jsproj similarity index 80% rename from Samples/MagneticStripeReader/js/MagneticStripeReader.jsproj rename to archived/MagneticStripeReader/js/MagneticStripeReader.jsproj index 42c92f2abc..41df08ca85 100644 --- a/Samples/MagneticStripeReader/js/MagneticStripeReader.jsproj +++ b/archived/MagneticStripeReader/js/MagneticStripeReader.jsproj @@ -56,7 +56,7 @@ - + default.html @@ -82,55 +82,55 @@ images\windows-sdk.png - + js\default.js - + css\default.css - + js\devicehelpers.js - + Microsoft.WinJS.4.0\css\ui-dark.css - + Microsoft.WinJS.4.0\css\ui-light.css - + Microsoft.WinJS.4.0\js\en-US\ui.strings.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense-setup.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense.js - + Microsoft.WinJS.4.0\fonts\Symbols.ttf - + Microsoft.WinJS.4.0\js\base.js - + Microsoft.WinJS.4.0\js\ui.js - + sample-utils\footer.html - + sample-utils\header.html - + sample-utils\sample-utils.js - + sample-utils\scenario-select.css - + sample-utils\scenario-select.html diff --git a/Samples/MagneticStripeReader/js/MagneticStripeReader.sln b/archived/MagneticStripeReader/js/MagneticStripeReader.sln similarity index 100% rename from Samples/MagneticStripeReader/js/MagneticStripeReader.sln rename to archived/MagneticStripeReader/js/MagneticStripeReader.sln diff --git a/Samples/MagneticStripeReader/js/Microsoft.WinJS.4.0/css/placeholder.txt b/archived/MagneticStripeReader/js/Microsoft.WinJS.4.0/css/placeholder.txt similarity index 100% rename from Samples/MagneticStripeReader/js/Microsoft.WinJS.4.0/css/placeholder.txt rename to archived/MagneticStripeReader/js/Microsoft.WinJS.4.0/css/placeholder.txt diff --git a/Samples/MagneticStripeReader/js/Microsoft.WinJS.4.0/fonts/placeholder b/archived/MagneticStripeReader/js/Microsoft.WinJS.4.0/fonts/placeholder similarity index 100% rename from Samples/MagneticStripeReader/js/Microsoft.WinJS.4.0/fonts/placeholder rename to archived/MagneticStripeReader/js/Microsoft.WinJS.4.0/fonts/placeholder diff --git a/Samples/MagneticStripeReader/js/Microsoft.WinJS.4.0/js/en-us/placeholder.txt b/archived/MagneticStripeReader/js/Microsoft.WinJS.4.0/js/en-us/placeholder.txt similarity index 100% rename from Samples/MagneticStripeReader/js/Microsoft.WinJS.4.0/js/en-us/placeholder.txt rename to archived/MagneticStripeReader/js/Microsoft.WinJS.4.0/js/en-us/placeholder.txt diff --git a/Samples/MagneticStripeReader/js/Package.appxmanifest b/archived/MagneticStripeReader/js/Package.appxmanifest similarity index 100% rename from Samples/MagneticStripeReader/js/Package.appxmanifest rename to archived/MagneticStripeReader/js/Package.appxmanifest diff --git a/Samples/MagneticStripeReader/js/css/Scenario1_BankCards.css b/archived/MagneticStripeReader/js/css/Scenario1_BankCards.css similarity index 100% rename from Samples/MagneticStripeReader/js/css/Scenario1_BankCards.css rename to archived/MagneticStripeReader/js/css/Scenario1_BankCards.css diff --git a/Samples/MagneticStripeReader/js/css/Scenario2_AamvaCards.css b/archived/MagneticStripeReader/js/css/Scenario2_AamvaCards.css similarity index 100% rename from Samples/MagneticStripeReader/js/css/Scenario2_AamvaCards.css rename to archived/MagneticStripeReader/js/css/Scenario2_AamvaCards.css diff --git a/Samples/MagneticStripeReader/js/html/Scenario1_BankCards.html b/archived/MagneticStripeReader/js/html/Scenario1_BankCards.html similarity index 100% rename from Samples/MagneticStripeReader/js/html/Scenario1_BankCards.html rename to archived/MagneticStripeReader/js/html/Scenario1_BankCards.html diff --git a/Samples/MagneticStripeReader/js/html/Scenario2_AamvaCards.html b/archived/MagneticStripeReader/js/html/Scenario2_AamvaCards.html similarity index 100% rename from Samples/MagneticStripeReader/js/html/Scenario2_AamvaCards.html rename to archived/MagneticStripeReader/js/html/Scenario2_AamvaCards.html diff --git a/Samples/MagneticStripeReader/js/images/placeholder.txt b/archived/MagneticStripeReader/js/images/placeholder.txt similarity index 100% rename from Samples/MagneticStripeReader/js/images/placeholder.txt rename to archived/MagneticStripeReader/js/images/placeholder.txt diff --git a/Samples/MagneticStripeReader/js/js/Scenario1_BankCards.js b/archived/MagneticStripeReader/js/js/Scenario1_BankCards.js similarity index 100% rename from Samples/MagneticStripeReader/js/js/Scenario1_BankCards.js rename to archived/MagneticStripeReader/js/js/Scenario1_BankCards.js diff --git a/Samples/MagneticStripeReader/js/js/Scenario2_AamvaCards.js b/archived/MagneticStripeReader/js/js/Scenario2_AamvaCards.js similarity index 100% rename from Samples/MagneticStripeReader/js/js/Scenario2_AamvaCards.js rename to archived/MagneticStripeReader/js/js/Scenario2_AamvaCards.js diff --git a/Samples/MagneticStripeReader/js/js/sample-configuration.js b/archived/MagneticStripeReader/js/js/sample-configuration.js similarity index 100% rename from Samples/MagneticStripeReader/js/js/sample-configuration.js rename to archived/MagneticStripeReader/js/js/sample-configuration.js diff --git a/Samples/MagneticStripeReader/js/sample-utils/placeholder.txt b/archived/MagneticStripeReader/js/sample-utils/placeholder.txt similarity index 100% rename from Samples/MagneticStripeReader/js/sample-utils/placeholder.txt rename to archived/MagneticStripeReader/js/sample-utils/placeholder.txt diff --git a/archived/MediaEditing/README.md b/archived/MediaEditing/README.md new file mode 100644 index 0000000000..eb78857743 --- /dev/null +++ b/archived/MediaEditing/README.md @@ -0,0 +1,114 @@ +--- +topic: sample +languages: +- js +products: +- windows +- windows-uwp +--- + +# Media editing sample + +Shows how to use the APIs in the **Windows.Media.Editing** namespace to edit and compose media clips. The tasks +demonstrated in these scenarios include opening, trimming, and saving videos, appending multiple video clips together into a +single composition, adding background audio, and using overlays to composite videos. + +> **Note:** This sample is part of a large collection of UWP feature samples. +> If you are unfamiliar with Git and GitHub, you can download the entire collection as a +> [ZIP file](https://github.com/Microsoft/Windows-universal-samples/archive/master.zip), but be +> sure to unzip everything to access shared dependencies. For more info on working with the ZIP file, +> the samples collection, and GitHub, see [Get the UWP samples from GitHub](https://aka.ms/ovu2uq). +> For more samples, see the [Samples portal](https://aka.ms/winsamples) on the Windows Dev Center. + +**Scenario 1: Trim and Save Clip:** +Press the *Choose Video* button to launch a file open picker that allows you to choose a video file to open. Press the +*Trim Video* button to trim 25% of the videos duration from the beginning and end of the clip . Press play on the video controls +to view the trimmed video clip. Press the *Save Result* button to launch a file save picker that allows you to choose a +location and file name with which to save the trimmed video clip. + +In the code behind, when the file open picker is launched and a file is selected, the file is assigned to a **MediaElement** +defined in the XAML file with a call to using the **SetSource** to make it viewable in the UI. + +When the *Trim Video* button is pressed, a new **MediaClip** object is created from the video file with a call to +**MediaClip.CreateFromFileAsync**. The **TrimTimeFromStart** and **TrimTimeFromEnd** methods of the **MediaClip** class are called +to trim the duration of the clip. Next, a new **MediaComposition** object is created and the trimmed clip is appended to the +composition's **Clips** collection. A **MediaStreamSource** is created using the **MediaComposition** method **GeneratePreviewMediaStreamSource** +and then the **MediaElement* method **SetMediaStreamSource** to make the composition viewable in the UI. + +When the *Save Result* button is pressed, a **FileSavePicker** is created to allow the user to pick a destination file. The +**MediaComposition** method **RenderToFileAsync** saves the composition to the selected file. + +**Scenario 2: Append Clips:** +Press the *Choose First Video* button to launch a file open picker that allows you to choose a video file to open. Press the +*Choose Second Video* button to select a second video. Press the *Append Videos* button to append the videos together into a +single composition. Press play on the video controls to view the trimmed appended clips. + +In the code behind, when each file picker is launched, the resulting file is assigned to the **MediaElement** defined in the +XAML file with the **SetSource** method, to make the video files viewable in the UI. When the *Append Videos* button is +pressed, a new **MediaClip** object is created for each of the video files. Next, a new **MediaComposition** object is created +and each media clip is added to the composition's **Clips** collection. Finally, a **MediaStreamSource** is created using +the **MediaComposition** method **GeneratePreviewMediaStreamSource** and then the **MediaElement** method **SetMediaStreamSource** +is called to make the composition is viewable in the UI. + +**Scenario 3: Add Audio Tracks** + Press the *Choose Video* button to launch a file open picker that allows you to choose a video file to open. Press the + *Add Background Audio* button to launch a file open picker that allows you to choose a audio file to open. Press play + on the video controls to view the video clip with the added background audio. + +In the code behind, when the file open picker is launched and a video file is selected, the file is assigned to a **MediaElement** +defined in the XAML file with a call to using the **SetSource**. When the *Add Background Audio* button is pressed, a new +**MediaClip** is created from the selected video file, a new **MediaComposition** is created, and the **MediaClip** is added to +the composition's **Clips** collection. Next the file picker for the audio file is launched. When the file picker returns, +a new **BackgroundAudioTrack** is created from the selected audio file by calling **CreateFromFileAsync**. The **BackgroundAudioTrack** +is added to the composition's *BackgroundAudioTracks* collection. Finally, a **MediaStreamSource** is created using the +**MediaComposition** method **GeneratePreviewMediaStreamSource** and then the **MediaElement** method **SetMediaStreamSource** is +called to make the composition viewable in the UI. + +**Scenario 4: Add Overlays** +Press the *Choose Base Video* button to launch a file open picker that allows you to choose a video file to open. Press the +*Choose Overlay Video* button to select a second video. Press play on the video controls to view the overlayed video clip. + +In the code behind, when each file picker is launched, the resulting file is assigned to the **MediaElement** defined in the +XAML file with the **SetSource** method, to make the clips viewable in the UI. To create the overlay, first a new +**MediaClip** is created from the base video clip, a new **MediaComposition** is created, and the base media clip is added to +the composition's **Clips** collection. Next, a new **MediaClip** is created for the overlay video clip. The **GetVideoEncodingProperties** +method is called to get information about the format of the clip. A **Rect** to specify the placement of the overlay is created, +using the encoding properties to make sure the aspect ratio of the clip is preserved. Next, a **MediaOverlay** object is created +from the clip. The **Position** of the overlay is set using the **Rect** structure and the **Opacity** of the overlay is set to 75%. +A new **OverlayLayer** is created, and the **MediaOverlay** is added to its **Overlays** collection. Next the **OverlayLayer** is added +to the composition's **OverlayLayers** collection. Finally, a **MediaStreamSource** is created using the **MediaComposition** method +**GeneratePreviewMediaStreamSource** and then the **MediaElement** method **SetMediaStreamSource** is called to make the composition +viewable in the UI. + + +Related topics +-------------- + +[Windows.Media.Editing namespace](https://msdn.microsoft.com/library/windows/apps/windows.media.editing.aspx) + +System requirements +----------------------------- + +**Client:** Windows 10 + +**Phone:** Windows 10 + +Build the sample +---------------- + +1. If you download the samples ZIP, be sure to unzip the entire archive, not just the folder with the sample you want to build. +2. Start Microsoft Visual Studio 2017 and select **File** \> **Open** \> **Project/Solution**. +3. Starting in the folder where you unzipped the samples, go to the Samples subfolder, then the subfolder for this specific sample, then the subfolder for your preferred language (C++, C#, or JavaScript). Double-click the Visual Studio Solution (.sln) file. +4. Press Ctrl+Shift+B, or select **Build** \> **Build Solution**. + +Run the sample +-------------- + +The next steps depend on whether you just want to deploy the sample or you want to both deploy and run it. + +**Deploying the sample** +1. Select **Build** \> **Deploy Solution**. + +**Deploying and running the sample** +1. To debug the sample and then run it, press F5 or select **Debug** \> **Start Debugging**. To run the sample without debugging, press Ctrl+F5 or select**Debug** \> **Start Without Debugging**. + diff --git a/Samples/MediaEditing/js/MediaEditing.jsproj b/archived/MediaEditing/js/MediaEditing.jsproj similarity index 82% rename from Samples/MediaEditing/js/MediaEditing.jsproj rename to archived/MediaEditing/js/MediaEditing.jsproj index 7175371d27..fa06a2274c 100644 --- a/Samples/MediaEditing/js/MediaEditing.jsproj +++ b/archived/MediaEditing/js/MediaEditing.jsproj @@ -54,52 +54,52 @@ Designer - + css\default.css - + default.html - + js\default.js - + Microsoft.WinJS.4.0\css\ui-dark.css - + Microsoft.WinJS.4.0\css\ui-light.css - + Microsoft.WinJS.4.0\js\en-US\ui.strings.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense-setup.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense.js - + Microsoft.WinJS.4.0\fonts\Symbols.ttf - + Microsoft.WinJS.4.0\js\base.js - + Microsoft.WinJS.4.0\js\ui.js - + sample-utils\footer.html - + sample-utils\header.html - + sample-utils\sample-utils.js - + sample-utils\scenario-select.css - + sample-utils\scenario-select.html diff --git a/Samples/MediaEditing/js/MediaEditing.sln b/archived/MediaEditing/js/MediaEditing.sln similarity index 100% rename from Samples/MediaEditing/js/MediaEditing.sln rename to archived/MediaEditing/js/MediaEditing.sln diff --git a/Samples/MediaEditing/js/Microsoft.WinJS.4.0/css/placeholder.txt b/archived/MediaEditing/js/Microsoft.WinJS.4.0/css/placeholder.txt similarity index 100% rename from Samples/MediaEditing/js/Microsoft.WinJS.4.0/css/placeholder.txt rename to archived/MediaEditing/js/Microsoft.WinJS.4.0/css/placeholder.txt diff --git a/Samples/MediaEditing/js/Microsoft.WinJS.4.0/fonts/placeholder b/archived/MediaEditing/js/Microsoft.WinJS.4.0/fonts/placeholder similarity index 100% rename from Samples/MediaEditing/js/Microsoft.WinJS.4.0/fonts/placeholder rename to archived/MediaEditing/js/Microsoft.WinJS.4.0/fonts/placeholder diff --git a/Samples/MediaEditing/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt b/archived/MediaEditing/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt similarity index 100% rename from Samples/MediaEditing/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt rename to archived/MediaEditing/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt diff --git a/Samples/MediaEditing/js/css/scenario1.css b/archived/MediaEditing/js/css/scenario1.css similarity index 100% rename from Samples/MediaEditing/js/css/scenario1.css rename to archived/MediaEditing/js/css/scenario1.css diff --git a/Samples/MediaEditing/js/css/scenario2.css b/archived/MediaEditing/js/css/scenario2.css similarity index 100% rename from Samples/MediaEditing/js/css/scenario2.css rename to archived/MediaEditing/js/css/scenario2.css diff --git a/Samples/MediaEditing/js/css/scenario3.css b/archived/MediaEditing/js/css/scenario3.css similarity index 100% rename from Samples/MediaEditing/js/css/scenario3.css rename to archived/MediaEditing/js/css/scenario3.css diff --git a/Samples/MediaEditing/js/css/scenario4.css b/archived/MediaEditing/js/css/scenario4.css similarity index 100% rename from Samples/MediaEditing/js/css/scenario4.css rename to archived/MediaEditing/js/css/scenario4.css diff --git a/Samples/MediaEditing/js/html/scenario1.html b/archived/MediaEditing/js/html/scenario1.html similarity index 100% rename from Samples/MediaEditing/js/html/scenario1.html rename to archived/MediaEditing/js/html/scenario1.html diff --git a/Samples/MediaEditing/js/html/scenario2.html b/archived/MediaEditing/js/html/scenario2.html similarity index 100% rename from Samples/MediaEditing/js/html/scenario2.html rename to archived/MediaEditing/js/html/scenario2.html diff --git a/Samples/MediaEditing/js/html/scenario3.html b/archived/MediaEditing/js/html/scenario3.html similarity index 100% rename from Samples/MediaEditing/js/html/scenario3.html rename to archived/MediaEditing/js/html/scenario3.html diff --git a/Samples/MediaEditing/js/html/scenario4.html b/archived/MediaEditing/js/html/scenario4.html similarity index 100% rename from Samples/MediaEditing/js/html/scenario4.html rename to archived/MediaEditing/js/html/scenario4.html diff --git a/Samples/MediaEditing/js/images/placeholder.txt b/archived/MediaEditing/js/images/placeholder.txt similarity index 100% rename from Samples/MediaEditing/js/images/placeholder.txt rename to archived/MediaEditing/js/images/placeholder.txt diff --git a/Samples/MediaEditing/js/js/sample-configuration.js b/archived/MediaEditing/js/js/sample-configuration.js similarity index 100% rename from Samples/MediaEditing/js/js/sample-configuration.js rename to archived/MediaEditing/js/js/sample-configuration.js diff --git a/Samples/MediaEditing/js/js/scenario1.js b/archived/MediaEditing/js/js/scenario1.js similarity index 100% rename from Samples/MediaEditing/js/js/scenario1.js rename to archived/MediaEditing/js/js/scenario1.js diff --git a/Samples/MediaEditing/js/js/scenario2.js b/archived/MediaEditing/js/js/scenario2.js similarity index 100% rename from Samples/MediaEditing/js/js/scenario2.js rename to archived/MediaEditing/js/js/scenario2.js diff --git a/Samples/MediaEditing/js/js/scenario3.js b/archived/MediaEditing/js/js/scenario3.js similarity index 100% rename from Samples/MediaEditing/js/js/scenario3.js rename to archived/MediaEditing/js/js/scenario3.js diff --git a/Samples/MediaEditing/js/js/scenario4.js b/archived/MediaEditing/js/js/scenario4.js similarity index 100% rename from Samples/MediaEditing/js/js/scenario4.js rename to archived/MediaEditing/js/js/scenario4.js diff --git a/Samples/MediaEditing/js/package.appxmanifest b/archived/MediaEditing/js/package.appxmanifest similarity index 100% rename from Samples/MediaEditing/js/package.appxmanifest rename to archived/MediaEditing/js/package.appxmanifest diff --git a/Samples/MediaEditing/js/sample-utils/placeholder.txt b/archived/MediaEditing/js/sample-utils/placeholder.txt similarity index 100% rename from Samples/MediaEditing/js/sample-utils/placeholder.txt rename to archived/MediaEditing/js/sample-utils/placeholder.txt diff --git a/archived/MediaTranscoding/README.md b/archived/MediaTranscoding/README.md new file mode 100644 index 0000000000..86683b9c3b --- /dev/null +++ b/archived/MediaTranscoding/README.md @@ -0,0 +1,88 @@ +--- +topic: sample +languages: +- js +products: +- windows +- windows-uwp +--- + +# Transcoding media sample + +Shows how to use the [Windows.Media.Transcoding](http://msdn.microsoft.com/library/windows/apps/br207105) API to transcode a video file. Transcoding is the conversion of a digital media file, such as a video or audio file, from one format to another. For example, you might convert a Windows Media file to MP4 so that it can be played on a portable device that supports MP4 format. Or, you might convert a high-definition video file to a lower resolution. In that case, the re-encoded file might use the same codec as the original file, but it would have a different encoding profile. + +> **Note:** This sample is part of a large collection of UWP feature samples. +> If you are unfamiliar with Git and GitHub, you can download the entire collection as a +> [ZIP file](https://github.com/Microsoft/Windows-universal-samples/archive/master.zip), but be +> sure to unzip everything to access shared dependencies. For more info on working with the ZIP file, +> the samples collection, and GitHub, see [Get the UWP samples from GitHub](https://aka.ms/ovu2uq). +> For more samples, see the [Samples portal](https://aka.ms/winsamples) on the Windows Dev Center. + +This sample covers the following scenarios: + +- Converting a video file from one resolution to another resolution. +- Converting a video file using a custom output format. +- Creating a clip from a video using the [TrimStart](http://msdn.microsoft.com/library/windows/apps/br207103) and [TrimStop](http://msdn.microsoft.com/library/windows/apps/br207104) API. + +Some of the transcode API covered in this sample are: + +- [Windows.Media.Transcoding](http://msdn.microsoft.com/library/windows/apps/br207105) +- [MediaTranscoder](http://msdn.microsoft.com/library/windows/apps/br207080) +- [MediaTranscoder.PrepareFileTranscodeAsync](http://msdn.microsoft.com/library/windows/apps/hh700936) +- [PrepareTranscodeResult](http://msdn.microsoft.com/library/windows/apps/hh700941) +- [PrepareTranscodeResult.TranscodeAsync](http://msdn.microsoft.com/library/windows/apps/hh700946) +- [MediaProperties.MediaEncodingProfile](http://msdn.microsoft.com/library/windows/apps/hh701026) +- [TrimStart](http://msdn.microsoft.com/library/windows/apps/br207103) +- [TrimStop](http://msdn.microsoft.com/library/windows/apps/br207104) + +For more info about transcoding video files, see [Transcode media files](https://msdn.microsoft.com/library/windows/apps/mt282149) and [Transcode media files](https://msdn.microsoft.com/library/windows/apps/mt282149). + +## Related topics + +[Windows 8 app samples](http://go.microsoft.com/fwlink/p/?LinkID=227694) + +**Roadmaps** + +[Roadmap for apps using C\# and Visual Basic](http://msdn.microsoft.com/library/windows/apps/br229583) +[Roadmap for apps using JavaScript](http://msdn.microsoft.com/library/windows/apps/hh465037) +[Roadmap for apps using C++](http://msdn.microsoft.com/library/windows/apps/hh700360) +[Designing UX for apps](http://msdn.microsoft.com/library/windows/apps/hh767284) +[Audio, video, and camera](https://msdn.microsoft.com/library/windows/apps/mt203788) + +**Tasks** + +[Transcode media files](https://msdn.microsoft.com/library/windows/apps/mt282149) + +**Reference** + +[Windows.Media.Transcoding](http://msdn.microsoft.com/library/windows/apps/br207105) +[MediaTranscoder](http://msdn.microsoft.com/library/windows/apps/br207080) +[MediaTranscoder.PrepareFileTranscodeAsync](http://msdn.microsoft.com/library/windows/apps/hh700936) +[PrepareTranscodeResult](http://msdn.microsoft.com/library/windows/apps/hh700941) +[PrepareTranscodeResult.TranscodeAsync](http://msdn.microsoft.com/library/windows/apps/hh700946) +[MediaProperties.MediaEncodingProfile](http://msdn.microsoft.com/library/windows/apps/hh701026) +[TrimStart](http://msdn.microsoft.com/library/windows/apps/br207103) +[TrimStop](http://msdn.microsoft.com/library/windows/apps/br207104) + +## System requirements + +**Client:** Windows 10 + +**Phone:** Windows 10 + +## Build the sample + +1. If you download the samples ZIP, be sure to unzip the entire archive, not just the folder with the sample you want to build. +2. Start Microsoft Visual Studio 2017 and select **File** \> **Open** \> **Project/Solution**. +3. Starting in the folder where you unzipped the samples, go to the Samples subfolder, then the subfolder for this specific sample, then the subfolder for your preferred language (C++, C#, or JavaScript). Double-click the Visual Studio Solution (.sln) file. +4. Press Ctrl+Shift+B, or select **Build** \> **Build Solution**. + +## Run the sample + +The next steps depend on whether you just want to deploy the sample or you want to both deploy and run it. + +**Deploying the sample** +1. Select **Build** \> **Deploy Solution**. + +**Deploying and running the sample** +1. To debug the sample and then run it, press F5 or select **Debug** \> **Start Debugging**. To run the sample without debugging, press Ctrl+F5 or select**Debug** \> **Start Without Debugging**. \ No newline at end of file diff --git a/Samples/MediaTranscoding/js/MediaTranscoding.jsproj b/archived/MediaTranscoding/js/MediaTranscoding.jsproj similarity index 82% rename from Samples/MediaTranscoding/js/MediaTranscoding.jsproj rename to archived/MediaTranscoding/js/MediaTranscoding.jsproj index f6dc9eacd7..d4abe9d118 100644 --- a/Samples/MediaTranscoding/js/MediaTranscoding.jsproj +++ b/archived/MediaTranscoding/js/MediaTranscoding.jsproj @@ -54,52 +54,52 @@ Designer - + css\default.css - + default.html - + js\default.js - + Microsoft.WinJS.4.0\css\ui-dark.css - + Microsoft.WinJS.4.0\css\ui-light.css - + Microsoft.WinJS.4.0\js\en-US\ui.strings.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense-setup.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense.js - + Microsoft.WinJS.4.0\fonts\Symbols.ttf - + Microsoft.WinJS.4.0\js\base.js - + Microsoft.WinJS.4.0\js\ui.js - + sample-utils\footer.html - + sample-utils\header.html - + sample-utils\sample-utils.js - + sample-utils\scenario-select.css - + sample-utils\scenario-select.html diff --git a/Samples/MediaTranscoding/js/MediaTranscoding.sln b/archived/MediaTranscoding/js/MediaTranscoding.sln similarity index 100% rename from Samples/MediaTranscoding/js/MediaTranscoding.sln rename to archived/MediaTranscoding/js/MediaTranscoding.sln diff --git a/Samples/MediaTranscoding/js/Microsoft.WinJS.4.0/css/placeholder.txt b/archived/MediaTranscoding/js/Microsoft.WinJS.4.0/css/placeholder.txt similarity index 100% rename from Samples/MediaTranscoding/js/Microsoft.WinJS.4.0/css/placeholder.txt rename to archived/MediaTranscoding/js/Microsoft.WinJS.4.0/css/placeholder.txt diff --git a/Samples/MediaTranscoding/js/Microsoft.WinJS.4.0/fonts/placeholder b/archived/MediaTranscoding/js/Microsoft.WinJS.4.0/fonts/placeholder similarity index 100% rename from Samples/MediaTranscoding/js/Microsoft.WinJS.4.0/fonts/placeholder rename to archived/MediaTranscoding/js/Microsoft.WinJS.4.0/fonts/placeholder diff --git a/Samples/MediaTranscoding/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt b/archived/MediaTranscoding/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt similarity index 100% rename from Samples/MediaTranscoding/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt rename to archived/MediaTranscoding/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt diff --git a/Samples/MediaTranscoding/js/css/scenario1.css b/archived/MediaTranscoding/js/css/scenario1.css similarity index 100% rename from Samples/MediaTranscoding/js/css/scenario1.css rename to archived/MediaTranscoding/js/css/scenario1.css diff --git a/Samples/MediaTranscoding/js/css/scenario2.css b/archived/MediaTranscoding/js/css/scenario2.css similarity index 100% rename from Samples/MediaTranscoding/js/css/scenario2.css rename to archived/MediaTranscoding/js/css/scenario2.css diff --git a/Samples/MediaTranscoding/js/css/scenario3.css b/archived/MediaTranscoding/js/css/scenario3.css similarity index 100% rename from Samples/MediaTranscoding/js/css/scenario3.css rename to archived/MediaTranscoding/js/css/scenario3.css diff --git a/Samples/MediaTranscoding/js/css/scenario4.css b/archived/MediaTranscoding/js/css/scenario4.css similarity index 100% rename from Samples/MediaTranscoding/js/css/scenario4.css rename to archived/MediaTranscoding/js/css/scenario4.css diff --git a/Samples/MediaTranscoding/js/html/scenario1.html b/archived/MediaTranscoding/js/html/scenario1.html similarity index 100% rename from Samples/MediaTranscoding/js/html/scenario1.html rename to archived/MediaTranscoding/js/html/scenario1.html diff --git a/Samples/MediaTranscoding/js/html/scenario2.html b/archived/MediaTranscoding/js/html/scenario2.html similarity index 100% rename from Samples/MediaTranscoding/js/html/scenario2.html rename to archived/MediaTranscoding/js/html/scenario2.html diff --git a/Samples/MediaTranscoding/js/html/scenario3.html b/archived/MediaTranscoding/js/html/scenario3.html similarity index 100% rename from Samples/MediaTranscoding/js/html/scenario3.html rename to archived/MediaTranscoding/js/html/scenario3.html diff --git a/Samples/MediaTranscoding/js/images/placeholder.txt b/archived/MediaTranscoding/js/images/placeholder.txt similarity index 100% rename from Samples/MediaTranscoding/js/images/placeholder.txt rename to archived/MediaTranscoding/js/images/placeholder.txt diff --git a/Samples/MediaTranscoding/js/js/sample-configuration.js b/archived/MediaTranscoding/js/js/sample-configuration.js similarity index 100% rename from Samples/MediaTranscoding/js/js/sample-configuration.js rename to archived/MediaTranscoding/js/js/sample-configuration.js diff --git a/Samples/MediaTranscoding/js/js/scenario1.js b/archived/MediaTranscoding/js/js/scenario1.js similarity index 100% rename from Samples/MediaTranscoding/js/js/scenario1.js rename to archived/MediaTranscoding/js/js/scenario1.js diff --git a/Samples/MediaTranscoding/js/js/scenario2.js b/archived/MediaTranscoding/js/js/scenario2.js similarity index 100% rename from Samples/MediaTranscoding/js/js/scenario2.js rename to archived/MediaTranscoding/js/js/scenario2.js diff --git a/Samples/MediaTranscoding/js/js/scenario3.js b/archived/MediaTranscoding/js/js/scenario3.js similarity index 100% rename from Samples/MediaTranscoding/js/js/scenario3.js rename to archived/MediaTranscoding/js/js/scenario3.js diff --git a/Samples/MediaTranscoding/js/package.appxmanifest b/archived/MediaTranscoding/js/package.appxmanifest similarity index 100% rename from Samples/MediaTranscoding/js/package.appxmanifest rename to archived/MediaTranscoding/js/package.appxmanifest diff --git a/Samples/MediaTranscoding/js/sample-utils/placeholder.txt b/archived/MediaTranscoding/js/sample-utils/placeholder.txt similarity index 100% rename from Samples/MediaTranscoding/js/sample-utils/placeholder.txt rename to archived/MediaTranscoding/js/sample-utils/placeholder.txt diff --git a/archived/MessageDialog/README.md b/archived/MessageDialog/README.md new file mode 100644 index 0000000000..36f675ff85 --- /dev/null +++ b/archived/MessageDialog/README.md @@ -0,0 +1,56 @@ +--- +topic: sample +languages: +- js +products: +- windows +- windows-uwp +--- + +# Message dialog sample + +Shows how to use a [MessageDialog](http://msdn.microsoft.com/library/windows/apps/br208674) for displaying dialogs, setting commands and the actions they will perform, +and changing the default button. + +> **Note:** This sample is part of a large collection of UWP feature samples. +> If you are unfamiliar with Git and GitHub, you can download the entire collection as a +> [ZIP file](https://github.com/Microsoft/Windows-universal-samples/archive/master.zip), but be +> sure to unzip everything to access shared dependencies. For more info on working with the ZIP file, +> the samples collection, and GitHub, see [Get the UWP samples from GitHub](https://aka.ms/ovu2uq). +> For more samples, see the [Samples portal](https://aka.ms/winsamples) on the Windows Dev Center. + +The [Windows.UI.Popups](http://msdn.microsoft.com/library/windows/apps/br242180) namespace contains the [MessageDialog](http://msdn.microsoft.com/library/windows/apps/br208674) +class. You can use this class to present an urgent message that the user must acknowledge before continuing, or to present an urgent question that the user must answer. + +**Note** The Windows universal samples require Visual Studio 2017 to build and Windows 10 to execute. + +To obtain information about Windows 10 development, go to the [Windows Dev Center](http://go.microsoft.com/fwlink/?LinkID=532421) + +To obtain information about Microsoft Visual Studio and the tools for developing Windows apps, go to [Visual Studio](http://go.microsoft.com/fwlink/?LinkID=532422) + +## Related topics + +[Adding message dialogs](http://msdn.microsoft.com/library/windows/apps/hh738361) + +## System requirements + +**Client:** Windows 10 + +**Server:** Windows Server 2016 Technical Preview + +**Phone:** Windows 10 + +## Build the sample + +1. If you download the samples ZIP, be sure to unzip the entire archive, not just the folder with the sample you want to build. +2. Start Microsoft Visual Studio 2017 and select **File** \> **Open** \> **Project/Solution**. +3. Starting in the folder where you unzipped the samples, go to the Samples subfolder, then the subfolder for this specific sample, then the subfolder for your preferred language (C++, C#, or JavaScript). Double-click the Visual Studio Solution (.sln) file. +4. Press Ctrl+Shift+B, or select **Build** \> **Build Solution**. + +## Run the sample + +The next steps depend on whether you just want to deploy the sample or you want to both deploy and run it. + +### Deploying the sample + +- Select Build > Deploy Solution. diff --git a/Samples/MessageDialog/js/MessageDialogSample.jsproj b/archived/MessageDialog/js/MessageDialogSample.jsproj similarity index 81% rename from Samples/MessageDialog/js/MessageDialogSample.jsproj rename to archived/MessageDialog/js/MessageDialogSample.jsproj index 107ca23549..be97b671e8 100644 --- a/Samples/MessageDialog/js/MessageDialogSample.jsproj +++ b/archived/MessageDialog/js/MessageDialogSample.jsproj @@ -54,7 +54,7 @@ Designer - + default.html @@ -82,10 +82,10 @@ images\windows-sdk.png - + js\default.js - + css\default.css @@ -93,43 +93,43 @@ - + Microsoft.WinJS.4.0\css\ui-dark.css - + Microsoft.WinJS.4.0\css\ui-light.css - + Microsoft.WinJS.4.0\js\en-US\ui.strings.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense-setup.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense.js - + Microsoft.WinJS.4.0\fonts\Symbols.ttf - + Microsoft.WinJS.4.0\js\base.js - + Microsoft.WinJS.4.0\js\ui.js - + sample-utils\footer.html - + sample-utils\header.html - + sample-utils\sample-utils.js - + sample-utils\scenario-select.css - + sample-utils\scenario-select.html diff --git a/Samples/MessageDialog/js/MessageDialogSample.sln b/archived/MessageDialog/js/MessageDialogSample.sln similarity index 100% rename from Samples/MessageDialog/js/MessageDialogSample.sln rename to archived/MessageDialog/js/MessageDialogSample.sln diff --git a/Samples/MessageDialog/js/Microsoft.WinJS.4.0/css/placeholder.txt b/archived/MessageDialog/js/Microsoft.WinJS.4.0/css/placeholder.txt similarity index 100% rename from Samples/MessageDialog/js/Microsoft.WinJS.4.0/css/placeholder.txt rename to archived/MessageDialog/js/Microsoft.WinJS.4.0/css/placeholder.txt diff --git a/Samples/MessageDialog/js/Microsoft.WinJS.4.0/fonts/placeholder b/archived/MessageDialog/js/Microsoft.WinJS.4.0/fonts/placeholder similarity index 100% rename from Samples/MessageDialog/js/Microsoft.WinJS.4.0/fonts/placeholder rename to archived/MessageDialog/js/Microsoft.WinJS.4.0/fonts/placeholder diff --git a/Samples/MessageDialog/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt b/archived/MessageDialog/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt similarity index 100% rename from Samples/MessageDialog/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt rename to archived/MessageDialog/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt diff --git a/Samples/MessageDialog/js/Package.appxmanifest b/archived/MessageDialog/js/Package.appxmanifest similarity index 100% rename from Samples/MessageDialog/js/Package.appxmanifest rename to archived/MessageDialog/js/Package.appxmanifest diff --git a/Samples/MessageDialog/js/css/placeholder.txt b/archived/MessageDialog/js/css/placeholder.txt similarity index 100% rename from Samples/MessageDialog/js/css/placeholder.txt rename to archived/MessageDialog/js/css/placeholder.txt diff --git a/Samples/MessageDialog/js/html/cancelcommand.html b/archived/MessageDialog/js/html/cancelcommand.html similarity index 100% rename from Samples/MessageDialog/js/html/cancelcommand.html rename to archived/MessageDialog/js/html/cancelcommand.html diff --git a/Samples/MessageDialog/js/html/completedcallback.html b/archived/MessageDialog/js/html/completedcallback.html similarity index 100% rename from Samples/MessageDialog/js/html/completedcallback.html rename to archived/MessageDialog/js/html/completedcallback.html diff --git a/Samples/MessageDialog/js/html/customcommand.html b/archived/MessageDialog/js/html/customcommand.html similarity index 100% rename from Samples/MessageDialog/js/html/customcommand.html rename to archived/MessageDialog/js/html/customcommand.html diff --git a/Samples/MessageDialog/js/html/defaultclosecommand.html b/archived/MessageDialog/js/html/defaultclosecommand.html similarity index 100% rename from Samples/MessageDialog/js/html/defaultclosecommand.html rename to archived/MessageDialog/js/html/defaultclosecommand.html diff --git a/Samples/MessageDialog/js/images/placeholder.txt b/archived/MessageDialog/js/images/placeholder.txt similarity index 100% rename from Samples/MessageDialog/js/images/placeholder.txt rename to archived/MessageDialog/js/images/placeholder.txt diff --git a/Samples/MessageDialog/js/js/cancelcommand.js b/archived/MessageDialog/js/js/cancelcommand.js similarity index 100% rename from Samples/MessageDialog/js/js/cancelcommand.js rename to archived/MessageDialog/js/js/cancelcommand.js diff --git a/Samples/MessageDialog/js/js/completedcallback.js b/archived/MessageDialog/js/js/completedcallback.js similarity index 100% rename from Samples/MessageDialog/js/js/completedcallback.js rename to archived/MessageDialog/js/js/completedcallback.js diff --git a/Samples/MessageDialog/js/js/customcommand.js b/archived/MessageDialog/js/js/customcommand.js similarity index 100% rename from Samples/MessageDialog/js/js/customcommand.js rename to archived/MessageDialog/js/js/customcommand.js diff --git a/Samples/MessageDialog/js/js/defaultclosecommand.js b/archived/MessageDialog/js/js/defaultclosecommand.js similarity index 100% rename from Samples/MessageDialog/js/js/defaultclosecommand.js rename to archived/MessageDialog/js/js/defaultclosecommand.js diff --git a/Samples/MessageDialog/js/js/sample-configuration.js b/archived/MessageDialog/js/js/sample-configuration.js similarity index 100% rename from Samples/MessageDialog/js/js/sample-configuration.js rename to archived/MessageDialog/js/js/sample-configuration.js diff --git a/Samples/MessageDialog/js/sample-utils/placeholder.txt b/archived/MessageDialog/js/sample-utils/placeholder.txt similarity index 100% rename from Samples/MessageDialog/js/sample-utils/placeholder.txt rename to archived/MessageDialog/js/sample-utils/placeholder.txt diff --git a/Samples/MsBlobBuilder/README.md b/archived/MsBlobBuilder/README.md similarity index 100% rename from Samples/MsBlobBuilder/README.md rename to archived/MsBlobBuilder/README.md diff --git a/Samples/MsBlobBuilder/js/Microsoft.WinJS.4.0/css/placeholder.txt b/archived/MsBlobBuilder/js/Microsoft.WinJS.4.0/css/placeholder.txt similarity index 100% rename from Samples/MsBlobBuilder/js/Microsoft.WinJS.4.0/css/placeholder.txt rename to archived/MsBlobBuilder/js/Microsoft.WinJS.4.0/css/placeholder.txt diff --git a/Samples/MsBlobBuilder/js/Microsoft.WinJS.4.0/fonts/placeholder b/archived/MsBlobBuilder/js/Microsoft.WinJS.4.0/fonts/placeholder similarity index 100% rename from Samples/MsBlobBuilder/js/Microsoft.WinJS.4.0/fonts/placeholder rename to archived/MsBlobBuilder/js/Microsoft.WinJS.4.0/fonts/placeholder diff --git a/Samples/MsBlobBuilder/js/Microsoft.WinJS.4.0/js/en-us/placeholder.txt b/archived/MsBlobBuilder/js/Microsoft.WinJS.4.0/js/en-us/placeholder.txt similarity index 100% rename from Samples/MsBlobBuilder/js/Microsoft.WinJS.4.0/js/en-us/placeholder.txt rename to archived/MsBlobBuilder/js/Microsoft.WinJS.4.0/js/en-us/placeholder.txt diff --git a/Samples/MsBlobBuilder/js/MsBlobBuilder.jsproj b/archived/MsBlobBuilder/js/MsBlobBuilder.jsproj similarity index 83% rename from Samples/MsBlobBuilder/js/MsBlobBuilder.jsproj rename to archived/MsBlobBuilder/js/MsBlobBuilder.jsproj index 2df5ab6182..1d174edc8a 100644 --- a/Samples/MsBlobBuilder/js/MsBlobBuilder.jsproj +++ b/archived/MsBlobBuilder/js/MsBlobBuilder.jsproj @@ -57,7 +57,7 @@ - + default.html @@ -93,10 +93,10 @@ - + js\default.js - + css\default.css @@ -108,43 +108,43 @@ - + Microsoft.WinJS.4.0\css\ui-dark.css - + Microsoft.WinJS.4.0\css\ui-light.css - + Microsoft.WinJS.4.0\js\en-US\ui.strings.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense-setup.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense.js - + Microsoft.WinJS.4.0\fonts\Symbols.ttf - + Microsoft.WinJS.4.0\js\base.js - + Microsoft.WinJS.4.0\js\ui.js - + sample-utils\footer.html - + sample-utils\header.html - + sample-utils\sample-utils.js - + sample-utils\scenario-select.css - + sample-utils\scenario-select.html diff --git a/Samples/MsBlobBuilder/js/MsBlobBuilder.sln b/archived/MsBlobBuilder/js/MsBlobBuilder.sln similarity index 100% rename from Samples/MsBlobBuilder/js/MsBlobBuilder.sln rename to archived/MsBlobBuilder/js/MsBlobBuilder.sln diff --git a/Samples/MsBlobBuilder/js/Package.appxmanifest b/archived/MsBlobBuilder/js/Package.appxmanifest similarity index 100% rename from Samples/MsBlobBuilder/js/Package.appxmanifest rename to archived/MsBlobBuilder/js/Package.appxmanifest diff --git a/Samples/MsBlobBuilder/js/css/FileToBlobUrl.css b/archived/MsBlobBuilder/js/css/FileToBlobUrl.css similarity index 100% rename from Samples/MsBlobBuilder/js/css/FileToBlobUrl.css rename to archived/MsBlobBuilder/js/css/FileToBlobUrl.css diff --git a/Samples/MsBlobBuilder/js/css/MultiVsSingleUseBlobUrl.css b/archived/MsBlobBuilder/js/css/MultiVsSingleUseBlobUrl.css similarity index 100% rename from Samples/MsBlobBuilder/js/css/MultiVsSingleUseBlobUrl.css rename to archived/MsBlobBuilder/js/css/MultiVsSingleUseBlobUrl.css diff --git a/Samples/MsBlobBuilder/js/css/XhrBlobSaveToDisk.css b/archived/MsBlobBuilder/js/css/XhrBlobSaveToDisk.css similarity index 100% rename from Samples/MsBlobBuilder/js/css/XhrBlobSaveToDisk.css rename to archived/MsBlobBuilder/js/css/XhrBlobSaveToDisk.css diff --git a/Samples/MsBlobBuilder/js/html/BlobBuilder.html b/archived/MsBlobBuilder/js/html/BlobBuilder.html similarity index 100% rename from Samples/MsBlobBuilder/js/html/BlobBuilder.html rename to archived/MsBlobBuilder/js/html/BlobBuilder.html diff --git a/Samples/MsBlobBuilder/js/html/CanvasBlob-Image.html b/archived/MsBlobBuilder/js/html/CanvasBlob-Image.html similarity index 100% rename from Samples/MsBlobBuilder/js/html/CanvasBlob-Image.html rename to archived/MsBlobBuilder/js/html/CanvasBlob-Image.html diff --git a/Samples/MsBlobBuilder/js/html/FileReadText.html b/archived/MsBlobBuilder/js/html/FileReadText.html similarity index 100% rename from Samples/MsBlobBuilder/js/html/FileReadText.html rename to archived/MsBlobBuilder/js/html/FileReadText.html diff --git a/Samples/MsBlobBuilder/js/html/FileToBlobUrl.html b/archived/MsBlobBuilder/js/html/FileToBlobUrl.html similarity index 100% rename from Samples/MsBlobBuilder/js/html/FileToBlobUrl.html rename to archived/MsBlobBuilder/js/html/FileToBlobUrl.html diff --git a/Samples/MsBlobBuilder/js/html/MultiVsSingleUseBlobUrl.html b/archived/MsBlobBuilder/js/html/MultiVsSingleUseBlobUrl.html similarity index 100% rename from Samples/MsBlobBuilder/js/html/MultiVsSingleUseBlobUrl.html rename to archived/MsBlobBuilder/js/html/MultiVsSingleUseBlobUrl.html diff --git a/Samples/MsBlobBuilder/js/html/PostMessageBlob.html b/archived/MsBlobBuilder/js/html/PostMessageBlob.html similarity index 100% rename from Samples/MsBlobBuilder/js/html/PostMessageBlob.html rename to archived/MsBlobBuilder/js/html/PostMessageBlob.html diff --git a/Samples/MsBlobBuilder/js/html/StorageFileReadText.html b/archived/MsBlobBuilder/js/html/StorageFileReadText.html similarity index 100% rename from Samples/MsBlobBuilder/js/html/StorageFileReadText.html rename to archived/MsBlobBuilder/js/html/StorageFileReadText.html diff --git a/Samples/MsBlobBuilder/js/html/ThumbnailBlob-Image.html b/archived/MsBlobBuilder/js/html/ThumbnailBlob-Image.html similarity index 100% rename from Samples/MsBlobBuilder/js/html/ThumbnailBlob-Image.html rename to archived/MsBlobBuilder/js/html/ThumbnailBlob-Image.html diff --git a/Samples/MsBlobBuilder/js/html/WebFrame.html b/archived/MsBlobBuilder/js/html/WebFrame.html similarity index 100% rename from Samples/MsBlobBuilder/js/html/WebFrame.html rename to archived/MsBlobBuilder/js/html/WebFrame.html diff --git a/Samples/MsBlobBuilder/js/html/XhrBlobSaveToDisk.html b/archived/MsBlobBuilder/js/html/XhrBlobSaveToDisk.html similarity index 100% rename from Samples/MsBlobBuilder/js/html/XhrBlobSaveToDisk.html rename to archived/MsBlobBuilder/js/html/XhrBlobSaveToDisk.html diff --git a/Samples/MsBlobBuilder/js/images/placeholder.txt b/archived/MsBlobBuilder/js/images/placeholder.txt similarity index 100% rename from Samples/MsBlobBuilder/js/images/placeholder.txt rename to archived/MsBlobBuilder/js/images/placeholder.txt diff --git a/Samples/MsBlobBuilder/js/js/BlobBuilder.js b/archived/MsBlobBuilder/js/js/BlobBuilder.js similarity index 100% rename from Samples/MsBlobBuilder/js/js/BlobBuilder.js rename to archived/MsBlobBuilder/js/js/BlobBuilder.js diff --git a/Samples/MsBlobBuilder/js/js/CanvasBlob-Image.js b/archived/MsBlobBuilder/js/js/CanvasBlob-Image.js similarity index 100% rename from Samples/MsBlobBuilder/js/js/CanvasBlob-Image.js rename to archived/MsBlobBuilder/js/js/CanvasBlob-Image.js diff --git a/Samples/MsBlobBuilder/js/js/FileReadText.js b/archived/MsBlobBuilder/js/js/FileReadText.js similarity index 100% rename from Samples/MsBlobBuilder/js/js/FileReadText.js rename to archived/MsBlobBuilder/js/js/FileReadText.js diff --git a/Samples/MsBlobBuilder/js/js/FileToBlobUrl.js b/archived/MsBlobBuilder/js/js/FileToBlobUrl.js similarity index 100% rename from Samples/MsBlobBuilder/js/js/FileToBlobUrl.js rename to archived/MsBlobBuilder/js/js/FileToBlobUrl.js diff --git a/Samples/MsBlobBuilder/js/js/MultiVsSingleUseBlobUrl.js b/archived/MsBlobBuilder/js/js/MultiVsSingleUseBlobUrl.js similarity index 100% rename from Samples/MsBlobBuilder/js/js/MultiVsSingleUseBlobUrl.js rename to archived/MsBlobBuilder/js/js/MultiVsSingleUseBlobUrl.js diff --git a/Samples/MsBlobBuilder/js/js/PostMessageBlob.js b/archived/MsBlobBuilder/js/js/PostMessageBlob.js similarity index 100% rename from Samples/MsBlobBuilder/js/js/PostMessageBlob.js rename to archived/MsBlobBuilder/js/js/PostMessageBlob.js diff --git a/Samples/MsBlobBuilder/js/js/StorageFileReadText.js b/archived/MsBlobBuilder/js/js/StorageFileReadText.js similarity index 100% rename from Samples/MsBlobBuilder/js/js/StorageFileReadText.js rename to archived/MsBlobBuilder/js/js/StorageFileReadText.js diff --git a/Samples/MsBlobBuilder/js/js/ThumbnailBlob-Image.js b/archived/MsBlobBuilder/js/js/ThumbnailBlob-Image.js similarity index 100% rename from Samples/MsBlobBuilder/js/js/ThumbnailBlob-Image.js rename to archived/MsBlobBuilder/js/js/ThumbnailBlob-Image.js diff --git a/Samples/MsBlobBuilder/js/js/WebFrame.js b/archived/MsBlobBuilder/js/js/WebFrame.js similarity index 100% rename from Samples/MsBlobBuilder/js/js/WebFrame.js rename to archived/MsBlobBuilder/js/js/WebFrame.js diff --git a/Samples/MsBlobBuilder/js/js/XhrBlobSaveToDisk.js b/archived/MsBlobBuilder/js/js/XhrBlobSaveToDisk.js similarity index 100% rename from Samples/MsBlobBuilder/js/js/XhrBlobSaveToDisk.js rename to archived/MsBlobBuilder/js/js/XhrBlobSaveToDisk.js diff --git a/Samples/MsBlobBuilder/js/js/sample-configuration.js b/archived/MsBlobBuilder/js/js/sample-configuration.js similarity index 100% rename from Samples/MsBlobBuilder/js/js/sample-configuration.js rename to archived/MsBlobBuilder/js/js/sample-configuration.js diff --git a/Samples/MsBlobBuilder/js/sample-utils/placeholder.txt b/archived/MsBlobBuilder/js/sample-utils/placeholder.txt similarity index 100% rename from Samples/MsBlobBuilder/js/sample-utils/placeholder.txt rename to archived/MsBlobBuilder/js/sample-utils/placeholder.txt diff --git a/archived/Notifications/README.md b/archived/Notifications/README.md new file mode 100644 index 0000000000..a6f5fc2b74 --- /dev/null +++ b/archived/Notifications/README.md @@ -0,0 +1,150 @@ +--- +topic: sample +languages: +- js +products: +- windows +- windows-uwp +--- + +# Notifications sample + +Shows how to use the various Toast and LiveTile related APIs, such as +[Notification](https://msdn.microsoft.com/library/windows/apps/Windows.UI.Notifications.Notification.aspx), +[Popup](https://msdn.microsoft.com/library/windows/apps/windows.ui.xaml.controls.primitives.popup.aspx), +and the [Windows.UI.StartScreen](https://msdn.microsoft.com/library/windows/apps/windows.ui.startscreen.aspx) namespace. + +> **Note:** This sample is part of a large collection of UWP feature samples. +> If you are unfamiliar with Git and GitHub, you can download the entire collection as a +> [ZIP file](https://github.com/Microsoft/Windows-universal-samples/archive/master.zip), but be +> sure to unzip everything to access shared dependencies. For more info on working with the ZIP file, +> the samples collection, and GitHub, see [Get the UWP samples from GitHub](https://aka.ms/ovu2uq). +> For more samples, see the [Samples portal](https://aka.ms/winsamples) on the Windows Dev Center. + +There are many scenarios in this sample broken down to three major sections: + +- Badge +- LiveTile +- Toast + +### Badge + +**Badges** are optional numbers of glyphs that are applied to **LiveTiles**. They enable the app to communicate whether the user has certain amount of notifications, +or their attention is needed due to an event. They can also convey user status in a chat application. + +**Scenarios include:** + +- Setting a numerical badge onto a primary tile +- Setting a glyph badge onto a primary tile +- Clearing badges +- Setting badges to secondary tiles + +### LiveTile + +There are two kinds of **LiveTiles**, Primary and Secondary tiles. Primary tiles are persistent and only one exist for each individual application. +Secondary tiles can be more numerous and be used as shortcuts to various locations within the app. **LiveTiles** need to be pinned to the Start Menu. + +**Scenarios include:** + +- Pinning and Unpinning +- Adaptive Templates + - Branding + - Names and Logos + - Hint Presentation + - People, Photos, Contacts + - Images + - From AppData, AppPackage, Internet + - TextStyles + - TextWrap + - Custom +- Basic State + - Background Color + - Logos +- FindAllSync API +- Notifications + - Updating Secondary Tiles + - Updating Primary Tile + - Clearing Primary Tile + - Expiring Notifications + +### Toast + +**Toast** notifications are small pop ups that appear on the screen for few seconds. They convey messages and can be customized to even play different sounds. +New to Windows 10 are actionable toasts where a user has a choice to interact with the notifications by use of a button, for example. + +**Scenarios Include:** + +- Actions + - Quick Reply + - Text + - Text and Image +- Input Text + - Default Input + - Placeholder Content + - Title +- System Commands + - Snooze + - Dismiss +- Activation Types + - Protocol + - System + - Background Activation With App Closed + - Background Activation With App Open + - Foreground Activation With App Closed + - Foreground Activation With App Open +- Adaptive Templates + - Image Sources + - From App, From AppPackage, From Internet +- Audio + - Default Audio + - Email Sound + - Looping Audio + - Silent +- Update Toasts +- Expiring Toasts +- Ghost/Suppressed Toasts +- HistoryChangedTrigger API Sample + - Badge Control + - Responding To Toasts +- Various Scenarios + - Default + - Alarm + - Incoming Call + - Reminder +- ToastNotificationManagerHistory API + - Get History + - Remove by Tag + - Remove by Group + - Clear All + +## See also + +[Traffic App sample](https://github.com/microsoft/windows-appsample-trafficapp/) +[Lunch Scheduler app sample](https://github.com/Microsoft/Windows-appsample-lunch-scheduler) + +## System requirements + +**Client:** Windows 10 + +**Server:** Windows Server 2016 Technical Preview + +**Phone:** Windows 10 + +## Build the sample + +1. If you download the samples ZIP, be sure to unzip the entire archive, not just the folder with the sample you want to build. +2. Start Microsoft Visual Studio 2017 and select **File** \> **Open** \> **Project/Solution**. +3. Starting in the folder where you unzipped the samples, go to the Samples subfolder, then the subfolder for this specific sample, then the subfolder for your preferred language (C++, C#, or JavaScript). Double-click the Visual Studio Solution (.sln) file. +4. Press Ctrl+Shift+B, or select **Build** \> **Build Solution**. + +## Run the sample + +The next steps depend on whether you just want to deploy the sample or you want to both deploy and run it. + +### Deploying the sample + +- Select Build > Deploy Solution. + +### Deploying and running the sample + +- To debug the sample and then run it, press F5 or select Debug > Start Debugging. To run the sample without debugging, press Ctrl+F5 or selectDebug > Start Without Debugging. diff --git a/Samples/Notifications/js/Notifications.sln b/archived/Notifications/js/Notifications.sln similarity index 100% rename from Samples/Notifications/js/Notifications.sln rename to archived/Notifications/js/Notifications.sln diff --git a/Samples/Notifications/js/Notifications/Microsoft.WinJS.4.0/css/placeholder.txt b/archived/Notifications/js/Notifications/Microsoft.WinJS.4.0/css/placeholder.txt similarity index 100% rename from Samples/Notifications/js/Notifications/Microsoft.WinJS.4.0/css/placeholder.txt rename to archived/Notifications/js/Notifications/Microsoft.WinJS.4.0/css/placeholder.txt diff --git a/Samples/Notifications/js/Notifications/Microsoft.WinJS.4.0/fonts/placeholder b/archived/Notifications/js/Notifications/Microsoft.WinJS.4.0/fonts/placeholder similarity index 100% rename from Samples/Notifications/js/Notifications/Microsoft.WinJS.4.0/fonts/placeholder rename to archived/Notifications/js/Notifications/Microsoft.WinJS.4.0/fonts/placeholder diff --git a/Samples/Notifications/js/Notifications/Microsoft.WinJS.4.0/js/en-US/placeholder.txt b/archived/Notifications/js/Notifications/Microsoft.WinJS.4.0/js/en-US/placeholder.txt similarity index 100% rename from Samples/Notifications/js/Notifications/Microsoft.WinJS.4.0/js/en-US/placeholder.txt rename to archived/Notifications/js/Notifications/Microsoft.WinJS.4.0/js/en-US/placeholder.txt diff --git a/Samples/Notifications/js/Notifications/Notifications.jsproj b/archived/Notifications/js/Notifications/Notifications.jsproj similarity index 85% rename from Samples/Notifications/js/Notifications/Notifications.jsproj rename to archived/Notifications/js/Notifications/Notifications.jsproj index 32bd6e3fea..5d59bb1005 100644 --- a/Samples/Notifications/js/Notifications/Notifications.jsproj +++ b/archived/Notifications/js/Notifications/Notifications.jsproj @@ -49,52 +49,52 @@ Designer - + default.html - + js\default.js - + css\default.css - + Microsoft.WinJS.4.0\css\ui-dark.css - + Microsoft.WinJS.4.0\css\ui-light.css - + Microsoft.WinJS.4.0\js\en-US\ui.strings.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense-setup.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense.js - + Microsoft.WinJS.4.0\fonts\Symbols.ttf - + Microsoft.WinJS.4.0\js\base.js - + Microsoft.WinJS.4.0\js\ui.js - + sample-utils\footer.html - + sample-utils\header.html - + sample-utils\sample-utils.js - + sample-utils\scenario-select.css - + sample-utils\scenario-select.html diff --git a/Samples/Notifications/js/Notifications/css/scenario1-pinningsecondarytiles.css b/archived/Notifications/js/Notifications/css/scenario1-pinningsecondarytiles.css similarity index 100% rename from Samples/Notifications/js/Notifications/css/scenario1-pinningsecondarytiles.css rename to archived/Notifications/js/Notifications/css/scenario1-pinningsecondarytiles.css diff --git a/Samples/Notifications/js/Notifications/css/scenario9-unpineverything.css b/archived/Notifications/js/Notifications/css/scenario9-unpineverything.css similarity index 100% rename from Samples/Notifications/js/Notifications/css/scenario9-unpineverything.css rename to archived/Notifications/js/Notifications/css/scenario9-unpineverything.css diff --git a/Samples/Notifications/js/Notifications/html/scenario1-pinningsecondarytiles.html b/archived/Notifications/js/Notifications/html/scenario1-pinningsecondarytiles.html similarity index 100% rename from Samples/Notifications/js/Notifications/html/scenario1-pinningsecondarytiles.html rename to archived/Notifications/js/Notifications/html/scenario1-pinningsecondarytiles.html diff --git a/Samples/Notifications/js/Notifications/html/scenario2-updatesecondarytile.html b/archived/Notifications/js/Notifications/html/scenario2-updatesecondarytile.html similarity index 100% rename from Samples/Notifications/js/Notifications/html/scenario2-updatesecondarytile.html rename to archived/Notifications/js/Notifications/html/scenario2-updatesecondarytile.html diff --git a/Samples/Notifications/js/Notifications/html/scenario3-primarytilenotifications.html b/archived/Notifications/js/Notifications/html/scenario3-primarytilenotifications.html similarity index 100% rename from Samples/Notifications/js/Notifications/html/scenario3-primarytilenotifications.html rename to archived/Notifications/js/Notifications/html/scenario3-primarytilenotifications.html diff --git a/Samples/Notifications/js/Notifications/html/scenario4-secondarytilenotifications.html b/archived/Notifications/js/Notifications/html/scenario4-secondarytilenotifications.html similarity index 100% rename from Samples/Notifications/js/Notifications/html/scenario4-secondarytilenotifications.html rename to archived/Notifications/js/Notifications/html/scenario4-secondarytilenotifications.html diff --git a/Samples/Notifications/js/Notifications/html/scenario5-expiringtilenotifications.html b/archived/Notifications/js/Notifications/html/scenario5-expiringtilenotifications.html similarity index 100% rename from Samples/Notifications/js/Notifications/html/scenario5-expiringtilenotifications.html rename to archived/Notifications/js/Notifications/html/scenario5-expiringtilenotifications.html diff --git a/Samples/Notifications/js/Notifications/html/scenario6-schedulingtilenotifications.html b/archived/Notifications/js/Notifications/html/scenario6-schedulingtilenotifications.html similarity index 100% rename from Samples/Notifications/js/Notifications/html/scenario6-schedulingtilenotifications.html rename to archived/Notifications/js/Notifications/html/scenario6-schedulingtilenotifications.html diff --git a/Samples/Notifications/js/Notifications/html/scenario7-primarytilebadges.html b/archived/Notifications/js/Notifications/html/scenario7-primarytilebadges.html similarity index 100% rename from Samples/Notifications/js/Notifications/html/scenario7-primarytilebadges.html rename to archived/Notifications/js/Notifications/html/scenario7-primarytilebadges.html diff --git a/Samples/Notifications/js/Notifications/html/scenario8-secondarytilebadges.html b/archived/Notifications/js/Notifications/html/scenario8-secondarytilebadges.html similarity index 100% rename from Samples/Notifications/js/Notifications/html/scenario8-secondarytilebadges.html rename to archived/Notifications/js/Notifications/html/scenario8-secondarytilebadges.html diff --git a/Samples/Notifications/js/Notifications/html/scenario9-unpineverything.html b/archived/Notifications/js/Notifications/html/scenario9-unpineverything.html similarity index 100% rename from Samples/Notifications/js/Notifications/html/scenario9-unpineverything.html rename to archived/Notifications/js/Notifications/html/scenario9-unpineverything.html diff --git a/Samples/Notifications/js/Notifications/images/cancel.png b/archived/Notifications/js/Notifications/images/cancel.png similarity index 100% rename from Samples/Notifications/js/Notifications/images/cancel.png rename to archived/Notifications/js/Notifications/images/cancel.png diff --git a/Samples/Notifications/js/Notifications/images/check.png b/archived/Notifications/js/Notifications/images/check.png similarity index 100% rename from Samples/Notifications/js/Notifications/images/check.png rename to archived/Notifications/js/Notifications/images/check.png diff --git a/Samples/Notifications/js/Notifications/js/default.js b/archived/Notifications/js/Notifications/js/default.js similarity index 100% rename from Samples/Notifications/js/Notifications/js/default.js rename to archived/Notifications/js/Notifications/js/default.js diff --git a/Samples/Notifications/js/Notifications/js/sample-configuration.js b/archived/Notifications/js/Notifications/js/sample-configuration.js similarity index 100% rename from Samples/Notifications/js/Notifications/js/sample-configuration.js rename to archived/Notifications/js/Notifications/js/sample-configuration.js diff --git a/Samples/Notifications/js/Notifications/js/scenario1-pinningsecondarytiles.js b/archived/Notifications/js/Notifications/js/scenario1-pinningsecondarytiles.js similarity index 100% rename from Samples/Notifications/js/Notifications/js/scenario1-pinningsecondarytiles.js rename to archived/Notifications/js/Notifications/js/scenario1-pinningsecondarytiles.js diff --git a/Samples/Notifications/js/Notifications/js/scenario2-updatesecondarytile.js b/archived/Notifications/js/Notifications/js/scenario2-updatesecondarytile.js similarity index 100% rename from Samples/Notifications/js/Notifications/js/scenario2-updatesecondarytile.js rename to archived/Notifications/js/Notifications/js/scenario2-updatesecondarytile.js diff --git a/Samples/Notifications/js/Notifications/js/scenario3-primarytilenotifications.js b/archived/Notifications/js/Notifications/js/scenario3-primarytilenotifications.js similarity index 100% rename from Samples/Notifications/js/Notifications/js/scenario3-primarytilenotifications.js rename to archived/Notifications/js/Notifications/js/scenario3-primarytilenotifications.js diff --git a/Samples/Notifications/js/Notifications/js/scenario4-secondarytilenotifications.js b/archived/Notifications/js/Notifications/js/scenario4-secondarytilenotifications.js similarity index 100% rename from Samples/Notifications/js/Notifications/js/scenario4-secondarytilenotifications.js rename to archived/Notifications/js/Notifications/js/scenario4-secondarytilenotifications.js diff --git a/Samples/Notifications/js/Notifications/js/scenario5-expiringtilenotifications.js b/archived/Notifications/js/Notifications/js/scenario5-expiringtilenotifications.js similarity index 100% rename from Samples/Notifications/js/Notifications/js/scenario5-expiringtilenotifications.js rename to archived/Notifications/js/Notifications/js/scenario5-expiringtilenotifications.js diff --git a/Samples/Notifications/js/Notifications/js/scenario6-schedulingtilenotifications.js b/archived/Notifications/js/Notifications/js/scenario6-schedulingtilenotifications.js similarity index 100% rename from Samples/Notifications/js/Notifications/js/scenario6-schedulingtilenotifications.js rename to archived/Notifications/js/Notifications/js/scenario6-schedulingtilenotifications.js diff --git a/Samples/Notifications/js/Notifications/js/scenario7-primarytilebadges.js b/archived/Notifications/js/Notifications/js/scenario7-primarytilebadges.js similarity index 100% rename from Samples/Notifications/js/Notifications/js/scenario7-primarytilebadges.js rename to archived/Notifications/js/Notifications/js/scenario7-primarytilebadges.js diff --git a/Samples/Notifications/js/Notifications/js/scenario8-secondarytilebadges.js b/archived/Notifications/js/Notifications/js/scenario8-secondarytilebadges.js similarity index 100% rename from Samples/Notifications/js/Notifications/js/scenario8-secondarytilebadges.js rename to archived/Notifications/js/Notifications/js/scenario8-secondarytilebadges.js diff --git a/Samples/Notifications/js/Notifications/js/scenario9-unpineverything.js b/archived/Notifications/js/Notifications/js/scenario9-unpineverything.js similarity index 100% rename from Samples/Notifications/js/Notifications/js/scenario9-unpineverything.js rename to archived/Notifications/js/Notifications/js/scenario9-unpineverything.js diff --git a/Samples/Notifications/js/Notifications/package.appxmanifest b/archived/Notifications/js/Notifications/package.appxmanifest similarity index 100% rename from Samples/Notifications/js/Notifications/package.appxmanifest rename to archived/Notifications/js/Notifications/package.appxmanifest diff --git a/Samples/Notifications/js/Notifications/packages.config b/archived/Notifications/js/Notifications/packages.config similarity index 100% rename from Samples/Notifications/js/Notifications/packages.config rename to archived/Notifications/js/Notifications/packages.config diff --git a/Samples/Notifications/js/Notifications/sample-utils/placeholder.txt b/archived/Notifications/js/Notifications/sample-utils/placeholder.txt similarity index 100% rename from Samples/Notifications/js/Notifications/sample-utils/placeholder.txt rename to archived/Notifications/js/Notifications/sample-utils/placeholder.txt diff --git a/archived/NumberFormatting/README.md b/archived/NumberFormatting/README.md new file mode 100644 index 0000000000..f54cad04c1 --- /dev/null +++ b/archived/NumberFormatting/README.md @@ -0,0 +1,87 @@ +--- +topic: sample +languages: +- js +products: +- windows +- windows-uwp +--- + +# Number formatting and parsing sample + +Shows how to use the [DecimalFormatter](http://msdn.microsoft.com/library/windows/apps/br226068), +[CurrencyFormatter](http://msdn.microsoft.com/library/windows/apps/br206883), [PercentFormatter](http://msdn.microsoft.com/library/windows/apps/br226101) and +[PermilleFormatter](http://msdn.microsoft.com/library/windows/apps/br226119) classes in the +[Windows.Globalization.NumberFormatting](http://msdn.microsoft.com/library/windows/apps/br226136) namespace to display and parse numbers, currencies, and percent values. + +> **Note:** This sample is part of a large collection of UWP feature samples. +> If you are unfamiliar with Git and GitHub, you can download the entire collection as a +> [ZIP file](https://github.com/Microsoft/Windows-universal-samples/archive/master.zip), but be +> sure to unzip everything to access shared dependencies. For more info on working with the ZIP file, +> the samples collection, and GitHub, see [Get the UWP samples from GitHub](https://aka.ms/ovu2uq). +> For more samples, see the [Samples portal](https://aka.ms/winsamples) on the Windows Dev Center. + +The sample also shows how to: + +- Round and pad numbers using the many rounding algorithms (enumerated in [RoundingAlgorithm](http://msdn.microsoft.com/library/windows/apps/dn278791)) supported by the +[IncrementNumberRounder](http://msdn.microsoft.com/library/windows/apps/dn278487) and [SignificantDigitsNumberRounder](http://msdn.microsoft.com/library/windows/apps/dn278794) +classes. +- Use the [NumeralSystemTransator](http://msdn.microsoft.com/library/windows/apps/dn278744) class to convert strings containing Latin numbers to an +appropriate numeral system that can be rendered in an app which does not perform any digit substitution. +- Use language names with Unicode extensions to directly set properties of number formatters. + +The [Windows.Globalization.NumberFormatting](http://msdn.microsoft.com/library/windows/apps/br226136) namespace provides number formatting and parsing APIs +that generate strings for display that respect either the current user's preferences, or a caller-specified language(s) and region. There are individual methods +for formatting or parsing numbers in the form of decimals, currencies, percentages, and units per thousand (permillages). + +**Note** The Windows universal samples require Visual Studio 2017 to build and Windows 10 to execute. + +To obtain information about Windows 10 development, go to the [Windows Dev Center](http://go.microsoft.com/fwlink/?LinkID=532421) + +To obtain information about Microsoft Visual Studio and the tools for developing Windows apps, go to [Visual Studio](http://go.microsoft.com/fwlink/?LinkID=532422) + +## Related topics + +### Samples + +[Calendar sample](../Calendar) +[DateTimeFormatting sample](../DatetimeFormatting) +[GlobalizationPreferences sample](../GlobalizationPreferences) + +### Reference + +[Windows.Globalization.NumberFormatting.CurrencyFormatter](http://msdn.microsoft.com/library/windows/apps/br206883) +[Windows.Globalization.NumberFormatting.DecimalFormatter](http://msdn.microsoft.com/library/windows/apps/br226068) +[Windows.Globalization.NumberFormatting.IncrementNumberRounder](http://msdn.microsoft.com/library/windows/apps/dn278487) +[Windows.Globalization.NumberFormatting.NumeralSystemTransator](http://msdn.microsoft.com/library/windows/apps/dn278744) +[Windows.Globalization.NumberFormatting.PercentFormatter](http://msdn.microsoft.com/library/windows/apps/br226101) +[Windows.Globalization.NumberFormatting.PermilleFormatter](http://msdn.microsoft.com/library/windows/apps/br226119) +[Windows.Globalization.NumberFormatting.RoundingAlgorithm](http://msdn.microsoft.com/library/windows/apps/dn278791) +[Windows.Globalization.NumberFormatting.SignificantDigitsNumberRounder](http://msdn.microsoft.com/library/windows/apps/dn278794) + +## System requirements + +**Client:** Windows 10 + +**Server:** Windows Server 2016 Technical Preview + +**Phone:** Windows 10 + +## Build the sample + +1. If you download the samples ZIP, be sure to unzip the entire archive, not just the folder with the sample you want to build. +2. Start Microsoft Visual Studio 2017 and select **File** \> **Open** \> **Project/Solution**. +3. Starting in the folder where you unzipped the samples, go to the Samples subfolder, then the subfolder for this specific sample, then the subfolder for your preferred language (C++, C#, or JavaScript). Double-click the Visual Studio Solution (.sln) file. +4. Press Ctrl+Shift+B, or select **Build** \> **Build Solution**. + +## Run the sample + +The next steps depend on whether you just want to deploy the sample or you want to both deploy and run it. + +### Deploying the sample + +- Select Build > Deploy Solution. + +### Deploying and running the sample + +- To debug the sample and then run it, press F5 or select Debug > Start Debugging. To run the sample without debugging, press Ctrl+F5 or select Debug > Start Without Debugging. diff --git a/Samples/NumberFormatting/js/Microsoft.WinJS.4.0/css/placeholder.txt b/archived/NumberFormatting/js/Microsoft.WinJS.4.0/css/placeholder.txt similarity index 100% rename from Samples/NumberFormatting/js/Microsoft.WinJS.4.0/css/placeholder.txt rename to archived/NumberFormatting/js/Microsoft.WinJS.4.0/css/placeholder.txt diff --git a/Samples/NumberFormatting/js/Microsoft.WinJS.4.0/fonts/placeholder b/archived/NumberFormatting/js/Microsoft.WinJS.4.0/fonts/placeholder similarity index 100% rename from Samples/NumberFormatting/js/Microsoft.WinJS.4.0/fonts/placeholder rename to archived/NumberFormatting/js/Microsoft.WinJS.4.0/fonts/placeholder diff --git a/Samples/NumberFormatting/js/Microsoft.WinJS.4.0/js/en-us/placeholder.txt b/archived/NumberFormatting/js/Microsoft.WinJS.4.0/js/en-us/placeholder.txt similarity index 100% rename from Samples/NumberFormatting/js/Microsoft.WinJS.4.0/js/en-us/placeholder.txt rename to archived/NumberFormatting/js/Microsoft.WinJS.4.0/js/en-us/placeholder.txt diff --git a/Samples/NumberFormatting/js/NumberFormattingSample.jsproj b/archived/NumberFormatting/js/NumberFormattingSample.jsproj similarity index 82% rename from Samples/NumberFormatting/js/NumberFormattingSample.jsproj rename to archived/NumberFormatting/js/NumberFormattingSample.jsproj index e0550c80f8..1d062313b2 100644 --- a/Samples/NumberFormatting/js/NumberFormattingSample.jsproj +++ b/archived/NumberFormatting/js/NumberFormattingSample.jsproj @@ -54,7 +54,7 @@ Designer - + default.html @@ -85,10 +85,10 @@ images\windows-sdk.png - + js\default.js - + css\default.css @@ -99,43 +99,43 @@ - + Microsoft.WinJS.4.0\css\ui-dark.css - + Microsoft.WinJS.4.0\css\ui-light.css - + Microsoft.WinJS.4.0\js\en-US\ui.strings.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense-setup.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense.js - + Microsoft.WinJS.4.0\fonts\Symbols.ttf - + Microsoft.WinJS.4.0\js\base.js - + Microsoft.WinJS.4.0\js\ui.js - + sample-utils\footer.html - + sample-utils\header.html - + sample-utils\sample-utils.js - + sample-utils\scenario-select.css - + sample-utils\scenario-select.html diff --git a/Samples/NumberFormatting/js/NumberFormattingSample.sln b/archived/NumberFormatting/js/NumberFormattingSample.sln similarity index 100% rename from Samples/NumberFormatting/js/NumberFormattingSample.sln rename to archived/NumberFormatting/js/NumberFormattingSample.sln diff --git a/Samples/NumberFormatting/js/Package.appxmanifest b/archived/NumberFormatting/js/Package.appxmanifest similarity index 100% rename from Samples/NumberFormatting/js/Package.appxmanifest rename to archived/NumberFormatting/js/Package.appxmanifest diff --git a/Samples/NumberFormatting/js/css/placeholder.txt b/archived/NumberFormatting/js/css/placeholder.txt similarity index 100% rename from Samples/NumberFormatting/js/css/placeholder.txt rename to archived/NumberFormatting/js/css/placeholder.txt diff --git a/Samples/NumberFormatting/js/html/scenario1_PercentPermilleFormatting.html b/archived/NumberFormatting/js/html/scenario1_PercentPermilleFormatting.html similarity index 100% rename from Samples/NumberFormatting/js/html/scenario1_PercentPermilleFormatting.html rename to archived/NumberFormatting/js/html/scenario1_PercentPermilleFormatting.html diff --git a/Samples/NumberFormatting/js/html/scenario2_DecimalFormatting.html b/archived/NumberFormatting/js/html/scenario2_DecimalFormatting.html similarity index 100% rename from Samples/NumberFormatting/js/html/scenario2_DecimalFormatting.html rename to archived/NumberFormatting/js/html/scenario2_DecimalFormatting.html diff --git a/Samples/NumberFormatting/js/html/scenario3_CurrencyFormatting.html b/archived/NumberFormatting/js/html/scenario3_CurrencyFormatting.html similarity index 100% rename from Samples/NumberFormatting/js/html/scenario3_CurrencyFormatting.html rename to archived/NumberFormatting/js/html/scenario3_CurrencyFormatting.html diff --git a/Samples/NumberFormatting/js/html/scenario4_NumberParsing.html b/archived/NumberFormatting/js/html/scenario4_NumberParsing.html similarity index 100% rename from Samples/NumberFormatting/js/html/scenario4_NumberParsing.html rename to archived/NumberFormatting/js/html/scenario4_NumberParsing.html diff --git a/Samples/NumberFormatting/js/html/scenario5_RoundingAndPadding.html b/archived/NumberFormatting/js/html/scenario5_RoundingAndPadding.html similarity index 100% rename from Samples/NumberFormatting/js/html/scenario5_RoundingAndPadding.html rename to archived/NumberFormatting/js/html/scenario5_RoundingAndPadding.html diff --git a/Samples/NumberFormatting/js/html/scenario6_NumeralSystemTranslation.html b/archived/NumberFormatting/js/html/scenario6_NumeralSystemTranslation.html similarity index 100% rename from Samples/NumberFormatting/js/html/scenario6_NumeralSystemTranslation.html rename to archived/NumberFormatting/js/html/scenario6_NumeralSystemTranslation.html diff --git a/Samples/NumberFormatting/js/html/scenario7_UsingUnicodeExtensions.html b/archived/NumberFormatting/js/html/scenario7_UsingUnicodeExtensions.html similarity index 100% rename from Samples/NumberFormatting/js/html/scenario7_UsingUnicodeExtensions.html rename to archived/NumberFormatting/js/html/scenario7_UsingUnicodeExtensions.html diff --git a/Samples/NumberFormatting/js/images/placeholder.txt b/archived/NumberFormatting/js/images/placeholder.txt similarity index 100% rename from Samples/NumberFormatting/js/images/placeholder.txt rename to archived/NumberFormatting/js/images/placeholder.txt diff --git a/Samples/NumberFormatting/js/js/sample-configuration.js b/archived/NumberFormatting/js/js/sample-configuration.js similarity index 100% rename from Samples/NumberFormatting/js/js/sample-configuration.js rename to archived/NumberFormatting/js/js/sample-configuration.js diff --git a/Samples/NumberFormatting/js/js/scenario1_PercentPermilleFormatting.js b/archived/NumberFormatting/js/js/scenario1_PercentPermilleFormatting.js similarity index 100% rename from Samples/NumberFormatting/js/js/scenario1_PercentPermilleFormatting.js rename to archived/NumberFormatting/js/js/scenario1_PercentPermilleFormatting.js diff --git a/Samples/NumberFormatting/js/js/scenario2_DecimalFormatting.js b/archived/NumberFormatting/js/js/scenario2_DecimalFormatting.js similarity index 100% rename from Samples/NumberFormatting/js/js/scenario2_DecimalFormatting.js rename to archived/NumberFormatting/js/js/scenario2_DecimalFormatting.js diff --git a/Samples/NumberFormatting/js/js/scenario3_CurrencyFormatting.js b/archived/NumberFormatting/js/js/scenario3_CurrencyFormatting.js similarity index 100% rename from Samples/NumberFormatting/js/js/scenario3_CurrencyFormatting.js rename to archived/NumberFormatting/js/js/scenario3_CurrencyFormatting.js diff --git a/Samples/NumberFormatting/js/js/scenario4_NumberParsing.js b/archived/NumberFormatting/js/js/scenario4_NumberParsing.js similarity index 100% rename from Samples/NumberFormatting/js/js/scenario4_NumberParsing.js rename to archived/NumberFormatting/js/js/scenario4_NumberParsing.js diff --git a/Samples/NumberFormatting/js/js/scenario5_RoundingAndPadding.js b/archived/NumberFormatting/js/js/scenario5_RoundingAndPadding.js similarity index 100% rename from Samples/NumberFormatting/js/js/scenario5_RoundingAndPadding.js rename to archived/NumberFormatting/js/js/scenario5_RoundingAndPadding.js diff --git a/Samples/NumberFormatting/js/js/scenario6_NumeralSystemTranslation.js b/archived/NumberFormatting/js/js/scenario6_NumeralSystemTranslation.js similarity index 100% rename from Samples/NumberFormatting/js/js/scenario6_NumeralSystemTranslation.js rename to archived/NumberFormatting/js/js/scenario6_NumeralSystemTranslation.js diff --git a/Samples/NumberFormatting/js/js/scenario7_UsingUnicodeExtensions.js b/archived/NumberFormatting/js/js/scenario7_UsingUnicodeExtensions.js similarity index 100% rename from Samples/NumberFormatting/js/js/scenario7_UsingUnicodeExtensions.js rename to archived/NumberFormatting/js/js/scenario7_UsingUnicodeExtensions.js diff --git a/Samples/NumberFormatting/js/sample-utils/placeholder.txt b/archived/NumberFormatting/js/sample-utils/placeholder.txt similarity index 100% rename from Samples/NumberFormatting/js/sample-utils/placeholder.txt rename to archived/NumberFormatting/js/sample-utils/placeholder.txt diff --git a/archived/OCR/README.md b/archived/OCR/README.md new file mode 100644 index 0000000000..d3a87666be --- /dev/null +++ b/archived/OCR/README.md @@ -0,0 +1,81 @@ +--- +topic: sample +languages: +- js +products: +- windows +- windows-uwp +--- + +# OCR sample + +Shows how to use Windows.Media.Ocr API. Optical character recognition (OCR) API allows for application developer to extract text in the specific language from an image. + +> **Note:** This sample is part of a large collection of UWP feature samples. +> If you are unfamiliar with Git and GitHub, you can download the entire collection as a +> [ZIP file](https://github.com/Microsoft/Windows-universal-samples/archive/master.zip), but be +> sure to unzip everything to access shared dependencies. For more info on working with the ZIP file, +> the samples collection, and GitHub, see [Get the UWP samples from GitHub](https://aka.ms/ovu2uq). +> For more samples, see the [Samples portal](https://aka.ms/winsamples) on the Windows Dev Center. + +This sample covers: + +Scenario 1: Load image from a file and extract text in user specified language. + +1. Determine whether any language is OCR supported on device. +2. Get list of all available OCR languages on device. +3. Create OCR recognizer for specific language. +4. Create OCR recognizer for the first OCR supported language from GlobalizationPreferences.Languages list. +5. Load image from a file and extract text. +6. Overlay word bounding boxes over displayed image. +7. Differentiate vertical and horizontal text lines. + +Scenario 2: Capture image from camera and extract text. + +1. Check if specific language is available on device. +2. Capture image from camera and extract text. +3. Overlay word bounding boxes and recognized text over displayed image. + +## Related topics + +**Samples** + +[InkAnalysis](/Samples/InkAnalysis) + +**Reference** + +[Windows.Media.Ocr namespace](https://msdn.microsoft.com/library/windows/apps/windows.media.ocr.aspx) +[Windows.Globalization.Language class](https://msdn.microsoft.com/library/windows/apps/windows.globalization.language.aspx) +[GlobalizationPreferences.Languages property](https://msdn.microsoft.com/library/windows/apps/windows.system.userprofile.globalizationpreferences.languages.aspx) +[Language matching](https://msdn.microsoft.com/library/windows/apps/jj673578.aspx) +[Windows.Graphics.Imaging.BitmapDecoder class](https://msdn.microsoft.com/library/windows/apps/windows.graphics.imaging.bitmapdecoder.aspx) +[Windows.Media.Capture.MediaCapture namespace](https://msdn.microsoft.com/library/windows/apps/windows.media.capture.aspx) + +## System requirements + +**Hardware:** Camera + +**Client:** Windows 10 + +**Server:** Windows Server 2016 Technical Preview + +**Phone:** Windows 10 + +## Build the sample + +1. If you download the samples ZIP, be sure to unzip the entire archive, not just the folder with the sample you want to build. +2. Start Microsoft Visual Studio 2017 and select **File** \> **Open** \> **Project/Solution**. +3. Starting in the folder where you unzipped the samples, go to the Samples subfolder, then the subfolder for this specific sample, then the subfolder for your preferred language (C++, C#, or JavaScript). Double-click the Visual Studio Solution (.sln) file. +4. Press Ctrl+Shift+B, or select **Build** \> **Build Solution**. + +## Run the sample + +The next steps depend on whether you just want to deploy the sample or you want to both deploy and run it. + +**Deploying the sample:** + +1. Select **Build** \> **Deploy Solution**. + +**Deploying and running the sample:** + +1. To debug the sample and then run it, press F5 or select **Debug** \> **Start Debugging**. To run the sample without debugging, press Ctrl+F5 or select **Debug** \> **Start Without Debugging**. diff --git a/Samples/OCR/js/Microsoft.WinJS.4.0/css/placeholder.txt b/archived/OCR/js/Microsoft.WinJS.4.0/css/placeholder.txt similarity index 100% rename from Samples/OCR/js/Microsoft.WinJS.4.0/css/placeholder.txt rename to archived/OCR/js/Microsoft.WinJS.4.0/css/placeholder.txt diff --git a/Samples/OCR/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt b/archived/OCR/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt similarity index 100% rename from Samples/OCR/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt rename to archived/OCR/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt diff --git a/Samples/OCR/js/OCR.jsproj b/archived/OCR/js/OCR.jsproj similarity index 81% rename from Samples/OCR/js/OCR.jsproj rename to archived/OCR/js/OCR.jsproj index 2a30ff93c4..50d5006085 100644 --- a/Samples/OCR/js/OCR.jsproj +++ b/archived/OCR/js/OCR.jsproj @@ -48,7 +48,7 @@ - + default.html @@ -74,49 +74,49 @@ images\windows-sdk.png - + js\default.js - + css\default.css - + Microsoft.WinJS.4.0\css\ui-dark.css - + Microsoft.WinJS.4.0\css\ui-light.css - + Microsoft.WinJS.4.0\js\en-US\ui.strings.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense-setup.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense.js - + Microsoft.WinJS.4.0\js\base.js - + Microsoft.WinJS.4.0\js\ui.js - + sample-utils\footer.html - + sample-utils\header.html - + sample-utils\sample-utils.js - + sample-utils\scenario-select.css - + sample-utils\scenario-select.html diff --git a/Samples/OCR/js/OCR.sln b/archived/OCR/js/OCR.sln similarity index 100% rename from Samples/OCR/js/OCR.sln rename to archived/OCR/js/OCR.sln diff --git a/Samples/OCR/js/css/scenario1-file-image.css b/archived/OCR/js/css/scenario1-file-image.css similarity index 100% rename from Samples/OCR/js/css/scenario1-file-image.css rename to archived/OCR/js/css/scenario1-file-image.css diff --git a/Samples/OCR/js/css/scenario2-camera-image.css b/archived/OCR/js/css/scenario2-camera-image.css similarity index 100% rename from Samples/OCR/js/css/scenario2-camera-image.css rename to archived/OCR/js/css/scenario2-camera-image.css diff --git a/Samples/OCR/js/html/scenario1-file-image.html b/archived/OCR/js/html/scenario1-file-image.html similarity index 100% rename from Samples/OCR/js/html/scenario1-file-image.html rename to archived/OCR/js/html/scenario1-file-image.html diff --git a/Samples/OCR/js/html/scenario2-camera-image.html b/archived/OCR/js/html/scenario2-camera-image.html similarity index 100% rename from Samples/OCR/js/html/scenario2-camera-image.html rename to archived/OCR/js/html/scenario2-camera-image.html diff --git a/Samples/OCR/js/images/placeholder.txt b/archived/OCR/js/images/placeholder.txt similarity index 100% rename from Samples/OCR/js/images/placeholder.txt rename to archived/OCR/js/images/placeholder.txt diff --git a/Samples/OCR/js/js/sample-configuration.js b/archived/OCR/js/js/sample-configuration.js similarity index 100% rename from Samples/OCR/js/js/sample-configuration.js rename to archived/OCR/js/js/sample-configuration.js diff --git a/Samples/OCR/js/js/scenario1-file-image.js b/archived/OCR/js/js/scenario1-file-image.js similarity index 100% rename from Samples/OCR/js/js/scenario1-file-image.js rename to archived/OCR/js/js/scenario1-file-image.js diff --git a/Samples/OCR/js/js/scenario2-camera-image.js b/archived/OCR/js/js/scenario2-camera-image.js similarity index 100% rename from Samples/OCR/js/js/scenario2-camera-image.js rename to archived/OCR/js/js/scenario2-camera-image.js diff --git a/Samples/OCR/js/package.appxmanifest b/archived/OCR/js/package.appxmanifest similarity index 100% rename from Samples/OCR/js/package.appxmanifest rename to archived/OCR/js/package.appxmanifest diff --git a/Samples/OCR/js/sample-utils/placeholder.txt b/archived/OCR/js/sample-utils/placeholder.txt similarity index 100% rename from Samples/OCR/js/sample-utils/placeholder.txt rename to archived/OCR/js/sample-utils/placeholder.txt diff --git a/archived/OrientationSensor/README.md b/archived/OrientationSensor/README.md new file mode 100644 index 0000000000..1151a6a0c2 --- /dev/null +++ b/archived/OrientationSensor/README.md @@ -0,0 +1,76 @@ +--- +topic: sample +languages: +- js +products: +- windows +- windows-uwp +--- + +# Orientation sensor sample + +Shows how to use the [Windows.Devices.Sensors.OrientationSensor](http://msdn.microsoft.com/library/windows/apps/br206371) API. + +> **Note:** This sample is part of a large collection of UWP feature samples. +> If you are unfamiliar with Git and GitHub, you can download the entire collection as a +> [ZIP file](https://github.com/Microsoft/Windows-universal-samples/archive/master.zip), but be +> sure to unzip everything to access shared dependencies. For more info on working with the ZIP file, +> the samples collection, and GitHub, see [Get the UWP samples from GitHub](https://aka.ms/ovu2uq). +> For more samples, see the [Samples portal](https://aka.ms/winsamples) on the Windows Dev Center. + +This sample allows the user to view the rotation matrix and Quaternion values that reflect the current device orientation. +After choosing the sensor reporting type and optimization goal, +you can choose one of these scenarios: + +- Orientation sensor data events +- Poll orientation sensor readings +- Sensor calibration + +**Orientation sensor data events** + +When you click the **Enable** button for the **Data Events** option, the app begins streaming sensor readings in real time. + +**Poll orientation sensor readings** + +When you click the **Enable** button for the **Polling** option, the app will retrieve the current sensor readings. + +**Sensor calibration** + +Allows the user to simulate sensor accuracy and demonstrates usage of the calibration bar. + +Related topics +-------------- + +[Accelerometer sample](../Accelerometer) +[Windows.Devices.Sensors namespace](http://msdn.microsoft.com/library/windows/apps/br206408) + +Operating system requirements +----------------------------- + +**Client:** Windows 10 build 14295 + +**Server:** Windows Server 2016 Technical Preview + +**Phone:** Windows 10 build 14295 + +Build the sample +---------------- + +1. If you download the samples ZIP, be sure to unzip the entire archive, not just the folder with the sample you want to build. +2. Start Microsoft Visual Studio 2017 and select **File** \> **Open** \> **Project/Solution**. +3. Starting in the folder where you unzipped the samples, go to the Samples subfolder, then the subfolder for this specific sample, then the subfolder for your preferred language (C++, C#, or JavaScript). Double-click the Visual Studio Solution (.sln) file. +4. Press Ctrl+Shift+B, or select **Build** \> **Build Solution**. + +Run the sample +-------------- + +The next steps depend on whether you just want to deploy the sample or you want to both deploy and run it. + +**Deploying the sample** + +1. Select **Build** \> **Deploy Solution**. + +**Deploying and running the sample** + +1. To debug the sample and then run it, press F5 or select **Debug** \> **Start Debugging**. To run the sample without debugging, press Ctrl+F5 or select**Debug** \> **Start Without Debugging**. + diff --git a/Samples/OrientationSensor/js/Microsoft.WinJS.4.0/css/placeholder.txt b/archived/OrientationSensor/js/Microsoft.WinJS.4.0/css/placeholder.txt similarity index 100% rename from Samples/OrientationSensor/js/Microsoft.WinJS.4.0/css/placeholder.txt rename to archived/OrientationSensor/js/Microsoft.WinJS.4.0/css/placeholder.txt diff --git a/Samples/OrientationSensor/js/Microsoft.WinJS.4.0/fonts/placeholder b/archived/OrientationSensor/js/Microsoft.WinJS.4.0/fonts/placeholder similarity index 100% rename from Samples/OrientationSensor/js/Microsoft.WinJS.4.0/fonts/placeholder rename to archived/OrientationSensor/js/Microsoft.WinJS.4.0/fonts/placeholder diff --git a/Samples/OrientationSensor/js/Microsoft.WinJS.4.0/js/en-us/placeholder.txt b/archived/OrientationSensor/js/Microsoft.WinJS.4.0/js/en-us/placeholder.txt similarity index 100% rename from Samples/OrientationSensor/js/Microsoft.WinJS.4.0/js/en-us/placeholder.txt rename to archived/OrientationSensor/js/Microsoft.WinJS.4.0/js/en-us/placeholder.txt diff --git a/Samples/OrientationSensor/js/OrientationSensor.jsproj b/archived/OrientationSensor/js/OrientationSensor.jsproj similarity index 82% rename from Samples/OrientationSensor/js/OrientationSensor.jsproj rename to archived/OrientationSensor/js/OrientationSensor.jsproj index 2ca63f53ce..95bd67ac63 100644 --- a/Samples/OrientationSensor/js/OrientationSensor.jsproj +++ b/archived/OrientationSensor/js/OrientationSensor.jsproj @@ -55,7 +55,7 @@ Designer - + default.html @@ -88,10 +88,10 @@ images\windows-sdk.png - + js\default.js - + css\default.css @@ -99,43 +99,43 @@ - + Microsoft.WinJS.4.0\css\ui-dark.css - + Microsoft.WinJS.4.0\css\ui-light.css - + Microsoft.WinJS.4.0\js\en-US\ui.strings.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense-setup.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense.js - + Microsoft.WinJS.4.0\fonts\Symbols.ttf - + Microsoft.WinJS.4.0\js\base.js - + Microsoft.WinJS.4.0\js\ui.js - + sample-utils\footer.html - + sample-utils\header.html - + sample-utils\sample-utils.js - + sample-utils\scenario-select.css - + sample-utils\scenario-select.html diff --git a/Samples/OrientationSensor/js/OrientationSensor.sln b/archived/OrientationSensor/js/OrientationSensor.sln similarity index 100% rename from Samples/OrientationSensor/js/OrientationSensor.sln rename to archived/OrientationSensor/js/OrientationSensor.sln diff --git a/Samples/OrientationSensor/js/Package.appxmanifest b/archived/OrientationSensor/js/Package.appxmanifest similarity index 100% rename from Samples/OrientationSensor/js/Package.appxmanifest rename to archived/OrientationSensor/js/Package.appxmanifest diff --git a/Samples/OrientationSensor/js/css/CalibrationBar.css b/archived/OrientationSensor/js/css/CalibrationBar.css similarity index 100% rename from Samples/OrientationSensor/js/css/CalibrationBar.css rename to archived/OrientationSensor/js/css/CalibrationBar.css diff --git a/Samples/OrientationSensor/js/html/CalibrationBar.html b/archived/OrientationSensor/js/html/CalibrationBar.html similarity index 100% rename from Samples/OrientationSensor/js/html/CalibrationBar.html rename to archived/OrientationSensor/js/html/CalibrationBar.html diff --git a/Samples/OrientationSensor/js/html/scenario0_Choose.html b/archived/OrientationSensor/js/html/scenario0_Choose.html similarity index 100% rename from Samples/OrientationSensor/js/html/scenario0_Choose.html rename to archived/OrientationSensor/js/html/scenario0_Choose.html diff --git a/Samples/OrientationSensor/js/html/scenario1_DataEvents.html b/archived/OrientationSensor/js/html/scenario1_DataEvents.html similarity index 100% rename from Samples/OrientationSensor/js/html/scenario1_DataEvents.html rename to archived/OrientationSensor/js/html/scenario1_DataEvents.html diff --git a/Samples/OrientationSensor/js/html/scenario2_Polling.html b/archived/OrientationSensor/js/html/scenario2_Polling.html similarity index 100% rename from Samples/OrientationSensor/js/html/scenario2_Polling.html rename to archived/OrientationSensor/js/html/scenario2_Polling.html diff --git a/Samples/OrientationSensor/js/html/scenario3_Calibration.html b/archived/OrientationSensor/js/html/scenario3_Calibration.html similarity index 100% rename from Samples/OrientationSensor/js/html/scenario3_Calibration.html rename to archived/OrientationSensor/js/html/scenario3_Calibration.html diff --git a/Samples/OrientationSensor/js/images/placeholder.txt b/archived/OrientationSensor/js/images/placeholder.txt similarity index 100% rename from Samples/OrientationSensor/js/images/placeholder.txt rename to archived/OrientationSensor/js/images/placeholder.txt diff --git a/Samples/OrientationSensor/js/js/CalibrationBar.js b/archived/OrientationSensor/js/js/CalibrationBar.js similarity index 100% rename from Samples/OrientationSensor/js/js/CalibrationBar.js rename to archived/OrientationSensor/js/js/CalibrationBar.js diff --git a/Samples/OrientationSensor/js/js/sample-configuration.js b/archived/OrientationSensor/js/js/sample-configuration.js similarity index 100% rename from Samples/OrientationSensor/js/js/sample-configuration.js rename to archived/OrientationSensor/js/js/sample-configuration.js diff --git a/Samples/OrientationSensor/js/js/scenario0_Choose.js b/archived/OrientationSensor/js/js/scenario0_Choose.js similarity index 100% rename from Samples/OrientationSensor/js/js/scenario0_Choose.js rename to archived/OrientationSensor/js/js/scenario0_Choose.js diff --git a/Samples/OrientationSensor/js/js/scenario1_DataEvents.js b/archived/OrientationSensor/js/js/scenario1_DataEvents.js similarity index 100% rename from Samples/OrientationSensor/js/js/scenario1_DataEvents.js rename to archived/OrientationSensor/js/js/scenario1_DataEvents.js diff --git a/Samples/OrientationSensor/js/js/scenario2_Polling.js b/archived/OrientationSensor/js/js/scenario2_Polling.js similarity index 100% rename from Samples/OrientationSensor/js/js/scenario2_Polling.js rename to archived/OrientationSensor/js/js/scenario2_Polling.js diff --git a/Samples/OrientationSensor/js/js/scenario3_Calibration.js b/archived/OrientationSensor/js/js/scenario3_Calibration.js similarity index 100% rename from Samples/OrientationSensor/js/js/scenario3_Calibration.js rename to archived/OrientationSensor/js/js/scenario3_Calibration.js diff --git a/Samples/OrientationSensor/js/sample-utils/placeholder.txt b/archived/OrientationSensor/js/sample-utils/placeholder.txt similarity index 100% rename from Samples/OrientationSensor/js/sample-utils/placeholder.txt rename to archived/OrientationSensor/js/sample-utils/placeholder.txt diff --git a/archived/Package/README.md b/archived/Package/README.md new file mode 100644 index 0000000000..0edbbb46ec --- /dev/null +++ b/archived/Package/README.md @@ -0,0 +1,106 @@ +--- +topic: sample +languages: +- js +products: +- windows +- windows-uwp +--- + +# App package information sample + +Shows how to get package info by using the Windows Runtime packaging API ([Windows.ApplicationModel.Package](http://msdn.microsoft.com/library/windows/apps/br224667) +and [Windows.ApplicationModel.PackageId](http://msdn.microsoft.com/library/windows/apps/br224668)). + +> **Note:** This sample is part of a large collection of UWP feature samples. +> If you are unfamiliar with Git and GitHub, you can download the entire collection as a +> [ZIP file](https://github.com/Microsoft/Windows-universal-samples/archive/master.zip), but be +> sure to unzip everything to access shared dependencies. For more info on working with the ZIP file, +> the samples collection, and GitHub, see [Get the UWP samples from GitHub](https://aka.ms/ovu2uq). +> For more samples, see the [Samples portal](https://aka.ms/winsamples) on the Windows Dev Center. + +Users acquire your Windows Runtime app as an app package. The operating system uses the info in an app package to install the app on a per-user basis, and ensure that all traces of the app are gone from the device after all users who installed the app uninstall it. Each package consists of the files that constitute the app, along with a package manifest file that describes the app to the operating system. + +Each package is defined by a globally unique identifier known as the package identity. Each package is described through package properties such as the display name, description, and logo. + +The sample covers these key tasks: + +- Getting the package identity using [Package.Id](http://msdn.microsoft.com/library/windows/apps/br224680) +- Getting the package directory using [Package.InstalledLocation](http://msdn.microsoft.com/library/windows/apps/br224681) +- Getting package dependencies using [Package.Dependencies](http://msdn.microsoft.com/library/windows/apps/br224679) + +The sample covers these new tasks for Windows 10: + +- Getting the package description using [Package.Description](http://msdn.microsoft.com/library/windows/apps/dn175742) +- Getting the package display name using [Package.DisplayName](http://msdn.microsoft.com/library/windows/apps/dn175743) +- Determining whether the package is a bundle package using [Package.IsBundle](http://msdn.microsoft.com/library/windows/apps/dn175744) +- Determining whether the package is installed in development mode using [Package.IsDevelopmentMode](http://msdn.microsoft.com/library/windows/apps/dn175745) +- Determining whether the package is a resource package using [Package.IsResourcePackage](http://msdn.microsoft.com/library/windows/apps/dn175746) +- Getting package logo using [Package.Logo](http://msdn.microsoft.com/library/windows/apps/dn175747) +- Getting publisher display name of the package using [Package.PublisherDisplayName](http://msdn.microsoft.com/library/windows/apps/dn175748) + +To obtain information about Windows 10 development, go to the [Windows Dev Center](http://go.microsoft.com/fwlink/?LinkID=532421) + +To obtain information about Microsoft Visual Studio and the tools for developing Windows apps, go to [Visual Studio](http://go.microsoft.com/fwlink/?LinkID=532422) + +**Conceptual** + +[Packaging apps](https://msdn.microsoft.com/library/windows/apps/mt270969) + +**Reference** + +[Windows.ApplicationModel.Package](http://msdn.microsoft.com/library/windows/apps/br224667) +[Windows.ApplicationModel.PackageId](http://msdn.microsoft.com/library/windows/apps/br224668) + +### Reference + +To learn more about sharing and the [Windows.ApplicationModel.DataTransfer](http://msdn.microsoft.com/library/windows/apps/br205967) namespace, +we recommend you take a look at the [Sharing and exchanging data](http://msdn.microsoft.com/library/windows/apps/hh464923) section of our documentation, +which describes how sharing works and contains several how-to topics that cover how to share [text](http://msdn.microsoft.com/library/windows/apps/hh758313), +an [image](http://msdn.microsoft.com/library/windows/apps/hh758305), files, and other formats. Our +[Guidelines for sharing content](http://msdn.microsoft.com/library/windows/apps/hh465251) can also help you create a great user experience with the share feature. + +For more info about the concepts and APIs demonstrated in this sample, see these topics: + +- [Sharing content target app sample](http://go.microsoft.com/fwlink/p/?linkid=231519) +- [Sharing and exchanging data](http://msdn.microsoft.com/library/windows/apps/hh464923) +- [How to share files (HTML)](http://msdn.microsoft.com/library/windows/apps/hh758308) +- [How to share files (XAML)](http://msdn.microsoft.com/library/windows/apps/hh871371) +- [How to share HTML (HTML)](http://msdn.microsoft.com/library/windows/apps/hh758310) +- [How to share HTML (XAML)](http://msdn.microsoft.com/library/windows/apps/hh973055) +- [How to share text (HTML)](http://msdn.microsoft.com/library/windows/apps/hh758313) +- [How to share text (XAML)](http://msdn.microsoft.com/library/windows/apps/hh871372) +- [Quickstart: Sharing content (HTML)](http://msdn.microsoft.com/library/windows/apps/hh465261) +- [Share data](https://msdn.microsoft.com/library/windows/apps/mt243293) +- [DataPackageView](http://msdn.microsoft.com/library/windows/apps/hh738408) +- [ShareOperation](http://msdn.microsoft.com/library/windows/apps/br205977) +- [Windows.ApplicationModel.DataTransfer](http://msdn.microsoft.com/library/windows/apps/br205967) +- [Windows.ApplicationModel.DataTransfer.Share](http://msdn.microsoft.com/library/windows/apps/br205989) + +## System requirements + +**Client:** Windows 10 + +**Server:** Windows Server 2016 Technical Preview + +**Phone:** Windows 10 + +## Build the sample + +1. If you download the samples ZIP, be sure to unzip the entire archive, not just the folder with the sample you want to build. +2. Start Microsoft Visual Studio 2017 and select **File** \> **Open** \> **Project/Solution**. +3. Starting in the folder where you unzipped the samples, go to the Samples subfolder, then the subfolder for this specific sample, then the subfolder for your preferred language (C++, C#, or JavaScript). Double-click the Visual Studio Solution (.sln) file. +4. Press Ctrl+Shift+B, or select **Build** \> **Build Solution**. + +## Run the sample + +The next steps depend on whether you just want to deploy the sample or you want to both deploy and run it. + +### Deploying the sample + +- Select Build > Deploy Solution. + +### Deploying and running the sample + +- To debug the sample and then run it, press F5 or select Debug > Start Debugging. To run the sample without debugging, press Ctrl+F5 or select Debug > Start Without Debugging. + diff --git a/Samples/Package/js/Microsoft.WinJS.4.0/css/placeholder.txt b/archived/Package/js/Microsoft.WinJS.4.0/css/placeholder.txt similarity index 100% rename from Samples/Package/js/Microsoft.WinJS.4.0/css/placeholder.txt rename to archived/Package/js/Microsoft.WinJS.4.0/css/placeholder.txt diff --git a/Samples/Package/js/Microsoft.WinJS.4.0/fonts/placeholder.txt b/archived/Package/js/Microsoft.WinJS.4.0/fonts/placeholder.txt similarity index 100% rename from Samples/Package/js/Microsoft.WinJS.4.0/fonts/placeholder.txt rename to archived/Package/js/Microsoft.WinJS.4.0/fonts/placeholder.txt diff --git a/Samples/Package/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt b/archived/Package/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt similarity index 100% rename from Samples/Package/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt rename to archived/Package/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt diff --git a/Samples/Package/js/PackageSample.jsproj b/archived/Package/js/PackageSample.jsproj similarity index 83% rename from Samples/Package/js/PackageSample.jsproj rename to archived/Package/js/PackageSample.jsproj index 471b826218..3860fe7cfe 100644 --- a/Samples/Package/js/PackageSample.jsproj +++ b/archived/Package/js/PackageSample.jsproj @@ -55,7 +55,7 @@ Designer - + default.html @@ -82,47 +82,47 @@ images\windows-sdk.png - + js\default.js - + css\default.css - + Microsoft.WinJS.4.0\css\ui-dark.css - + Microsoft.WinJS.4.0\css\ui-light.css - + Microsoft.WinJS.4.0\fonts\Symbols.ttf - + Microsoft.WinJS.4.0\js\en-US\ui.strings.js - + Microsoft.WinJS.4.0\js\base.js - + Microsoft.WinJS.4.0\js\ui.js - + sample-utils\footer.html - + sample-utils\header.html - + sample-utils\sample-utils.js - + sample-utils\scenario-select.css - + sample-utils\scenario-select.html diff --git a/Samples/Package/js/PackageSample.sln b/archived/Package/js/PackageSample.sln similarity index 100% rename from Samples/Package/js/PackageSample.sln rename to archived/Package/js/PackageSample.sln diff --git a/Samples/Package/js/css/windows-app.css b/archived/Package/js/css/windows-app.css similarity index 100% rename from Samples/Package/js/css/windows-app.css rename to archived/Package/js/css/windows-app.css diff --git a/Samples/Package/js/html/scenario1_identity.html b/archived/Package/js/html/scenario1_identity.html similarity index 100% rename from Samples/Package/js/html/scenario1_identity.html rename to archived/Package/js/html/scenario1_identity.html diff --git a/Samples/Package/js/html/scenario2_installedlocation.html b/archived/Package/js/html/scenario2_installedlocation.html similarity index 100% rename from Samples/Package/js/html/scenario2_installedlocation.html rename to archived/Package/js/html/scenario2_installedlocation.html diff --git a/Samples/Package/js/html/scenario3_dependencies.html b/archived/Package/js/html/scenario3_dependencies.html similarity index 100% rename from Samples/Package/js/html/scenario3_dependencies.html rename to archived/Package/js/html/scenario3_dependencies.html diff --git a/Samples/Package/js/images/placeholder.txt b/archived/Package/js/images/placeholder.txt similarity index 100% rename from Samples/Package/js/images/placeholder.txt rename to archived/Package/js/images/placeholder.txt diff --git a/Samples/Package/js/js/sample-configuration.js b/archived/Package/js/js/sample-configuration.js similarity index 100% rename from Samples/Package/js/js/sample-configuration.js rename to archived/Package/js/js/sample-configuration.js diff --git a/Samples/Package/js/js/scenario1_identity.js b/archived/Package/js/js/scenario1_identity.js similarity index 100% rename from Samples/Package/js/js/scenario1_identity.js rename to archived/Package/js/js/scenario1_identity.js diff --git a/Samples/Package/js/js/scenario2_installedlocation.js b/archived/Package/js/js/scenario2_installedlocation.js similarity index 100% rename from Samples/Package/js/js/scenario2_installedlocation.js rename to archived/Package/js/js/scenario2_installedlocation.js diff --git a/Samples/Package/js/js/scenario3_dependencies.js b/archived/Package/js/js/scenario3_dependencies.js similarity index 100% rename from Samples/Package/js/js/scenario3_dependencies.js rename to archived/Package/js/js/scenario3_dependencies.js diff --git a/Samples/Package/js/package.appxmanifest b/archived/Package/js/package.appxmanifest similarity index 100% rename from Samples/Package/js/package.appxmanifest rename to archived/Package/js/package.appxmanifest diff --git a/Samples/Package/js/sample-utils/placeholder.txt b/archived/Package/js/sample-utils/placeholder.txt similarity index 100% rename from Samples/Package/js/sample-utils/placeholder.txt rename to archived/Package/js/sample-utils/placeholder.txt diff --git a/Samples/PackagedContent/README.md b/archived/PackagedContent/README.md similarity index 100% rename from Samples/PackagedContent/README.md rename to archived/PackagedContent/README.md diff --git a/Samples/PackagedContent/js/Microsoft.WinJS.4.0/css/placeholder.txt b/archived/PackagedContent/js/Microsoft.WinJS.4.0/css/placeholder.txt similarity index 100% rename from Samples/PackagedContent/js/Microsoft.WinJS.4.0/css/placeholder.txt rename to archived/PackagedContent/js/Microsoft.WinJS.4.0/css/placeholder.txt diff --git a/Samples/PackagedContent/js/Microsoft.WinJS.4.0/fonts/placeholder b/archived/PackagedContent/js/Microsoft.WinJS.4.0/fonts/placeholder similarity index 100% rename from Samples/PackagedContent/js/Microsoft.WinJS.4.0/fonts/placeholder rename to archived/PackagedContent/js/Microsoft.WinJS.4.0/fonts/placeholder diff --git a/Samples/PackagedContent/js/Microsoft.WinJS.4.0/js/en-us/placeholder.txt b/archived/PackagedContent/js/Microsoft.WinJS.4.0/js/en-us/placeholder.txt similarity index 100% rename from Samples/PackagedContent/js/Microsoft.WinJS.4.0/js/en-us/placeholder.txt rename to archived/PackagedContent/js/Microsoft.WinJS.4.0/js/en-us/placeholder.txt diff --git a/Samples/PackagedContent/js/PackagedContent.jsproj b/archived/PackagedContent/js/PackagedContent.jsproj similarity index 82% rename from Samples/PackagedContent/js/PackagedContent.jsproj rename to archived/PackagedContent/js/PackagedContent.jsproj index a998ad56c0..f76b2c0cc8 100644 --- a/Samples/PackagedContent/js/PackagedContent.jsproj +++ b/archived/PackagedContent/js/PackagedContent.jsproj @@ -56,7 +56,7 @@ - + default.html @@ -88,10 +88,10 @@ images\windows-sdk.png - + js\default.js - + css\default.css @@ -99,44 +99,44 @@ - + Microsoft.WinJS.4.0\css\ui-dark.css - + Microsoft.WinJS.4.0\css\ui-light.css - + Microsoft.WinJS.4.0\js\en-US\ui.strings.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense-setup.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense.js - + Microsoft.WinJS.4.0\fonts\Symbols.ttf - + Microsoft.WinJS.4.0\js\base.js - + Microsoft.WinJS.4.0\js\ui.js - + sample-utils\footer.html - + sample-utils\header.html - + sample-utils\sample-utils.js - + sample-utils\scenario-select.css - + sample-utils\scenario-select.html diff --git a/Samples/PackagedContent/js/PackagedContent.sln b/archived/PackagedContent/js/PackagedContent.sln similarity index 100% rename from Samples/PackagedContent/js/PackagedContent.sln rename to archived/PackagedContent/js/PackagedContent.sln diff --git a/Samples/PackagedContent/js/css/msapp-error.css b/archived/PackagedContent/js/css/msapp-error.css similarity index 100% rename from Samples/PackagedContent/js/css/msapp-error.css rename to archived/PackagedContent/js/css/msapp-error.css diff --git a/Samples/PackagedContent/js/css/navigationErrors.css b/archived/PackagedContent/js/css/navigationErrors.css similarity index 100% rename from Samples/PackagedContent/js/css/navigationErrors.css rename to archived/PackagedContent/js/css/navigationErrors.css diff --git a/Samples/PackagedContent/js/feed.xml b/archived/PackagedContent/js/feed.xml similarity index 100% rename from Samples/PackagedContent/js/feed.xml rename to archived/PackagedContent/js/feed.xml diff --git a/Samples/PackagedContent/js/html/navigationErrors.html b/archived/PackagedContent/js/html/navigationErrors.html similarity index 100% rename from Samples/PackagedContent/js/html/navigationErrors.html rename to archived/PackagedContent/js/html/navigationErrors.html diff --git a/Samples/PackagedContent/js/html/referencingPackagedContent.html b/archived/PackagedContent/js/html/referencingPackagedContent.html similarity index 100% rename from Samples/PackagedContent/js/html/referencingPackagedContent.html rename to archived/PackagedContent/js/html/referencingPackagedContent.html diff --git a/Samples/PackagedContent/js/html/xmlHttpRequest.html b/archived/PackagedContent/js/html/xmlHttpRequest.html similarity index 100% rename from Samples/PackagedContent/js/html/xmlHttpRequest.html rename to archived/PackagedContent/js/html/xmlHttpRequest.html diff --git a/Samples/PackagedContent/js/images/bingLogo.png b/archived/PackagedContent/js/images/bingLogo.png similarity index 100% rename from Samples/PackagedContent/js/images/bingLogo.png rename to archived/PackagedContent/js/images/bingLogo.png diff --git a/Samples/PackagedContent/js/images/msnLogo.png b/archived/PackagedContent/js/images/msnLogo.png similarity index 100% rename from Samples/PackagedContent/js/images/msnLogo.png rename to archived/PackagedContent/js/images/msnLogo.png diff --git a/Samples/PackagedContent/js/images/officeLogo.png b/archived/PackagedContent/js/images/officeLogo.png similarity index 100% rename from Samples/PackagedContent/js/images/officeLogo.png rename to archived/PackagedContent/js/images/officeLogo.png diff --git a/Samples/PackagedContent/js/images/xboxLogo.png b/archived/PackagedContent/js/images/xboxLogo.png similarity index 100% rename from Samples/PackagedContent/js/images/xboxLogo.png rename to archived/PackagedContent/js/images/xboxLogo.png diff --git a/Samples/PackagedContent/js/js/msapp-error.js b/archived/PackagedContent/js/js/msapp-error.js similarity index 100% rename from Samples/PackagedContent/js/js/msapp-error.js rename to archived/PackagedContent/js/js/msapp-error.js diff --git a/Samples/PackagedContent/js/js/navigationErrors.js b/archived/PackagedContent/js/js/navigationErrors.js similarity index 100% rename from Samples/PackagedContent/js/js/navigationErrors.js rename to archived/PackagedContent/js/js/navigationErrors.js diff --git a/Samples/PackagedContent/js/js/referencingPackagedContent.js b/archived/PackagedContent/js/js/referencingPackagedContent.js similarity index 100% rename from Samples/PackagedContent/js/js/referencingPackagedContent.js rename to archived/PackagedContent/js/js/referencingPackagedContent.js diff --git a/Samples/PackagedContent/js/js/sample-configuration.js b/archived/PackagedContent/js/js/sample-configuration.js similarity index 100% rename from Samples/PackagedContent/js/js/sample-configuration.js rename to archived/PackagedContent/js/js/sample-configuration.js diff --git a/Samples/PackagedContent/js/js/xmlHttpRequest.js b/archived/PackagedContent/js/js/xmlHttpRequest.js similarity index 100% rename from Samples/PackagedContent/js/js/xmlHttpRequest.js rename to archived/PackagedContent/js/js/xmlHttpRequest.js diff --git a/Samples/PackagedContent/js/msapp-error.html b/archived/PackagedContent/js/msapp-error.html similarity index 100% rename from Samples/PackagedContent/js/msapp-error.html rename to archived/PackagedContent/js/msapp-error.html diff --git a/Samples/PackagedContent/js/package.appxmanifest b/archived/PackagedContent/js/package.appxmanifest similarity index 100% rename from Samples/PackagedContent/js/package.appxmanifest rename to archived/PackagedContent/js/package.appxmanifest diff --git a/Samples/PackagedContent/js/sample-utils/placeholder.txt b/archived/PackagedContent/js/sample-utils/placeholder.txt similarity index 100% rename from Samples/PackagedContent/js/sample-utils/placeholder.txt rename to archived/PackagedContent/js/sample-utils/placeholder.txt diff --git a/archived/PasswordVault/README.md b/archived/PasswordVault/README.md new file mode 100644 index 0000000000..685adbc284 --- /dev/null +++ b/archived/PasswordVault/README.md @@ -0,0 +1,85 @@ +--- +topic: sample +languages: +- js +products: +- windows +- windows-uwp +--- + +# Credential locker sample + +Shows how to use the Credential Locker, also known as Password Vault, which +provides a way for you to store user credentials (username, password) in a secure fashion for your app. +Usernames and passwords stored using the Credential Locker are encrypted and saved locally. +Once you have the credentials stored, you can automatically sign users in for a more convenient user experience. +Additionally, user credentials stored in the Credential Locker roam with the user's Microsoft Account for added convenience. +The Credential Locker can be used whether your app supports a single user accessing a single resource, +a single user accessing multiple resources, multiple users accessing a single resource, or +multiple users accessing multiple resources. For more information, see the reference materials below. + +> **Note:** This sample is part of a large collection of UWP feature samples. +> If you are unfamiliar with Git and GitHub, you can download the entire collection as a +> [ZIP file](https://github.com/Microsoft/Windows-universal-samples/archive/master.zip), but be +> sure to unzip everything to access shared dependencies. For more info on working with the ZIP file, +> the samples collection, and GitHub, see [Get the UWP samples from GitHub](https://aka.ms/ovu2uq). +> For more samples, see the [Samples portal](https://aka.ms/winsamples) on the Windows Dev Center. + +This sample demonstrates the following operations: + +- Saving credentials +- Reading a specific credential +- Reading all saved credentials +- Reading all saved credentials for a specific resource +- Reading all saved credentials for a specific user +- Requesting passwords from saved credentials +- Removing saved credentials + +On the PC, users can manage their credentials from the desktop control panel under +User Accounts, Credential Manager. + +**Note** The Windows universal samples require Visual Studio 2017 to build and Windows 10 to execute. + +To obtain information about Windows 10 development, go to the [Windows Dev Center](http://go.microsoft.com/fwlink/?LinkID=532421) + +To obtain information about Microsoft Visual Studio and the tools for developing Windows apps, go to [Visual Studio](http://go.microsoft.com/fwlink/?LinkID=532422) + +## Related topics + +### Samples + +[KeyCredentialManager](../KeyCredentialManager) +[Lunch Scheduler app sample](https://github.com/Microsoft/Windows-appsample-lunch-scheduler) + +### Reference + +[Storing user credentials using the Credential Locker](https://msdn.microsoft.com/library/windows/apps/dn448950.aspx) +[Storing user credentials](http://msdn.microsoft.com/library/windows/apps/hh465060) +[Windows.Security.Credentials namespace](http://msdn.microsoft.com/library/windows/apps/br227089) + +## System requirements + +**Client:** Windows 10 + +**Server:** Windows Server 2016 Technical Preview + +**Phone:** Windows 10 + +## Build the sample + +1. If you download the samples ZIP, be sure to unzip the entire archive, not just the folder with the sample you want to build. +2. Start Microsoft Visual Studio 2017 and select **File** \> **Open** \> **Project/Solution**. +3. Starting in the folder where you unzipped the samples, go to the Samples subfolder, then the subfolder for this specific sample, then the subfolder for your preferred language (C++, C#, or JavaScript). Double-click the Visual Studio Solution (.sln) file. +4. Press Ctrl+Shift+B, or select **Build** \> **Build Solution**. + +## Run the sample + +The next steps depend on whether you just want to deploy the sample or you want to both deploy and run it. + +### Deploying the sample + +- Select Build > Deploy Solution. + +### Deploying and running the sample + +- To debug the sample and then run it, press F5 or select Debug > Start Debugging. To run the sample without debugging, press Ctrl+F5 or select Debug > Start Without Debugging. diff --git a/Samples/PasswordVault/js/Microsoft.WinJS.4.0/css/placeholder.txt b/archived/PasswordVault/js/Microsoft.WinJS.4.0/css/placeholder.txt similarity index 100% rename from Samples/PasswordVault/js/Microsoft.WinJS.4.0/css/placeholder.txt rename to archived/PasswordVault/js/Microsoft.WinJS.4.0/css/placeholder.txt diff --git a/Samples/PasswordVault/js/Microsoft.WinJS.4.0/fonts/placeholder b/archived/PasswordVault/js/Microsoft.WinJS.4.0/fonts/placeholder similarity index 100% rename from Samples/PasswordVault/js/Microsoft.WinJS.4.0/fonts/placeholder rename to archived/PasswordVault/js/Microsoft.WinJS.4.0/fonts/placeholder diff --git a/Samples/PasswordVault/js/Microsoft.WinJS.4.0/js/en-us/placeholder.txt b/archived/PasswordVault/js/Microsoft.WinJS.4.0/js/en-us/placeholder.txt similarity index 100% rename from Samples/PasswordVault/js/Microsoft.WinJS.4.0/js/en-us/placeholder.txt rename to archived/PasswordVault/js/Microsoft.WinJS.4.0/js/en-us/placeholder.txt diff --git a/Samples/PasswordVault/js/Package.appxmanifest b/archived/PasswordVault/js/Package.appxmanifest similarity index 100% rename from Samples/PasswordVault/js/Package.appxmanifest rename to archived/PasswordVault/js/Package.appxmanifest diff --git a/Samples/PasswordVault/js/PasswordVault.jsproj b/archived/PasswordVault/js/PasswordVault.jsproj similarity index 80% rename from Samples/PasswordVault/js/PasswordVault.jsproj rename to archived/PasswordVault/js/PasswordVault.jsproj index 350cdc2c41..4782bdbb5e 100644 --- a/Samples/PasswordVault/js/PasswordVault.jsproj +++ b/archived/PasswordVault/js/PasswordVault.jsproj @@ -54,7 +54,7 @@ Designer - + default.html @@ -79,53 +79,53 @@ images\windows-sdk.png - + js\default.js - + css\default.css - + Microsoft.WinJS.4.0\css\ui-dark.css - + Microsoft.WinJS.4.0\css\ui-light.css - + Microsoft.WinJS.4.0\js\en-US\ui.strings.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense-setup.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense.js - + Microsoft.WinJS.4.0\fonts\Symbols.ttf - + Microsoft.WinJS.4.0\js\base.js - + Microsoft.WinJS.4.0\js\ui.js - + sample-utils\footer.html - + sample-utils\header.html - + sample-utils\sample-utils.js - + sample-utils\scenario-select.css - + sample-utils\scenario-select.html diff --git a/Samples/PasswordVault/js/PasswordVault.sln b/archived/PasswordVault/js/PasswordVault.sln similarity index 100% rename from Samples/PasswordVault/js/PasswordVault.sln rename to archived/PasswordVault/js/PasswordVault.sln diff --git a/Samples/PasswordVault/js/css/placeholder.txt b/archived/PasswordVault/js/css/placeholder.txt similarity index 100% rename from Samples/PasswordVault/js/css/placeholder.txt rename to archived/PasswordVault/js/css/placeholder.txt diff --git a/Samples/PasswordVault/js/html/scenario1-save.html b/archived/PasswordVault/js/html/scenario1-save.html similarity index 100% rename from Samples/PasswordVault/js/html/scenario1-save.html rename to archived/PasswordVault/js/html/scenario1-save.html diff --git a/Samples/PasswordVault/js/html/scenario2-manage.html b/archived/PasswordVault/js/html/scenario2-manage.html similarity index 100% rename from Samples/PasswordVault/js/html/scenario2-manage.html rename to archived/PasswordVault/js/html/scenario2-manage.html diff --git a/Samples/PasswordVault/js/js/backgroundInit.js b/archived/PasswordVault/js/js/backgroundInit.js similarity index 100% rename from Samples/PasswordVault/js/js/backgroundInit.js rename to archived/PasswordVault/js/js/backgroundInit.js diff --git a/Samples/PasswordVault/js/js/sample-configuration.js b/archived/PasswordVault/js/js/sample-configuration.js similarity index 100% rename from Samples/PasswordVault/js/js/sample-configuration.js rename to archived/PasswordVault/js/js/sample-configuration.js diff --git a/Samples/PasswordVault/js/js/scenario1-save.js b/archived/PasswordVault/js/js/scenario1-save.js similarity index 100% rename from Samples/PasswordVault/js/js/scenario1-save.js rename to archived/PasswordVault/js/js/scenario1-save.js diff --git a/Samples/PasswordVault/js/js/scenario2-manage.js b/archived/PasswordVault/js/js/scenario2-manage.js similarity index 100% rename from Samples/PasswordVault/js/js/scenario2-manage.js rename to archived/PasswordVault/js/js/scenario2-manage.js diff --git a/Samples/PasswordVault/js/sample-utils/placeholder.txt b/archived/PasswordVault/js/sample-utils/placeholder.txt similarity index 100% rename from Samples/PasswordVault/js/sample-utils/placeholder.txt rename to archived/PasswordVault/js/sample-utils/placeholder.txt diff --git a/archived/PdfDocument/README.md b/archived/PdfDocument/README.md new file mode 100644 index 0000000000..ef59e12803 --- /dev/null +++ b/archived/PdfDocument/README.md @@ -0,0 +1,68 @@ +--- +topic: sample +languages: +- js +products: +- windows +- windows-uwp +--- + +# PDF document sample + +Shows how to load and display Portable Document Format (PDF) documents. + +> **Note:** This sample is part of a large collection of UWP feature samples. +> If you are unfamiliar with Git and GitHub, you can download the entire collection as a +> [ZIP file](https://github.com/Microsoft/Windows-universal-samples/archive/master.zip), but be +> sure to unzip everything to access shared dependencies. For more info on working with the ZIP file, +> the samples collection, and GitHub, see [Get the UWP samples from GitHub](https://aka.ms/ovu2uq). +> For more samples, see the [Samples portal](https://aka.ms/winsamples) on the Windows Dev Center. + +The sample shows the following techniques: + +- Loading a PDF document (possibly with a password). +- Showing a full page from a document. +- Showing a page from a document at a reduced size. +- Showing a page from a document with a custom background color. +- Showing a rectangular portion of a page of a document. + +**Note** The Windows universal samples require Visual Studio 2017 to build and Windows 10 to execute. + +To obtain information about Windows 10 development, go to the [Windows Dev Center](http://go.microsoft.com/fwlink/?LinkID=532421) + +To obtain information about Microsoft Visual Studio and the tools for developing Windows apps, go to [Visual Studio](http://go.microsoft.com/fwlink/?LinkID=532422) + +## Related topics + +### Reference + +[Windows.Data.Pdf namespace](https://msdn.microsoft.com/library/windows/apps/windows.data.pdf.aspx) +[PdfDocument class](https://msdn.microsoft.com/library/windows/apps/windows.data.pdf.pdfdocument.aspx) +[PdfPage class](https://msdn.microsoft.com/library/windows/apps/windows.data.pdf.pdfpage.aspx) + +## System requirements + +**Client:** Windows 10 + +**Server:** Windows Server 2016 Technical Preview + +**Phone:** Windows 10 + +## Build the sample + +1. If you download the samples ZIP, be sure to unzip the entire archive, not just the folder with the sample you want to build. +2. Start Microsoft Visual Studio 2017 and select **File** \> **Open** \> **Project/Solution**. +3. Starting in the folder where you unzipped the samples, go to the Samples subfolder, then the subfolder for this specific sample, then the subfolder for your preferred language (C++, C#, or JavaScript). Double-click the Visual Studio Solution (.sln) file. +4. Press Ctrl+Shift+B, or select **Build** \> **Build Solution**. + +## Run the sample + +The next steps depend on whether you just want to deploy the sample or you want to both deploy and run it. + +### Deploying the sample + +- Select Build > Deploy Solution. + +### Deploying and running the sample + +- To debug the sample and then run it, press F5 or select Debug > Start Debugging. To run the sample without debugging, press Ctrl+F5 or select Debug > Start Without Debugging. diff --git a/Samples/PdfDocument/js/Microsoft.WinJS.4.0/css/placeholder.txt b/archived/PdfDocument/js/Microsoft.WinJS.4.0/css/placeholder.txt similarity index 100% rename from Samples/PdfDocument/js/Microsoft.WinJS.4.0/css/placeholder.txt rename to archived/PdfDocument/js/Microsoft.WinJS.4.0/css/placeholder.txt diff --git a/Samples/PdfDocument/js/Microsoft.WinJS.4.0/fonts/placeholder b/archived/PdfDocument/js/Microsoft.WinJS.4.0/fonts/placeholder similarity index 100% rename from Samples/PdfDocument/js/Microsoft.WinJS.4.0/fonts/placeholder rename to archived/PdfDocument/js/Microsoft.WinJS.4.0/fonts/placeholder diff --git a/Samples/PdfDocument/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt b/archived/PdfDocument/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt similarity index 100% rename from Samples/PdfDocument/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt rename to archived/PdfDocument/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt diff --git a/Samples/PdfDocument/js/Package.appxmanifest b/archived/PdfDocument/js/Package.appxmanifest similarity index 100% rename from Samples/PdfDocument/js/Package.appxmanifest rename to archived/PdfDocument/js/Package.appxmanifest diff --git a/Samples/PdfDocument/js/PdfDocument.jsproj b/archived/PdfDocument/js/PdfDocument.jsproj similarity index 80% rename from Samples/PdfDocument/js/PdfDocument.jsproj rename to archived/PdfDocument/js/PdfDocument.jsproj index 11c66bcba7..cb32d756f5 100644 --- a/Samples/PdfDocument/js/PdfDocument.jsproj +++ b/archived/PdfDocument/js/PdfDocument.jsproj @@ -54,7 +54,7 @@ Designer - + default.html @@ -79,51 +79,51 @@ images\windows-sdk.png - + js\default.js - + css\default.css - + Microsoft.WinJS.4.0\css\ui-dark.css - + Microsoft.WinJS.4.0\css\ui-light.css - + Microsoft.WinJS.4.0\js\en-US\ui.strings.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense-setup.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense.js - + Microsoft.WinJS.4.0\fonts\Symbols.ttf - + Microsoft.WinJS.4.0\js\base.js - + Microsoft.WinJS.4.0\js\ui.js - + sample-utils\footer.html - + sample-utils\header.html - + sample-utils\sample-utils.js - + sample-utils\scenario-select.css - + sample-utils\scenario-select.html diff --git a/Samples/PdfDocument/js/PdfDocument.sln b/archived/PdfDocument/js/PdfDocument.sln similarity index 100% rename from Samples/PdfDocument/js/PdfDocument.sln rename to archived/PdfDocument/js/PdfDocument.sln diff --git a/Samples/PdfDocument/js/css/placeholder.txt b/archived/PdfDocument/js/css/placeholder.txt similarity index 100% rename from Samples/PdfDocument/js/css/placeholder.txt rename to archived/PdfDocument/js/css/placeholder.txt diff --git a/Samples/PdfDocument/js/html/scenario1-render.html b/archived/PdfDocument/js/html/scenario1-render.html similarity index 100% rename from Samples/PdfDocument/js/html/scenario1-render.html rename to archived/PdfDocument/js/html/scenario1-render.html diff --git a/Samples/PdfDocument/js/images/placeholder.txt b/archived/PdfDocument/js/images/placeholder.txt similarity index 100% rename from Samples/PdfDocument/js/images/placeholder.txt rename to archived/PdfDocument/js/images/placeholder.txt diff --git a/Samples/PdfDocument/js/js/sample-configuration.js b/archived/PdfDocument/js/js/sample-configuration.js similarity index 100% rename from Samples/PdfDocument/js/js/sample-configuration.js rename to archived/PdfDocument/js/js/sample-configuration.js diff --git a/Samples/PdfDocument/js/js/scenario1-render.js b/archived/PdfDocument/js/js/scenario1-render.js similarity index 100% rename from Samples/PdfDocument/js/js/scenario1-render.js rename to archived/PdfDocument/js/js/scenario1-render.js diff --git a/Samples/PdfDocument/js/sample-utils/placeholder.txt b/archived/PdfDocument/js/sample-utils/placeholder.txt similarity index 100% rename from Samples/PdfDocument/js/sample-utils/placeholder.txt rename to archived/PdfDocument/js/sample-utils/placeholder.txt diff --git a/archived/Pedometer/README.md b/archived/Pedometer/README.md new file mode 100644 index 0000000000..3b0ad80648 --- /dev/null +++ b/archived/Pedometer/README.md @@ -0,0 +1,74 @@ +--- +topic: sample +languages: +- js +products: +- windows +- windows-uwp +--- + +# Pedometer sample + +Shows how to use the [Windows.Devices.Sensors.Pedometer](https://msdn.microsoft.com/library/windows/apps/windows.devices.sensors.pedometer.aspx) API. + +> **Note:** This sample is part of a large collection of UWP feature samples. +> If you are unfamiliar with Git and GitHub, you can download the entire collection as a +> [ZIP file](https://github.com/Microsoft/Windows-universal-samples/archive/master.zip), but be +> sure to unzip everything to access shared dependencies. For more info on working with the ZIP file, +> the samples collection, and GitHub, see [Get the UWP samples from GitHub](https://aka.ms/ovu2uq). +> For more samples, see the [Samples portal](https://aka.ms/winsamples) on the Windows Dev Center. + +This sample allows the user to view the default pedometer events and history available on the system. +It includes the following scenarios: + +- Events +- History +- Current steps count +- Pedometer Background + +**Events** + +It demonstrates getting the default pedometer asynchronously. +When you click on the 'Register ReadingChanged' button, it registers to the 'ReadingChanged' event on the default pedometer and displays pedometer readings as they are notified. + +**History** + +This demonstrates usage of History APIs for pedometer. +When you click on the 'Get History' button, pedometer history for the requested timespan will be displayed. Two ways to choose the timespan is provided, which demonstrate the two overloaded ways of getting history. + +**Current steps count** + +When you click the 'Get steps count' button, it displays the last known step counts. This illustrates usage of GetCurrentReadings API. + +**Background Pedometer** + +This demonstrates using a Pedometer's step goal as a background trigger. +When you click the 'Register Task' button, it gets the current step count from the default Pedometer and sets a step goal of 50 additional steps. +When the step goal is met, the registered background task gets fired. Pedometer readings are then retrieved from the trigger to update the scenario UI. + +## System requirements + +**Client:** Windows 10 + +**Server:** Windows Server 2016 Technical Preview + +**Phone:** Windows 10 + +## Build the sample + +1. If you download the samples ZIP, be sure to unzip the entire archive, not just the folder with the sample you want to build. +2. Start Microsoft Visual Studio 2017 and select **File** \> **Open** \> **Project/Solution**. +3. Starting in the folder where you unzipped the samples, go to the Samples subfolder, then the subfolder for this specific sample, then the subfolder for your preferred language (C++, C#, or JavaScript). Double-click the Visual Studio Solution (.sln) file. +4. Press Ctrl+Shift+B, or select **Build** \> **Build Solution**. + +## Run the sample + +The next steps depend on whether you just want to deploy the sample or you want to both deploy and run it. + +### Deploying the sample + +- Select Build > Deploy Solution. + +### Deploying and running the sample + +- To debug the sample and then run it, press F5 or select Debug > Start Debugging. To run the sample without debugging, press Ctrl+F5 or selectDebug > Start Without Debugging. diff --git a/Samples/Pedometer/js/Microsoft.WinJS.4.0/css/placeholder.txt b/archived/Pedometer/js/Microsoft.WinJS.4.0/css/placeholder.txt similarity index 100% rename from Samples/Pedometer/js/Microsoft.WinJS.4.0/css/placeholder.txt rename to archived/Pedometer/js/Microsoft.WinJS.4.0/css/placeholder.txt diff --git a/Samples/Pedometer/js/Microsoft.WinJS.4.0/fonts/placeholder b/archived/Pedometer/js/Microsoft.WinJS.4.0/fonts/placeholder similarity index 100% rename from Samples/Pedometer/js/Microsoft.WinJS.4.0/fonts/placeholder rename to archived/Pedometer/js/Microsoft.WinJS.4.0/fonts/placeholder diff --git a/Samples/Pedometer/js/Microsoft.WinJS.4.0/js/en-us/placeholder.txt b/archived/Pedometer/js/Microsoft.WinJS.4.0/js/en-us/placeholder.txt similarity index 100% rename from Samples/Pedometer/js/Microsoft.WinJS.4.0/js/en-us/placeholder.txt rename to archived/Pedometer/js/Microsoft.WinJS.4.0/js/en-us/placeholder.txt diff --git a/Samples/Pedometer/js/Package.appxmanifest b/archived/Pedometer/js/Package.appxmanifest similarity index 100% rename from Samples/Pedometer/js/Package.appxmanifest rename to archived/Pedometer/js/Package.appxmanifest diff --git a/Samples/Pedometer/js/Pedometer.jsproj b/archived/Pedometer/js/Pedometer.jsproj similarity index 81% rename from Samples/Pedometer/js/Pedometer.jsproj rename to archived/Pedometer/js/Pedometer.jsproj index 1cc3f9e626..c8d84748b7 100644 --- a/Samples/Pedometer/js/Pedometer.jsproj +++ b/archived/Pedometer/js/Pedometer.jsproj @@ -54,7 +54,7 @@ Designer - + default.html @@ -82,10 +82,10 @@ images\windows-sdk.png - + js\default.js - + css\default.css @@ -94,43 +94,43 @@ - + Microsoft.WinJS.4.0\css\ui-dark.css - + Microsoft.WinJS.4.0\css\ui-light.css - + Microsoft.WinJS.4.0\js\en-US\ui.strings.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense-setup.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense.js - + Microsoft.WinJS.4.0\fonts\Symbols.ttf - + Microsoft.WinJS.4.0\js\base.js - + Microsoft.WinJS.4.0\js\ui.js - + sample-utils\footer.html - + sample-utils\header.html - + sample-utils\sample-utils.js - + sample-utils\scenario-select.css - + sample-utils\scenario-select.html diff --git a/Samples/Pedometer/js/Pedometer.sln b/archived/Pedometer/js/Pedometer.sln similarity index 100% rename from Samples/Pedometer/js/Pedometer.sln rename to archived/Pedometer/js/Pedometer.sln diff --git a/Samples/Pedometer/js/css/placeholder.txt b/archived/Pedometer/js/css/placeholder.txt similarity index 100% rename from Samples/Pedometer/js/css/placeholder.txt rename to archived/Pedometer/js/css/placeholder.txt diff --git a/Samples/Pedometer/js/html/scenario1-events.html b/archived/Pedometer/js/html/scenario1-events.html similarity index 100% rename from Samples/Pedometer/js/html/scenario1-events.html rename to archived/Pedometer/js/html/scenario1-events.html diff --git a/Samples/Pedometer/js/html/scenario2-history.html b/archived/Pedometer/js/html/scenario2-history.html similarity index 100% rename from Samples/Pedometer/js/html/scenario2-history.html rename to archived/Pedometer/js/html/scenario2-history.html diff --git a/Samples/Pedometer/js/html/scenario3-currentStepCount.html b/archived/Pedometer/js/html/scenario3-currentStepCount.html similarity index 100% rename from Samples/Pedometer/js/html/scenario3-currentStepCount.html rename to archived/Pedometer/js/html/scenario3-currentStepCount.html diff --git a/Samples/Pedometer/js/html/scenario4-backgroundPedometer.html b/archived/Pedometer/js/html/scenario4-backgroundPedometer.html similarity index 100% rename from Samples/Pedometer/js/html/scenario4-backgroundPedometer.html rename to archived/Pedometer/js/html/scenario4-backgroundPedometer.html diff --git a/Samples/Pedometer/js/images/placeholder.txt b/archived/Pedometer/js/images/placeholder.txt similarity index 100% rename from Samples/Pedometer/js/images/placeholder.txt rename to archived/Pedometer/js/images/placeholder.txt diff --git a/Samples/Pedometer/js/js/pedometerBackgroundTask.js b/archived/Pedometer/js/js/pedometerBackgroundTask.js similarity index 100% rename from Samples/Pedometer/js/js/pedometerBackgroundTask.js rename to archived/Pedometer/js/js/pedometerBackgroundTask.js diff --git a/Samples/Pedometer/js/js/sample-configuration.js b/archived/Pedometer/js/js/sample-configuration.js similarity index 100% rename from Samples/Pedometer/js/js/sample-configuration.js rename to archived/Pedometer/js/js/sample-configuration.js diff --git a/Samples/Pedometer/js/js/scenario1-events.js b/archived/Pedometer/js/js/scenario1-events.js similarity index 100% rename from Samples/Pedometer/js/js/scenario1-events.js rename to archived/Pedometer/js/js/scenario1-events.js diff --git a/Samples/Pedometer/js/js/scenario2-history.js b/archived/Pedometer/js/js/scenario2-history.js similarity index 100% rename from Samples/Pedometer/js/js/scenario2-history.js rename to archived/Pedometer/js/js/scenario2-history.js diff --git a/Samples/Pedometer/js/js/scenario3-currentStepCount.js b/archived/Pedometer/js/js/scenario3-currentStepCount.js similarity index 100% rename from Samples/Pedometer/js/js/scenario3-currentStepCount.js rename to archived/Pedometer/js/js/scenario3-currentStepCount.js diff --git a/Samples/Pedometer/js/js/scenario4-backgroundPedometer.js b/archived/Pedometer/js/js/scenario4-backgroundPedometer.js similarity index 100% rename from Samples/Pedometer/js/js/scenario4-backgroundPedometer.js rename to archived/Pedometer/js/js/scenario4-backgroundPedometer.js diff --git a/Samples/Pedometer/js/sample-utils/placeholder.txt b/archived/Pedometer/js/sample-utils/placeholder.txt similarity index 100% rename from Samples/Pedometer/js/sample-utils/placeholder.txt rename to archived/Pedometer/js/sample-utils/placeholder.txt diff --git a/archived/Personalization/README.md b/archived/Personalization/README.md new file mode 100644 index 0000000000..827cd1f4a9 --- /dev/null +++ b/archived/Personalization/README.md @@ -0,0 +1,64 @@ +--- +topic: sample +languages: +- js +products: +- windows +- windows-uwp +--- + +# Lock screen personalization sample + +Shows how a developer can use the [LockScreen](http://msdn.microsoft.com/library/windows/apps/br241847) API to set the current user's lock screen image. + +> **Note:** This sample is part of a large collection of UWP feature samples. +> If you are unfamiliar with Git and GitHub, you can download the entire collection as a +> [ZIP file](https://github.com/Microsoft/Windows-universal-samples/archive/master.zip), but be +> sure to unzip everything to access shared dependencies. For more info on working with the ZIP file, +> the samples collection, and GitHub, see [Get the UWP samples from GitHub](https://aka.ms/ovu2uq). +> For more samples, see the [Samples portal](https://aka.ms/winsamples) on the Windows Dev Center. + +This sample uses classes from the [Windows.System.UserProfile](http://msdn.microsoft.com/library/windows/apps/br241881) namespace. +In particular, it uses the **LockScreen** class to set the user's lock screen image. + +The lock screen is the screen shown when you lock your computer, as well as when you reboot the device or wake it from a sleep state. +It is a user-customizable surface that both conveys information and protects the computer against unauthorized use. + +The sample lets you use the item picker to select an image your Pictures library to use as the lock screen image. +If the sample successfully uses the selected image for the lock screen, the image appears in the output area of the sample's main page. + +To learn more about the lock screen, see [Lock screen overview](http://msdn.microsoft.com/library/windows/apps/hh779720). + +## Related topics + +### Reference + +[LockScreen](http://msdn.microsoft.com/library/windows/apps/br241847) +[Windows.System.UserProfile](http://msdn.microsoft.com/library/windows/apps/br241881) + +## System requirements + +**Client:** Windows 10 + +**Server:** Windows Server 2016 Technical Preview + +**Phone:** Not supported + +## Build the sample + +1. If you download the samples ZIP, be sure to unzip the entire archive, not just the folder with the sample you want to build. +2. Start Microsoft Visual Studio 2017 and select **File** \> **Open** \> **Project/Solution**. +3. Starting in the folder where you unzipped the samples, go to the Samples subfolder, then the subfolder for this specific sample, then the subfolder for your preferred language (C++, C#, or JavaScript). Double-click the Visual Studio Solution (.sln) file. +4. Press Ctrl+Shift+B, or select **Build** \> **Build Solution**. + +## Run the sample + +The next steps depend on whether you just want to deploy the sample or you want to both deploy and run it. + +### Deploying the sample + +- Select Build > Deploy Solution. + +### Deploying and running the sample + +- To debug the sample and then run it, press F5 or select Debug > Start Debugging. To run the sample without debugging, press Ctrl+F5 or select Debug > Start Without Debugging. diff --git a/Samples/Personalization/js/Microsoft.WinJS.4.0/css/placeholder.txt b/archived/Personalization/js/Microsoft.WinJS.4.0/css/placeholder.txt similarity index 100% rename from Samples/Personalization/js/Microsoft.WinJS.4.0/css/placeholder.txt rename to archived/Personalization/js/Microsoft.WinJS.4.0/css/placeholder.txt diff --git a/Samples/Personalization/js/Microsoft.WinJS.4.0/fonts/placeholder b/archived/Personalization/js/Microsoft.WinJS.4.0/fonts/placeholder similarity index 100% rename from Samples/Personalization/js/Microsoft.WinJS.4.0/fonts/placeholder rename to archived/Personalization/js/Microsoft.WinJS.4.0/fonts/placeholder diff --git a/Samples/Personalization/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt b/archived/Personalization/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt similarity index 100% rename from Samples/Personalization/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt rename to archived/Personalization/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt diff --git a/Samples/Personalization/js/Package.appxmanifest b/archived/Personalization/js/Package.appxmanifest similarity index 100% rename from Samples/Personalization/js/Package.appxmanifest rename to archived/Personalization/js/Package.appxmanifest diff --git a/Samples/Personalization/js/Personalization.jsproj b/archived/Personalization/js/Personalization.jsproj similarity index 80% rename from Samples/Personalization/js/Personalization.jsproj rename to archived/Personalization/js/Personalization.jsproj index 795dd00c49..781d949176 100644 --- a/Samples/Personalization/js/Personalization.jsproj +++ b/archived/Personalization/js/Personalization.jsproj @@ -54,7 +54,7 @@ Designer - + default.html @@ -79,51 +79,51 @@ images\windows-sdk.png - + js\default.js - + css\default.css - + Microsoft.WinJS.4.0\css\ui-dark.css - + Microsoft.WinJS.4.0\css\ui-light.css - + Microsoft.WinJS.4.0\js\en-US\ui.strings.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense-setup.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense.js - + Microsoft.WinJS.4.0\fonts\Symbols.ttf - + Microsoft.WinJS.4.0\js\base.js - + Microsoft.WinJS.4.0\js\ui.js - + sample-utils\footer.html - + sample-utils\header.html - + sample-utils\sample-utils.js - + sample-utils\scenario-select.css - + sample-utils\scenario-select.html diff --git a/Samples/Personalization/js/Personalization.sln b/archived/Personalization/js/Personalization.sln similarity index 100% rename from Samples/Personalization/js/Personalization.sln rename to archived/Personalization/js/Personalization.sln diff --git a/Samples/Personalization/js/css/placeholder.txt b/archived/Personalization/js/css/placeholder.txt similarity index 100% rename from Samples/Personalization/js/css/placeholder.txt rename to archived/Personalization/js/css/placeholder.txt diff --git a/Samples/Personalization/js/html/SetLockScreenImage.html b/archived/Personalization/js/html/SetLockScreenImage.html similarity index 100% rename from Samples/Personalization/js/html/SetLockScreenImage.html rename to archived/Personalization/js/html/SetLockScreenImage.html diff --git a/Samples/Personalization/js/images/placeholder.txt b/archived/Personalization/js/images/placeholder.txt similarity index 100% rename from Samples/Personalization/js/images/placeholder.txt rename to archived/Personalization/js/images/placeholder.txt diff --git a/Samples/Personalization/js/js/SetLockScreenImage.js b/archived/Personalization/js/js/SetLockScreenImage.js similarity index 100% rename from Samples/Personalization/js/js/SetLockScreenImage.js rename to archived/Personalization/js/js/SetLockScreenImage.js diff --git a/Samples/Personalization/js/js/sample-configuration.js b/archived/Personalization/js/js/sample-configuration.js similarity index 100% rename from Samples/Personalization/js/js/sample-configuration.js rename to archived/Personalization/js/js/sample-configuration.js diff --git a/Samples/Personalization/js/sample-utils/placeholder.txt b/archived/Personalization/js/sample-utils/placeholder.txt similarity index 100% rename from Samples/Personalization/js/sample-utils/placeholder.txt rename to archived/Personalization/js/sample-utils/placeholder.txt diff --git a/archived/PlayReady/README.md b/archived/PlayReady/README.md new file mode 100644 index 0000000000..a9066b9f4c --- /dev/null +++ b/archived/PlayReady/README.md @@ -0,0 +1,114 @@ +--- +topic: sample +languages: +- js +products: +- windows +- windows-uwp +--- + +# PlayReady sample + +Shows several common scenarios to playback protected content with PlayReady. + +> **Note:** This sample is part of a large collection of UWP feature samples. +> If you are unfamiliar with Git and GitHub, you can download the entire collection as a +> [ZIP file](https://github.com/Microsoft/Windows-universal-samples/archive/master.zip), but be +> sure to unzip everything to access shared dependencies. For more info on working with the ZIP file, +> the samples collection, and GitHub, see [Get the UWP samples from GitHub](https://aka.ms/ovu2uq). +> For more samples, see the [Samples portal](https://aka.ms/winsamples) on the Windows Dev Center. + +***C# Scenarios*** + +**Scenario 1: Reactive License Request(C#):** +This example shows the basics of configuring the MediaElement's MediaProtectionManager property to support PlayReady and reactively handle license service requests. In this configuration license service requests are triggered automatically by PlayReady when the DRM does not have a media license available. + +**Scenario 2: Proactive License Request(C#):** +This example shows how an application can actively manage DRM license requests and the individualization process. Individualization is a onetime configuration process that enables an application to able to make license requests for protected playback. + +**Scenario 3: Hardware DRM(C#):** +This example shows how to configure a device to use either software or hardware DRM. Hardware DRM provides higher security and performance whereas software based DRM provides better compatibility on older devices. + +**Scenario 4: Secure Stop(C#):** +Secure Stop enables a service to better manage concurrent streams for an account. The application can send a secure stop message from PlayReady that notifies a service that playback has stopped and a temporary playback license is no longer available. + +***JavaScript Scenarios*** + +**Scenario 1: Reactive License Request(JS):** +This example shows the basics of configuring the MediaElement's MediaProtectionManager property to support PlayReady and reactively handle license service requests. License service requests are triggered automatically by when PlayReady does not have a media license available. + +**Scenario 2: Reactive License Request(JS):** +This example shows how an application can actively manage DRM license requests and the individualization process. + +**Scenario 3: License Request via EME(JS):** +This example uses W3C standards based Encrypted Media Extensions (EME) to enable protected playback. This is useful for Hosted Web Applications where protected playback is configured the same way it would be in the browser. + +**Scenario 4: Secure Stop EME(JS):** +This example uses EME for requesting a license and sending a secure stop message. This sample could also be used to provide secure stop capabilities in a web application in Microsoft Edge. + + + +**Note** The Windows universal samples require Visual Studio 2017 to build and Windows 10 to execute. + +To obtain information about Windows 10 development, go to the [Windows Dev Center](https://dev.windows.com) + +To obtain information about Microsoft Visual Studio and the tools for developing Windows apps, go to [Visual Studio](http://go.microsoft.com/fwlink/?LinkID=532422) + +## Related topics + +### Samples + +[AdaptiveStreaming](../AdaptiveStreaming) + +### Reference + +[Windows.Media.Protection namespace](https://msdn.microsoft.com/library/windows/apps/br207056.aspx) +[Windows.Media.Protection.PlayReady namespace](https://msdn.microsoft.com/library/windows/apps/dn986454.aspx) +[Windows.Media.Streaming.Adaptive namespace](https://msdn.microsoft.com/library/windows/apps/windows.media.streaming.adaptive.aspx) + +### Conceptual + +[PlayReady DRM](https://msdn.microsoft.com/windows/uwp/audio-video-camera/playready-client-sdk) +[Hardware DRM](https://msdn.microsoft.com/windows/uwp/audio-video-camera/hardware-drm) +[Adaptive Streaming with PlayReady](https://msdn.microsoft.com/windows/uwp/audio-video-camera/adaptive-streaming-with-playready) + +## System requirements + +**Client:** Windows 10 + +**Phone:** Windows 10 + +**XBox One:** +In order to use PlayReady DRM within a Universal Application on Xbox One, an additional needs to be added to the app manifest. The capability will need to be added manually to the manifest as a setting is not yet available from within the App Manifest Designer. + +#### To configure: #### +- Right-click on the package.appxmanifest from Visual Studio and edit with the XML (text) Editor. +- Add the following and save: + +``` + + ... + + +``` + +## Build the sample + +1. If you download the samples ZIP, be sure to unzip the entire archive, not just the folder with the sample you want to build. +2. Start Microsoft Visual Studio 2017 and select **File** \> **Open** \> **Project/Solution**. +3. Starting in the folder where you unzipped the samples, go to the Samples subfolder, then the subfolder for this specific sample, then the subfolder for your preferred language (C++, C#, or JavaScript). Double-click the Visual Studio Solution (.sln) file. +4. Press Ctrl+Shift+B, or select **Build** \> **Build Solution**. + +## Run the sample + +**Note** Ensure that the CPU is selected that matches the machine running the sample. For example, if its Windows on x64 then x64 needs to be selected. If it does not match than the Protected Media Path will not work and playback will fail. + +The next steps depend on whether you just want to deploy the sample or you want to both deploy and run it. + +### Deploying the sample + +- Select Build > Deploy Solution. + +### Deploying and running the sample + +- To debug the sample and then run it, press F5 or select Debug > Start Debugging. To run the sample without debugging, press Ctrl+F5 or select Debug > Start Without Debugging. diff --git a/Samples/PlayReady/js/Microsoft.WinJS.4.0/css/placeholder.txt b/archived/PlayReady/js/Microsoft.WinJS.4.0/css/placeholder.txt similarity index 100% rename from Samples/PlayReady/js/Microsoft.WinJS.4.0/css/placeholder.txt rename to archived/PlayReady/js/Microsoft.WinJS.4.0/css/placeholder.txt diff --git a/Samples/PlayReady/js/Microsoft.WinJS.4.0/fonts/placeholder b/archived/PlayReady/js/Microsoft.WinJS.4.0/fonts/placeholder similarity index 100% rename from Samples/PlayReady/js/Microsoft.WinJS.4.0/fonts/placeholder rename to archived/PlayReady/js/Microsoft.WinJS.4.0/fonts/placeholder diff --git a/Samples/PlayReady/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt b/archived/PlayReady/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt similarity index 100% rename from Samples/PlayReady/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt rename to archived/PlayReady/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt diff --git a/Samples/PlayReady/js/PlayReady.jsproj b/archived/PlayReady/js/PlayReady.jsproj similarity index 83% rename from Samples/PlayReady/js/PlayReady.jsproj rename to archived/PlayReady/js/PlayReady.jsproj index 7b62d497a8..985d96f989 100644 --- a/Samples/PlayReady/js/PlayReady.jsproj +++ b/archived/PlayReady/js/PlayReady.jsproj @@ -68,7 +68,7 @@ - + default.html @@ -92,49 +92,49 @@ images\windows-sdk.png - + js\default.js - + css\default.css - + Microsoft.WinJS.4.0\css\ui-dark.css - + Microsoft.WinJS.4.0\css\ui-light.css - + Microsoft.WinJS.4.0\js\en-US\ui.strings.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense-setup.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense.js - + Microsoft.WinJS.4.0\fonts\Symbols.ttf - + Microsoft.WinJS.4.0\js\base.js - + Microsoft.WinJS.4.0\js\ui.js - + sample-utils\footer.html - + sample-utils\header.html - + sample-utils\sample-utils.js - + sample-utils\scenario-select.css - + sample-utils\scenario-select.html diff --git a/Samples/PlayReady/js/PlayReady.sln b/archived/PlayReady/js/PlayReady.sln similarity index 100% rename from Samples/PlayReady/js/PlayReady.sln rename to archived/PlayReady/js/PlayReady.sln diff --git a/Samples/PlayReady/js/css/scenario.css b/archived/PlayReady/js/css/scenario.css similarity index 100% rename from Samples/PlayReady/js/css/scenario.css rename to archived/PlayReady/js/css/scenario.css diff --git a/Samples/PlayReady/js/html/scenario1_reactive.html b/archived/PlayReady/js/html/scenario1_reactive.html similarity index 100% rename from Samples/PlayReady/js/html/scenario1_reactive.html rename to archived/PlayReady/js/html/scenario1_reactive.html diff --git a/Samples/PlayReady/js/html/scenario2_proactive.html b/archived/PlayReady/js/html/scenario2_proactive.html similarity index 100% rename from Samples/PlayReady/js/html/scenario2_proactive.html rename to archived/PlayReady/js/html/scenario2_proactive.html diff --git a/Samples/PlayReady/js/html/scenario3_eme.html b/archived/PlayReady/js/html/scenario3_eme.html similarity index 100% rename from Samples/PlayReady/js/html/scenario3_eme.html rename to archived/PlayReady/js/html/scenario3_eme.html diff --git a/Samples/PlayReady/js/html/scenario4_eme_stop.html b/archived/PlayReady/js/html/scenario4_eme_stop.html similarity index 100% rename from Samples/PlayReady/js/html/scenario4_eme_stop.html rename to archived/PlayReady/js/html/scenario4_eme_stop.html diff --git a/Samples/PlayReady/js/images/placeholder.txt b/archived/PlayReady/js/images/placeholder.txt similarity index 100% rename from Samples/PlayReady/js/images/placeholder.txt rename to archived/PlayReady/js/images/placeholder.txt diff --git a/Samples/PlayReady/js/js/playreadyeme.js b/archived/PlayReady/js/js/playreadyeme.js similarity index 100% rename from Samples/PlayReady/js/js/playreadyeme.js rename to archived/PlayReady/js/js/playreadyeme.js diff --git a/Samples/PlayReady/js/js/playreadyuwp.js b/archived/PlayReady/js/js/playreadyuwp.js similarity index 100% rename from Samples/PlayReady/js/js/playreadyuwp.js rename to archived/PlayReady/js/js/playreadyuwp.js diff --git a/Samples/PlayReady/js/js/sample-configuration.js b/archived/PlayReady/js/js/sample-configuration.js similarity index 100% rename from Samples/PlayReady/js/js/sample-configuration.js rename to archived/PlayReady/js/js/sample-configuration.js diff --git a/Samples/PlayReady/js/js/scenario1_reactive.js b/archived/PlayReady/js/js/scenario1_reactive.js similarity index 100% rename from Samples/PlayReady/js/js/scenario1_reactive.js rename to archived/PlayReady/js/js/scenario1_reactive.js diff --git a/Samples/PlayReady/js/js/scenario2_proactive.js b/archived/PlayReady/js/js/scenario2_proactive.js similarity index 100% rename from Samples/PlayReady/js/js/scenario2_proactive.js rename to archived/PlayReady/js/js/scenario2_proactive.js diff --git a/Samples/PlayReady/js/js/scenario3_eme.js b/archived/PlayReady/js/js/scenario3_eme.js similarity index 100% rename from Samples/PlayReady/js/js/scenario3_eme.js rename to archived/PlayReady/js/js/scenario3_eme.js diff --git a/Samples/PlayReady/js/js/scenario4_eme_stop.js b/archived/PlayReady/js/js/scenario4_eme_stop.js similarity index 100% rename from Samples/PlayReady/js/js/scenario4_eme_stop.js rename to archived/PlayReady/js/js/scenario4_eme_stop.js diff --git a/Samples/PlayReady/js/package.appxmanifest b/archived/PlayReady/js/package.appxmanifest similarity index 100% rename from Samples/PlayReady/js/package.appxmanifest rename to archived/PlayReady/js/package.appxmanifest diff --git a/Samples/PlayReady/js/sample-utils/placeholder.txt b/archived/PlayReady/js/sample-utils/placeholder.txt similarity index 100% rename from Samples/PlayReady/js/sample-utils/placeholder.txt rename to archived/PlayReady/js/sample-utils/placeholder.txt diff --git a/archived/Playlists/README.md b/archived/Playlists/README.md new file mode 100644 index 0000000000..082db6a429 --- /dev/null +++ b/archived/Playlists/README.md @@ -0,0 +1,80 @@ +--- +topic: sample +languages: +- js +products: +- windows +- windows-uwp +--- + +# Playlists sample + +Shows how to create, save, display, and edit a playlist of audio files. + +> **Note:** This sample is part of a large collection of UWP feature samples. +> If you are unfamiliar with Git and GitHub, you can download the entire collection as a +> [ZIP file](https://github.com/Microsoft/Windows-universal-samples/archive/master.zip), but be +> sure to unzip everything to access shared dependencies. For more info on working with the ZIP file, +> the samples collection, and GitHub, see [Get the UWP samples from GitHub](https://aka.ms/ovu2uq). +> For more samples, see the [Samples portal](https://aka.ms/winsamples) on the Windows Dev Center. + +This sample uses classes that are in the [Windows.Media.Playlists](http://msdn.microsoft.com/library/windows/apps/br206938) namespace. It provides five scenarios: + +1. **Create and save a playlist from a set of audio files.** + + This creates a new [Playlist](http://msdn.microsoft.com/library/windows/apps/br206904) object and saves it using [SaveAsAsync](http://msdn.microsoft.com/library/windows/apps/hh768260). + +2. **Display the contents of an existing playlist (WPL, ZPL, M3U).** + + This loads a [Playlist](http://msdn.microsoft.com/library/windows/apps/br206904) object using [LoadAsync](http://msdn.microsoft.com/library/windows/apps/br206934), and obtains the properties of each file in [Playlist.Files](http://msdn.microsoft.com/library/windows/apps/br206933) using [Windows.Storage.FileProperties.StorageItemContentProperties.GetMusicPropertiesAsync](http://msdn.microsoft.com/library/windows/apps/hh770649). + +3. **Insert an item at the end of an existing playlist (WPL, ZPL, M3U).** + + This loads a [Playlist](http://msdn.microsoft.com/library/windows/apps/br206904) object using [LoadAsync](http://msdn.microsoft.com/library/windows/apps/br206934), and appends a file to [Playlist.Files](http://msdn.microsoft.com/library/windows/apps/br206933). + +4. **Remove an item from the end of an existing playlist (WPL, ZPL, M3U).** + + This loads a [Playlist](http://msdn.microsoft.com/library/windows/apps/br206904) object using [LoadAsync](http://msdn.microsoft.com/library/windows/apps/br206934), and removes the file at the end of [Playlist.Files](http://msdn.microsoft.com/library/windows/apps/br206933). + +5. **Remove all items from an existing playlist (WPL, ZPL, M3U).** + + This loads a [Playlist](http://msdn.microsoft.com/library/windows/apps/br206904) object using [LoadAsync](http://msdn.microsoft.com/library/windows/apps/br206934), and clears the files in [Playlist.Files](http://msdn.microsoft.com/library/windows/apps/br206933). + +**Note** The Universal Windows app samples require Visual Studio 2017 to build and Windows 10 to execute. + +To obtain information about Windows 10 development, go to the [Windows Dev Center](http://go.microsoft.com/fwlink/?LinkID=532421) + +To obtain information about Microsoft Visual Studio and the tools for developing Windows apps, go to [Visual Studio](http://go.microsoft.com/fwlink/?LinkID=532422) + +## Related topics + +### Reference + +[Playlists namespace](http://msdn.microsoft.com/library/windows/apps/br206938) + +## System requirements + +**Client:** Windows 10 + +**Server:** Windows Server 2016 Technical Preview + +**Phone:** Not supported + +## Build the sample + +1. If you download the samples ZIP, be sure to unzip the entire archive, not just the folder with the sample you want to build. +2. Start Microsoft Visual Studio 2017 and select **File** \> **Open** \> **Project/Solution**. +3. Starting in the folder where you unzipped the samples, go to the Samples subfolder, then the subfolder for this specific sample, then the subfolder for your preferred language (C++, C#, or JavaScript). Double-click the Visual Studio Solution (.sln) file. +4. Press Ctrl+Shift+B, or select **Build** \> **Build Solution**. + +## Run the sample + +The next steps depend on whether you just want to deploy the sample or you want to both deploy and run it. + +### Deploying the sample + +- Select Build > Deploy Solution. + +### Deploying and running the sample + +- To debug the sample and then run it, press F5 or select Debug > Start Debugging. To run the sample without debugging, press Ctrl+F5 or select Debug > Start Without Debugging. diff --git a/Samples/Playlists/js/Microsoft.WinJS.4.0/css/placeholder.txt b/archived/Playlists/js/Microsoft.WinJS.4.0/css/placeholder.txt similarity index 100% rename from Samples/Playlists/js/Microsoft.WinJS.4.0/css/placeholder.txt rename to archived/Playlists/js/Microsoft.WinJS.4.0/css/placeholder.txt diff --git a/Samples/Playlists/js/Microsoft.WinJS.4.0/fonts/placeholder b/archived/Playlists/js/Microsoft.WinJS.4.0/fonts/placeholder similarity index 100% rename from Samples/Playlists/js/Microsoft.WinJS.4.0/fonts/placeholder rename to archived/Playlists/js/Microsoft.WinJS.4.0/fonts/placeholder diff --git a/Samples/Playlists/js/Microsoft.WinJS.4.0/js/en-us/placeholder.txt b/archived/Playlists/js/Microsoft.WinJS.4.0/js/en-us/placeholder.txt similarity index 100% rename from Samples/Playlists/js/Microsoft.WinJS.4.0/js/en-us/placeholder.txt rename to archived/Playlists/js/Microsoft.WinJS.4.0/js/en-us/placeholder.txt diff --git a/Samples/Playlists/js/Package.appxmanifest b/archived/Playlists/js/Package.appxmanifest similarity index 100% rename from Samples/Playlists/js/Package.appxmanifest rename to archived/Playlists/js/Package.appxmanifest diff --git a/Samples/Playlists/js/Playlists.jsproj b/archived/Playlists/js/Playlists.jsproj similarity index 81% rename from Samples/Playlists/js/Playlists.jsproj rename to archived/Playlists/js/Playlists.jsproj index 5c5980b11d..0b7d5ad4ad 100644 --- a/Samples/Playlists/js/Playlists.jsproj +++ b/archived/Playlists/js/Playlists.jsproj @@ -54,7 +54,7 @@ Designer - + default.html @@ -83,10 +83,10 @@ images\windows-sdk.png - + js\default.js - + css\default.css @@ -95,43 +95,43 @@ - + Microsoft.WinJS.4.0\css\ui-dark.css - + Microsoft.WinJS.4.0\css\ui-light.css - + Microsoft.WinJS.4.0\js\en-US\ui.strings.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense-setup.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense.js - + Microsoft.WinJS.4.0\fonts\Symbols.ttf - + Microsoft.WinJS.4.0\js\base.js - + Microsoft.WinJS.4.0\js\ui.js - + sample-utils\footer.html - + sample-utils\header.html - + sample-utils\sample-utils.js - + sample-utils\scenario-select.css - + sample-utils\scenario-select.html diff --git a/Samples/Playlists/js/Playlists.sln b/archived/Playlists/js/Playlists.sln similarity index 100% rename from Samples/Playlists/js/Playlists.sln rename to archived/Playlists/js/Playlists.sln diff --git a/Samples/Playlists/js/css/placeholder.txt b/archived/Playlists/js/css/placeholder.txt similarity index 100% rename from Samples/Playlists/js/css/placeholder.txt rename to archived/Playlists/js/css/placeholder.txt diff --git a/Samples/Playlists/js/html/scenario1-create.html b/archived/Playlists/js/html/scenario1-create.html similarity index 100% rename from Samples/Playlists/js/html/scenario1-create.html rename to archived/Playlists/js/html/scenario1-create.html diff --git a/Samples/Playlists/js/html/scenario2-display.html b/archived/Playlists/js/html/scenario2-display.html similarity index 100% rename from Samples/Playlists/js/html/scenario2-display.html rename to archived/Playlists/js/html/scenario2-display.html diff --git a/Samples/Playlists/js/html/scenario3-add.html b/archived/Playlists/js/html/scenario3-add.html similarity index 100% rename from Samples/Playlists/js/html/scenario3-add.html rename to archived/Playlists/js/html/scenario3-add.html diff --git a/Samples/Playlists/js/html/scenario4-remove.html b/archived/Playlists/js/html/scenario4-remove.html similarity index 100% rename from Samples/Playlists/js/html/scenario4-remove.html rename to archived/Playlists/js/html/scenario4-remove.html diff --git a/Samples/Playlists/js/html/scenario5-clear.html b/archived/Playlists/js/html/scenario5-clear.html similarity index 100% rename from Samples/Playlists/js/html/scenario5-clear.html rename to archived/Playlists/js/html/scenario5-clear.html diff --git a/Samples/Playlists/js/images/placeholder.txt b/archived/Playlists/js/images/placeholder.txt similarity index 100% rename from Samples/Playlists/js/images/placeholder.txt rename to archived/Playlists/js/images/placeholder.txt diff --git a/Samples/Playlists/js/js/sample-configuration.js b/archived/Playlists/js/js/sample-configuration.js similarity index 100% rename from Samples/Playlists/js/js/sample-configuration.js rename to archived/Playlists/js/js/sample-configuration.js diff --git a/Samples/Playlists/js/js/scenario1-create.js b/archived/Playlists/js/js/scenario1-create.js similarity index 100% rename from Samples/Playlists/js/js/scenario1-create.js rename to archived/Playlists/js/js/scenario1-create.js diff --git a/Samples/Playlists/js/js/scenario2-display.js b/archived/Playlists/js/js/scenario2-display.js similarity index 100% rename from Samples/Playlists/js/js/scenario2-display.js rename to archived/Playlists/js/js/scenario2-display.js diff --git a/Samples/Playlists/js/js/scenario3-add.js b/archived/Playlists/js/js/scenario3-add.js similarity index 100% rename from Samples/Playlists/js/js/scenario3-add.js rename to archived/Playlists/js/js/scenario3-add.js diff --git a/Samples/Playlists/js/js/scenario4-remove.js b/archived/Playlists/js/js/scenario4-remove.js similarity index 100% rename from Samples/Playlists/js/js/scenario4-remove.js rename to archived/Playlists/js/js/scenario4-remove.js diff --git a/Samples/Playlists/js/js/scenario5-clear.js b/archived/Playlists/js/js/scenario5-clear.js similarity index 100% rename from Samples/Playlists/js/js/scenario5-clear.js rename to archived/Playlists/js/js/scenario5-clear.js diff --git a/Samples/Playlists/js/sample-utils/placeholder.txt b/archived/Playlists/js/sample-utils/placeholder.txt similarity index 100% rename from Samples/Playlists/js/sample-utils/placeholder.txt rename to archived/Playlists/js/sample-utils/placeholder.txt diff --git a/archived/PosPrinter/README.md b/archived/PosPrinter/README.md new file mode 100644 index 0000000000..bb354773da --- /dev/null +++ b/archived/PosPrinter/README.md @@ -0,0 +1,70 @@ +--- +topic: sample +languages: +- js +products: +- windows +- windows-uwp +--- + +# POS printer sample + +Shows how to use the [Windows.Devices.PointOfService.PosPrinter](http://msdn.microsoft.com/library/windows/apps/dn298071) API. + +> **Note:** This sample is part of a large collection of UWP feature samples. +> If you are unfamiliar with Git and GitHub, you can download the entire collection as a +> [ZIP file](https://github.com/Microsoft/Windows-universal-samples/archive/master.zip), but be +> sure to unzip everything to access shared dependencies. For more info on working with the ZIP file, +> the samples collection, and GitHub, see [Get the UWP samples from GitHub](https://aka.ms/ovu2uq). +> For more samples, see the [Samples portal](https://aka.ms/winsamples) on the Windows Dev Center. + +Specifically, this sample shows the following: + +* Finding, claiming, and enabling a receipt printer. +* Printing to a claimed receipt printer. +* Ensuring the paper cutter does not cut the printed portion of the receipt. +* Managing competing claims on a receipt printer. + +**Note** The Windows universal samples require Visual Studio 2017 to build and Windows 10 to execute. + +To obtain information about Windows 10 development, go to the [Windows Dev Center](http://go.microsoft.com/fwlink/?LinkID=532421) + +To obtain information about Microsoft Visual Studio and the tools for developing Windows apps, go to [Visual Studio](http://go.microsoft.com/fwlink/?LinkID=532422) + +## Related topics + +### Samples + +[POS Printer sample](/Samples/PosPrinter) + +### Reference + +[Windows.Devices.PointOfService](http://msdn.microsoft.com/library/windows/apps/dn298071) +[Windows app samples](http://go.microsoft.com/fwlink/p/?LinkID=227694) + +## System requirements + +**Client:** Windows 10 + +**Server:** Windows Server 2016 Technical Preview + +**Phone:** Windows 10 + +## Build the sample + +1. If you download the samples ZIP, be sure to unzip the entire archive, not just the folder with the sample you want to build. +2. Start Microsoft Visual Studio 2017 and select **File** \> **Open** \> **Project/Solution**. +3. Starting in the folder where you unzipped the samples, go to the Samples subfolder, then the subfolder for this specific sample, then the subfolder for your preferred language (C++, C#, or JavaScript). Double-click the Visual Studio Solution (.sln) file. +4. Press Ctrl+Shift+B, or select **Build** \> **Build Solution**. + +## Run the sample + +The next steps depend on whether you just want to deploy the sample or you want to both deploy and run it. + +### Deploying the sample + +- Select Build > Deploy Solution. + +### Deploying and running the sample + +- To debug the sample and then run it, press F5 or select Debug > Start Debugging. To run the sample without debugging, press Ctrl+F5 or selectDebug > Start Without Debugging. diff --git a/Samples/PosPrinter/js/Microsoft.WinJS.4.0/css/placeholder.txt b/archived/PosPrinter/js/Microsoft.WinJS.4.0/css/placeholder.txt similarity index 100% rename from Samples/PosPrinter/js/Microsoft.WinJS.4.0/css/placeholder.txt rename to archived/PosPrinter/js/Microsoft.WinJS.4.0/css/placeholder.txt diff --git a/Samples/PosPrinter/js/Microsoft.WinJS.4.0/fonts/placeholder b/archived/PosPrinter/js/Microsoft.WinJS.4.0/fonts/placeholder similarity index 100% rename from Samples/PosPrinter/js/Microsoft.WinJS.4.0/fonts/placeholder rename to archived/PosPrinter/js/Microsoft.WinJS.4.0/fonts/placeholder diff --git a/Samples/PosPrinter/js/Microsoft.WinJS.4.0/js/en-us/placeholder.txt b/archived/PosPrinter/js/Microsoft.WinJS.4.0/js/en-us/placeholder.txt similarity index 100% rename from Samples/PosPrinter/js/Microsoft.WinJS.4.0/js/en-us/placeholder.txt rename to archived/PosPrinter/js/Microsoft.WinJS.4.0/js/en-us/placeholder.txt diff --git a/Samples/PosPrinter/js/Package.appxmanifest b/archived/PosPrinter/js/Package.appxmanifest similarity index 100% rename from Samples/PosPrinter/js/Package.appxmanifest rename to archived/PosPrinter/js/Package.appxmanifest diff --git a/Samples/PosPrinter/js/PosPrinter.jsproj b/archived/PosPrinter/js/PosPrinter.jsproj similarity index 81% rename from Samples/PosPrinter/js/PosPrinter.jsproj rename to archived/PosPrinter/js/PosPrinter.jsproj index 4caaec3df8..56bab83420 100644 --- a/Samples/PosPrinter/js/PosPrinter.jsproj +++ b/archived/PosPrinter/js/PosPrinter.jsproj @@ -54,7 +54,7 @@ Designer - + default.html @@ -84,53 +84,53 @@ images\windows-sdk.png - + js\default.js - + css\default.css - + Microsoft.WinJS.4.0\css\ui-dark.css - + Microsoft.WinJS.4.0\css\ui-light.css - + Microsoft.WinJS.4.0\js\en-US\ui.strings.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense-setup.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense.js - + Microsoft.WinJS.4.0\fonts\Symbols.ttf - + Microsoft.WinJS.4.0\js\base.js - + Microsoft.WinJS.4.0\js\ui.js - + sample-utils\footer.html - + sample-utils\header.html - + sample-utils\sample-utils.js - + sample-utils\scenario-select.css - + sample-utils\scenario-select.html diff --git a/Samples/PosPrinter/js/PosPrinter.sln b/archived/PosPrinter/js/PosPrinter.sln similarity index 100% rename from Samples/PosPrinter/js/PosPrinter.sln rename to archived/PosPrinter/js/PosPrinter.sln diff --git a/Samples/PosPrinter/js/css/Scenario2_ErrorHandling.css b/archived/PosPrinter/js/css/Scenario2_ErrorHandling.css similarity index 100% rename from Samples/PosPrinter/js/css/Scenario2_ErrorHandling.css rename to archived/PosPrinter/js/css/Scenario2_ErrorHandling.css diff --git a/Samples/PosPrinter/js/html/Scenario1_FindClaimEnable.html b/archived/PosPrinter/js/html/Scenario1_FindClaimEnable.html similarity index 100% rename from Samples/PosPrinter/js/html/Scenario1_FindClaimEnable.html rename to archived/PosPrinter/js/html/Scenario1_FindClaimEnable.html diff --git a/Samples/PosPrinter/js/html/Scenario2_PrintReceipt.html b/archived/PosPrinter/js/html/Scenario2_PrintReceipt.html similarity index 100% rename from Samples/PosPrinter/js/html/Scenario2_PrintReceipt.html rename to archived/PosPrinter/js/html/Scenario2_PrintReceipt.html diff --git a/Samples/PosPrinter/js/html/Scenario3_MultipleClaims.html b/archived/PosPrinter/js/html/Scenario3_MultipleClaims.html similarity index 100% rename from Samples/PosPrinter/js/html/Scenario3_MultipleClaims.html rename to archived/PosPrinter/js/html/Scenario3_MultipleClaims.html diff --git a/Samples/PosPrinter/js/images/placeholder.txt b/archived/PosPrinter/js/images/placeholder.txt similarity index 100% rename from Samples/PosPrinter/js/images/placeholder.txt rename to archived/PosPrinter/js/images/placeholder.txt diff --git a/Samples/PosPrinter/js/js/Scenario1_FindClaimEnable.js b/archived/PosPrinter/js/js/Scenario1_FindClaimEnable.js similarity index 100% rename from Samples/PosPrinter/js/js/Scenario1_FindClaimEnable.js rename to archived/PosPrinter/js/js/Scenario1_FindClaimEnable.js diff --git a/Samples/PosPrinter/js/js/Scenario1_ReceiptPrinter.js b/archived/PosPrinter/js/js/Scenario1_ReceiptPrinter.js similarity index 100% rename from Samples/PosPrinter/js/js/Scenario1_ReceiptPrinter.js rename to archived/PosPrinter/js/js/Scenario1_ReceiptPrinter.js diff --git a/Samples/PosPrinter/js/js/Scenario2_PrintReceipt.js b/archived/PosPrinter/js/js/Scenario2_PrintReceipt.js similarity index 100% rename from Samples/PosPrinter/js/js/Scenario2_PrintReceipt.js rename to archived/PosPrinter/js/js/Scenario2_PrintReceipt.js diff --git a/Samples/PosPrinter/js/js/Scenario3_MultipleClaims.js b/archived/PosPrinter/js/js/Scenario3_MultipleClaims.js similarity index 100% rename from Samples/PosPrinter/js/js/Scenario3_MultipleClaims.js rename to archived/PosPrinter/js/js/Scenario3_MultipleClaims.js diff --git a/Samples/PosPrinter/js/js/sample-configuration.js b/archived/PosPrinter/js/js/sample-configuration.js similarity index 100% rename from Samples/PosPrinter/js/js/sample-configuration.js rename to archived/PosPrinter/js/js/sample-configuration.js diff --git a/Samples/PosPrinter/js/sample-utils/placeholder.txt b/archived/PosPrinter/js/sample-utils/placeholder.txt similarity index 100% rename from Samples/PosPrinter/js/sample-utils/placeholder.txt rename to archived/PosPrinter/js/sample-utils/placeholder.txt diff --git a/archived/Printing/README.md b/archived/Printing/README.md new file mode 100644 index 0000000000..1a2716a4a1 --- /dev/null +++ b/archived/Printing/README.md @@ -0,0 +1,54 @@ +--- +topic: sample +languages: +- js +products: +- windows +- windows-uwp +--- + +# Printing sample + +Shows how apps can add support for printing on Windows. + +> **Note:** This sample is part of a large collection of UWP feature samples. +> If you are unfamiliar with Git and GitHub, you can download the entire collection as a +> [ZIP file](https://github.com/Microsoft/Windows-universal-samples/archive/master.zip), but be +> sure to unzip everything to access shared dependencies. For more info on working with the ZIP file, +> the samples collection, and GitHub, see [Get the UWP samples from GitHub](https://aka.ms/ovu2uq). +> For more samples, see the [Samples portal](https://aka.ms/winsamples) on the Windows Dev Center. + +The scenarios demonstrated in this sample include: + +- Adding support for printing using app UX +- Customizing the print experience by changing how the printer settings are shown to the user +- Using a custom print template to print a range of pages +- Printing alternate content that is not part of the current document +- Disabling print preview +- Removing the Print button if the device does not support printing + +## Related samples + +[Coloring Book app sample](https://github.com/Microsoft/Windows-appsample-coloringbook) + +System requirements +------------------- + +**Client:** Windows 10 build 14295 + +**Server:** Windows Server 2016 Technical Preview + +**Phone:** Windows 10 build 14295 + +Build the sample +---------------- + +1. If you download the samples ZIP, be sure to unzip the entire archive, not just the folder with the sample you want to build. +2. Start Microsoft Visual Studio 2017 and select **File** \> **Open** \> **Project/Solution**. +3. Starting in the folder where you unzipped the samples, go to the Samples subfolder, then the subfolder for this specific sample, then the subfolder for your preferred language (C++, C#, or JavaScript). Double-click the Visual Studio Solution (.sln) file. +4. Press Ctrl+Shift+B, or select **Build** \> **Build Solution**. + +Run the sample +-------------- + +To debug the app and then run it, press F5 or use **Debug** \> **Start Debugging**. To run the app without debugging, press Ctrl+F5 or use **Debug** \> **Start Without Debugging**. diff --git a/Samples/Printing/js/Microsoft.WinJS.4.0/css/placeholder.txt b/archived/Printing/js/Microsoft.WinJS.4.0/css/placeholder.txt similarity index 100% rename from Samples/Printing/js/Microsoft.WinJS.4.0/css/placeholder.txt rename to archived/Printing/js/Microsoft.WinJS.4.0/css/placeholder.txt diff --git a/Samples/Printing/js/Microsoft.WinJS.4.0/fonts/placeholder b/archived/Printing/js/Microsoft.WinJS.4.0/fonts/placeholder similarity index 100% rename from Samples/Printing/js/Microsoft.WinJS.4.0/fonts/placeholder rename to archived/Printing/js/Microsoft.WinJS.4.0/fonts/placeholder diff --git a/Samples/Printing/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt b/archived/Printing/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt similarity index 100% rename from Samples/Printing/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt rename to archived/Printing/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt diff --git a/Samples/Printing/js/Package.appxmanifest b/archived/Printing/js/Package.appxmanifest similarity index 100% rename from Samples/Printing/js/Package.appxmanifest rename to archived/Printing/js/Package.appxmanifest diff --git a/Samples/Printing/js/Printing.jsproj b/archived/Printing/js/Printing.jsproj similarity index 81% rename from Samples/Printing/js/Printing.jsproj rename to archived/Printing/js/Printing.jsproj index 660e298d19..bd67445379 100644 --- a/Samples/Printing/js/Printing.jsproj +++ b/archived/Printing/js/Printing.jsproj @@ -55,7 +55,7 @@ Designer - + default.html @@ -83,52 +83,52 @@ images\windows-sdk.png - + js\default.js - + css\default.css - + Microsoft.WinJS.4.0\css\ui-dark.css - + Microsoft.WinJS.4.0\css\ui-light.css - + Microsoft.WinJS.4.0\js\en-US\ui.strings.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense-setup.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense.js - + Microsoft.WinJS.4.0\fonts\Symbols.ttf - + Microsoft.WinJS.4.0\js\base.js - + Microsoft.WinJS.4.0\js\ui.js - + sample-utils\footer.html - + sample-utils\header.html - + sample-utils\sample-utils.js - + sample-utils\scenario-select.css - + sample-utils\scenario-select.html diff --git a/Samples/Printing/js/Printing.sln b/archived/Printing/js/Printing.sln similarity index 100% rename from Samples/Printing/js/Printing.sln rename to archived/Printing/js/Printing.sln diff --git a/Samples/Printing/js/css/print.css b/archived/Printing/js/css/print.css similarity index 100% rename from Samples/Printing/js/css/print.css rename to archived/Printing/js/css/print.css diff --git a/Samples/Printing/js/html/pagetoprint.html b/archived/Printing/js/html/pagetoprint.html similarity index 100% rename from Samples/Printing/js/html/pagetoprint.html rename to archived/Printing/js/html/pagetoprint.html diff --git a/Samples/Printing/js/html/scenario1basic.html b/archived/Printing/js/html/scenario1basic.html similarity index 100% rename from Samples/Printing/js/html/scenario1basic.html rename to archived/Printing/js/html/scenario1basic.html diff --git a/Samples/Printing/js/html/scenario2standardoptions.html b/archived/Printing/js/html/scenario2standardoptions.html similarity index 100% rename from Samples/Printing/js/html/scenario2standardoptions.html rename to archived/Printing/js/html/scenario2standardoptions.html diff --git a/Samples/Printing/js/images/print_1.png b/archived/Printing/js/images/print_1.png similarity index 100% rename from Samples/Printing/js/images/print_1.png rename to archived/Printing/js/images/print_1.png diff --git a/Samples/Printing/js/js/sample-configuration.js b/archived/Printing/js/js/sample-configuration.js similarity index 100% rename from Samples/Printing/js/js/sample-configuration.js rename to archived/Printing/js/js/sample-configuration.js diff --git a/Samples/Printing/js/js/scenario1basic.js b/archived/Printing/js/js/scenario1basic.js similarity index 100% rename from Samples/Printing/js/js/scenario1basic.js rename to archived/Printing/js/js/scenario1basic.js diff --git a/Samples/Printing/js/js/scenario2standardoptions.js b/archived/Printing/js/js/scenario2standardoptions.js similarity index 100% rename from Samples/Printing/js/js/scenario2standardoptions.js rename to archived/Printing/js/js/scenario2standardoptions.js diff --git a/Samples/Printing/js/sample-utils/placeholder.txt b/archived/Printing/js/sample-utils/placeholder.txt similarity index 100% rename from Samples/Printing/js/sample-utils/placeholder.txt rename to archived/Printing/js/sample-utils/placeholder.txt diff --git a/archived/Projection/README.md b/archived/Projection/README.md new file mode 100644 index 0000000000..9c680ec9aa --- /dev/null +++ b/archived/Projection/README.md @@ -0,0 +1,58 @@ +--- +topic: sample +languages: +- js +products: +- windows +- windows-uwp +--- + +# Projection sample + +Shows how to display two different views of your app UI on different screens, as users might do when projecting your app in a meeting or conference. + +> **Note:** This sample is part of a large collection of UWP feature samples. +> If you are unfamiliar with Git and GitHub, you can download the entire collection as a +> [ZIP file](https://github.com/Microsoft/Windows-universal-samples/archive/master.zip), but be +> sure to unzip everything to access shared dependencies. For more info on working with the ZIP file, +> the samples collection, and GitHub, see [Get the UWP samples from GitHub](https://aka.ms/ovu2uq). +> For more samples, see the [Samples portal](https://aka.ms/winsamples) on the Windows Dev Center. + +The sample demonstrates: + +- Displaying two different views of your app on different screens. +- Starting, stopping and swapping views. +- Using [ProjectionManager](http://msdn.microsoft.com/library/windows/apps/dn281126) and [ApplicationViewSwitcher](http://msdn.microsoft.com/library/windows/apps/dn281094) APIs. +- Enumerating available screens to project to and projecting a view of your app to a specific one. + +## Related topics + +[ProjectionManager](http://msdn.microsoft.com/library/windows/apps/dn281126) +[ApplicationViewSwitcher](http://msdn.microsoft.com/library/windows/apps/dn281094) + +## System requirements + +**Client:** Windows 10 + +**Server:** Windows Server 2016 Technical Preview + +**Phone:** Windows 10 + +## Build the sample + +1. If you download the samples ZIP, be sure to unzip the entire archive, not just the folder with the sample you want to build. +2. Start Microsoft Visual Studio 2017 and select **File** \> **Open** \> **Project/Solution**. +3. Starting in the folder where you unzipped the samples, go to the Samples subfolder, then the subfolder for this specific sample, then the subfolder for your preferred language (C++, C#, or JavaScript). Double-click the Visual Studio Solution (.sln) file. +4. Press Ctrl+Shift+B, or select **Build** \> **Build Solution**. + +## Run the sample + +The next steps depend on whether you just want to deploy the sample or you want to both deploy and run it. + +### Deploying the sample + +- Select Build > Deploy Solution. + +### Deploying and running the sample + +- To debug the sample and then run it, press F5 or select Debug > Start Debugging. To run the sample without debugging, press Ctrl+F5 or selectDebug > Start Without Debugging. diff --git a/Samples/Projection/js/Microsoft.WinJS.4.0/css/placeholder.txt b/archived/Projection/js/Microsoft.WinJS.4.0/css/placeholder.txt similarity index 100% rename from Samples/Projection/js/Microsoft.WinJS.4.0/css/placeholder.txt rename to archived/Projection/js/Microsoft.WinJS.4.0/css/placeholder.txt diff --git a/Samples/Projection/js/Microsoft.WinJS.4.0/fonts/placeholder.txt b/archived/Projection/js/Microsoft.WinJS.4.0/fonts/placeholder.txt similarity index 100% rename from Samples/Projection/js/Microsoft.WinJS.4.0/fonts/placeholder.txt rename to archived/Projection/js/Microsoft.WinJS.4.0/fonts/placeholder.txt diff --git a/Samples/Projection/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt b/archived/Projection/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt similarity index 100% rename from Samples/Projection/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt rename to archived/Projection/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt diff --git a/Samples/Projection/js/Projection.jsproj b/archived/Projection/js/Projection.jsproj similarity index 81% rename from Samples/Projection/js/Projection.jsproj rename to archived/Projection/js/Projection.jsproj index 0def67b02f..6df8a6a88c 100644 --- a/Samples/Projection/js/Projection.jsproj +++ b/archived/Projection/js/Projection.jsproj @@ -57,7 +57,7 @@ - + default.html @@ -85,10 +85,10 @@ images\windows-sdk.png - + js\default.js - + css\default.css @@ -96,43 +96,43 @@ - + Microsoft.WinJS.4.0\css\ui-dark.css - + Microsoft.WinJS.4.0\css\ui-light.css - + Microsoft.WinJS.4.0\fonts\Symbols.ttf - + Microsoft.WinJS.4.0\js\en-US\ui.strings.js - + Microsoft.WinJS.4.0\js\base.js - + Microsoft.WinJS.4.0\js\ui.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense-setup.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense.js - + sample-utils\footer.html - + sample-utils\header.html - + sample-utils\sample-utils.js - + sample-utils\scenario-select.css - + sample-utils\scenario-select.html diff --git a/Samples/Projection/js/Projection.sln b/archived/Projection/js/Projection.sln similarity index 100% rename from Samples/Projection/js/Projection.sln rename to archived/Projection/js/Projection.sln diff --git a/Samples/Projection/js/css/scenario1.css b/archived/Projection/js/css/scenario1.css similarity index 100% rename from Samples/Projection/js/css/scenario1.css rename to archived/Projection/js/css/scenario1.css diff --git a/Samples/Projection/js/css/scenario2.css b/archived/Projection/js/css/scenario2.css similarity index 100% rename from Samples/Projection/js/css/scenario2.css rename to archived/Projection/js/css/scenario2.css diff --git a/Samples/Projection/js/css/scenario3.css b/archived/Projection/js/css/scenario3.css similarity index 100% rename from Samples/Projection/js/css/scenario3.css rename to archived/Projection/js/css/scenario3.css diff --git a/Samples/Projection/js/default.html b/archived/Projection/js/default.html similarity index 100% rename from Samples/Projection/js/default.html rename to archived/Projection/js/default.html diff --git a/Samples/Projection/js/html/scenario1.html b/archived/Projection/js/html/scenario1.html similarity index 100% rename from Samples/Projection/js/html/scenario1.html rename to archived/Projection/js/html/scenario1.html diff --git a/Samples/Projection/js/html/scenario2.html b/archived/Projection/js/html/scenario2.html similarity index 100% rename from Samples/Projection/js/html/scenario2.html rename to archived/Projection/js/html/scenario2.html diff --git a/Samples/Projection/js/html/scenario3.html b/archived/Projection/js/html/scenario3.html similarity index 100% rename from Samples/Projection/js/html/scenario3.html rename to archived/Projection/js/html/scenario3.html diff --git a/Samples/Projection/js/html/secondaryView.html b/archived/Projection/js/html/secondaryView.html similarity index 100% rename from Samples/Projection/js/html/secondaryView.html rename to archived/Projection/js/html/secondaryView.html diff --git a/Samples/Projection/js/images/placeholder.txt b/archived/Projection/js/images/placeholder.txt similarity index 100% rename from Samples/Projection/js/images/placeholder.txt rename to archived/Projection/js/images/placeholder.txt diff --git a/Samples/Projection/js/js/sample-configuration.js b/archived/Projection/js/js/sample-configuration.js similarity index 100% rename from Samples/Projection/js/js/sample-configuration.js rename to archived/Projection/js/js/sample-configuration.js diff --git a/Samples/Projection/js/js/scenario1.js b/archived/Projection/js/js/scenario1.js similarity index 100% rename from Samples/Projection/js/js/scenario1.js rename to archived/Projection/js/js/scenario1.js diff --git a/Samples/Projection/js/js/scenario2.js b/archived/Projection/js/js/scenario2.js similarity index 100% rename from Samples/Projection/js/js/scenario2.js rename to archived/Projection/js/js/scenario2.js diff --git a/Samples/Projection/js/js/scenario3.js b/archived/Projection/js/js/scenario3.js similarity index 100% rename from Samples/Projection/js/js/scenario3.js rename to archived/Projection/js/js/scenario3.js diff --git a/Samples/Projection/js/js/secondaryView.js b/archived/Projection/js/js/secondaryView.js similarity index 100% rename from Samples/Projection/js/js/secondaryView.js rename to archived/Projection/js/js/secondaryView.js diff --git a/Samples/Projection/js/package.appxmanifest b/archived/Projection/js/package.appxmanifest similarity index 100% rename from Samples/Projection/js/package.appxmanifest rename to archived/Projection/js/package.appxmanifest diff --git a/Samples/Projection/js/sample-utils/placeholder.txt b/archived/Projection/js/sample-utils/placeholder.txt similarity index 100% rename from Samples/Projection/js/sample-utils/placeholder.txt rename to archived/Projection/js/sample-utils/placeholder.txt diff --git a/archived/ProximitySensor/README.md b/archived/ProximitySensor/README.md new file mode 100644 index 0000000000..8f75a3478e --- /dev/null +++ b/archived/ProximitySensor/README.md @@ -0,0 +1,72 @@ +--- +topic: sample +languages: +- js +products: +- windows +- windows-uwp +--- + +# Proximity sensor sample + +Shows how to use the [Windows.Devices.Sensors.ProximitySensor](https://msdn.microsoft.com/library/windows/apps/windows.devices.sensors.proximitysensor.aspx) API. + +> **Note:** This sample is part of a large collection of UWP feature samples. +> If you are unfamiliar with Git and GitHub, you can download the entire collection as a +> [ZIP file](https://github.com/Microsoft/Windows-universal-samples/archive/master.zip), but be +> sure to unzip everything to access shared dependencies. For more info on working with the ZIP file, +> the samples collection, and GitHub, see [Get the UWP samples from GitHub](https://aka.ms/ovu2uq). +> For more samples, see the [Samples portal](https://aka.ms/winsamples) on the Windows Dev Center. + +This sample allows the user to view the proximity detection reading as a boolean value. +It includes the following scenarios: + +- Proximity sensor data events +- Polling proximity sensor readings +- Proximity Monitoring to Turn the Display On or Off +- Background Proximity Sensor + +**Proximity Sensor Data Events** + +When you choose the Enable button for the **Data Events** option, the app will begin displaying proximity sensor detection readings in real time. + +**Polling Proximity Sensor Readings** + +When you choose the Get Data button for the **Polling** option, the app will retrieve the current sensor readings. + +**Proximity Monitoring to Turn the Display On or Off** + +When you choose the Enable button for the **Display On/Off** option, the app will request the system to monitor the proximity sensor detection state to automatically turn the display on or off. + +**Background Proximity Sensor** + +This demonstrates using a Proximity sensor's state as a background trigger. +When you click the 'Register Task' button, an available proximity sensor will be used to register for notifications in the change of proximity. +When a change in the proximity is detected by the sensor, the registered background task gets fired. Proximity Sensor readings are then retrieved from the trigger to update the scenario UI. + +## System requirements + +**Client:** Windows 10 + +**Server:** Windows Server 2016 Technical Preview + +**Phone:** Windows 10 + +## Build the sample + +1. If you download the samples ZIP, be sure to unzip the entire archive, not just the folder with the sample you want to build. +2. Start Microsoft Visual Studio 2017 and select **File** \> **Open** \> **Project/Solution**. +3. Starting in the folder where you unzipped the samples, go to the Samples subfolder, then the subfolder for this specific sample, then the subfolder for your preferred language (C++, C#, or JavaScript). Double-click the Visual Studio Solution (.sln) file. +4. Press Ctrl+Shift+B, or select **Build** \> **Build Solution**. + +## Run the sample + +The next steps depend on whether you just want to deploy the sample or you want to both deploy and run it. + +### Deploying the sample + +- Select Build > Deploy Solution. + +### Deploying and running the sample + +- To debug the sample and then run it, press F5 or select Debug > Start Debugging. To run the sample without debugging, press Ctrl+F5 or selectDebug > Start Without Debugging. diff --git a/Samples/ProximitySensor/js/Microsoft.WinJS.4.0/css/placeholder.txt b/archived/ProximitySensor/js/Microsoft.WinJS.4.0/css/placeholder.txt similarity index 100% rename from Samples/ProximitySensor/js/Microsoft.WinJS.4.0/css/placeholder.txt rename to archived/ProximitySensor/js/Microsoft.WinJS.4.0/css/placeholder.txt diff --git a/Samples/ProximitySensor/js/Microsoft.WinJS.4.0/fonts/placeholder b/archived/ProximitySensor/js/Microsoft.WinJS.4.0/fonts/placeholder similarity index 100% rename from Samples/ProximitySensor/js/Microsoft.WinJS.4.0/fonts/placeholder rename to archived/ProximitySensor/js/Microsoft.WinJS.4.0/fonts/placeholder diff --git a/Samples/ProximitySensor/js/Microsoft.WinJS.4.0/js/en-us/placeholder.txt b/archived/ProximitySensor/js/Microsoft.WinJS.4.0/js/en-us/placeholder.txt similarity index 100% rename from Samples/ProximitySensor/js/Microsoft.WinJS.4.0/js/en-us/placeholder.txt rename to archived/ProximitySensor/js/Microsoft.WinJS.4.0/js/en-us/placeholder.txt diff --git a/Samples/ProximitySensor/js/Package.appxmanifest b/archived/ProximitySensor/js/Package.appxmanifest similarity index 100% rename from Samples/ProximitySensor/js/Package.appxmanifest rename to archived/ProximitySensor/js/Package.appxmanifest diff --git a/Samples/ProximitySensor/js/ProximitySensor.jsproj b/archived/ProximitySensor/js/ProximitySensor.jsproj similarity index 82% rename from Samples/ProximitySensor/js/ProximitySensor.jsproj rename to archived/ProximitySensor/js/ProximitySensor.jsproj index 3a45c4cba3..b6ddb7c680 100644 --- a/Samples/ProximitySensor/js/ProximitySensor.jsproj +++ b/archived/ProximitySensor/js/ProximitySensor.jsproj @@ -57,7 +57,7 @@ - + default.html @@ -85,10 +85,10 @@ images\windows-sdk.png - + js\default.js - + css\default.css @@ -97,43 +97,43 @@ - + Microsoft.WinJS.4.0\css\ui-dark.css - + Microsoft.WinJS.4.0\css\ui-light.css - + Microsoft.WinJS.4.0\js\en-US\ui.strings.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense-setup.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense.js - + Microsoft.WinJS.4.0\fonts\Symbols.ttf - + Microsoft.WinJS.4.0\js\base.js - + Microsoft.WinJS.4.0\js\ui.js - + sample-utils\footer.html - + sample-utils\header.html - + sample-utils\sample-utils.js - + sample-utils\scenario-select.css - + sample-utils\scenario-select.html diff --git a/Samples/ProximitySensor/js/ProximitySensor.sln b/archived/ProximitySensor/js/ProximitySensor.sln similarity index 100% rename from Samples/ProximitySensor/js/ProximitySensor.sln rename to archived/ProximitySensor/js/ProximitySensor.sln diff --git a/Samples/ProximitySensor/js/css/scenario1_DataEvents.css b/archived/ProximitySensor/js/css/scenario1_DataEvents.css similarity index 100% rename from Samples/ProximitySensor/js/css/scenario1_DataEvents.css rename to archived/ProximitySensor/js/css/scenario1_DataEvents.css diff --git a/Samples/ProximitySensor/js/css/scenario2_Polling.css b/archived/ProximitySensor/js/css/scenario2_Polling.css similarity index 100% rename from Samples/ProximitySensor/js/css/scenario2_Polling.css rename to archived/ProximitySensor/js/css/scenario2_Polling.css diff --git a/Samples/ProximitySensor/js/css/scenario3_DisplayOnOff.css b/archived/ProximitySensor/js/css/scenario3_DisplayOnOff.css similarity index 100% rename from Samples/ProximitySensor/js/css/scenario3_DisplayOnOff.css rename to archived/ProximitySensor/js/css/scenario3_DisplayOnOff.css diff --git a/Samples/ProximitySensor/js/css/scenario4_BackgroundProximitySensor.css b/archived/ProximitySensor/js/css/scenario4_BackgroundProximitySensor.css similarity index 100% rename from Samples/ProximitySensor/js/css/scenario4_BackgroundProximitySensor.css rename to archived/ProximitySensor/js/css/scenario4_BackgroundProximitySensor.css diff --git a/Samples/ProximitySensor/js/html/scenario1_DataEvents.html b/archived/ProximitySensor/js/html/scenario1_DataEvents.html similarity index 100% rename from Samples/ProximitySensor/js/html/scenario1_DataEvents.html rename to archived/ProximitySensor/js/html/scenario1_DataEvents.html diff --git a/Samples/ProximitySensor/js/html/scenario2_Polling.html b/archived/ProximitySensor/js/html/scenario2_Polling.html similarity index 100% rename from Samples/ProximitySensor/js/html/scenario2_Polling.html rename to archived/ProximitySensor/js/html/scenario2_Polling.html diff --git a/Samples/ProximitySensor/js/html/scenario3_DisplayOnOff.html b/archived/ProximitySensor/js/html/scenario3_DisplayOnOff.html similarity index 100% rename from Samples/ProximitySensor/js/html/scenario3_DisplayOnOff.html rename to archived/ProximitySensor/js/html/scenario3_DisplayOnOff.html diff --git a/Samples/ProximitySensor/js/html/scenario4_BackgroundProximitySensor.html b/archived/ProximitySensor/js/html/scenario4_BackgroundProximitySensor.html similarity index 100% rename from Samples/ProximitySensor/js/html/scenario4_BackgroundProximitySensor.html rename to archived/ProximitySensor/js/html/scenario4_BackgroundProximitySensor.html diff --git a/Samples/ProximitySensor/js/js/proximitySensorBackgroundTask.js b/archived/ProximitySensor/js/js/proximitySensorBackgroundTask.js similarity index 100% rename from Samples/ProximitySensor/js/js/proximitySensorBackgroundTask.js rename to archived/ProximitySensor/js/js/proximitySensorBackgroundTask.js diff --git a/Samples/ProximitySensor/js/js/sample-configuration.js b/archived/ProximitySensor/js/js/sample-configuration.js similarity index 100% rename from Samples/ProximitySensor/js/js/sample-configuration.js rename to archived/ProximitySensor/js/js/sample-configuration.js diff --git a/Samples/ProximitySensor/js/js/scenario1_DataEvents.js b/archived/ProximitySensor/js/js/scenario1_DataEvents.js similarity index 100% rename from Samples/ProximitySensor/js/js/scenario1_DataEvents.js rename to archived/ProximitySensor/js/js/scenario1_DataEvents.js diff --git a/Samples/ProximitySensor/js/js/scenario2_Polling.js b/archived/ProximitySensor/js/js/scenario2_Polling.js similarity index 100% rename from Samples/ProximitySensor/js/js/scenario2_Polling.js rename to archived/ProximitySensor/js/js/scenario2_Polling.js diff --git a/Samples/ProximitySensor/js/js/scenario3_DisplayOnOff.js b/archived/ProximitySensor/js/js/scenario3_DisplayOnOff.js similarity index 100% rename from Samples/ProximitySensor/js/js/scenario3_DisplayOnOff.js rename to archived/ProximitySensor/js/js/scenario3_DisplayOnOff.js diff --git a/Samples/ProximitySensor/js/js/scenario4_BackgroundProximitySensor.js b/archived/ProximitySensor/js/js/scenario4_BackgroundProximitySensor.js similarity index 100% rename from Samples/ProximitySensor/js/js/scenario4_BackgroundProximitySensor.js rename to archived/ProximitySensor/js/js/scenario4_BackgroundProximitySensor.js diff --git a/Samples/ProximitySensor/js/sample-utils/placeholder.txt b/archived/ProximitySensor/js/sample-utils/placeholder.txt similarity index 100% rename from Samples/ProximitySensor/js/sample-utils/placeholder.txt rename to archived/ProximitySensor/js/sample-utils/placeholder.txt diff --git a/archived/RelativeInclinometer/README.md b/archived/RelativeInclinometer/README.md new file mode 100644 index 0000000000..bab4527a66 --- /dev/null +++ b/archived/RelativeInclinometer/README.md @@ -0,0 +1,62 @@ +--- +topic: sample +languages: +- js +products: +- windows +- windows-uwp +--- + +# Relative inclinometer sample + +Shows how to use the [Windows.Devices.Sensors.Inclinometer](https://msdn.microsoft.com/library/windows/apps/windows.devices.sensors.inclinometer.aspx) +class for the Relative Inclinometer sensor. + +> **Note:** This sample is part of a large collection of UWP feature samples. +> If you are unfamiliar with Git and GitHub, you can download the entire collection as a +> [ZIP file](https://github.com/Microsoft/Windows-universal-samples/archive/master.zip), but be +> sure to unzip everything to access shared dependencies. For more info on working with the ZIP file, +> the samples collection, and GitHub, see [Get the UWP samples from GitHub](https://aka.ms/ovu2uq). +> For more samples, see the [Samples portal](https://aka.ms/winsamples) on the Windows Dev Center. + +This sample allows the user to view the angles of incline about the X-, Y-, and Z-axes for a 3-axis relative inclinometer. +(The incline about the X-axis corresponds to the pitch value; the incline about the Y-axis correspond to the roll value; +and the incline about the Z-axis corresponds to the yaw value.) You can choose one of two scenarios: + +- Relative inclinometer data events +- Polling relative inclinometer readings + +### Relative Inclinometer Data Events + +When you choose the Enable button for the **Data Events** option, the app will begin streaming relative inclinometer readings in real time. + +### Polling Relative Inclinometer Readings + +When you choose the Enable button for the **Polling** option, the app will retrieve the current sensor readings. + +## System requirements + +**Client:** Windows 10 + +**Server:** Windows Server 2016 Technical Preview + +**Phone:** Windows 10 + +## Build the sample + +1. If you download the samples ZIP, be sure to unzip the entire archive, not just the folder with the sample you want to build. +2. Start Microsoft Visual Studio 2017 and select **File** \> **Open** \> **Project/Solution**. +3. Starting in the folder where you unzipped the samples, go to the Samples subfolder, then the subfolder for this specific sample, then the subfolder for your preferred language (C++, C#, or JavaScript). Double-click the Visual Studio Solution (.sln) file. +4. Press Ctrl+Shift+B, or select **Build** \> **Build Solution**. + +## Run the sample + +The next steps depend on whether you just want to deploy the sample or you want to both deploy and run it. + +### Deploying the sample + +- Select Build > Deploy Solution. + +### Deploying and running the sample + +- To debug the sample and then run it, press F5 or select Debug > Start Debugging. To run the sample without debugging, press Ctrl+F5 or selectDebug > Start Without Debugging. diff --git a/Samples/RelativeInclinometer/js/Microsoft.WinJS.4.0/css/placeholder.txt b/archived/RelativeInclinometer/js/Microsoft.WinJS.4.0/css/placeholder.txt similarity index 100% rename from Samples/RelativeInclinometer/js/Microsoft.WinJS.4.0/css/placeholder.txt rename to archived/RelativeInclinometer/js/Microsoft.WinJS.4.0/css/placeholder.txt diff --git a/Samples/RelativeInclinometer/js/Microsoft.WinJS.4.0/fonts/placeholder b/archived/RelativeInclinometer/js/Microsoft.WinJS.4.0/fonts/placeholder similarity index 100% rename from Samples/RelativeInclinometer/js/Microsoft.WinJS.4.0/fonts/placeholder rename to archived/RelativeInclinometer/js/Microsoft.WinJS.4.0/fonts/placeholder diff --git a/Samples/RelativeInclinometer/js/Microsoft.WinJS.4.0/js/en-us/placeholder.txt b/archived/RelativeInclinometer/js/Microsoft.WinJS.4.0/js/en-us/placeholder.txt similarity index 100% rename from Samples/RelativeInclinometer/js/Microsoft.WinJS.4.0/js/en-us/placeholder.txt rename to archived/RelativeInclinometer/js/Microsoft.WinJS.4.0/js/en-us/placeholder.txt diff --git a/Samples/RelativeInclinometer/js/Package.appxmanifest b/archived/RelativeInclinometer/js/Package.appxmanifest similarity index 100% rename from Samples/RelativeInclinometer/js/Package.appxmanifest rename to archived/RelativeInclinometer/js/Package.appxmanifest diff --git a/Samples/RelativeInclinometer/js/RelativeInclinometer.jsproj b/archived/RelativeInclinometer/js/RelativeInclinometer.jsproj similarity index 81% rename from Samples/RelativeInclinometer/js/RelativeInclinometer.jsproj rename to archived/RelativeInclinometer/js/RelativeInclinometer.jsproj index cc726cca73..056631e115 100644 --- a/Samples/RelativeInclinometer/js/RelativeInclinometer.jsproj +++ b/archived/RelativeInclinometer/js/RelativeInclinometer.jsproj @@ -56,7 +56,7 @@ - + default.html @@ -82,52 +82,52 @@ images\windows-sdk.png - + js\default.js - + css\default.css - + Microsoft.WinJS.4.0\css\ui-dark.css - + Microsoft.WinJS.4.0\css\ui-light.css - + Microsoft.WinJS.4.0\js\en-US\ui.strings.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense-setup.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense.js - + Microsoft.WinJS.4.0\fonts\Symbols.ttf - + Microsoft.WinJS.4.0\js\base.js - + Microsoft.WinJS.4.0\js\ui.js - + sample-utils\footer.html - + sample-utils\header.html - + sample-utils\sample-utils.js - + sample-utils\scenario-select.css - + sample-utils\scenario-select.html diff --git a/Samples/RelativeInclinometer/js/RelativeInclinometer.sln b/archived/RelativeInclinometer/js/RelativeInclinometer.sln similarity index 100% rename from Samples/RelativeInclinometer/js/RelativeInclinometer.sln rename to archived/RelativeInclinometer/js/RelativeInclinometer.sln diff --git a/Samples/RelativeInclinometer/js/css/scenario1_DataEvents.css b/archived/RelativeInclinometer/js/css/scenario1_DataEvents.css similarity index 100% rename from Samples/RelativeInclinometer/js/css/scenario1_DataEvents.css rename to archived/RelativeInclinometer/js/css/scenario1_DataEvents.css diff --git a/Samples/RelativeInclinometer/js/css/scenario2_Polling.css b/archived/RelativeInclinometer/js/css/scenario2_Polling.css similarity index 100% rename from Samples/RelativeInclinometer/js/css/scenario2_Polling.css rename to archived/RelativeInclinometer/js/css/scenario2_Polling.css diff --git a/Samples/RelativeInclinometer/js/html/scenario1_DataEvents.html b/archived/RelativeInclinometer/js/html/scenario1_DataEvents.html similarity index 100% rename from Samples/RelativeInclinometer/js/html/scenario1_DataEvents.html rename to archived/RelativeInclinometer/js/html/scenario1_DataEvents.html diff --git a/Samples/RelativeInclinometer/js/html/scenario2_Polling.html b/archived/RelativeInclinometer/js/html/scenario2_Polling.html similarity index 100% rename from Samples/RelativeInclinometer/js/html/scenario2_Polling.html rename to archived/RelativeInclinometer/js/html/scenario2_Polling.html diff --git a/Samples/RelativeInclinometer/js/js/sample-configuration.js b/archived/RelativeInclinometer/js/js/sample-configuration.js similarity index 100% rename from Samples/RelativeInclinometer/js/js/sample-configuration.js rename to archived/RelativeInclinometer/js/js/sample-configuration.js diff --git a/Samples/RelativeInclinometer/js/js/scenario1_DataEvents.js b/archived/RelativeInclinometer/js/js/scenario1_DataEvents.js similarity index 100% rename from Samples/RelativeInclinometer/js/js/scenario1_DataEvents.js rename to archived/RelativeInclinometer/js/js/scenario1_DataEvents.js diff --git a/Samples/RelativeInclinometer/js/js/scenario2_Polling.js b/archived/RelativeInclinometer/js/js/scenario2_Polling.js similarity index 100% rename from Samples/RelativeInclinometer/js/js/scenario2_Polling.js rename to archived/RelativeInclinometer/js/js/scenario2_Polling.js diff --git a/Samples/RelativeInclinometer/js/sample-utils/placeholder.txt b/archived/RelativeInclinometer/js/sample-utils/placeholder.txt similarity index 100% rename from Samples/RelativeInclinometer/js/sample-utils/placeholder.txt rename to archived/RelativeInclinometer/js/sample-utils/placeholder.txt diff --git a/archived/ResizeAppView/README.md b/archived/ResizeAppView/README.md new file mode 100644 index 0000000000..0c1a9f1bd2 --- /dev/null +++ b/archived/ResizeAppView/README.md @@ -0,0 +1,71 @@ +--- +topic: sample +languages: +- js +products: +- windows +- windows-uwp +--- + +# Window resizing sample + +Shows how to customize the size of your app's view. + +> **Note:** This sample is part of a large collection of UWP feature samples. +> If you are unfamiliar with Git and GitHub, you can download the entire collection as a +> [ZIP file](https://github.com/Microsoft/Windows-universal-samples/archive/master.zip), but be +> sure to unzip everything to access shared dependencies. For more info on working with the ZIP file, +> the samples collection, and GitHub, see [Get the UWP samples from GitHub](https://aka.ms/ovu2uq). +> For more samples, see the [Samples portal](https://aka.ms/winsamples) on the Windows Dev Center. + +The sample shows the following techniques: + +- Resizing the view. +- Setting a minimum size for the view. +- Launching at a specific size. + +**Note** Although the sample will compile and run, the level of functionality will depend on which build of Windows you are running and what device you are running it on. +In particular, the view resizing feature is not enabled on phones or on PCs in Tablet mode because those systems do not permit free resizing. + +**Note** The Windows universal samples require Visual Studio 2017 to build and Windows 10 to execute. + +To obtain information about Windows 10 development, go to the [Windows Dev Center](http://go.microsoft.com/fwlink/?LinkID=532421) + +To obtain information about Microsoft Visual Studio and the tools for developing Windows apps, go to [Visual Studio](http://go.microsoft.com/fwlink/?LinkID=532422) + +## Related topics + +### Samples + +[FullScreenMode](/Samples/FullScreenMode) + +### Reference + +[ApplicationView class](https://msdn.microsoft.com/library/windows/apps/windows.ui.viewmanagement.applicationview.aspx) + +## System requirements + +**Client:** Windows 10 + +**Server:** Windows Server 2016 Technical Preview + +**Phone:** Windows 10 (but non-functional; see discussion above) + +## Build the sample + +1. If you download the samples ZIP, be sure to unzip the entire archive, not just the folder with the sample you want to build. +2. Start Microsoft Visual Studio 2017 and select **File** \> **Open** \> **Project/Solution**. +3. Starting in the folder where you unzipped the samples, go to the Samples subfolder, then the subfolder for this specific sample, then the subfolder for your preferred language (C++, C#, or JavaScript). Double-click the Visual Studio Solution (.sln) file. +4. Press Ctrl+Shift+B, or select **Build** \> **Build Solution**. + +## Run the sample + +The next steps depend on whether you just want to deploy the sample or you want to both deploy and run it. + +### Deploying the sample + +- Select Build > Deploy Solution. + +### Deploying and running the sample + +- To debug the sample and then run it, press F5 or select Debug > Start Debugging. To run the sample without debugging, press Ctrl+F5 or select Debug > Start Without Debugging. diff --git a/Samples/ResizeAppView/js/Microsoft.WinJS.4.0/css/placeholder.txt b/archived/ResizeAppView/js/Microsoft.WinJS.4.0/css/placeholder.txt similarity index 100% rename from Samples/ResizeAppView/js/Microsoft.WinJS.4.0/css/placeholder.txt rename to archived/ResizeAppView/js/Microsoft.WinJS.4.0/css/placeholder.txt diff --git a/Samples/ResizeAppView/js/Microsoft.WinJS.4.0/fonts/placeholder b/archived/ResizeAppView/js/Microsoft.WinJS.4.0/fonts/placeholder similarity index 100% rename from Samples/ResizeAppView/js/Microsoft.WinJS.4.0/fonts/placeholder rename to archived/ResizeAppView/js/Microsoft.WinJS.4.0/fonts/placeholder diff --git a/Samples/ResizeAppView/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt b/archived/ResizeAppView/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt similarity index 100% rename from Samples/ResizeAppView/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt rename to archived/ResizeAppView/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt diff --git a/Samples/ResizeAppView/js/Package.appxmanifest b/archived/ResizeAppView/js/Package.appxmanifest similarity index 100% rename from Samples/ResizeAppView/js/Package.appxmanifest rename to archived/ResizeAppView/js/Package.appxmanifest diff --git a/Samples/ResizeAppView/js/ResizeAppView.jsproj b/archived/ResizeAppView/js/ResizeAppView.jsproj similarity index 81% rename from Samples/ResizeAppView/js/ResizeAppView.jsproj rename to archived/ResizeAppView/js/ResizeAppView.jsproj index fe291a0ffa..d054c4c959 100644 --- a/Samples/ResizeAppView/js/ResizeAppView.jsproj +++ b/archived/ResizeAppView/js/ResizeAppView.jsproj @@ -54,7 +54,7 @@ Designer - + default.html @@ -80,52 +80,52 @@ images\windows-sdk.png - + js\default.js - + css\default.css - + Microsoft.WinJS.4.0\css\ui-dark.css - + Microsoft.WinJS.4.0\css\ui-light.css - + Microsoft.WinJS.4.0\js\en-US\ui.strings.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense-setup.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense.js - + Microsoft.WinJS.4.0\fonts\Symbols.ttf - + Microsoft.WinJS.4.0\js\base.js - + Microsoft.WinJS.4.0\js\ui.js - + sample-utils\footer.html - + sample-utils\header.html - + sample-utils\sample-utils.js - + sample-utils\scenario-select.css - + sample-utils\scenario-select.html diff --git a/Samples/ResizeAppView/js/ResizeAppView.sln b/archived/ResizeAppView/js/ResizeAppView.sln similarity index 100% rename from Samples/ResizeAppView/js/ResizeAppView.sln rename to archived/ResizeAppView/js/ResizeAppView.sln diff --git a/Samples/ResizeAppView/js/css/placeholder.txt b/archived/ResizeAppView/js/css/placeholder.txt similarity index 100% rename from Samples/ResizeAppView/js/css/placeholder.txt rename to archived/ResizeAppView/js/css/placeholder.txt diff --git a/Samples/ResizeAppView/js/html/scenario1-basic.html b/archived/ResizeAppView/js/html/scenario1-basic.html similarity index 100% rename from Samples/ResizeAppView/js/html/scenario1-basic.html rename to archived/ResizeAppView/js/html/scenario1-basic.html diff --git a/Samples/ResizeAppView/js/html/scenario2-launch.html b/archived/ResizeAppView/js/html/scenario2-launch.html similarity index 100% rename from Samples/ResizeAppView/js/html/scenario2-launch.html rename to archived/ResizeAppView/js/html/scenario2-launch.html diff --git a/Samples/ResizeAppView/js/images/placeholder.txt b/archived/ResizeAppView/js/images/placeholder.txt similarity index 100% rename from Samples/ResizeAppView/js/images/placeholder.txt rename to archived/ResizeAppView/js/images/placeholder.txt diff --git a/Samples/ResizeAppView/js/js/sample-configuration.js b/archived/ResizeAppView/js/js/sample-configuration.js similarity index 100% rename from Samples/ResizeAppView/js/js/sample-configuration.js rename to archived/ResizeAppView/js/js/sample-configuration.js diff --git a/Samples/ResizeAppView/js/js/scenario1-basic.js b/archived/ResizeAppView/js/js/scenario1-basic.js similarity index 100% rename from Samples/ResizeAppView/js/js/scenario1-basic.js rename to archived/ResizeAppView/js/js/scenario1-basic.js diff --git a/Samples/ResizeAppView/js/js/scenario2-launch.js b/archived/ResizeAppView/js/js/scenario2-launch.js similarity index 100% rename from Samples/ResizeAppView/js/js/scenario2-launch.js rename to archived/ResizeAppView/js/js/scenario2-launch.js diff --git a/Samples/ResizeAppView/js/sample-utils/placeholder.txt b/archived/ResizeAppView/js/sample-utils/placeholder.txt similarity index 100% rename from Samples/ResizeAppView/js/sample-utils/placeholder.txt rename to archived/ResizeAppView/js/sample-utils/placeholder.txt diff --git a/archived/SemanticTextQuery/README.md b/archived/SemanticTextQuery/README.md new file mode 100644 index 0000000000..e10db580c9 --- /dev/null +++ b/archived/SemanticTextQuery/README.md @@ -0,0 +1,61 @@ +--- +topic: sample +languages: +- js +products: +- windows +- windows-uwp +--- + +# Semantic text query sample + +Shows how to use the different [SemanticTextQuery](http://msdn.microsoft.com/library/windows/apps/dn263476) APIs to find the corresponding hits +when querying strings or file properties. + +> **Note:** This sample is part of a large collection of UWP feature samples. +> If you are unfamiliar with Git and GitHub, you can download the entire collection as a +> [ZIP file](https://github.com/Microsoft/Windows-universal-samples/archive/master.zip), but be +> sure to unzip everything to access shared dependencies. For more info on working with the ZIP file, +> the samples collection, and GitHub, see [Get the UWP samples from GitHub](https://aka.ms/ovu2uq). +> For more samples, see the [Samples portal](https://aka.ms/winsamples) on the Windows Dev Center. + +The sample demonstrates the following scenarios: + +- How to find the parts of a string that match an [Advanced Query Syntax (AQS)](http://msdn.microsoft.com/library/windows/apps/aa965711) query using +the [SemanticTextQuery.Find](http://msdn.microsoft.com/library/windows/apps/dn263478) method +- How to find which parts of a specific property match an AQS query using the +[SemanticTextQuery.FindInProperty](http://msdn.microsoft.com/library/windows/apps/dn263480) method +- How to find all the properties of a file that are matched by a query using the GetMatchingPropertiesWithRanges method + +**Note** The Windows universal samples require Visual Studio 2017 to build and Windows 10 to execute. + +To obtain information about Windows 10 development, go to the [Windows Dev Center](http://go.microsoft.com/fwlink/?LinkID=532421) + +To obtain information about Microsoft Visual Studio and the tools for developing Windows apps, go to [Visual Studio](http://go.microsoft.com/fwlink/?LinkID=532422) + +## System requirements + +**Client:** Windows 10 + +**Server:** Windows Server 2016 Technical Preview + +**Phone:** Windows 10 + +## Build the sample + +1. If you download the samples ZIP, be sure to unzip the entire archive, not just the folder with the sample you want to build. +2. Start Microsoft Visual Studio 2017 and select **File** \> **Open** \> **Project/Solution**. +3. Starting in the folder where you unzipped the samples, go to the Samples subfolder, then the subfolder for this specific sample, then the subfolder for your preferred language (C++, C#, or JavaScript). Double-click the Visual Studio Solution (.sln) file. +4. Press Ctrl+Shift+B, or select **Build** \> **Build Solution**. + +## Run the sample + +The next steps depend on whether you just want to deploy the sample or you want to both deploy and run it. + +### Deploying the sample + +- Select Build > Deploy Solution. + +### Deploying and running the sample + +- To debug the sample and then run it, press F5 or select Debug > Start Debugging. To run the sample without debugging, press Ctrl+F5 or select Debug > Start Without Debugging. diff --git a/Samples/SemanticTextQuery/js/Microsoft.WinJS.4.0/css/placeholder.txt b/archived/SemanticTextQuery/js/Microsoft.WinJS.4.0/css/placeholder.txt similarity index 100% rename from Samples/SemanticTextQuery/js/Microsoft.WinJS.4.0/css/placeholder.txt rename to archived/SemanticTextQuery/js/Microsoft.WinJS.4.0/css/placeholder.txt diff --git a/Samples/SemanticTextQuery/js/Microsoft.WinJS.4.0/fonts/placeholder b/archived/SemanticTextQuery/js/Microsoft.WinJS.4.0/fonts/placeholder similarity index 100% rename from Samples/SemanticTextQuery/js/Microsoft.WinJS.4.0/fonts/placeholder rename to archived/SemanticTextQuery/js/Microsoft.WinJS.4.0/fonts/placeholder diff --git a/Samples/SemanticTextQuery/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt b/archived/SemanticTextQuery/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt similarity index 100% rename from Samples/SemanticTextQuery/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt rename to archived/SemanticTextQuery/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt diff --git a/Samples/SemanticTextQuery/js/Package.appxmanifest b/archived/SemanticTextQuery/js/Package.appxmanifest similarity index 100% rename from Samples/SemanticTextQuery/js/Package.appxmanifest rename to archived/SemanticTextQuery/js/Package.appxmanifest diff --git a/Samples/SemanticTextQuery/js/SemanticTextQuery.jsproj b/archived/SemanticTextQuery/js/SemanticTextQuery.jsproj similarity index 81% rename from Samples/SemanticTextQuery/js/SemanticTextQuery.jsproj rename to archived/SemanticTextQuery/js/SemanticTextQuery.jsproj index 8e0fe4923d..6af82c36d5 100644 --- a/Samples/SemanticTextQuery/js/SemanticTextQuery.jsproj +++ b/archived/SemanticTextQuery/js/SemanticTextQuery.jsproj @@ -54,7 +54,7 @@ Designer - + default.html @@ -81,53 +81,53 @@ images\windows-sdk.png - + js\default.js - + css\default.css - + Microsoft.WinJS.4.0\css\ui-dark.css - + Microsoft.WinJS.4.0\css\ui-light.css - + Microsoft.WinJS.4.0\js\en-US\ui.strings.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense-setup.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense.js - + Microsoft.WinJS.4.0\fonts\Symbols.ttf - + Microsoft.WinJS.4.0\js\base.js - + Microsoft.WinJS.4.0\js\ui.js - + sample-utils\footer.html - + sample-utils\header.html - + sample-utils\sample-utils.js - + sample-utils\scenario-select.css - + sample-utils\scenario-select.html diff --git a/Samples/SemanticTextQuery/js/SemanticTextQuery.sln b/archived/SemanticTextQuery/js/SemanticTextQuery.sln similarity index 100% rename from Samples/SemanticTextQuery/js/SemanticTextQuery.sln rename to archived/SemanticTextQuery/js/SemanticTextQuery.sln diff --git a/Samples/SemanticTextQuery/js/css/placeholder.txt b/archived/SemanticTextQuery/js/css/placeholder.txt similarity index 100% rename from Samples/SemanticTextQuery/js/css/placeholder.txt rename to archived/SemanticTextQuery/js/css/placeholder.txt diff --git a/Samples/SemanticTextQuery/js/html/filePropertiesMatches.html b/archived/SemanticTextQuery/js/html/filePropertiesMatches.html similarity index 100% rename from Samples/SemanticTextQuery/js/html/filePropertiesMatches.html rename to archived/SemanticTextQuery/js/html/filePropertiesMatches.html diff --git a/Samples/SemanticTextQuery/js/html/propertyMatches.html b/archived/SemanticTextQuery/js/html/propertyMatches.html similarity index 100% rename from Samples/SemanticTextQuery/js/html/propertyMatches.html rename to archived/SemanticTextQuery/js/html/propertyMatches.html diff --git a/Samples/SemanticTextQuery/js/html/stringMatches.html b/archived/SemanticTextQuery/js/html/stringMatches.html similarity index 100% rename from Samples/SemanticTextQuery/js/html/stringMatches.html rename to archived/SemanticTextQuery/js/html/stringMatches.html diff --git a/Samples/SemanticTextQuery/js/images/placeholder.txt b/archived/SemanticTextQuery/js/images/placeholder.txt similarity index 100% rename from Samples/SemanticTextQuery/js/images/placeholder.txt rename to archived/SemanticTextQuery/js/images/placeholder.txt diff --git a/Samples/SemanticTextQuery/js/js/filePropertiesMatches.js b/archived/SemanticTextQuery/js/js/filePropertiesMatches.js similarity index 100% rename from Samples/SemanticTextQuery/js/js/filePropertiesMatches.js rename to archived/SemanticTextQuery/js/js/filePropertiesMatches.js diff --git a/Samples/SemanticTextQuery/js/js/propertyMatches.js b/archived/SemanticTextQuery/js/js/propertyMatches.js similarity index 100% rename from Samples/SemanticTextQuery/js/js/propertyMatches.js rename to archived/SemanticTextQuery/js/js/propertyMatches.js diff --git a/Samples/SemanticTextQuery/js/js/sample-configuration.js b/archived/SemanticTextQuery/js/js/sample-configuration.js similarity index 100% rename from Samples/SemanticTextQuery/js/js/sample-configuration.js rename to archived/SemanticTextQuery/js/js/sample-configuration.js diff --git a/Samples/SemanticTextQuery/js/js/stringMatches.js b/archived/SemanticTextQuery/js/js/stringMatches.js similarity index 100% rename from Samples/SemanticTextQuery/js/js/stringMatches.js rename to archived/SemanticTextQuery/js/js/stringMatches.js diff --git a/Samples/SemanticTextQuery/js/sample-utils/placeholder.txt b/archived/SemanticTextQuery/js/sample-utils/placeholder.txt similarity index 100% rename from Samples/SemanticTextQuery/js/sample-utils/placeholder.txt rename to archived/SemanticTextQuery/js/sample-utils/placeholder.txt diff --git a/archived/ShareSource/README.md b/archived/ShareSource/README.md new file mode 100644 index 0000000000..bf692fd7ab --- /dev/null +++ b/archived/ShareSource/README.md @@ -0,0 +1,98 @@ +--- +topic: sample +languages: +- js +products: +- windows +- windows-uwp +--- + +# Sharing content source app sample + +Shows how an app shares content with another app. This sample uses classes from the +[Windows.ApplicationModel.DataTransfer](http://msdn.microsoft.com/library/windows/apps/br205967) namespace. + +> **Note:** This sample is part of a large collection of UWP feature samples. +> If you are unfamiliar with Git and GitHub, you can download the entire collection as a +> [ZIP file](https://github.com/Microsoft/Windows-universal-samples/archive/master.zip), but be +> sure to unzip everything to access shared dependencies. For more info on working with the ZIP file, +> the samples collection, and GitHub, see [Get the UWP samples from GitHub](https://aka.ms/ovu2uq). +> For more samples, see the [Samples portal](https://aka.ms/winsamples) on the Windows Dev Center. + +Some of the classes you might want to review in more detail are the +[DataTransferManager](http://msdn.microsoft.com/library/windows/apps/br205932) class, +which you use to initiate a share operation, and the [DataPackage](http://msdn.microsoft.com/library/windows/apps/br205873) class, +which you use to package the content. Because each share scenario usually involves two apps—the source app +and a target app that receives the content—we recommend you install and deploy the +[Sharing content target app sample](http://go.microsoft.com/fwlink/p/?linkid=231519) when you install and run this one. +This way, you can see how sharing works from end to end. + +This sample demonstrates the following: + +* Sharing content in a variety of formats, including: + * Text + * Web link + * Application link (with logo and background color) + * Images + * Files + * Delay-rendered files + * HTML content + * Custom data +* Displaying a custom message when your app has nothing to share. +* Adding a custom [ShareProvider](https://docs.microsoft.com/uwp/api/windows.applicationmodel.datatransfer.shareprovider) so your app can be its own share target. + +**Note** The Windows universal samples require Visual Studio 2017 to build and Windows 10 to execute. + +To obtain information about Windows 10 development, go to the [Windows Dev Center](http://go.microsoft.com/fwlink/?LinkID=532421) + +To obtain information about Microsoft Visual Studio and the tools for developing Windows apps, go to [Visual Studio](http://go.microsoft.com/fwlink/?LinkID=532422) + +## Related topics + +### Reference + +To learn more about sharing and the [Windows.ApplicationModel.DataTransfer](http://msdn.microsoft.com/library/windows/apps/br205967) namespace, we recommend you take a look at the [Sharing and exchanging data](http://msdn.microsoft.com/library/windows/apps/hh464923) section of our documentation, which describes how sharing works and contains several how-to topics that cover how to share [text](http://msdn.microsoft.com/library/windows/apps/hh758313), an [image](http://msdn.microsoft.com/library/windows/apps/hh758305), files, and other formats. Our [Guidelines for sharing content](http://msdn.microsoft.com/library/windows/apps/hh465251) can also help you create a great user experience with the share feature. + +For more info about the concepts and APIs demonstrated in this sample, see these topics: + +- [Sharing content target app sample](http://go.microsoft.com/fwlink/p/?linkid=231519) +- [Sharing and exchanging data](http://msdn.microsoft.com/library/windows/apps/hh464923) +- [How to share files (HTML)](http://msdn.microsoft.com/library/windows/apps/hh758308) +- [How to share files (XAML)](http://msdn.microsoft.com/library/windows/apps/hh871371) +- [How to share HTML (HTML)](http://msdn.microsoft.com/library/windows/apps/hh758310) +- [How to share HTML (XAML)](http://msdn.microsoft.com/library/windows/apps/hh973055) +- [How to share text (HTML)](http://msdn.microsoft.com/library/windows/apps/hh758313) +- [How to share text (XAML)](http://msdn.microsoft.com/library/windows/apps/hh871372) +- [Quickstart: Sharing content (HTML)](http://msdn.microsoft.com/library/windows/apps/hh465261) +- [Share data](https://msdn.microsoft.com/library/windows/apps/mt243293) +- [DataPackageView](http://msdn.microsoft.com/library/windows/apps/hh738408) +- [ShareOperation](http://msdn.microsoft.com/library/windows/apps/br205977) +- [Windows.ApplicationModel.DataTransfer](http://msdn.microsoft.com/library/windows/apps/br205967) +- [Windows.ApplicationModel.DataTransfer.Share](http://msdn.microsoft.com/library/windows/apps/br205989) + +## System requirements + +**Client:** Windows 10 + +**Server:** Windows Server 2016 Technical Preview + +**Phone:** Windows 10 + +## Build the sample + +1. If you download the samples ZIP, be sure to unzip the entire archive, not just the folder with the sample you want to build. +2. Start Microsoft Visual Studio 2017 and select **File** \> **Open** \> **Project/Solution**. +3. Starting in the folder where you unzipped the samples, go to the Samples subfolder, then the subfolder for this specific sample, then the subfolder for your preferred language (C++, C#, or JavaScript). Double-click the Visual Studio Solution (.sln) file. +4. Press Ctrl+Shift+B, or select **Build** \> **Build Solution**. + +## Run the sample + +The next steps depend on whether you just want to deploy the sample or you want to both deploy and run it. + +### Deploying the sample + +- Select Build > Deploy Solution. + +### Deploying and running the sample + +- To debug the sample and then run it, press F5 or select Debug > Start Debugging. To run the sample without debugging, press Ctrl+F5 or select Debug > Start Without Debugging. diff --git a/Samples/ShareSource/js/Microsoft.WinJS.4.0/css/placeholder.txt b/archived/ShareSource/js/Microsoft.WinJS.4.0/css/placeholder.txt similarity index 100% rename from Samples/ShareSource/js/Microsoft.WinJS.4.0/css/placeholder.txt rename to archived/ShareSource/js/Microsoft.WinJS.4.0/css/placeholder.txt diff --git a/Samples/ShareSource/js/Microsoft.WinJS.4.0/fonts/placeholder b/archived/ShareSource/js/Microsoft.WinJS.4.0/fonts/placeholder similarity index 100% rename from Samples/ShareSource/js/Microsoft.WinJS.4.0/fonts/placeholder rename to archived/ShareSource/js/Microsoft.WinJS.4.0/fonts/placeholder diff --git a/Samples/ShareSource/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt b/archived/ShareSource/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt similarity index 100% rename from Samples/ShareSource/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt rename to archived/ShareSource/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt diff --git a/Samples/ShareSource/js/Package.appxmanifest b/archived/ShareSource/js/Package.appxmanifest similarity index 100% rename from Samples/ShareSource/js/Package.appxmanifest rename to archived/ShareSource/js/Package.appxmanifest diff --git a/Samples/ShareSource/js/ShareSource.jsproj b/archived/ShareSource/js/ShareSource.jsproj similarity index 84% rename from Samples/ShareSource/js/ShareSource.jsproj rename to archived/ShareSource/js/ShareSource.jsproj index 65fc9b60ca..6d6e75faf5 100644 --- a/Samples/ShareSource/js/ShareSource.jsproj +++ b/archived/ShareSource/js/ShareSource.jsproj @@ -55,7 +55,7 @@ Designer - + default.html @@ -114,10 +114,10 @@ images\visualStudioLogo.scale-200.png - + js\default.js - + css\default.css @@ -131,43 +131,43 @@ - + Microsoft.WinJS.4.0\css\ui-dark.css - + Microsoft.WinJS.4.0\css\ui-light.css - + Microsoft.WinJS.4.0\js\en-US\ui.strings.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense-setup.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense.js - + Microsoft.WinJS.4.0\fonts\Symbols.ttf - + Microsoft.WinJS.4.0\js\base.js - + Microsoft.WinJS.4.0\js\ui.js - + sample-utils\footer.html - + sample-utils\header.html - + sample-utils\sample-utils.js - + sample-utils\scenario-select.css - + sample-utils\scenario-select.html diff --git a/Samples/ShareSource/js/ShareSource.sln b/archived/ShareSource/js/ShareSource.sln similarity index 100% rename from Samples/ShareSource/js/ShareSource.sln rename to archived/ShareSource/js/ShareSource.sln diff --git a/Samples/ShareSource/js/css/common.css b/archived/ShareSource/js/css/common.css similarity index 100% rename from Samples/ShareSource/js/css/common.css rename to archived/ShareSource/js/css/common.css diff --git a/Samples/ShareSource/js/html/applicationlink.html b/archived/ShareSource/js/html/applicationlink.html similarity index 100% rename from Samples/ShareSource/js/html/applicationlink.html rename to archived/ShareSource/js/html/applicationlink.html diff --git a/Samples/ShareSource/js/html/custom.html b/archived/ShareSource/js/html/custom.html similarity index 100% rename from Samples/ShareSource/js/html/custom.html rename to archived/ShareSource/js/html/custom.html diff --git a/Samples/ShareSource/js/html/delay-render.html b/archived/ShareSource/js/html/delay-render.html similarity index 100% rename from Samples/ShareSource/js/html/delay-render.html rename to archived/ShareSource/js/html/delay-render.html diff --git a/Samples/ShareSource/js/html/fail.html b/archived/ShareSource/js/html/fail.html similarity index 100% rename from Samples/ShareSource/js/html/fail.html rename to archived/ShareSource/js/html/fail.html diff --git a/Samples/ShareSource/js/html/files.html b/archived/ShareSource/js/html/files.html similarity index 100% rename from Samples/ShareSource/js/html/files.html rename to archived/ShareSource/js/html/files.html diff --git a/Samples/ShareSource/js/html/html.html b/archived/ShareSource/js/html/html.html similarity index 100% rename from Samples/ShareSource/js/html/html.html rename to archived/ShareSource/js/html/html.html diff --git a/Samples/ShareSource/js/html/image.html b/archived/ShareSource/js/html/image.html similarity index 100% rename from Samples/ShareSource/js/html/image.html rename to archived/ShareSource/js/html/image.html diff --git a/Samples/ShareSource/js/html/provider.html b/archived/ShareSource/js/html/provider.html similarity index 100% rename from Samples/ShareSource/js/html/provider.html rename to archived/ShareSource/js/html/provider.html diff --git a/Samples/ShareSource/js/html/text.html b/archived/ShareSource/js/html/text.html similarity index 100% rename from Samples/ShareSource/js/html/text.html rename to archived/ShareSource/js/html/text.html diff --git a/Samples/ShareSource/js/html/weblink.html b/archived/ShareSource/js/html/weblink.html similarity index 100% rename from Samples/ShareSource/js/html/weblink.html rename to archived/ShareSource/js/html/weblink.html diff --git a/Samples/ShareSource/js/images/dev-center_branding.png b/archived/ShareSource/js/images/dev-center_branding.png similarity index 100% rename from Samples/ShareSource/js/images/dev-center_branding.png rename to archived/ShareSource/js/images/dev-center_branding.png diff --git a/Samples/ShareSource/js/js/applicationlink.js b/archived/ShareSource/js/js/applicationlink.js similarity index 100% rename from Samples/ShareSource/js/js/applicationlink.js rename to archived/ShareSource/js/js/applicationlink.js diff --git a/Samples/ShareSource/js/js/custom.js b/archived/ShareSource/js/js/custom.js similarity index 100% rename from Samples/ShareSource/js/js/custom.js rename to archived/ShareSource/js/js/custom.js diff --git a/Samples/ShareSource/js/js/delay-render.js b/archived/ShareSource/js/js/delay-render.js similarity index 100% rename from Samples/ShareSource/js/js/delay-render.js rename to archived/ShareSource/js/js/delay-render.js diff --git a/Samples/ShareSource/js/js/fail.js b/archived/ShareSource/js/js/fail.js similarity index 100% rename from Samples/ShareSource/js/js/fail.js rename to archived/ShareSource/js/js/fail.js diff --git a/Samples/ShareSource/js/js/files.js b/archived/ShareSource/js/js/files.js similarity index 100% rename from Samples/ShareSource/js/js/files.js rename to archived/ShareSource/js/js/files.js diff --git a/Samples/ShareSource/js/js/html.js b/archived/ShareSource/js/js/html.js similarity index 100% rename from Samples/ShareSource/js/js/html.js rename to archived/ShareSource/js/js/html.js diff --git a/Samples/ShareSource/js/js/image.js b/archived/ShareSource/js/js/image.js similarity index 100% rename from Samples/ShareSource/js/js/image.js rename to archived/ShareSource/js/js/image.js diff --git a/Samples/ShareSource/js/js/provider.js b/archived/ShareSource/js/js/provider.js similarity index 100% rename from Samples/ShareSource/js/js/provider.js rename to archived/ShareSource/js/js/provider.js diff --git a/Samples/ShareSource/js/js/sample-configuration.js b/archived/ShareSource/js/js/sample-configuration.js similarity index 100% rename from Samples/ShareSource/js/js/sample-configuration.js rename to archived/ShareSource/js/js/sample-configuration.js diff --git a/Samples/ShareSource/js/js/text.js b/archived/ShareSource/js/js/text.js similarity index 100% rename from Samples/ShareSource/js/js/text.js rename to archived/ShareSource/js/js/text.js diff --git a/Samples/ShareSource/js/js/weblink.js b/archived/ShareSource/js/js/weblink.js similarity index 100% rename from Samples/ShareSource/js/js/weblink.js rename to archived/ShareSource/js/js/weblink.js diff --git a/Samples/ShareSource/js/sample-utils/placeholder.txt b/archived/ShareSource/js/sample-utils/placeholder.txt similarity index 100% rename from Samples/ShareSource/js/sample-utils/placeholder.txt rename to archived/ShareSource/js/sample-utils/placeholder.txt diff --git a/archived/ShareTarget/README.md b/archived/ShareTarget/README.md new file mode 100644 index 0000000000..e926f77699 --- /dev/null +++ b/archived/ShareTarget/README.md @@ -0,0 +1,97 @@ +--- +topic: sample +languages: +- js +products: +- windows +- windows-uwp +--- + +# Sharing content target app sample + +Shows how an app receives content shared from another app. This sample uses classes from the +[Windows.ApplicationModel.DataTransfer](http://msdn.microsoft.com/library/windows/apps/br205967) and +[Windows.ApplicationModel.DataTransfer.Share](http://msdn.microsoft.com/library/windows/apps/br205989) namespaces. + +> **Note:** This sample is part of a large collection of UWP feature samples. +> If you are unfamiliar with Git and GitHub, you can download the entire collection as a +> [ZIP file](https://github.com/Microsoft/Windows-universal-samples/archive/master.zip), but be +> sure to unzip everything to access shared dependencies. For more info on working with the ZIP file, +> the samples collection, and GitHub, see [Get the UWP samples from GitHub](https://aka.ms/ovu2uq). +> For more samples, see the [Samples portal](https://aka.ms/winsamples) on the Windows Dev Center. + +Some of the classes you might want to review in more detail are the [ShareOperation](http://msdn.microsoft.com/library/windows/apps/br205977) +class, which you use to manage a share operation, and the [DataPackageView](http://msdn.microsoft.com/library/windows/apps/hh738408) class, +which you use to get the content being shared. Because each share scenario usually involves two apps—the source app that provides the content +and a target app that receives the content—we recommend you install and deploy the +[Sharing content source app sample](http://go.microsoft.com/fwlink/p/?linkid=231511) when you install and run this one. +That way, you can see how sharing works from end to end. + +This sample covers how to receive shared content in a variety of formats, including: + +- Text +- Web link +- Application link +- Images +- Files +- Delay-rendered files +- HTML content +- Custom data + +Also, this sample shows how to display the source app's 30x30 logo and the source app's package family name. + +We also recommend you take a look at the [Sharing and exchanging data](http://msdn.microsoft.com/library/windows/apps/hh464923) section of our documentation, which describes how sharing works and contains several how-to topics that cover how to share [text](http://msdn.microsoft.com/library/windows/apps/hh758313), an [image](http://msdn.microsoft.com/library/windows/apps/hh758305), files, and other formats. Our [Guidelines and checklist for sharing content](http://msdn.microsoft.com/library/windows/apps/hh465251) can also help you create a great user experience with the share feature. + +For more info about the concepts and APIs demonstrated in this sample, see these topics: + +- [Sharing content source app sample](http://go.microsoft.com/fwlink/p/?linkid=231511) +- [Sharing and exchanging data](http://msdn.microsoft.com/library/windows/apps/hh464923) +- [How to receive files (HTML)](http://msdn.microsoft.com/library/windows/apps/hh758302) +- [How to receive HTML (HTML)](http://msdn.microsoft.com/library/windows/apps/hh758303) +- [How to receive HTML (XAML)](http://msdn.microsoft.com/library/windows/apps/hh973053) +- [How to receive text (HTML)](http://msdn.microsoft.com/library/windows/apps/hh758304) +- [How to receive text (XAML)](http://msdn.microsoft.com/library/windows/apps/hh973054) +- [Quickstart: Receiving shared content (HTML)](http://msdn.microsoft.com/library/windows/apps/hh465255) +- [Receive data](https://msdn.microsoft.com/library/windows/apps/mt243292) +- [DataPackageView](http://msdn.microsoft.com/library/windows/apps/hh738408) +- [ShareOperation](http://msdn.microsoft.com/library/windows/apps/br205977) +- [Windows.ApplicationModel.DataTransfer](http://msdn.microsoft.com/library/windows/apps/br205967) +- [Windows.ApplicationModel.DataTransfer.Share](http://msdn.microsoft.com/library/windows/apps/br205989) + + + +To obtain an insider copy of Windows 10, go to [Windows 10](http://insider.windows.com). + +**Note** For Windows 10 app samples, go to [Windows 10 Samples](https://github.com/Microsoft/Windows-universal-samples). The samples for Windows 10 can be built and run using Windows developer [tools](https://developer.windows.com). + + +## Related topics + +- [Windows 8 app samples](http://go.microsoft.com/fwlink/p/?LinkID=227694) + +## System requirements + +**Client:** Windows 10 + +**Server:** Windows Server 2016 Technical Preview + +**Phone:** Windows 10 + +## Build the sample + +1. If you download the samples ZIP, be sure to unzip the entire archive, not just the folder with the sample you want to build. +2. Start Microsoft Visual Studio 2017 and select **File** \> **Open** \> **Project/Solution**. +3. Starting in the folder where you unzipped the samples, go to the Samples subfolder, then the subfolder for this specific sample, then the subfolder for your preferred language (C++, C#, or JavaScript). Double-click the Visual Studio Solution (.sln) file. +4. Press Ctrl+Shift+B, or select **Build** \> **Build Solution**. + +## Run the sample + +The next steps depend on whether you just want to deploy the sample or you want to both deploy and run it. + +### Deploying the sample + +- Select Build > Deploy Solution. + +### Deploying and running the sample + +- To debug the sample and then run it, press F5 or select Debug > Start Debugging. To run the sample without debugging, press Ctrl+F5 or select Debug > Start Without Debugging. diff --git a/Samples/ShareTarget/js/Microsoft.WinJS.4.0/css/placeholder.txt b/archived/ShareTarget/js/Microsoft.WinJS.4.0/css/placeholder.txt similarity index 100% rename from Samples/ShareTarget/js/Microsoft.WinJS.4.0/css/placeholder.txt rename to archived/ShareTarget/js/Microsoft.WinJS.4.0/css/placeholder.txt diff --git a/Samples/ShareTarget/js/Microsoft.WinJS.4.0/fonts/placeholder b/archived/ShareTarget/js/Microsoft.WinJS.4.0/fonts/placeholder similarity index 100% rename from Samples/ShareTarget/js/Microsoft.WinJS.4.0/fonts/placeholder rename to archived/ShareTarget/js/Microsoft.WinJS.4.0/fonts/placeholder diff --git a/Samples/ShareTarget/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt b/archived/ShareTarget/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt similarity index 100% rename from Samples/ShareTarget/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt rename to archived/ShareTarget/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt diff --git a/Samples/ShareTarget/js/Package.appxmanifest b/archived/ShareTarget/js/Package.appxmanifest similarity index 100% rename from Samples/ShareTarget/js/Package.appxmanifest rename to archived/ShareTarget/js/Package.appxmanifest diff --git a/Samples/ShareTarget/js/ShareTarget.jsproj b/archived/ShareTarget/js/ShareTarget.jsproj similarity index 80% rename from Samples/ShareTarget/js/ShareTarget.jsproj rename to archived/ShareTarget/js/ShareTarget.jsproj index 4ea19befa5..1ef73de75e 100644 --- a/Samples/ShareTarget/js/ShareTarget.jsproj +++ b/archived/ShareTarget/js/ShareTarget.jsproj @@ -54,7 +54,7 @@ Designer - + default.html @@ -80,53 +80,53 @@ images\windows-sdk.png - + js\default.js - + css\default.css - + Microsoft.WinJS.4.0\css\ui-dark.css - + Microsoft.WinJS.4.0\css\ui-light.css - + Microsoft.WinJS.4.0\js\en-US\ui.strings.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense-setup.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense.js - + Microsoft.WinJS.4.0\fonts\Symbols.ttf - + Microsoft.WinJS.4.0\js\base.js - + Microsoft.WinJS.4.0\js\ui.js - + sample-utils\footer.html - + sample-utils\header.html - + sample-utils\sample-utils.js - + sample-utils\scenario-select.css - + sample-utils\scenario-select.html diff --git a/Samples/ShareTarget/js/ShareTarget.sln b/archived/ShareTarget/js/ShareTarget.sln similarity index 100% rename from Samples/ShareTarget/js/ShareTarget.sln rename to archived/ShareTarget/js/ShareTarget.sln diff --git a/Samples/ShareTarget/js/css/share-target.css b/archived/ShareTarget/js/css/share-target.css similarity index 100% rename from Samples/ShareTarget/js/css/share-target.css rename to archived/ShareTarget/js/css/share-target.css diff --git a/Samples/ShareTarget/js/html/scenario1-welcome.html b/archived/ShareTarget/js/html/scenario1-welcome.html similarity index 100% rename from Samples/ShareTarget/js/html/scenario1-welcome.html rename to archived/ShareTarget/js/html/scenario1-welcome.html diff --git a/Samples/ShareTarget/js/images/placeholder.txt b/archived/ShareTarget/js/images/placeholder.txt similarity index 100% rename from Samples/ShareTarget/js/images/placeholder.txt rename to archived/ShareTarget/js/images/placeholder.txt diff --git a/Samples/ShareTarget/js/js/sample-configuration.js b/archived/ShareTarget/js/js/sample-configuration.js similarity index 100% rename from Samples/ShareTarget/js/js/sample-configuration.js rename to archived/ShareTarget/js/js/sample-configuration.js diff --git a/Samples/ShareTarget/js/js/scenario1-welcome.js b/archived/ShareTarget/js/js/scenario1-welcome.js similarity index 100% rename from Samples/ShareTarget/js/js/scenario1-welcome.js rename to archived/ShareTarget/js/js/scenario1-welcome.js diff --git a/Samples/ShareTarget/js/js/share-target.js b/archived/ShareTarget/js/js/share-target.js similarity index 100% rename from Samples/ShareTarget/js/js/share-target.js rename to archived/ShareTarget/js/js/share-target.js diff --git a/Samples/ShareTarget/js/sample-utils/placeholder.txt b/archived/ShareTarget/js/sample-utils/placeholder.txt similarity index 100% rename from Samples/ShareTarget/js/sample-utils/placeholder.txt rename to archived/ShareTarget/js/sample-utils/placeholder.txt diff --git a/Samples/ShareTarget/js/share-target.html b/archived/ShareTarget/js/share-target.html similarity index 100% rename from Samples/ShareTarget/js/share-target.html rename to archived/ShareTarget/js/share-target.html diff --git a/SharedContent/Templates/UWPSDKSampleJS/App.jsproj b/archived/SharedContent/Templates/UWPSDKSampleJS/App.jsproj similarity index 100% rename from SharedContent/Templates/UWPSDKSampleJS/App.jsproj rename to archived/SharedContent/Templates/UWPSDKSampleJS/App.jsproj diff --git a/SharedContent/Templates/UWPSDKSampleJS/MyTemplate.vstemplate b/archived/SharedContent/Templates/UWPSDKSampleJS/MyTemplate.vstemplate similarity index 100% rename from SharedContent/Templates/UWPSDKSampleJS/MyTemplate.vstemplate rename to archived/SharedContent/Templates/UWPSDKSampleJS/MyTemplate.vstemplate diff --git a/SharedContent/Templates/UWPSDKSampleJS/__TemplateIcon.png b/archived/SharedContent/Templates/UWPSDKSampleJS/__TemplateIcon.png similarity index 100% rename from SharedContent/Templates/UWPSDKSampleJS/__TemplateIcon.png rename to archived/SharedContent/Templates/UWPSDKSampleJS/__TemplateIcon.png diff --git a/Samples/SystemMediaTransportControls/js/css/scenario1.css b/archived/SharedContent/Templates/UWPSDKSampleJS/css/scenario1.css old mode 100644 new mode 100755 similarity index 100% rename from Samples/SystemMediaTransportControls/js/css/scenario1.css rename to archived/SharedContent/Templates/UWPSDKSampleJS/css/scenario1.css diff --git a/Samples/VideoPlayback/js/css/scenario2.css b/archived/SharedContent/Templates/UWPSDKSampleJS/css/scenario2.css old mode 100644 new mode 100755 similarity index 100% rename from Samples/VideoPlayback/js/css/scenario2.css rename to archived/SharedContent/Templates/UWPSDKSampleJS/css/scenario2.css diff --git a/Samples/VideoPlayback/js/css/scenario3.css b/archived/SharedContent/Templates/UWPSDKSampleJS/css/scenario3.css old mode 100644 new mode 100755 similarity index 100% rename from Samples/VideoPlayback/js/css/scenario3.css rename to archived/SharedContent/Templates/UWPSDKSampleJS/css/scenario3.css diff --git a/SharedContent/Templates/UWPSDKSampleJS/html/scenario1.html b/archived/SharedContent/Templates/UWPSDKSampleJS/html/scenario1.html similarity index 100% rename from SharedContent/Templates/UWPSDKSampleJS/html/scenario1.html rename to archived/SharedContent/Templates/UWPSDKSampleJS/html/scenario1.html diff --git a/SharedContent/Templates/UWPSDKSampleJS/html/scenario2.html b/archived/SharedContent/Templates/UWPSDKSampleJS/html/scenario2.html similarity index 100% rename from SharedContent/Templates/UWPSDKSampleJS/html/scenario2.html rename to archived/SharedContent/Templates/UWPSDKSampleJS/html/scenario2.html diff --git a/SharedContent/Templates/UWPSDKSampleJS/html/scenario3.html b/archived/SharedContent/Templates/UWPSDKSampleJS/html/scenario3.html similarity index 100% rename from SharedContent/Templates/UWPSDKSampleJS/html/scenario3.html rename to archived/SharedContent/Templates/UWPSDKSampleJS/html/scenario3.html diff --git a/Samples/SimpleOrientationSensor/js/Microsoft.WinJS.4.0/fonts/placeholder b/archived/SharedContent/Templates/UWPSDKSampleJS/js/Microsoft.WinJS.4.0/css/placeholder old mode 100644 new mode 100755 similarity index 100% rename from Samples/SimpleOrientationSensor/js/Microsoft.WinJS.4.0/fonts/placeholder rename to archived/SharedContent/Templates/UWPSDKSampleJS/js/Microsoft.WinJS.4.0/css/placeholder diff --git a/Samples/SmartCard/js/Microsoft.WinJS.4.0/fonts/placeholder b/archived/SharedContent/Templates/UWPSDKSampleJS/js/Microsoft.WinJS.4.0/fonts/placeholder old mode 100644 new mode 100755 similarity index 100% rename from Samples/SmartCard/js/Microsoft.WinJS.4.0/fonts/placeholder rename to archived/SharedContent/Templates/UWPSDKSampleJS/js/Microsoft.WinJS.4.0/fonts/placeholder diff --git a/Samples/Store/js/Microsoft.WinJS.4.0/fonts/placeholder b/archived/SharedContent/Templates/UWPSDKSampleJS/js/Microsoft.WinJS.4.0/js/placeholder old mode 100644 new mode 100755 similarity index 100% rename from Samples/Store/js/Microsoft.WinJS.4.0/fonts/placeholder rename to archived/SharedContent/Templates/UWPSDKSampleJS/js/Microsoft.WinJS.4.0/js/placeholder diff --git a/SharedContent/Templates/UWPSDKSampleJS/js/sample-configuration.js b/archived/SharedContent/Templates/UWPSDKSampleJS/js/sample-configuration.js similarity index 100% rename from SharedContent/Templates/UWPSDKSampleJS/js/sample-configuration.js rename to archived/SharedContent/Templates/UWPSDKSampleJS/js/sample-configuration.js diff --git a/SharedContent/Templates/UWPSDKSampleJS/js/scenario1.js b/archived/SharedContent/Templates/UWPSDKSampleJS/js/scenario1.js similarity index 100% rename from SharedContent/Templates/UWPSDKSampleJS/js/scenario1.js rename to archived/SharedContent/Templates/UWPSDKSampleJS/js/scenario1.js diff --git a/SharedContent/Templates/UWPSDKSampleJS/js/scenario2.js b/archived/SharedContent/Templates/UWPSDKSampleJS/js/scenario2.js similarity index 100% rename from SharedContent/Templates/UWPSDKSampleJS/js/scenario2.js rename to archived/SharedContent/Templates/UWPSDKSampleJS/js/scenario2.js diff --git a/SharedContent/Templates/UWPSDKSampleJS/js/scenario3.js b/archived/SharedContent/Templates/UWPSDKSampleJS/js/scenario3.js similarity index 100% rename from SharedContent/Templates/UWPSDKSampleJS/js/scenario3.js rename to archived/SharedContent/Templates/UWPSDKSampleJS/js/scenario3.js diff --git a/SharedContent/Templates/UWPSDKSampleJS/package.appxmanifest b/archived/SharedContent/Templates/UWPSDKSampleJS/package.appxmanifest similarity index 100% rename from SharedContent/Templates/UWPSDKSampleJS/package.appxmanifest rename to archived/SharedContent/Templates/UWPSDKSampleJS/package.appxmanifest diff --git a/SharedContent/js/Microsoft.WinJS/css/ui-dark.css b/archived/SharedContent/js/Microsoft.WinJS/css/ui-dark.css similarity index 100% rename from SharedContent/js/Microsoft.WinJS/css/ui-dark.css rename to archived/SharedContent/js/Microsoft.WinJS/css/ui-dark.css diff --git a/SharedContent/js/Microsoft.WinJS/css/ui-light.css b/archived/SharedContent/js/Microsoft.WinJS/css/ui-light.css similarity index 100% rename from SharedContent/js/Microsoft.WinJS/css/ui-light.css rename to archived/SharedContent/js/Microsoft.WinJS/css/ui-light.css diff --git a/SharedContent/js/Microsoft.WinJS/fonts/Symbols.ttf b/archived/SharedContent/js/Microsoft.WinJS/fonts/Symbols.ttf similarity index 100% rename from SharedContent/js/Microsoft.WinJS/fonts/Symbols.ttf rename to archived/SharedContent/js/Microsoft.WinJS/fonts/Symbols.ttf diff --git a/SharedContent/js/Microsoft.WinJS/js/WinJS.intellisense-setup.js b/archived/SharedContent/js/Microsoft.WinJS/js/WinJS.intellisense-setup.js similarity index 100% rename from SharedContent/js/Microsoft.WinJS/js/WinJS.intellisense-setup.js rename to archived/SharedContent/js/Microsoft.WinJS/js/WinJS.intellisense-setup.js diff --git a/SharedContent/js/Microsoft.WinJS/js/WinJS.intellisense.js b/archived/SharedContent/js/Microsoft.WinJS/js/WinJS.intellisense.js similarity index 100% rename from SharedContent/js/Microsoft.WinJS/js/WinJS.intellisense.js rename to archived/SharedContent/js/Microsoft.WinJS/js/WinJS.intellisense.js diff --git a/SharedContent/js/Microsoft.WinJS/js/base.js b/archived/SharedContent/js/Microsoft.WinJS/js/base.js similarity index 100% rename from SharedContent/js/Microsoft.WinJS/js/base.js rename to archived/SharedContent/js/Microsoft.WinJS/js/base.js diff --git a/SharedContent/js/Microsoft.WinJS/js/en-US/ui.strings.js b/archived/SharedContent/js/Microsoft.WinJS/js/en-US/ui.strings.js similarity index 100% rename from SharedContent/js/Microsoft.WinJS/js/en-US/ui.strings.js rename to archived/SharedContent/js/Microsoft.WinJS/js/en-US/ui.strings.js diff --git a/SharedContent/js/Microsoft.WinJS/js/ui.js b/archived/SharedContent/js/Microsoft.WinJS/js/ui.js similarity index 100% rename from SharedContent/js/Microsoft.WinJS/js/ui.js rename to archived/SharedContent/js/Microsoft.WinJS/js/ui.js diff --git a/SharedContent/js/css/default.css b/archived/SharedContent/js/css/default.css similarity index 100% rename from SharedContent/js/css/default.css rename to archived/SharedContent/js/css/default.css diff --git a/SharedContent/js/default.html b/archived/SharedContent/js/default.html similarity index 100% rename from SharedContent/js/default.html rename to archived/SharedContent/js/default.html diff --git a/SharedContent/js/js/default.js b/archived/SharedContent/js/js/default.js similarity index 100% rename from SharedContent/js/js/default.js rename to archived/SharedContent/js/js/default.js diff --git a/SharedContent/js/js/devicehelpers.js b/archived/SharedContent/js/js/devicehelpers.js similarity index 100% rename from SharedContent/js/js/devicehelpers.js rename to archived/SharedContent/js/js/devicehelpers.js diff --git a/SharedContent/js/sample-utils/footer.html b/archived/SharedContent/js/sample-utils/footer.html similarity index 100% rename from SharedContent/js/sample-utils/footer.html rename to archived/SharedContent/js/sample-utils/footer.html diff --git a/SharedContent/js/sample-utils/header.html b/archived/SharedContent/js/sample-utils/header.html similarity index 100% rename from SharedContent/js/sample-utils/header.html rename to archived/SharedContent/js/sample-utils/header.html diff --git a/SharedContent/js/sample-utils/sample-utils.js b/archived/SharedContent/js/sample-utils/sample-utils.js similarity index 100% rename from SharedContent/js/sample-utils/sample-utils.js rename to archived/SharedContent/js/sample-utils/sample-utils.js diff --git a/SharedContent/js/sample-utils/scenario-select.css b/archived/SharedContent/js/sample-utils/scenario-select.css similarity index 100% rename from SharedContent/js/sample-utils/scenario-select.css rename to archived/SharedContent/js/sample-utils/scenario-select.css diff --git a/SharedContent/js/sample-utils/scenario-select.html b/archived/SharedContent/js/sample-utils/scenario-select.html similarity index 100% rename from SharedContent/js/sample-utils/scenario-select.html rename to archived/SharedContent/js/sample-utils/scenario-select.html diff --git a/archived/SimpleCommunication/README.md b/archived/SimpleCommunication/README.md new file mode 100644 index 0000000000..cf89554d96 --- /dev/null +++ b/archived/SimpleCommunication/README.md @@ -0,0 +1,113 @@ +--- +topic: sample +languages: +- js +products: +- windows +- windows-uwp +--- + +# Real-time communication sample + +Shows how to use the low latency feature to enable real-time communication applications. + +> **Note:** This sample is part of a large collection of UWP feature samples. +> If you are unfamiliar with Git and GitHub, you can download the entire collection as a +> [ZIP file](https://github.com/Microsoft/Windows-universal-samples/archive/master.zip), but be +> sure to unzip everything to access shared dependencies. For more info on working with the ZIP file, +> the samples collection, and GitHub, see [Get the UWP samples from GitHub](https://aka.ms/ovu2uq). +> For more samples, see the [Samples portal](https://aka.ms/winsamples) on the Windows Dev Center. + +Specifically, this sample contains: + +- A simple end-to-end video call client that demonstrates the low latency mode of the Windows Runtime capture engine. +This is enabled using the [msRealTime](http://msdn.microsoft.com/library/windows/apps/hh767377) the +[video](http://msdn.microsoft.com/library/windows/apps/hh767390) tag or [RealTimePlayback](http://msdn.microsoft.com/library/windows/apps/br227414) +on the [MediaElement](http://msdn.microsoft.com/library/windows/apps/br242926). The sample uses a custom network source and a custom sink extension to +send and receive captured audio and video data between two computers. + +- A demonstration of the end-to-end latency of video captured using the [Media Capture](http://msdn.microsoft.com/library/windows/apps/br226738) API +and displayed using a [video](http://msdn.microsoft.com/library/windows/apps/hh767390) and [MediaElement](http://msdn.microsoft.com/library/windows/apps/br242926) +with low latency mode enabled. Two output windows are displayed. The first shows a camera preview window of the raw output from your camera. The second is a local host +client window that shows the video from the camera when compressed, streamed, and received over machine's loopback network interface. This window demonstrates the +end-to-end latency of video captured, streamed to, and displayed by a remote client minus network latency. + +**Important**   + +This sample uses the Media Extension feature of Windows 8.1 to add functionality to the Microsoft Media Foundation pipeline. A Media Extension consists of a +hybrid object that implements both Component Object Model (COM) and Windows Runtime interfaces. The COM interfaces interact with the Media Foundation pipeline. +The Windows Runtime interfaces activate the component and interact with the Windows Runtime app. + +In most situations, it is recommended that you use Visual C++ with Component Extensions (C++/CX ) to interact with the Windows Runtime. But in the case of hybrid +components that implement both COM and Windows Runtime interfaces, such as Media Extensions, this is not possible. C++/CX can only create Windows Runtime objects. +So, for hybrid objects it is recommended that you use [Windows Runtime C++ Template Library](http://go.microsoft.com/fwlink/p/?linkid=243149) to interact with the +Windows Runtime. Be aware that Windows Runtime C++ Template Library has limited support for implementing COM interfaces. + +For more info on creating a Media Foundation media extension in Windows Runtime app, see Walkthrough: +[Creating an app using WRL and Media Foundation](http://go.microsoft.com/fwlink/p/?LinkID=309355) and the +[Media extension sample](http://go.microsoft.com/fwlink/p/?linkid=241427). + +**Important**  The binaries used by this sample have been included for proof of concept purposes only. They might have significant performance, reliability, +and security issues and should not be used outside of a test environment. They are not licensed for use in a production environment or for use with sensitive data. + +**Important**  The URL passed to the code is not validated or authenticated. The application must perform these actions. + +To obtain an evaluation copy of Windows 8.1, go to [Windows 8.1](http://go.microsoft.com/fwlink/p/?linkid=301696). + +To obtain an evaluation copy of Microsoft Visual Studio 2013, go to [Visual Studio 2013](http://go.microsoft.com/fwlink/p/?linkid=301697). + +Related topics +-------------- + +[Windows 8 app samples](http://go.microsoft.com/fwlink/p/?LinkID=227694) + +**Roadmaps** + +[Roadmap for apps using C\# and Visual Basic](http://msdn.microsoft.com/library/windows/apps/br229583) +[Roadmap for apps using C++](http://msdn.microsoft.com/library/windows/apps/hh700360) +[Roadmap for apps using JavaScript](http://msdn.microsoft.com/library/windows/apps/hh465037) +[Designing UX for apps](http://msdn.microsoft.com/library/windows/apps/hh767284) +[Audio, video, and camera](https://msdn.microsoft.com/library/windows/apps/mt203788) + +**Tasks** + +[How to enable low-latency playback](http://msdn.microsoft.com/library/windows/apps/hh452742) +[Creating an app using WRL and Media Foundation](http://go.microsoft.com/fwlink/p/?LinkID=309355) + +**Reference** + +[Windows.Media.Capture.MediaCapture](http://msdn.microsoft.com/library/windows/apps/br226738) +[MediaCapture](http://msdn.microsoft.com/library/windows/apps/br241124) +[msRealTime](http://msdn.microsoft.com/library/windows/apps/hh767377) +[MediaExtensionManager](http://msdn.microsoft.com/library/windows/apps/br240987) +[Windows.Media.MediaProperties](http://msdn.microsoft.com/library/windows/apps/hh701296) + +Operating system requirements +----------------------------- + +**Client:** Windows 10 + +**Server:** Windows Server 2016 Technical Preview + +**Phone:** Windows 10 + +Build the sample +---------------- + +1. If you download the samples ZIP, be sure to unzip the entire archive, not just the folder with the sample you want to build. +2. Start Microsoft Visual Studio 2017 and select **File** \> **Open** \> **Project/Solution**. +3. Starting in the folder where you unzipped the samples, go to the Samples subfolder, then the subfolder for this specific sample, then the subfolder for your preferred language (C++, C#, or JavaScript). Double-click the Visual Studio Solution (.sln) file. +4. Press Ctrl+Shift+B, or select **Build** \> **Build Solution**. + +Run the sample +-------------- + +The next steps depend on whether you just want to deploy the sample or you want to both deploy and run it. + +**Deploying the sample** + +- Select Build > Deploy Solution. + +**Deploying and running the sample** + +- To debug the sample and then run it, press F5 or select Debug > Start Debugging. To run the sample without debugging, press Ctrl+F5 or select Debug > Start Without Debugging. diff --git a/Samples/SimpleCommunication/js/Package.appxmanifest b/archived/SimpleCommunication/js/Package.appxmanifest similarity index 100% rename from Samples/SimpleCommunication/js/Package.appxmanifest rename to archived/SimpleCommunication/js/Package.appxmanifest diff --git a/Samples/SimpleCommunication/js/SimpleCommunication.jsproj b/archived/SimpleCommunication/js/SimpleCommunication.jsproj similarity index 83% rename from Samples/SimpleCommunication/js/SimpleCommunication.jsproj rename to archived/SimpleCommunication/js/SimpleCommunication.jsproj index 70d68b241e..5b806ca3ac 100644 --- a/Samples/SimpleCommunication/js/SimpleCommunication.jsproj +++ b/archived/SimpleCommunication/js/SimpleCommunication.jsproj @@ -54,16 +54,16 @@ Designer - + default.html - + Microsoft.WinJS.4.0\fonts\Symbols.ttf - + Microsoft.WinJS.4.0\js\base.js - + Microsoft.WinJS.4.0\js\ui.js @@ -104,43 +104,43 @@ images\webcam_preview_poster.png - + js\default.js - + css\default.css - + Microsoft.WinJS.4.0\css\ui-dark.css - + Microsoft.WinJS.4.0\css\ui-light.css - + Microsoft.WinJS.4.0\js\en-US\ui.strings.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense-setup.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense.js - + sample-utils\footer.html - + sample-utils\header.html - + sample-utils\sample-utils.js - + sample-utils\scenario-select.css - + sample-utils\scenario-select.html diff --git a/Samples/SimpleCommunication/js/SimpleCommunication.sln b/archived/SimpleCommunication/js/SimpleCommunication.sln similarity index 100% rename from Samples/SimpleCommunication/js/SimpleCommunication.sln rename to archived/SimpleCommunication/js/SimpleCommunication.sln diff --git a/Samples/SimpleCommunication/js/css/Scenario1_LowLatency.css b/archived/SimpleCommunication/js/css/Scenario1_LowLatency.css similarity index 100% rename from Samples/SimpleCommunication/js/css/Scenario1_LowLatency.css rename to archived/SimpleCommunication/js/css/Scenario1_LowLatency.css diff --git a/Samples/SimpleCommunication/js/css/Scenario2_VideoChat.css b/archived/SimpleCommunication/js/css/Scenario2_VideoChat.css similarity index 100% rename from Samples/SimpleCommunication/js/css/Scenario2_VideoChat.css rename to archived/SimpleCommunication/js/css/Scenario2_VideoChat.css diff --git a/Samples/SimpleCommunication/js/html/Scenario1_LowLatency.html b/archived/SimpleCommunication/js/html/Scenario1_LowLatency.html similarity index 100% rename from Samples/SimpleCommunication/js/html/Scenario1_LowLatency.html rename to archived/SimpleCommunication/js/html/Scenario1_LowLatency.html diff --git a/Samples/SimpleCommunication/js/html/Scenario2_VideoChat.html b/archived/SimpleCommunication/js/html/Scenario2_VideoChat.html similarity index 100% rename from Samples/SimpleCommunication/js/html/Scenario2_VideoChat.html rename to archived/SimpleCommunication/js/html/Scenario2_VideoChat.html diff --git a/Samples/SimpleCommunication/js/images/placeholder.txt b/archived/SimpleCommunication/js/images/placeholder.txt similarity index 100% rename from Samples/SimpleCommunication/js/images/placeholder.txt rename to archived/SimpleCommunication/js/images/placeholder.txt diff --git a/Samples/SimpleCommunication/js/js/CaptureManager.js b/archived/SimpleCommunication/js/js/CaptureManager.js similarity index 100% rename from Samples/SimpleCommunication/js/js/CaptureManager.js rename to archived/SimpleCommunication/js/js/CaptureManager.js diff --git a/Samples/SimpleCommunication/js/js/Scenario1_LowLatency.js b/archived/SimpleCommunication/js/js/Scenario1_LowLatency.js similarity index 100% rename from Samples/SimpleCommunication/js/js/Scenario1_LowLatency.js rename to archived/SimpleCommunication/js/js/Scenario1_LowLatency.js diff --git a/Samples/SimpleCommunication/js/js/Scenario2_VideoChat.js b/archived/SimpleCommunication/js/js/Scenario2_VideoChat.js similarity index 100% rename from Samples/SimpleCommunication/js/js/Scenario2_VideoChat.js rename to archived/SimpleCommunication/js/js/Scenario2_VideoChat.js diff --git a/Samples/SimpleCommunication/js/js/sample-configuration.js b/archived/SimpleCommunication/js/js/sample-configuration.js similarity index 100% rename from Samples/SimpleCommunication/js/js/sample-configuration.js rename to archived/SimpleCommunication/js/js/sample-configuration.js diff --git a/Samples/SimpleCommunication/js/microsoft.winjs.4.0/css/placeholder.txt b/archived/SimpleCommunication/js/microsoft.winjs.4.0/css/placeholder.txt similarity index 100% rename from Samples/SimpleCommunication/js/microsoft.winjs.4.0/css/placeholder.txt rename to archived/SimpleCommunication/js/microsoft.winjs.4.0/css/placeholder.txt diff --git a/Samples/SimpleCommunication/js/microsoft.winjs.4.0/fonts/placeholder.txt b/archived/SimpleCommunication/js/microsoft.winjs.4.0/fonts/placeholder.txt similarity index 100% rename from Samples/SimpleCommunication/js/microsoft.winjs.4.0/fonts/placeholder.txt rename to archived/SimpleCommunication/js/microsoft.winjs.4.0/fonts/placeholder.txt diff --git a/Samples/SimpleCommunication/js/microsoft.winjs.4.0/js/en-us/placeholder.txt b/archived/SimpleCommunication/js/microsoft.winjs.4.0/js/en-us/placeholder.txt similarity index 100% rename from Samples/SimpleCommunication/js/microsoft.winjs.4.0/js/en-us/placeholder.txt rename to archived/SimpleCommunication/js/microsoft.winjs.4.0/js/en-us/placeholder.txt diff --git a/Samples/SimpleCommunication/js/sample-utils/placeholder.txt b/archived/SimpleCommunication/js/sample-utils/placeholder.txt similarity index 100% rename from Samples/SimpleCommunication/js/sample-utils/placeholder.txt rename to archived/SimpleCommunication/js/sample-utils/placeholder.txt diff --git a/archived/SimpleImaging/README.md b/archived/SimpleImaging/README.md new file mode 100644 index 0000000000..6f42d134c5 --- /dev/null +++ b/archived/SimpleImaging/README.md @@ -0,0 +1,82 @@ +--- +topic: sample +languages: +- js +products: +- windows +- windows-uwp +--- + +# Simple imaging sample + +Shows some common imaging scenarios for Universal Windows apps including metadata and editing/saving. + +> **Note:** This sample is part of a large collection of UWP feature samples. +> If you are unfamiliar with Git and GitHub, you can download the entire collection as a +> [ZIP file](https://github.com/Microsoft/Windows-universal-samples/archive/master.zip), but be +> sure to unzip everything to access shared dependencies. For more info on working with the ZIP file, +> the samples collection, and GitHub, see [Get the UWP samples from GitHub](https://aka.ms/ovu2uq). +> For more samples, see the [Samples portal](https://aka.ms/winsamples) on the Windows Dev Center. + +Specifically, this sample demonstrates how to: + +- Read, process and edit common image metadata and properties including: + - EXIF orientation + - Author, title, and keywords + - Geotags +- Perform scaling and rotation while respecting EXIF orientation +- Optimize image saving + +To obtain information about Windows 10 development, go to the [Windows Dev Center](http://go.microsoft.com/fwlink/?LinkID=532421) + +To obtain information about Microsoft Visual Studio and the tools for developing Windows apps, go to [Visual Studio](http://go.microsoft.com/fwlink/?LinkID=532422) + +## Sample contents + +### C# version + +- **Scenario1.xaml**, **Scenario1.xaml.cs**: Use the property system APIs (Windows.Storage.FileProperties) to read and edit bitmap properties from an image. +- **Scenario2.xaml**, **Scenario2.xaml.cs**: Use the imaging APIs (Windows.Graphics.Imaging) to read and edit bitmap properties and apply transformations such as scale, crop and rotate. +- **Helpers.cs**: Helper functionality including handling/converting EXIF orientation values. + +All other files provide common SDK sample functionality. + +### JS version + +- **css\scenario1.css**, **html\scenario1.html**, **js\scenario1.js**: Use the property system APIs (Windows.Storage.FileProperties) to read and edit bitmap properties from an image. +- **css\scenario2.css**, **html\scenario2.html**, **js\scenario2.js**: Use the imaging APIs (Windows.Graphics.Imaging) to read and edit bitmap properties and apply transformations such as scale, crop and rotate. +- **js\helpers.cs**: Helper functionality including handling/converting EXIF orientation values. + +All other files provide common SDK sample functionality. + +## Related topics + +[Windows.Storage](http://msdn.microsoft.com/library/windows/apps/br227346) +[Windows.Graphics.Imaging](http://msdn.microsoft.com/library/windows/apps/br226400) + +## System requirements + +**Client:** Windows 10 + +**Server:** Windows Server 2016 Technical Preview + +**Phone:** Windows 10 + +## Build the sample + +1. If you download the samples ZIP, be sure to unzip the entire archive, not just the folder with the sample you want to build. +2. Start Microsoft Visual Studio 2017 and select **File** \> **Open** \> **Project/Solution**. +3. Starting in the folder where you unzipped the samples, go to the Samples subfolder, then the subfolder for this specific sample, then the subfolder for your preferred language (C++, C#, or JavaScript). Double-click the Visual Studio Solution (.sln) file. +4. Press Ctrl+Shift+B, or select **Build** \> **Build Solution**. + +## Run the sample + +The next steps depend on whether you just want to deploy the sample or you want to both deploy and run it. + +### Deploying the sample + +- Select Build > Deploy Solution. + +### Deploying and running the sample + +- To debug the sample and then run it, press F5 or select Debug > Start Debugging. To run the sample without debugging, press Ctrl+F5 or selectDebug > Start Without Debugging. \ No newline at end of file diff --git a/Samples/SimpleImaging/js/Microsoft.WinJS.4.0/css/placeholder.txt b/archived/SimpleImaging/js/Microsoft.WinJS.4.0/css/placeholder.txt similarity index 100% rename from Samples/SimpleImaging/js/Microsoft.WinJS.4.0/css/placeholder.txt rename to archived/SimpleImaging/js/Microsoft.WinJS.4.0/css/placeholder.txt diff --git a/Samples/SimpleImaging/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt b/archived/SimpleImaging/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt similarity index 100% rename from Samples/SimpleImaging/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt rename to archived/SimpleImaging/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt diff --git a/Samples/SimpleImaging/js/SimpleImaging.jsproj b/archived/SimpleImaging/js/SimpleImaging.jsproj similarity index 79% rename from Samples/SimpleImaging/js/SimpleImaging.jsproj rename to archived/SimpleImaging/js/SimpleImaging.jsproj index 326623966a..9e6b5b3d95 100644 --- a/Samples/SimpleImaging/js/SimpleImaging.jsproj +++ b/archived/SimpleImaging/js/SimpleImaging.jsproj @@ -32,7 +32,7 @@ - + default.html @@ -61,50 +61,50 @@ images\windows-sdk.png - + js\default.js - + css\default.css - + Microsoft.WinJS.4.0\css\ui-dark.css - + Microsoft.WinJS.4.0\css\ui-light.css - + Microsoft.WinJS.4.0\js\en-US\ui.strings.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense-setup.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense.js - + Microsoft.WinJS.4.0\js\base.js - + Microsoft.WinJS.4.0\js\ui.js - + sample-utils\footer.html - + sample-utils\header.html - + sample-utils\sample-utils.js - + sample-utils\scenario-select.css - + sample-utils\scenario-select.html diff --git a/Samples/SimpleImaging/js/SimpleImaging.sln b/archived/SimpleImaging/js/SimpleImaging.sln similarity index 100% rename from Samples/SimpleImaging/js/SimpleImaging.sln rename to archived/SimpleImaging/js/SimpleImaging.sln diff --git a/Samples/SimpleImaging/js/css/scenario1.css b/archived/SimpleImaging/js/css/scenario1.css similarity index 100% rename from Samples/SimpleImaging/js/css/scenario1.css rename to archived/SimpleImaging/js/css/scenario1.css diff --git a/Samples/SimpleImaging/js/css/scenario2.css b/archived/SimpleImaging/js/css/scenario2.css similarity index 100% rename from Samples/SimpleImaging/js/css/scenario2.css rename to archived/SimpleImaging/js/css/scenario2.css diff --git a/Samples/SimpleImaging/js/html/scenario1.html b/archived/SimpleImaging/js/html/scenario1.html similarity index 100% rename from Samples/SimpleImaging/js/html/scenario1.html rename to archived/SimpleImaging/js/html/scenario1.html diff --git a/Samples/SimpleImaging/js/html/scenario2.html b/archived/SimpleImaging/js/html/scenario2.html similarity index 100% rename from Samples/SimpleImaging/js/html/scenario2.html rename to archived/SimpleImaging/js/html/scenario2.html diff --git a/Samples/SimpleImaging/js/images/placeholder.txt b/archived/SimpleImaging/js/images/placeholder.txt similarity index 100% rename from Samples/SimpleImaging/js/images/placeholder.txt rename to archived/SimpleImaging/js/images/placeholder.txt diff --git a/Samples/SimpleImaging/js/js/helpers.js b/archived/SimpleImaging/js/js/helpers.js similarity index 100% rename from Samples/SimpleImaging/js/js/helpers.js rename to archived/SimpleImaging/js/js/helpers.js diff --git a/Samples/SimpleImaging/js/js/sample-configuration.js b/archived/SimpleImaging/js/js/sample-configuration.js similarity index 100% rename from Samples/SimpleImaging/js/js/sample-configuration.js rename to archived/SimpleImaging/js/js/sample-configuration.js diff --git a/Samples/SimpleImaging/js/js/scenario1.js b/archived/SimpleImaging/js/js/scenario1.js similarity index 100% rename from Samples/SimpleImaging/js/js/scenario1.js rename to archived/SimpleImaging/js/js/scenario1.js diff --git a/Samples/SimpleImaging/js/js/scenario2.js b/archived/SimpleImaging/js/js/scenario2.js similarity index 100% rename from Samples/SimpleImaging/js/js/scenario2.js rename to archived/SimpleImaging/js/js/scenario2.js diff --git a/Samples/SimpleImaging/js/package.appxmanifest b/archived/SimpleImaging/js/package.appxmanifest similarity index 100% rename from Samples/SimpleImaging/js/package.appxmanifest rename to archived/SimpleImaging/js/package.appxmanifest diff --git a/Samples/SimpleImaging/js/sample-utils/placeholder.txt b/archived/SimpleImaging/js/sample-utils/placeholder.txt similarity index 100% rename from Samples/SimpleImaging/js/sample-utils/placeholder.txt rename to archived/SimpleImaging/js/sample-utils/placeholder.txt diff --git a/archived/SimpleOrientationSensor/README.md b/archived/SimpleOrientationSensor/README.md new file mode 100644 index 0000000000..f2250f36f3 --- /dev/null +++ b/archived/SimpleOrientationSensor/README.md @@ -0,0 +1,61 @@ +--- +topic: sample +languages: +- js +products: +- windows +- windows-uwp +--- + +# Simple orientation sensor sample + +Shows how to use the [Windows.Devices.Sensors.SimpleOrientationSensor](https://msdn.microsoft.com/library/windows/apps/windows.devices.sensors.simpleorientationsensor.aspx) +class for a simple device orientation sensor. + +> **Note:** This sample is part of a large collection of UWP feature samples. +> If you are unfamiliar with Git and GitHub, you can download the entire collection as a +> [ZIP file](https://github.com/Microsoft/Windows-universal-samples/archive/master.zip), but be +> sure to unzip everything to access shared dependencies. For more info on working with the ZIP file, +> the samples collection, and GitHub, see [Get the UWP samples from GitHub](https://aka.ms/ovu2uq). +> For more samples, see the [Samples portal](https://aka.ms/winsamples) on the Windows Dev Center. + +This sample allows the user to view the orientation values that reflect the simple device orientation (for example, not rotated, face up, rotated 90 degrees counter-clockwise). +You can choose one of two scenarios: + +- Orientation sensor data events +- Polling orientation sensor readings + +**Simple Orientation Sensor Data Events** + +When you choose the Enable button for the **Data Events** option, the app will begin displaying sensor readings in real time. + +**Polling Simple Orientation Sensor Readings** + +When you choose the Enable button for the **Polling** option, the app will retrieve the current sensor readings. + +## System requirements + +**Client:** Windows 10 + +**Server:** Windows Server 2016 Technical Preview + +**Phone:** Windows 10 + +## Build the sample + +1. If you download the samples ZIP, be sure to unzip the entire archive, not just the folder with the sample you want to build. +2. Start Microsoft Visual Studio 2017 and select **File** \> **Open** \> **Project/Solution**. +3. Starting in the folder where you unzipped the samples, go to the Samples subfolder, then the subfolder for this specific sample, then the subfolder for your preferred language (C++, C#, or JavaScript). Double-click the Visual Studio Solution (.sln) file. +4. Press Ctrl+Shift+B, or select **Build** \> **Build Solution**. + +## Run the sample + +The next steps depend on whether you just want to deploy the sample or you want to both deploy and run it. + +### Deploying the sample + +- Select Build > Deploy Solution. + +### Deploying and running the sample + +- To debug the sample and then run it, press F5 or select Debug > Start Debugging. To run the sample without debugging, press Ctrl+F5 or selectDebug > Start Without Debugging. diff --git a/Samples/SimpleOrientationSensor/js/Microsoft.WinJS.4.0/css/placeholder.txt b/archived/SimpleOrientationSensor/js/Microsoft.WinJS.4.0/css/placeholder.txt similarity index 100% rename from Samples/SimpleOrientationSensor/js/Microsoft.WinJS.4.0/css/placeholder.txt rename to archived/SimpleOrientationSensor/js/Microsoft.WinJS.4.0/css/placeholder.txt diff --git a/Samples/StreamSocket/js/Microsoft.WinJS.4.0/fonts/placeholder b/archived/SimpleOrientationSensor/js/Microsoft.WinJS.4.0/fonts/placeholder similarity index 100% rename from Samples/StreamSocket/js/Microsoft.WinJS.4.0/fonts/placeholder rename to archived/SimpleOrientationSensor/js/Microsoft.WinJS.4.0/fonts/placeholder diff --git a/Samples/SimpleOrientationSensor/js/Microsoft.WinJS.4.0/js/en-us/placeholder.txt b/archived/SimpleOrientationSensor/js/Microsoft.WinJS.4.0/js/en-us/placeholder.txt similarity index 100% rename from Samples/SimpleOrientationSensor/js/Microsoft.WinJS.4.0/js/en-us/placeholder.txt rename to archived/SimpleOrientationSensor/js/Microsoft.WinJS.4.0/js/en-us/placeholder.txt diff --git a/Samples/SimpleOrientationSensor/js/Package.appxmanifest b/archived/SimpleOrientationSensor/js/Package.appxmanifest similarity index 100% rename from Samples/SimpleOrientationSensor/js/Package.appxmanifest rename to archived/SimpleOrientationSensor/js/Package.appxmanifest diff --git a/Samples/SimpleOrientationSensor/js/SimpleOrientationSensor.jsproj b/archived/SimpleOrientationSensor/js/SimpleOrientationSensor.jsproj similarity index 81% rename from Samples/SimpleOrientationSensor/js/SimpleOrientationSensor.jsproj rename to archived/SimpleOrientationSensor/js/SimpleOrientationSensor.jsproj index 7f5537d351..93d8a1b80a 100644 --- a/Samples/SimpleOrientationSensor/js/SimpleOrientationSensor.jsproj +++ b/archived/SimpleOrientationSensor/js/SimpleOrientationSensor.jsproj @@ -56,7 +56,7 @@ - + default.html @@ -82,52 +82,52 @@ images\windows-sdk.png - + js\default.js - + css\default.css - + Microsoft.WinJS.4.0\css\ui-dark.css - + Microsoft.WinJS.4.0\css\ui-light.css - + Microsoft.WinJS.4.0\js\en-US\ui.strings.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense-setup.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense.js - + Microsoft.WinJS.4.0\fonts\Symbols.ttf - + Microsoft.WinJS.4.0\js\base.js - + Microsoft.WinJS.4.0\js\ui.js - + sample-utils\footer.html - + sample-utils\header.html - + sample-utils\sample-utils.js - + sample-utils\scenario-select.css - + sample-utils\scenario-select.html diff --git a/Samples/SimpleOrientationSensor/js/SimpleOrientationSensor.sln b/archived/SimpleOrientationSensor/js/SimpleOrientationSensor.sln similarity index 100% rename from Samples/SimpleOrientationSensor/js/SimpleOrientationSensor.sln rename to archived/SimpleOrientationSensor/js/SimpleOrientationSensor.sln diff --git a/Samples/SimpleOrientationSensor/js/css/scenario1_DataEvents.css b/archived/SimpleOrientationSensor/js/css/scenario1_DataEvents.css similarity index 100% rename from Samples/SimpleOrientationSensor/js/css/scenario1_DataEvents.css rename to archived/SimpleOrientationSensor/js/css/scenario1_DataEvents.css diff --git a/Samples/SimpleOrientationSensor/js/css/scenario2_Polling.css b/archived/SimpleOrientationSensor/js/css/scenario2_Polling.css similarity index 100% rename from Samples/SimpleOrientationSensor/js/css/scenario2_Polling.css rename to archived/SimpleOrientationSensor/js/css/scenario2_Polling.css diff --git a/Samples/SimpleOrientationSensor/js/html/scenario1_DataEvents.html b/archived/SimpleOrientationSensor/js/html/scenario1_DataEvents.html similarity index 100% rename from Samples/SimpleOrientationSensor/js/html/scenario1_DataEvents.html rename to archived/SimpleOrientationSensor/js/html/scenario1_DataEvents.html diff --git a/Samples/SimpleOrientationSensor/js/html/scenario2_Polling.html b/archived/SimpleOrientationSensor/js/html/scenario2_Polling.html similarity index 100% rename from Samples/SimpleOrientationSensor/js/html/scenario2_Polling.html rename to archived/SimpleOrientationSensor/js/html/scenario2_Polling.html diff --git a/Samples/SimpleOrientationSensor/js/js/sample-configuration.js b/archived/SimpleOrientationSensor/js/js/sample-configuration.js similarity index 100% rename from Samples/SimpleOrientationSensor/js/js/sample-configuration.js rename to archived/SimpleOrientationSensor/js/js/sample-configuration.js diff --git a/Samples/SimpleOrientationSensor/js/js/scenario1_DataEvents.js b/archived/SimpleOrientationSensor/js/js/scenario1_DataEvents.js similarity index 100% rename from Samples/SimpleOrientationSensor/js/js/scenario1_DataEvents.js rename to archived/SimpleOrientationSensor/js/js/scenario1_DataEvents.js diff --git a/Samples/SimpleOrientationSensor/js/js/scenario2_Polling.js b/archived/SimpleOrientationSensor/js/js/scenario2_Polling.js similarity index 100% rename from Samples/SimpleOrientationSensor/js/js/scenario2_Polling.js rename to archived/SimpleOrientationSensor/js/js/scenario2_Polling.js diff --git a/Samples/SimpleOrientationSensor/js/sample-utils/placeholder.txt b/archived/SimpleOrientationSensor/js/sample-utils/placeholder.txt similarity index 100% rename from Samples/SimpleOrientationSensor/js/sample-utils/placeholder.txt rename to archived/SimpleOrientationSensor/js/sample-utils/placeholder.txt diff --git a/archived/SmartCard/README.md b/archived/SmartCard/README.md new file mode 100644 index 0000000000..a82115ef99 --- /dev/null +++ b/archived/SmartCard/README.md @@ -0,0 +1,63 @@ +--- +topic: sample +languages: +- js +products: +- windows +- windows-uwp +--- + +# Smart cards sample + +Shows how to use the Windows.Devices.SmartCards API to work with smart cards and smart card readers programmatically. + +> **Note:** This sample is part of a large collection of UWP feature samples. +> If you are unfamiliar with Git and GitHub, you can download the entire collection as a +> [ZIP file](https://github.com/Microsoft/Windows-universal-samples/archive/master.zip), but be +> sure to unzip everything to access shared dependencies. For more info on working with the ZIP file, +> the samples collection, and GitHub, see [Get the UWP samples from GitHub](https://aka.ms/ovu2uq). +> For more samples, see the [Samples portal](https://aka.ms/winsamples) on the Windows Dev Center. + +Specifically, this sample shows: + +- Creating a virtual smart card +- Changing the PIN on a virtual smart card +- Resetting the PIN on a virtual smart card +- Changing the admin key +- Verifying the response +- Deleting a virtual smart card +- Listing all the smart cards on the machine +- Transmitting + +**Note:** In order to create a virtual smart card using a UWP app, the user running the app must be a member of the administrators group. If the user is not a member of the administrators group, virtual smart card creation will fail. + +Related topics +-------------- + +[Windows.Devices.SmartCards](http://msdn.microsoft.com/library/windows/apps/dn263949) + +Operating system requirements +----------------------------- + +Windows 10 + +Build the sample +---------------- + +1. If you download the samples ZIP, be sure to unzip the entire archive, not just the folder with the sample you want to build. +2. Start Microsoft Visual Studio 2017 and select **File** \> **Open** \> **Project/Solution**. +3. Starting in the folder where you unzipped the samples, go to the Samples subfolder, then the subfolder for this specific sample, then the subfolder for your preferred language (C++, C#, or JavaScript). Double-click the Visual Studio Solution (.sln) file. +4. Press Ctrl+Shift+B, or select **Build** \> **Build Solution**. + +Run the sample +-------------- + +The next steps depend on whether you just want to deploy the sample or you want to both deploy and run it. + +**Deploying the sample** + +1. Select **Build** \> **Deploy Solution**. + +**Deploying and running the sample** + +1. To debug the sample and then run it, press F5 or select **Debug** \> **Start Debugging**. To run the sample without debugging, press Ctrl+F5 or select**Debug** \> **Start Without Debugging**. diff --git a/Samples/SmartCard/js/Microsoft.WinJS.4.0/css/placeholder.txt b/archived/SmartCard/js/Microsoft.WinJS.4.0/css/placeholder.txt similarity index 100% rename from Samples/SmartCard/js/Microsoft.WinJS.4.0/css/placeholder.txt rename to archived/SmartCard/js/Microsoft.WinJS.4.0/css/placeholder.txt diff --git a/Samples/SystemMediaTransportControls/js/Microsoft.WinJS.4.0/fonts/placeholder b/archived/SmartCard/js/Microsoft.WinJS.4.0/fonts/placeholder similarity index 100% rename from Samples/SystemMediaTransportControls/js/Microsoft.WinJS.4.0/fonts/placeholder rename to archived/SmartCard/js/Microsoft.WinJS.4.0/fonts/placeholder diff --git a/Samples/SmartCard/js/Microsoft.WinJS.4.0/js/en-us/placeholder.txt b/archived/SmartCard/js/Microsoft.WinJS.4.0/js/en-us/placeholder.txt similarity index 100% rename from Samples/SmartCard/js/Microsoft.WinJS.4.0/js/en-us/placeholder.txt rename to archived/SmartCard/js/Microsoft.WinJS.4.0/js/en-us/placeholder.txt diff --git a/Samples/SmartCard/js/Package.appxmanifest b/archived/SmartCard/js/Package.appxmanifest similarity index 100% rename from Samples/SmartCard/js/Package.appxmanifest rename to archived/SmartCard/js/Package.appxmanifest diff --git a/Samples/SmartCard/js/SmartCard.sln b/archived/SmartCard/js/SmartCard.sln similarity index 100% rename from Samples/SmartCard/js/SmartCard.sln rename to archived/SmartCard/js/SmartCard.sln diff --git a/Samples/SmartCard/js/Smartcard.jsproj b/archived/SmartCard/js/Smartcard.jsproj similarity index 82% rename from Samples/SmartCard/js/Smartcard.jsproj rename to archived/SmartCard/js/Smartcard.jsproj index d114525e61..fc22416cb0 100644 --- a/Samples/SmartCard/js/Smartcard.jsproj +++ b/archived/SmartCard/js/Smartcard.jsproj @@ -54,7 +54,7 @@ Designer - + default.html @@ -86,10 +86,10 @@ images\windows-sdk.png - + js\default.js - + css\default.css @@ -101,43 +101,43 @@ - + Microsoft.WinJS.4.0\css\ui-dark.css - + Microsoft.WinJS.4.0\css\ui-light.css - + Microsoft.WinJS.4.0\js\en-US\ui.strings.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense-setup.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense.js - + Microsoft.WinJS.4.0\fonts\Symbols.ttf - + Microsoft.WinJS.4.0\js\base.js - + Microsoft.WinJS.4.0\js\ui.js - + sample-utils\footer.html - + sample-utils\header.html - + sample-utils\sample-utils.js - + sample-utils\scenario-select.css - + sample-utils\scenario-select.html diff --git a/Samples/SmartCard/js/css/placeholder.txt b/archived/SmartCard/js/css/placeholder.txt similarity index 100% rename from Samples/SmartCard/js/css/placeholder.txt rename to archived/SmartCard/js/css/placeholder.txt diff --git a/Samples/SmartCard/js/html/scenario1.html b/archived/SmartCard/js/html/scenario1.html similarity index 100% rename from Samples/SmartCard/js/html/scenario1.html rename to archived/SmartCard/js/html/scenario1.html diff --git a/Samples/SmartCard/js/html/scenario2.html b/archived/SmartCard/js/html/scenario2.html similarity index 100% rename from Samples/SmartCard/js/html/scenario2.html rename to archived/SmartCard/js/html/scenario2.html diff --git a/Samples/SmartCard/js/html/scenario3.html b/archived/SmartCard/js/html/scenario3.html similarity index 100% rename from Samples/SmartCard/js/html/scenario3.html rename to archived/SmartCard/js/html/scenario3.html diff --git a/Samples/SmartCard/js/html/scenario4.html b/archived/SmartCard/js/html/scenario4.html similarity index 100% rename from Samples/SmartCard/js/html/scenario4.html rename to archived/SmartCard/js/html/scenario4.html diff --git a/Samples/SmartCard/js/html/scenario5.html b/archived/SmartCard/js/html/scenario5.html similarity index 100% rename from Samples/SmartCard/js/html/scenario5.html rename to archived/SmartCard/js/html/scenario5.html diff --git a/Samples/SmartCard/js/html/scenario6.html b/archived/SmartCard/js/html/scenario6.html similarity index 100% rename from Samples/SmartCard/js/html/scenario6.html rename to archived/SmartCard/js/html/scenario6.html diff --git a/Samples/SmartCard/js/html/scenario7.html b/archived/SmartCard/js/html/scenario7.html similarity index 100% rename from Samples/SmartCard/js/html/scenario7.html rename to archived/SmartCard/js/html/scenario7.html diff --git a/Samples/SmartCard/js/html/scenario8.html b/archived/SmartCard/js/html/scenario8.html similarity index 100% rename from Samples/SmartCard/js/html/scenario8.html rename to archived/SmartCard/js/html/scenario8.html diff --git a/Samples/SmartCard/js/js/sample-configuration.js b/archived/SmartCard/js/js/sample-configuration.js similarity index 100% rename from Samples/SmartCard/js/js/sample-configuration.js rename to archived/SmartCard/js/js/sample-configuration.js diff --git a/Samples/SmartCard/js/js/scenario1.js b/archived/SmartCard/js/js/scenario1.js similarity index 100% rename from Samples/SmartCard/js/js/scenario1.js rename to archived/SmartCard/js/js/scenario1.js diff --git a/Samples/SmartCard/js/js/scenario2.js b/archived/SmartCard/js/js/scenario2.js similarity index 100% rename from Samples/SmartCard/js/js/scenario2.js rename to archived/SmartCard/js/js/scenario2.js diff --git a/Samples/SmartCard/js/js/scenario3.js b/archived/SmartCard/js/js/scenario3.js similarity index 100% rename from Samples/SmartCard/js/js/scenario3.js rename to archived/SmartCard/js/js/scenario3.js diff --git a/Samples/SmartCard/js/js/scenario4.js b/archived/SmartCard/js/js/scenario4.js similarity index 100% rename from Samples/SmartCard/js/js/scenario4.js rename to archived/SmartCard/js/js/scenario4.js diff --git a/Samples/SmartCard/js/js/scenario5.js b/archived/SmartCard/js/js/scenario5.js similarity index 100% rename from Samples/SmartCard/js/js/scenario5.js rename to archived/SmartCard/js/js/scenario5.js diff --git a/Samples/SmartCard/js/js/scenario6.js b/archived/SmartCard/js/js/scenario6.js similarity index 100% rename from Samples/SmartCard/js/js/scenario6.js rename to archived/SmartCard/js/js/scenario6.js diff --git a/Samples/SmartCard/js/js/scenario7.js b/archived/SmartCard/js/js/scenario7.js similarity index 100% rename from Samples/SmartCard/js/js/scenario7.js rename to archived/SmartCard/js/js/scenario7.js diff --git a/Samples/SmartCard/js/js/scenario8.js b/archived/SmartCard/js/js/scenario8.js similarity index 100% rename from Samples/SmartCard/js/js/scenario8.js rename to archived/SmartCard/js/js/scenario8.js diff --git a/Samples/SmartCard/js/sample-utils/placeholder.txt b/archived/SmartCard/js/sample-utils/placeholder.txt similarity index 100% rename from Samples/SmartCard/js/sample-utils/placeholder.txt rename to archived/SmartCard/js/sample-utils/placeholder.txt diff --git a/archived/SpeechRecognitionAndSynthesis/README.md b/archived/SpeechRecognitionAndSynthesis/README.md new file mode 100644 index 0000000000..fbcb894759 --- /dev/null +++ b/archived/SpeechRecognitionAndSynthesis/README.md @@ -0,0 +1,87 @@ +--- +topic: sample +languages: +- js +products: +- windows +- windows-uwp +--- + +# Speech recognition and synthesis sample + +Shows how to use Speech Recognition and Speech Synthesis (Text-to-speech) in UWP apps. + +> **Note:** This sample is part of a large collection of UWP feature samples. +> If you are unfamiliar with Git and GitHub, you can download the entire collection as a +> [ZIP file](https://github.com/Microsoft/Windows-universal-samples/archive/master.zip), but be +> sure to unzip everything to access shared dependencies. For more info on working with the ZIP file, +> the samples collection, and GitHub, see [Get the UWP samples from GitHub](https://aka.ms/ovu2uq). +> For more samples, see the [Samples portal](https://aka.ms/winsamples) on the Windows Dev Center. + +Specifically, this sample covers the following scenarios: + +1. Synthesizing text to speech (TTS) +2. Synthesizing Speech Synthesis Markup Language (SSML) +3. One-shot recognition using the predefined dictation grammar +4. One-shot recognition using the predefined webs search grammar +5. One-shot recognition using a custom list-based grammar +6. One-shot recognition using a custom SRGS/GRXML grammar +7. Continuous dictation +8. Continuous recognition using a custom list-based grammar +9. Continuous recognition using a custom SRGS/GRXML grammar +10. Pausing and resuming continuous recognition + +In addition, translations are shown for speech recognition and text-to-speech for supported languages. Translations provided may not be using ideal phrasing and are provided for demonstration purposes only. + +## Privacy Policy + +Some speech recognition features require acceptance of the Microsoft Privacy Policy. Information about this privacy policy can be found in the Settings app, under Privacy -> Speech, Inking and Typing. You must view the privacy policy in order to accept it. To view the privacy policy, press the Privacy Policy link on the Speech, Inking and Typing settings page. + +You can disable functionality that requires accepting this policy by turning off "Getting to know you" under Settings -> Privacy -> Speech, Inking and Typing. The samples will indicate to you if the privacy policy has not been accepted where necessary. + +## Related topics + +[Speech recognition](https://msdn.microsoft.com/library/windows.media.speechrecognition.aspx) +[Speech synthesis](https://msdn.microsoft.com/library/windows/apps/windows.media.speechsynthesis.aspx) +[Speech design guidelines](https://msdn.microsoft.com/library/windows/apps/dn596121.aspx) +[Speech interactions](https://msdn.microsoft.com/library/windows/apps/mt185614) +[Responding to speech interactions (HTML)](https://msdn.microsoft.com/library/windows/apps/dn720491.aspx) + +## Related samples + +[Family Notes sample](https://github.com/Microsoft/Windows-appsample-familynotes) + +## System requirements + +**Hardware:** Speech recognition requires an appropriate audio input device. + +**Client:** Windows 10 + +**Server:** Windows Server 2016 Technical Preview + +**Phone:** Windows 10 + +## Build the sample + +1. If you download the samples ZIP, be sure to unzip the entire archive, not just the folder with the sample you want to build. +2. Start Microsoft Visual Studio 2017 and select **File** \> **Open** \> **Project/Solution**. +3. Starting in the folder where you unzipped the samples, go to the Samples subfolder, then the subfolder for this specific sample, then the subfolder for your preferred language (C++, C#, or JavaScript). Double-click the Visual Studio Solution (.sln) file. +4. Press Ctrl+Shift+B, or select **Build** \> **Build Solution**. + +## Run the sample + +The next steps depend on whether you just want to deploy the sample or you want to both deploy and run it. + +### Deploying the sample + +- Select Build > Deploy Solution. + +### Deploying and running the sample + +- To debug the sample and then run it, press F5 or select Debug > Start Debugging. To run the sample without debugging, press Ctrl+F5 or selectDebug > Start Without Debugging. + +### Known Issues + + - The sample requires Media Player components to be available. If media player has been uninstalled, or when using an 'N' SKU of windows without media player components, the sample will not function. Note, however, that Speech Synthesis and Speech Recognition do not require media player directly, but other components of the samples do (Such as playback of synthesized text, or checking to see if a microphone is present and the app has permission to use it.) Developers should make sure their app is aware of it and handles this gracefully. + + \ No newline at end of file diff --git a/Samples/SpeechRecognitionAndSynthesis/js/Microsoft.WinJS.4.0/css/placeholder.txt b/archived/SpeechRecognitionAndSynthesis/js/Microsoft.WinJS.4.0/css/placeholder.txt similarity index 100% rename from Samples/SpeechRecognitionAndSynthesis/js/Microsoft.WinJS.4.0/css/placeholder.txt rename to archived/SpeechRecognitionAndSynthesis/js/Microsoft.WinJS.4.0/css/placeholder.txt diff --git a/Samples/SpeechRecognitionAndSynthesis/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt b/archived/SpeechRecognitionAndSynthesis/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt similarity index 100% rename from Samples/SpeechRecognitionAndSynthesis/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt rename to archived/SpeechRecognitionAndSynthesis/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt diff --git a/Samples/SpeechRecognitionAndSynthesis/js/SRGS/de-DE/placeholder.txt b/archived/SpeechRecognitionAndSynthesis/js/SRGS/de-DE/placeholder.txt similarity index 100% rename from Samples/SpeechRecognitionAndSynthesis/js/SRGS/de-DE/placeholder.txt rename to archived/SpeechRecognitionAndSynthesis/js/SRGS/de-DE/placeholder.txt diff --git a/Samples/SpeechRecognitionAndSynthesis/js/SRGS/en-AU/placeholder.txt b/archived/SpeechRecognitionAndSynthesis/js/SRGS/en-AU/placeholder.txt similarity index 100% rename from Samples/SpeechRecognitionAndSynthesis/js/SRGS/en-AU/placeholder.txt rename to archived/SpeechRecognitionAndSynthesis/js/SRGS/en-AU/placeholder.txt diff --git a/Samples/SpeechRecognitionAndSynthesis/js/SRGS/en-CA/placeholder.txt b/archived/SpeechRecognitionAndSynthesis/js/SRGS/en-CA/placeholder.txt similarity index 100% rename from Samples/SpeechRecognitionAndSynthesis/js/SRGS/en-CA/placeholder.txt rename to archived/SpeechRecognitionAndSynthesis/js/SRGS/en-CA/placeholder.txt diff --git a/Samples/SpeechRecognitionAndSynthesis/js/SRGS/en-GB/placeholder.txt b/archived/SpeechRecognitionAndSynthesis/js/SRGS/en-GB/placeholder.txt similarity index 100% rename from Samples/SpeechRecognitionAndSynthesis/js/SRGS/en-GB/placeholder.txt rename to archived/SpeechRecognitionAndSynthesis/js/SRGS/en-GB/placeholder.txt diff --git a/Samples/SpeechRecognitionAndSynthesis/js/SRGS/en-IN/placeholder.txt b/archived/SpeechRecognitionAndSynthesis/js/SRGS/en-IN/placeholder.txt similarity index 100% rename from Samples/SpeechRecognitionAndSynthesis/js/SRGS/en-IN/placeholder.txt rename to archived/SpeechRecognitionAndSynthesis/js/SRGS/en-IN/placeholder.txt diff --git a/Samples/SpeechRecognitionAndSynthesis/js/SRGS/en-US/placeholder.txt b/archived/SpeechRecognitionAndSynthesis/js/SRGS/en-US/placeholder.txt similarity index 100% rename from Samples/SpeechRecognitionAndSynthesis/js/SRGS/en-US/placeholder.txt rename to archived/SpeechRecognitionAndSynthesis/js/SRGS/en-US/placeholder.txt diff --git a/Samples/SpeechRecognitionAndSynthesis/js/SRGS/es-ES/placeholder.txt b/archived/SpeechRecognitionAndSynthesis/js/SRGS/es-ES/placeholder.txt similarity index 100% rename from Samples/SpeechRecognitionAndSynthesis/js/SRGS/es-ES/placeholder.txt rename to archived/SpeechRecognitionAndSynthesis/js/SRGS/es-ES/placeholder.txt diff --git a/Samples/SpeechRecognitionAndSynthesis/js/SRGS/fr-FR/placeholder.txt b/archived/SpeechRecognitionAndSynthesis/js/SRGS/fr-FR/placeholder.txt similarity index 100% rename from Samples/SpeechRecognitionAndSynthesis/js/SRGS/fr-FR/placeholder.txt rename to archived/SpeechRecognitionAndSynthesis/js/SRGS/fr-FR/placeholder.txt diff --git a/Samples/SpeechRecognitionAndSynthesis/js/SRGS/it-IT/placeholder.txt b/archived/SpeechRecognitionAndSynthesis/js/SRGS/it-IT/placeholder.txt similarity index 100% rename from Samples/SpeechRecognitionAndSynthesis/js/SRGS/it-IT/placeholder.txt rename to archived/SpeechRecognitionAndSynthesis/js/SRGS/it-IT/placeholder.txt diff --git a/Samples/SpeechRecognitionAndSynthesis/js/SRGS/zh-Hans-CN/placeholder.txt b/archived/SpeechRecognitionAndSynthesis/js/SRGS/zh-Hans-CN/placeholder.txt similarity index 100% rename from Samples/SpeechRecognitionAndSynthesis/js/SRGS/zh-Hans-CN/placeholder.txt rename to archived/SpeechRecognitionAndSynthesis/js/SRGS/zh-Hans-CN/placeholder.txt diff --git a/Samples/SpeechRecognitionAndSynthesis/js/SRGSColors.xml b/archived/SpeechRecognitionAndSynthesis/js/SRGSColors.xml similarity index 100% rename from Samples/SpeechRecognitionAndSynthesis/js/SRGSColors.xml rename to archived/SpeechRecognitionAndSynthesis/js/SRGSColors.xml diff --git a/Samples/SpeechRecognitionAndSynthesis/js/SpeechAndTTS.jsproj b/archived/SpeechRecognitionAndSynthesis/js/SpeechAndTTS.jsproj similarity index 91% rename from Samples/SpeechRecognitionAndSynthesis/js/SpeechAndTTS.jsproj rename to archived/SpeechRecognitionAndSynthesis/js/SpeechAndTTS.jsproj index 21f5ef1c80..1cff267ea2 100644 --- a/Samples/SpeechRecognitionAndSynthesis/js/SpeechAndTTS.jsproj +++ b/archived/SpeechRecognitionAndSynthesis/js/SpeechAndTTS.jsproj @@ -47,7 +47,7 @@ Designer - + default.html @@ -82,10 +82,10 @@ images\windows-sdk.png - + js\default.js - + css\default.css @@ -101,40 +101,40 @@ - + Microsoft.WinJS.4.0\css\ui-dark.css - + Microsoft.WinJS.4.0\css\ui-light.css - + Microsoft.WinJS.4.0\js\en-US\ui.strings.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense-setup.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense.js - + Microsoft.WinJS.4.0\js\base.js - + Microsoft.WinJS.4.0\js\ui.js - + sample-utils\footer.html - + sample-utils\header.html - + sample-utils\sample-utils.js - + sample-utils\scenario-select.css - + sample-utils\scenario-select.html diff --git a/Samples/SpeechRecognitionAndSynthesis/js/SpeechAndTTS.sln b/archived/SpeechRecognitionAndSynthesis/js/SpeechAndTTS.sln similarity index 100% rename from Samples/SpeechRecognitionAndSynthesis/js/SpeechAndTTS.sln rename to archived/SpeechRecognitionAndSynthesis/js/SpeechAndTTS.sln diff --git a/Samples/SpeechRecognitionAndSynthesis/js/Strings/de-DE/placeholder.txt b/archived/SpeechRecognitionAndSynthesis/js/Strings/de-DE/placeholder.txt similarity index 100% rename from Samples/SpeechRecognitionAndSynthesis/js/Strings/de-DE/placeholder.txt rename to archived/SpeechRecognitionAndSynthesis/js/Strings/de-DE/placeholder.txt diff --git a/Samples/SpeechRecognitionAndSynthesis/js/Strings/en-GB/placeholder.txt b/archived/SpeechRecognitionAndSynthesis/js/Strings/en-GB/placeholder.txt similarity index 100% rename from Samples/SpeechRecognitionAndSynthesis/js/Strings/en-GB/placeholder.txt rename to archived/SpeechRecognitionAndSynthesis/js/Strings/en-GB/placeholder.txt diff --git a/Samples/SpeechRecognitionAndSynthesis/js/Strings/en-IN/placeholder.txt b/archived/SpeechRecognitionAndSynthesis/js/Strings/en-IN/placeholder.txt similarity index 100% rename from Samples/SpeechRecognitionAndSynthesis/js/Strings/en-IN/placeholder.txt rename to archived/SpeechRecognitionAndSynthesis/js/Strings/en-IN/placeholder.txt diff --git a/Samples/SpeechRecognitionAndSynthesis/js/Strings/en-US/placeholder.txt b/archived/SpeechRecognitionAndSynthesis/js/Strings/en-US/placeholder.txt similarity index 100% rename from Samples/SpeechRecognitionAndSynthesis/js/Strings/en-US/placeholder.txt rename to archived/SpeechRecognitionAndSynthesis/js/Strings/en-US/placeholder.txt diff --git a/Samples/SpeechRecognitionAndSynthesis/js/Strings/es-ES/placeholder.txt b/archived/SpeechRecognitionAndSynthesis/js/Strings/es-ES/placeholder.txt similarity index 100% rename from Samples/SpeechRecognitionAndSynthesis/js/Strings/es-ES/placeholder.txt rename to archived/SpeechRecognitionAndSynthesis/js/Strings/es-ES/placeholder.txt diff --git a/Samples/SpeechRecognitionAndSynthesis/js/Strings/es-MX/placeholder.txt b/archived/SpeechRecognitionAndSynthesis/js/Strings/es-MX/placeholder.txt similarity index 100% rename from Samples/SpeechRecognitionAndSynthesis/js/Strings/es-MX/placeholder.txt rename to archived/SpeechRecognitionAndSynthesis/js/Strings/es-MX/placeholder.txt diff --git a/Samples/SpeechRecognitionAndSynthesis/js/Strings/fr-FR/placeholder.txt b/archived/SpeechRecognitionAndSynthesis/js/Strings/fr-FR/placeholder.txt similarity index 100% rename from Samples/SpeechRecognitionAndSynthesis/js/Strings/fr-FR/placeholder.txt rename to archived/SpeechRecognitionAndSynthesis/js/Strings/fr-FR/placeholder.txt diff --git a/Samples/SpeechRecognitionAndSynthesis/js/Strings/it-IT/placeholder.txt b/archived/SpeechRecognitionAndSynthesis/js/Strings/it-IT/placeholder.txt similarity index 100% rename from Samples/SpeechRecognitionAndSynthesis/js/Strings/it-IT/placeholder.txt rename to archived/SpeechRecognitionAndSynthesis/js/Strings/it-IT/placeholder.txt diff --git a/Samples/SpeechRecognitionAndSynthesis/js/Strings/ja-JP/placeholder.txt b/archived/SpeechRecognitionAndSynthesis/js/Strings/ja-JP/placeholder.txt similarity index 100% rename from Samples/SpeechRecognitionAndSynthesis/js/Strings/ja-JP/placeholder.txt rename to archived/SpeechRecognitionAndSynthesis/js/Strings/ja-JP/placeholder.txt diff --git a/Samples/SpeechRecognitionAndSynthesis/js/Strings/ko-KR/placeholder.txt b/archived/SpeechRecognitionAndSynthesis/js/Strings/ko-KR/placeholder.txt similarity index 100% rename from Samples/SpeechRecognitionAndSynthesis/js/Strings/ko-KR/placeholder.txt rename to archived/SpeechRecognitionAndSynthesis/js/Strings/ko-KR/placeholder.txt diff --git a/Samples/SpeechRecognitionAndSynthesis/js/Strings/pl-PL/placeholder.txt b/archived/SpeechRecognitionAndSynthesis/js/Strings/pl-PL/placeholder.txt similarity index 100% rename from Samples/SpeechRecognitionAndSynthesis/js/Strings/pl-PL/placeholder.txt rename to archived/SpeechRecognitionAndSynthesis/js/Strings/pl-PL/placeholder.txt diff --git a/Samples/SpeechRecognitionAndSynthesis/js/Strings/pt-BR/placeholder.txt b/archived/SpeechRecognitionAndSynthesis/js/Strings/pt-BR/placeholder.txt similarity index 100% rename from Samples/SpeechRecognitionAndSynthesis/js/Strings/pt-BR/placeholder.txt rename to archived/SpeechRecognitionAndSynthesis/js/Strings/pt-BR/placeholder.txt diff --git a/Samples/SpeechRecognitionAndSynthesis/js/Strings/ru-RU/placeholder.txt b/archived/SpeechRecognitionAndSynthesis/js/Strings/ru-RU/placeholder.txt similarity index 100% rename from Samples/SpeechRecognitionAndSynthesis/js/Strings/ru-RU/placeholder.txt rename to archived/SpeechRecognitionAndSynthesis/js/Strings/ru-RU/placeholder.txt diff --git a/Samples/SpeechRecognitionAndSynthesis/js/Strings/zh-CN/placeholder.txt b/archived/SpeechRecognitionAndSynthesis/js/Strings/zh-CN/placeholder.txt similarity index 100% rename from Samples/SpeechRecognitionAndSynthesis/js/Strings/zh-CN/placeholder.txt rename to archived/SpeechRecognitionAndSynthesis/js/Strings/zh-CN/placeholder.txt diff --git a/Samples/SpeechRecognitionAndSynthesis/js/Strings/zh-TW/placeholder.txt b/archived/SpeechRecognitionAndSynthesis/js/Strings/zh-TW/placeholder.txt similarity index 100% rename from Samples/SpeechRecognitionAndSynthesis/js/Strings/zh-TW/placeholder.txt rename to archived/SpeechRecognitionAndSynthesis/js/Strings/zh-TW/placeholder.txt diff --git a/Samples/SpeechRecognitionAndSynthesis/js/css/scenario7_ContinuousDictation.css b/archived/SpeechRecognitionAndSynthesis/js/css/scenario7_ContinuousDictation.css similarity index 100% rename from Samples/SpeechRecognitionAndSynthesis/js/css/scenario7_ContinuousDictation.css rename to archived/SpeechRecognitionAndSynthesis/js/css/scenario7_ContinuousDictation.css diff --git a/Samples/SpeechRecognitionAndSynthesis/js/html/scenario10_ContinuousRecognitionSRGSGrammar.html b/archived/SpeechRecognitionAndSynthesis/js/html/scenario10_ContinuousRecognitionSRGSGrammar.html similarity index 100% rename from Samples/SpeechRecognitionAndSynthesis/js/html/scenario10_ContinuousRecognitionSRGSGrammar.html rename to archived/SpeechRecognitionAndSynthesis/js/html/scenario10_ContinuousRecognitionSRGSGrammar.html diff --git a/Samples/SpeechRecognitionAndSynthesis/js/html/scenario11_PauseAsync.html b/archived/SpeechRecognitionAndSynthesis/js/html/scenario11_PauseAsync.html similarity index 100% rename from Samples/SpeechRecognitionAndSynthesis/js/html/scenario11_PauseAsync.html rename to archived/SpeechRecognitionAndSynthesis/js/html/scenario11_PauseAsync.html diff --git a/Samples/SpeechRecognitionAndSynthesis/js/html/scenario1_SynthesizeText.html b/archived/SpeechRecognitionAndSynthesis/js/html/scenario1_SynthesizeText.html similarity index 100% rename from Samples/SpeechRecognitionAndSynthesis/js/html/scenario1_SynthesizeText.html rename to archived/SpeechRecognitionAndSynthesis/js/html/scenario1_SynthesizeText.html diff --git a/Samples/SpeechRecognitionAndSynthesis/js/html/scenario2_SynthesizeTextBoundaries.html b/archived/SpeechRecognitionAndSynthesis/js/html/scenario2_SynthesizeTextBoundaries.html similarity index 100% rename from Samples/SpeechRecognitionAndSynthesis/js/html/scenario2_SynthesizeTextBoundaries.html rename to archived/SpeechRecognitionAndSynthesis/js/html/scenario2_SynthesizeTextBoundaries.html diff --git a/Samples/SpeechRecognitionAndSynthesis/js/html/scenario3_SynthesizeSSML.html b/archived/SpeechRecognitionAndSynthesis/js/html/scenario3_SynthesizeSSML.html similarity index 100% rename from Samples/SpeechRecognitionAndSynthesis/js/html/scenario3_SynthesizeSSML.html rename to archived/SpeechRecognitionAndSynthesis/js/html/scenario3_SynthesizeSSML.html diff --git a/Samples/SpeechRecognitionAndSynthesis/js/html/scenario4_PredefinedDictationGrammar.html b/archived/SpeechRecognitionAndSynthesis/js/html/scenario4_PredefinedDictationGrammar.html similarity index 100% rename from Samples/SpeechRecognitionAndSynthesis/js/html/scenario4_PredefinedDictationGrammar.html rename to archived/SpeechRecognitionAndSynthesis/js/html/scenario4_PredefinedDictationGrammar.html diff --git a/Samples/SpeechRecognitionAndSynthesis/js/html/scenario5_PredefinedWebSearchGrammar.html b/archived/SpeechRecognitionAndSynthesis/js/html/scenario5_PredefinedWebSearchGrammar.html similarity index 100% rename from Samples/SpeechRecognitionAndSynthesis/js/html/scenario5_PredefinedWebSearchGrammar.html rename to archived/SpeechRecognitionAndSynthesis/js/html/scenario5_PredefinedWebSearchGrammar.html diff --git a/Samples/SpeechRecognitionAndSynthesis/js/html/scenario6_ListConstraint.html b/archived/SpeechRecognitionAndSynthesis/js/html/scenario6_ListConstraint.html similarity index 100% rename from Samples/SpeechRecognitionAndSynthesis/js/html/scenario6_ListConstraint.html rename to archived/SpeechRecognitionAndSynthesis/js/html/scenario6_ListConstraint.html diff --git a/Samples/SpeechRecognitionAndSynthesis/js/html/scenario7_SRGSConstraint.html b/archived/SpeechRecognitionAndSynthesis/js/html/scenario7_SRGSConstraint.html similarity index 100% rename from Samples/SpeechRecognitionAndSynthesis/js/html/scenario7_SRGSConstraint.html rename to archived/SpeechRecognitionAndSynthesis/js/html/scenario7_SRGSConstraint.html diff --git a/Samples/SpeechRecognitionAndSynthesis/js/html/scenario8_ContinuousDictation.html b/archived/SpeechRecognitionAndSynthesis/js/html/scenario8_ContinuousDictation.html similarity index 100% rename from Samples/SpeechRecognitionAndSynthesis/js/html/scenario8_ContinuousDictation.html rename to archived/SpeechRecognitionAndSynthesis/js/html/scenario8_ContinuousDictation.html diff --git a/Samples/SpeechRecognitionAndSynthesis/js/html/scenario9_ContinuousRecognitionListGrammar.html b/archived/SpeechRecognitionAndSynthesis/js/html/scenario9_ContinuousRecognitionListGrammar.html similarity index 100% rename from Samples/SpeechRecognitionAndSynthesis/js/html/scenario9_ContinuousRecognitionListGrammar.html rename to archived/SpeechRecognitionAndSynthesis/js/html/scenario9_ContinuousRecognitionListGrammar.html diff --git a/Samples/SpeechRecognitionAndSynthesis/js/images/placeholder.txt b/archived/SpeechRecognitionAndSynthesis/js/images/placeholder.txt similarity index 100% rename from Samples/SpeechRecognitionAndSynthesis/js/images/placeholder.txt rename to archived/SpeechRecognitionAndSynthesis/js/images/placeholder.txt diff --git a/Samples/SpeechRecognitionAndSynthesis/js/js/AudioCapturePermissions.js b/archived/SpeechRecognitionAndSynthesis/js/js/AudioCapturePermissions.js similarity index 100% rename from Samples/SpeechRecognitionAndSynthesis/js/js/AudioCapturePermissions.js rename to archived/SpeechRecognitionAndSynthesis/js/js/AudioCapturePermissions.js diff --git a/Samples/SpeechRecognitionAndSynthesis/js/js/sample-configuration.js b/archived/SpeechRecognitionAndSynthesis/js/js/sample-configuration.js similarity index 100% rename from Samples/SpeechRecognitionAndSynthesis/js/js/sample-configuration.js rename to archived/SpeechRecognitionAndSynthesis/js/js/sample-configuration.js diff --git a/Samples/SpeechRecognitionAndSynthesis/js/js/scenario10_ContinuousRecognitionSRGSGrammar.js b/archived/SpeechRecognitionAndSynthesis/js/js/scenario10_ContinuousRecognitionSRGSGrammar.js similarity index 100% rename from Samples/SpeechRecognitionAndSynthesis/js/js/scenario10_ContinuousRecognitionSRGSGrammar.js rename to archived/SpeechRecognitionAndSynthesis/js/js/scenario10_ContinuousRecognitionSRGSGrammar.js diff --git a/Samples/SpeechRecognitionAndSynthesis/js/js/scenario11_PauseAsync.js b/archived/SpeechRecognitionAndSynthesis/js/js/scenario11_PauseAsync.js similarity index 100% rename from Samples/SpeechRecognitionAndSynthesis/js/js/scenario11_PauseAsync.js rename to archived/SpeechRecognitionAndSynthesis/js/js/scenario11_PauseAsync.js diff --git a/Samples/SpeechRecognitionAndSynthesis/js/js/scenario1_SynthesizeText.js b/archived/SpeechRecognitionAndSynthesis/js/js/scenario1_SynthesizeText.js similarity index 100% rename from Samples/SpeechRecognitionAndSynthesis/js/js/scenario1_SynthesizeText.js rename to archived/SpeechRecognitionAndSynthesis/js/js/scenario1_SynthesizeText.js diff --git a/Samples/SpeechRecognitionAndSynthesis/js/js/scenario2_SynthesizeTextBoundaries.js b/archived/SpeechRecognitionAndSynthesis/js/js/scenario2_SynthesizeTextBoundaries.js similarity index 100% rename from Samples/SpeechRecognitionAndSynthesis/js/js/scenario2_SynthesizeTextBoundaries.js rename to archived/SpeechRecognitionAndSynthesis/js/js/scenario2_SynthesizeTextBoundaries.js diff --git a/Samples/SpeechRecognitionAndSynthesis/js/js/scenario3_SynthesizeSSML.js b/archived/SpeechRecognitionAndSynthesis/js/js/scenario3_SynthesizeSSML.js similarity index 100% rename from Samples/SpeechRecognitionAndSynthesis/js/js/scenario3_SynthesizeSSML.js rename to archived/SpeechRecognitionAndSynthesis/js/js/scenario3_SynthesizeSSML.js diff --git a/Samples/SpeechRecognitionAndSynthesis/js/js/scenario4_PredefinedDictationGrammar.js b/archived/SpeechRecognitionAndSynthesis/js/js/scenario4_PredefinedDictationGrammar.js similarity index 100% rename from Samples/SpeechRecognitionAndSynthesis/js/js/scenario4_PredefinedDictationGrammar.js rename to archived/SpeechRecognitionAndSynthesis/js/js/scenario4_PredefinedDictationGrammar.js diff --git a/Samples/SpeechRecognitionAndSynthesis/js/js/scenario5_PredefinedWebSearchGrammar.js b/archived/SpeechRecognitionAndSynthesis/js/js/scenario5_PredefinedWebSearchGrammar.js similarity index 100% rename from Samples/SpeechRecognitionAndSynthesis/js/js/scenario5_PredefinedWebSearchGrammar.js rename to archived/SpeechRecognitionAndSynthesis/js/js/scenario5_PredefinedWebSearchGrammar.js diff --git a/Samples/SpeechRecognitionAndSynthesis/js/js/scenario6_ListConstraint.js b/archived/SpeechRecognitionAndSynthesis/js/js/scenario6_ListConstraint.js similarity index 100% rename from Samples/SpeechRecognitionAndSynthesis/js/js/scenario6_ListConstraint.js rename to archived/SpeechRecognitionAndSynthesis/js/js/scenario6_ListConstraint.js diff --git a/Samples/SpeechRecognitionAndSynthesis/js/js/scenario7_SRGSConstraint.js b/archived/SpeechRecognitionAndSynthesis/js/js/scenario7_SRGSConstraint.js similarity index 100% rename from Samples/SpeechRecognitionAndSynthesis/js/js/scenario7_SRGSConstraint.js rename to archived/SpeechRecognitionAndSynthesis/js/js/scenario7_SRGSConstraint.js diff --git a/Samples/SpeechRecognitionAndSynthesis/js/js/scenario8_ContinuousDictation.js b/archived/SpeechRecognitionAndSynthesis/js/js/scenario8_ContinuousDictation.js similarity index 100% rename from Samples/SpeechRecognitionAndSynthesis/js/js/scenario8_ContinuousDictation.js rename to archived/SpeechRecognitionAndSynthesis/js/js/scenario8_ContinuousDictation.js diff --git a/Samples/SpeechRecognitionAndSynthesis/js/js/scenario9_ContinuousRecognitionListGrammar.js b/archived/SpeechRecognitionAndSynthesis/js/js/scenario9_ContinuousRecognitionListGrammar.js similarity index 100% rename from Samples/SpeechRecognitionAndSynthesis/js/js/scenario9_ContinuousRecognitionListGrammar.js rename to archived/SpeechRecognitionAndSynthesis/js/js/scenario9_ContinuousRecognitionListGrammar.js diff --git a/Samples/SpeechRecognitionAndSynthesis/js/package.appxmanifest b/archived/SpeechRecognitionAndSynthesis/js/package.appxmanifest similarity index 100% rename from Samples/SpeechRecognitionAndSynthesis/js/package.appxmanifest rename to archived/SpeechRecognitionAndSynthesis/js/package.appxmanifest diff --git a/Samples/SpeechRecognitionAndSynthesis/js/sample-utils/placeholder.txt b/archived/SpeechRecognitionAndSynthesis/js/sample-utils/placeholder.txt similarity index 100% rename from Samples/SpeechRecognitionAndSynthesis/js/sample-utils/placeholder.txt rename to archived/SpeechRecognitionAndSynthesis/js/sample-utils/placeholder.txt diff --git a/archived/Store/README.md b/archived/Store/README.md new file mode 100644 index 0000000000..73346b36ee --- /dev/null +++ b/archived/Store/README.md @@ -0,0 +1,114 @@ +--- +topic: sample +languages: +- js +products: +- windows +- windows-uwp +--- + +# Store sample + +Shows how to perform in-app feature or product purchases operations +and use the licensing API provided by the Microsoft Store +to determine the license status of an app or a feature that is enabled by an in-app purchase. + +> **Note:** This sample is part of a large collection of UWP feature samples. +> If you are unfamiliar with Git and GitHub, you can download the entire collection as a +> [ZIP file](https://github.com/Microsoft/Windows-universal-samples/archive/master.zip), but be +> sure to unzip everything to access shared dependencies. For more info on working with the ZIP file, +> the samples collection, and GitHub, see [Get the UWP samples from GitHub](https://aka.ms/ovu2uq). +> For more samples, see the [Samples portal](https://aka.ms/winsamples) on the Windows Dev Center. + +The Microsoft Store supports the following types of in-app purchases: + +- Purchasing the app itself. +- Purchasing a durable in-app product, meaning that after the purchase, the user owns the product until it (optionally) expires. + For example, a new game level is typically a durable in-app product. +- Purchasing a consumable in-app product, meaning that the user can purchase it multiple times. + For example, a game power-up is typically a consumable in-app product. + The act of confirming that the user received the consumable product is known as "fulfillment". + +The sample app demonstrates the following tasks. + +- Check the current license status of an app. +- Check the expiration date of an app trial period. +- Check if an in-app product has been purchased through an in-app purchase. +- Perform an in-app purchase to buy the app. +- Perform an in-app purchase to buy an in-app product. +- Confirm the fulfillment of an in-app consumable product. +- Perform an in-app purchase transaction using the Microsoft Store commerce platform. +- Launch the Microsoft Store page for the app, so users can purchase the app or write a review. +- Generate a business to business (B2B) token that can be used to query or add to a user's collection. + +### Setup Instructions + +Before running this sample, you must associate it with an app in the Microsoft Store. + +1. [Register as an app developer](https://developer.microsoft.com/store/register). +2. Follow the instructions in +[Testing apps that use the Windows.Services.Store namespace](https://msdn.microsoft.com/windows/uwp/monetize/in-app-purchases-and-trials#testing-apps-that-use-the-windows-services-store-namespace). + +### Additional Setup Instructions for Business to Business Scenario + +These steps are necessary only if you want to run the code in the Business to Business Scenario, which requires application and Azure configuration. + +1. You must have a real application available for download from the Microsoft Store. This can be a private application. +2. Download a copy of your application from the Microsoft Store to get a valid license. +3. Associate this test application with this application in the Microsoft Store. +4. Deploy this application to your machine and overwrite the existing application. +5. Setup your application following the instructions under the **Adding an Application** section at [Integrating Applications with Azure Active Directory](https://azure.microsoft.com/documentation/articles/active-directory-integrating-applications/). +6. Replace the provided value of "tenantId" with your actual tenant ID for your Azure account. +7. Replace the provided value of "clientId" with the actual value of your native application created in Azure. +8. Replace the provided value of "clientSecret" with the actual value for your Azure account. +9. Replace the provided value of "appIdUri" with the actual value of your Azure application. + +**Note** The Windows universal samples require Visual Studio 2017 to build and Windows 10 to execute. + +To obtain information about Windows 10, go to [Windows 10](http://go.microsoft.com/fwlink/?LinkID=532421) + +To obtain information about Microsoft Visual Studio and the tools for developing Windows apps, go to [Visual Studio](http://go.microsoft.com/fwlink/?LinkID=532422) + +## Related topics + +[Coloring Book app sample](https://github.com/Microsoft/Windows-appsample-coloringbook) + +### Samples + +[Advertising](/Samples/Advertising) + +### Reference + +[Windows.Services.Store namespace](https://msdn.microsoft.com/library/windows/apps/windows.services.store.aspx) +[Monetization, customer engagement, and Microsoft Store services](https://msdn.microsoft.com/windows/uwp/monetize/) + +## System requirements + +**Client:** Windows 10 version 1607 + +**Server:** Windows Server 2016 Technical Preview + +**Phone:** Windows 10 version 1607 + +## Build the sample + +1. If you download the samples ZIP, be sure to unzip the entire archive, not just the folder with the sample you want to build. +2. Start Microsoft Visual Studio 2017 and select **File** \> **Open** \> **Project/Solution**. +3. Starting in the folder where you unzipped the samples, go to the Samples subfolder, then the subfolder for this specific sample, then the subfolder for your preferred language (C++, C#, or JavaScript). Double-click the Visual Studio Solution (.sln) file. +4. Press Ctrl+Shift+B, or select **Build** \> **Build Solution**. + +## Run the sample + +The next steps depend on whether you just want to deploy the sample or you want to both deploy and run it. + +### Deploying the sample + +- Select **Build** \> **Deploy Solution**. + +### Deploying and running the sample on a Windows 10 Desktop + +- To debug the sample and then run it, press F5 or use **Debug** \> **Start Debugging**. To run the sample without debugging, press Ctrl+F5 or use **Debug** \> **Start Without Debugging**. + +### Deploying and running the sample on a Windows 10 Phone + +- To debug the sample and then run it, press F5 or use **Debug** \> **Start Debugging**. To run the sample without debugging, press Ctrl+F5 or use **Debug** \> **Start Without Debugging**. diff --git a/Samples/Store/js/Microsoft.WinJS.4.0/css/placeholder.txt b/archived/Store/js/Microsoft.WinJS.4.0/css/placeholder.txt similarity index 100% rename from Samples/Store/js/Microsoft.WinJS.4.0/css/placeholder.txt rename to archived/Store/js/Microsoft.WinJS.4.0/css/placeholder.txt diff --git a/Samples/TextSegmentation/js/Microsoft.WinJS.4.0/fonts/placeholder b/archived/Store/js/Microsoft.WinJS.4.0/fonts/placeholder similarity index 100% rename from Samples/TextSegmentation/js/Microsoft.WinJS.4.0/fonts/placeholder rename to archived/Store/js/Microsoft.WinJS.4.0/fonts/placeholder diff --git a/Samples/Store/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt b/archived/Store/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt similarity index 100% rename from Samples/Store/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt rename to archived/Store/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt diff --git a/Samples/Store/js/Package.appxmanifest b/archived/Store/js/Package.appxmanifest similarity index 100% rename from Samples/Store/js/Package.appxmanifest rename to archived/Store/js/Package.appxmanifest diff --git a/Samples/Store/js/Store.jsproj b/archived/Store/js/Store.jsproj similarity index 82% rename from Samples/Store/js/Store.jsproj rename to archived/Store/js/Store.jsproj index 94ef1312c1..4848b09f1c 100644 --- a/Samples/Store/js/Store.jsproj +++ b/archived/Store/js/Store.jsproj @@ -54,7 +54,7 @@ Designer - + default.html @@ -78,10 +78,10 @@ images\windows-sdk.png - + js\default.js - + css\default.css @@ -91,43 +91,43 @@ - + Microsoft.WinJS.4.0\css\ui-dark.css - + Microsoft.WinJS.4.0\css\ui-light.css - + Microsoft.WinJS.4.0\js\en-US\ui.strings.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense-setup.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense.js - + Microsoft.WinJS.4.0\fonts\Symbols.ttf - + Microsoft.WinJS.4.0\js\base.js - + Microsoft.WinJS.4.0\js\ui.js - + sample-utils\footer.html - + sample-utils\header.html - + sample-utils\sample-utils.js - + sample-utils\scenario-select.css - + sample-utils\scenario-select.html diff --git a/Samples/Store/js/Store.sln b/archived/Store/js/Store.sln similarity index 100% rename from Samples/Store/js/Store.sln rename to archived/Store/js/Store.sln diff --git a/Samples/Store/js/css/placeholder.txt b/archived/Store/js/css/placeholder.txt similarity index 100% rename from Samples/Store/js/css/placeholder.txt rename to archived/Store/js/css/placeholder.txt diff --git a/Samples/Store/js/data/placeholder.txt b/archived/Store/js/data/placeholder.txt similarity index 100% rename from Samples/Store/js/data/placeholder.txt rename to archived/Store/js/data/placeholder.txt diff --git a/Samples/Store/js/html/scenario1-trialMode.html b/archived/Store/js/html/scenario1-trialMode.html similarity index 100% rename from Samples/Store/js/html/scenario1-trialMode.html rename to archived/Store/js/html/scenario1-trialMode.html diff --git a/Samples/Store/js/html/scenario2-inAppPurchase.html b/archived/Store/js/html/scenario2-inAppPurchase.html similarity index 100% rename from Samples/Store/js/html/scenario2-inAppPurchase.html rename to archived/Store/js/html/scenario2-inAppPurchase.html diff --git a/Samples/Store/js/html/scenario3-unmanagedConsumable.html b/archived/Store/js/html/scenario3-unmanagedConsumable.html similarity index 100% rename from Samples/Store/js/html/scenario3-unmanagedConsumable.html rename to archived/Store/js/html/scenario3-unmanagedConsumable.html diff --git a/Samples/Store/js/html/scenario4-consumableProduct.html b/archived/Store/js/html/scenario4-consumableProduct.html similarity index 100% rename from Samples/Store/js/html/scenario4-consumableProduct.html rename to archived/Store/js/html/scenario4-consumableProduct.html diff --git a/Samples/Store/js/html/scenario5-userCollection.html b/archived/Store/js/html/scenario5-userCollection.html similarity index 100% rename from Samples/Store/js/html/scenario5-userCollection.html rename to archived/Store/js/html/scenario5-userCollection.html diff --git a/Samples/Store/js/html/scenario6-appListingURI.html b/archived/Store/js/html/scenario6-appListingURI.html similarity index 100% rename from Samples/Store/js/html/scenario6-appListingURI.html rename to archived/Store/js/html/scenario6-appListingURI.html diff --git a/Samples/Store/js/html/scenario7-b2b.html b/archived/Store/js/html/scenario7-b2b.html similarity index 100% rename from Samples/Store/js/html/scenario7-b2b.html rename to archived/Store/js/html/scenario7-b2b.html diff --git a/Samples/Store/js/images/placeholder.txt b/archived/Store/js/images/placeholder.txt similarity index 100% rename from Samples/Store/js/images/placeholder.txt rename to archived/Store/js/images/placeholder.txt diff --git a/Samples/Store/js/js/sample-configuration.js b/archived/Store/js/js/sample-configuration.js similarity index 100% rename from Samples/Store/js/js/sample-configuration.js rename to archived/Store/js/js/sample-configuration.js diff --git a/Samples/Store/js/js/scenario1-trialMode.js b/archived/Store/js/js/scenario1-trialMode.js similarity index 100% rename from Samples/Store/js/js/scenario1-trialMode.js rename to archived/Store/js/js/scenario1-trialMode.js diff --git a/Samples/Store/js/js/scenario2-inAppPurchase.js b/archived/Store/js/js/scenario2-inAppPurchase.js similarity index 100% rename from Samples/Store/js/js/scenario2-inAppPurchase.js rename to archived/Store/js/js/scenario2-inAppPurchase.js diff --git a/Samples/Store/js/js/scenario3-unmanagedConsumable.js b/archived/Store/js/js/scenario3-unmanagedConsumable.js similarity index 100% rename from Samples/Store/js/js/scenario3-unmanagedConsumable.js rename to archived/Store/js/js/scenario3-unmanagedConsumable.js diff --git a/Samples/Store/js/js/scenario4-consumableProduct.js b/archived/Store/js/js/scenario4-consumableProduct.js similarity index 100% rename from Samples/Store/js/js/scenario4-consumableProduct.js rename to archived/Store/js/js/scenario4-consumableProduct.js diff --git a/Samples/Store/js/js/scenario5-userCollection.js b/archived/Store/js/js/scenario5-userCollection.js similarity index 100% rename from Samples/Store/js/js/scenario5-userCollection.js rename to archived/Store/js/js/scenario5-userCollection.js diff --git a/Samples/Store/js/js/scenario6-appListingURI.js b/archived/Store/js/js/scenario6-appListingURI.js similarity index 100% rename from Samples/Store/js/js/scenario6-appListingURI.js rename to archived/Store/js/js/scenario6-appListingURI.js diff --git a/Samples/Store/js/js/scenario7-b2b.js b/archived/Store/js/js/scenario7-b2b.js similarity index 100% rename from Samples/Store/js/js/scenario7-b2b.js rename to archived/Store/js/js/scenario7-b2b.js diff --git a/Samples/Store/js/sample-utils/placeholder.txt b/archived/Store/js/sample-utils/placeholder.txt similarity index 100% rename from Samples/Store/js/sample-utils/placeholder.txt rename to archived/Store/js/sample-utils/placeholder.txt diff --git a/archived/StreamSocket/README.md b/archived/StreamSocket/README.md new file mode 100644 index 0000000000..eb3cd07aa4 --- /dev/null +++ b/archived/StreamSocket/README.md @@ -0,0 +1,182 @@ +--- +topic: sample +languages: +- js +products: +- windows +- windows-uwp +--- + +# StreamSocket sample + +Shows how to a use stream (TCP) socket to send and receive data using the [StreamSocket](http://msdn.microsoft.com/library/windows/apps/br226882) +and related classes in the [Windows.Networking.Sockets](http://msdn.microsoft.com/library/windows/apps/br226960) namespace in your Universal Windows Platform (UWP) app. + +> **Note:** This sample is part of a large collection of UWP feature samples. +> If you are unfamiliar with Git and GitHub, you can download the entire collection as a +> [ZIP file](https://github.com/Microsoft/Windows-universal-samples/archive/master.zip), but be +> sure to unzip everything to access shared dependencies. For more info on working with the ZIP file, +> the samples collection, and GitHub, see [Get the UWP samples from GitHub](https://aka.ms/ovu2uq). +> For more samples, see the [Samples portal](https://aka.ms/winsamples) on the Windows Dev Center. + +The client component of the sample creates a TCP socket to make a network connection, uses the socket to send data, and closes the socket. The server component sets up +a TCP listener that provides a connected socket for every incoming network connection, uses the socket to receive data from the client, and closes the socket. This sample +is provided in the JavaScript, C\#, and C++ programming languages. + +The client component of the sample demonstrates the following features: + +- Use the [StreamSocket](http://msdn.microsoft.com/library/windows/apps/br226882) class to create a TCP socket. +- Make a network connection to a TCP network server using one of the [StreamSocket.ConnectAsync](http://msdn.microsoft.com/library/windows/apps/hh701504) methods. +- Send data to the server using the [Streams.DataWriter](http://msdn.microsoft.com/library/windows/apps/br208154) object which allows a programmer to write common types +(integers and strings, for example) on any stream. +- Close the socket. +- Attempt a socket connection using SSL to web server at port 443 (HTTPS), evaluate the server certificate validity, and display its properties. A certificate error is +expected since the self-signed certificate is not trusted and issued to a different site name. + +The server component of the sample demonstrates the following features: + +- Use the [StreamSocketListener](http://msdn.microsoft.com/library/windows/apps/br226906) class to create a TCP socket to listen for an incoming TCP connection. +- Bind the socket to a local service name to listen for an incoming network connection using the +[StreamSocketListener.BindServiceNameAsync](http://msdn.microsoft.com/library/windows/apps/dn298302) method. +- Receive a [StreamSocketListener.ConnectionReceived](http://msdn.microsoft.com/library/windows/apps/hh701494) event that indicates that a connection was received on +the [StreamSocketListener](http://msdn.microsoft.com/library/windows/apps/br226906) object. +- Receive data from the client using the [Streams.DataReader](http://msdn.microsoft.com/library/windows/apps/br208119) object which allows a programmer to read common +types (integers and strings, for example) on any stream. +- Close the socket. + +For a sample that shows how to use a datagram (UDP) socket to send and receive data in a UWP app, download the [DatagramSocket sample](/Samples/DatagramSocket). + +For a sample that shows how to use a [StreamSocket](http://msdn.microsoft.com/library/windows/apps/br226882) so that the app is always connected and always reachable +using background network notifications in a UWP app, download the [SocketActivityTrigger StreamSocket Sample](/Samples/SocketActivityStreamSocket). + +## Network capabilities + +This sample requires that network capabilities be set in the *Package.appxmanifest* file to allow the app to access the network at runtime. These capabilities can be set +in the app manifest using Microsoft Visual Studio. For more information on network capabilities, see +[How to set network capabilities](http://msdn.microsoft.com/library/windows/apps/hh770532). + +**Note** Network communications using an IP loopback address cannot normally be used for interprocess communication between a UWP app and a different process +(a different UWP app or a desktop app) because this is restricted by network isolation. Network communication using an IP loopback address is allowed within +the same process for communication purposes in a UWP app. For more information, see +[How to enable loopback and troubleshoot network isolation](https://msdn.microsoft.com/library/windows/apps/hh780593). + +## Related topics + +### Reference + +[StreamSocket](http://msdn.microsoft.com/library/windows/apps/br226882) +[StreamSocketListener](http://msdn.microsoft.com/library/windows/apps/br226906) +[Windows.Networking](http://msdn.microsoft.com/library/windows/apps/br207124) +[Windows.Networking.Sockets](http://msdn.microsoft.com/library/windows/apps/br226960) +[Windows.Storage.Streams.DataReader](http://msdn.microsoft.com/library/windows/apps/br208119) +[Windows.Storage.Streams.DataWriter](http://msdn.microsoft.com/library/windows/apps/br208154) +[SocketActivityTrigger](https://msdn.microsoft.com/library/windows/apps/windows.applicationmodel.background.socketactivitytrigger.aspx) + +### Samples + +[DatagramSocket sample](/Samples/DatagramSocket) +[SocketActivityTrigger StreamSocket Sample](/Samples/SocketActivityStreamSocket) + +### Other - C\#/VB/C++ and XAML + +[Adding support for networking (XAML)](http://msdn.microsoft.com/library/windows/apps/hh452751) +[Connecting to network services (XAML)](http://msdn.microsoft.com/library/windows/apps/hh452976) +[How to secure socket connections with TLS/SSL (XAML)](http://msdn.microsoft.com/library/windows/apps/jj150597) +[How to send and receive network data with a stream socket (XAML)](http://msdn.microsoft.com/library/windows/apps/jj150599) +[Networking basics](https://msdn.microsoft.com/library/windows/apps/mt280233) +[How to use advanced socket controls (XAML)](http://msdn.microsoft.com/library/windows/apps/jj150598) +[Proximity and tapping (XAML)](http://msdn.microsoft.com/library/windows/apps/hh465221) +[Troubleshooting and debugging network connections](http://msdn.microsoft.com/library/windows/apps/hh770534) + +### Other - JavaScript and HTML + +[Adding support for networking (HTML)](http://msdn.microsoft.com/library/windows/apps/hh452752) +[Connecting to network services (HTML)](http://msdn.microsoft.com/library/windows/apps/hh452977) +[How to secure socket connections with TLS/SSL (HTML)](http://msdn.microsoft.com/library/windows/apps/hh780595) +[How to send and receive network data with a stream socket (HTML)](http://msdn.microsoft.com/library/windows/apps/hh452996) +[How to set network capabilities (HTML)](http://msdn.microsoft.com/library/windows/apps/hh770532) +[How to use advanced socket controls (HTML)](http://msdn.microsoft.com/library/windows/apps/hh780596) +[Supporting proximity and tapping (HTML)](http://msdn.microsoft.com/library/windows/apps/hh465229) +[Troubleshooting and debugging network connections](http://msdn.microsoft.com/library/windows/apps/hh770534) + +## System requirements + +**Client:** Windows 10 + +**Server:** Windows Server 2016 Technical Preview + +**Phone:** Windows 10 + +## Build the sample + +1. If you download the samples ZIP, be sure to unzip the entire archive, not just the folder with the sample you want to build. +2. Start Microsoft Visual Studio 2017 and select **File** \> **Open** \> **Project/Solution**. +3. Starting in the folder where you unzipped the samples, go to the Samples subfolder, then the subfolder for this specific sample, then the subfolder for your preferred language (C++, C#, or JavaScript). Double-click the Visual Studio Solution (.sln) file. +4. Press Ctrl+Shift+B, or select **Build** \> **Build Solution**. + +## Run the sample + +The next steps depend on whether you just want to deploy the sample or you want to both deploy and run it. + +### Deploying the sample + +- Select **Build** \> **Deploy Solution**. + +### Deploying and running the sample on a Windows 10 Desktop + +- To debug the sample and then run it, press F5 or use **Debug** \> **Start Debugging**. To run the sample without debugging, press Ctrl+F5 or use **Debug** \> **Start Without Debugging**. + +For the app to attempt a socket connection using SSL to a web server at port 443 (HTTPS) and view the server certificate, this sample requires that a web server is available that supports HTTPS. The web server must be started before the app is run. The sample includes a PowerShell script that will install and enable IIS on a local computer, generate a self-signed, untrusted certificate, and enable HTTPS connections. The easiest way to run the sample is to use the provided web server scripts. + +Browse to the *Server* folder in your sample folder to setup and start the web server. There are two options possible. + +- Start PowerShell elevated (Run as administrator) and run the following command: + + **.\\SetupServer.ps1** + + Note that you may also need to change script execution policy. + +- Start an elevated Command Prompt (Run as administrator) and run following command: + + **PowerShell.exe -ExecutionPolicy Unrestricted -File SetupServer.ps1** + +When the web server is not needed anymore, please browse to the *Server* folder in you sample folder and run one of the following: + +- Start PowerShell elevated (Run as administrator) and run the following command: + + **.\\RemoveServer.ps1** + + Note that you may also need to change script execution policy. + +- Start an elevated Command Prompt (Run as administrator) and run following command: + + **PowerShell.exe -ExecutionPolicy Unrestricted -File RemoveServer.ps1** + +The sample can run using any web server, not only the one provided with the sample. If IIS is used on a different computer, then the previous scripts can be used with minor changes. + +- Copy the *Server* folder to the device where IIS will be run. +- Run the above scripts to install and enable IIS, generate a self-signed certificate, and enable HTTPS connections. + +The sample must also be updated when run against a non-localhost web server. To configure the sample for use with IIS on a different device: + +- Additional capabilities may need to be added to the app manifest for the sample. For example, **Internet (Client & Server)** if the web server is located on the Internet not on a local intranet. +- The hostname of the server to connect to also needs to be updated. This can be handled in two ways. The **HostNameForConnect** element in the HTML or XAML files can be edited so that "localhost" is replaced by the hostname or IP address of the web server. Alternately when the app is run, enter the hostname or IP address of the web server instead of the default "localhost" value. + +**Note** IIS is not available on ARM builds. Instead, set up the web server on a separate 64-bit or 32-bit computer and follow the steps for using the sample against non-localhost web server. + +However if a server different than IIS is used, then this requires some special configuration of the server. + +- Configure the web server to accept HTTPS connections. +- Generate a self-signed certificate for the web server with SN=www.fabrikam.com. + +To configure the sample for use with a web server different than IIS not using localhost: + +- Additional capabilities may need to be added to the app manifest for the sample. For example, **Internet (Client & Server)** if the web server is located on the Internet not on a local intranet. +- The hostname of the server to connect to also needs to be updated. This can be handled in two ways. The **HostNameForConnect** element in the HTML or XAML files can be edited so that "localhost" is replaced by the hostname or IP address of the web server. Alternately when the app is run, enter the hostname or IP address of the web server instead of the default "localhost" value. + +### Deploying and running the sample on a Windows 10 Phone + +IIS is not available on Windows Phone. For the app to attempt a socket connection using SSL to a web server, there are two options: + +- The easiest way to run the sample is to use the provided web server scripts on a separate 64-bit or 32-bit device that can run IIS. Follow the instructions for deploying and running the Windows version of the sample using IIS on a different device. +- Use a web server different than IIS on a separate device. Follow the instructions for deploying and running the Windows version of the sample using a non-IIS web server. diff --git a/Samples/StreamSocket/js/Microsoft.WinJS.4.0/css/placeholder.txt b/archived/StreamSocket/js/Microsoft.WinJS.4.0/css/placeholder.txt similarity index 100% rename from Samples/StreamSocket/js/Microsoft.WinJS.4.0/css/placeholder.txt rename to archived/StreamSocket/js/Microsoft.WinJS.4.0/css/placeholder.txt diff --git a/Samples/TextSuggestion/js/Microsoft.WinJS.4.0/fonts/placeholder b/archived/StreamSocket/js/Microsoft.WinJS.4.0/fonts/placeholder similarity index 100% rename from Samples/TextSuggestion/js/Microsoft.WinJS.4.0/fonts/placeholder rename to archived/StreamSocket/js/Microsoft.WinJS.4.0/fonts/placeholder diff --git a/Samples/StreamSocket/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt b/archived/StreamSocket/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt similarity index 100% rename from Samples/StreamSocket/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt rename to archived/StreamSocket/js/Microsoft.WinJS.4.0/js/en-US/placeholder.txt diff --git a/Samples/StreamSocket/js/Package.appxmanifest b/archived/StreamSocket/js/Package.appxmanifest similarity index 100% rename from Samples/StreamSocket/js/Package.appxmanifest rename to archived/StreamSocket/js/Package.appxmanifest diff --git a/Samples/StreamSocket/js/StreamSocket.jsproj b/archived/StreamSocket/js/StreamSocket.jsproj similarity index 81% rename from Samples/StreamSocket/js/StreamSocket.jsproj rename to archived/StreamSocket/js/StreamSocket.jsproj index 9dc61f4681..b1a0f97e1c 100644 --- a/Samples/StreamSocket/js/StreamSocket.jsproj +++ b/archived/StreamSocket/js/StreamSocket.jsproj @@ -54,7 +54,7 @@ Designer - + default.html @@ -83,10 +83,10 @@ images\windows-sdk.png - + js\default.js - + css\default.css @@ -96,43 +96,43 @@ - + Microsoft.WinJS.4.0\css\ui-dark.css - + Microsoft.WinJS.4.0\css\ui-light.css - + Microsoft.WinJS.4.0\js\en-US\ui.strings.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense-setup.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense.js - + Microsoft.WinJS.4.0\fonts\Symbols.ttf - + Microsoft.WinJS.4.0\js\base.js - + Microsoft.WinJS.4.0\js\ui.js - + sample-utils\footer.html - + sample-utils\header.html - + sample-utils\sample-utils.js - + sample-utils\scenario-select.css - + sample-utils\scenario-select.html diff --git a/Samples/StreamSocket/js/StreamSocket.sln b/archived/StreamSocket/js/StreamSocket.sln similarity index 100% rename from Samples/StreamSocket/js/StreamSocket.sln rename to archived/StreamSocket/js/StreamSocket.sln diff --git a/Samples/StreamSocket/js/css/placeholder.txt b/archived/StreamSocket/js/css/placeholder.txt similarity index 100% rename from Samples/StreamSocket/js/css/placeholder.txt rename to archived/StreamSocket/js/css/placeholder.txt diff --git a/Samples/StreamSocket/js/html/scenario1_Start.html b/archived/StreamSocket/js/html/scenario1_Start.html similarity index 100% rename from Samples/StreamSocket/js/html/scenario1_Start.html rename to archived/StreamSocket/js/html/scenario1_Start.html diff --git a/Samples/StreamSocket/js/html/scenario2_Connect.html b/archived/StreamSocket/js/html/scenario2_Connect.html similarity index 100% rename from Samples/StreamSocket/js/html/scenario2_Connect.html rename to archived/StreamSocket/js/html/scenario2_Connect.html diff --git a/Samples/StreamSocket/js/html/scenario3_Send.html b/archived/StreamSocket/js/html/scenario3_Send.html similarity index 100% rename from Samples/StreamSocket/js/html/scenario3_Send.html rename to archived/StreamSocket/js/html/scenario3_Send.html diff --git a/Samples/StreamSocket/js/html/scenario4_Close.html b/archived/StreamSocket/js/html/scenario4_Close.html similarity index 100% rename from Samples/StreamSocket/js/html/scenario4_Close.html rename to archived/StreamSocket/js/html/scenario4_Close.html diff --git a/Samples/StreamSocket/js/html/scenario5_Certificates.html b/archived/StreamSocket/js/html/scenario5_Certificates.html similarity index 100% rename from Samples/StreamSocket/js/html/scenario5_Certificates.html rename to archived/StreamSocket/js/html/scenario5_Certificates.html diff --git a/Samples/StreamSocket/js/images/placeholder.txt b/archived/StreamSocket/js/images/placeholder.txt similarity index 100% rename from Samples/StreamSocket/js/images/placeholder.txt rename to archived/StreamSocket/js/images/placeholder.txt diff --git a/Samples/StreamSocket/js/js/sample-configuration.js b/archived/StreamSocket/js/js/sample-configuration.js similarity index 100% rename from Samples/StreamSocket/js/js/sample-configuration.js rename to archived/StreamSocket/js/js/sample-configuration.js diff --git a/Samples/StreamSocket/js/js/scenario1_Start.js b/archived/StreamSocket/js/js/scenario1_Start.js similarity index 100% rename from Samples/StreamSocket/js/js/scenario1_Start.js rename to archived/StreamSocket/js/js/scenario1_Start.js diff --git a/Samples/StreamSocket/js/js/scenario2_Connect.js b/archived/StreamSocket/js/js/scenario2_Connect.js similarity index 100% rename from Samples/StreamSocket/js/js/scenario2_Connect.js rename to archived/StreamSocket/js/js/scenario2_Connect.js diff --git a/Samples/StreamSocket/js/js/scenario3_Send.js b/archived/StreamSocket/js/js/scenario3_Send.js similarity index 100% rename from Samples/StreamSocket/js/js/scenario3_Send.js rename to archived/StreamSocket/js/js/scenario3_Send.js diff --git a/Samples/StreamSocket/js/js/scenario4_Close.js b/archived/StreamSocket/js/js/scenario4_Close.js similarity index 100% rename from Samples/StreamSocket/js/js/scenario4_Close.js rename to archived/StreamSocket/js/js/scenario4_Close.js diff --git a/Samples/StreamSocket/js/js/scenario5_Certificates.js b/archived/StreamSocket/js/js/scenario5_Certificates.js similarity index 100% rename from Samples/StreamSocket/js/js/scenario5_Certificates.js rename to archived/StreamSocket/js/js/scenario5_Certificates.js diff --git a/Samples/StreamSocket/js/js/socketsSample.js b/archived/StreamSocket/js/js/socketsSample.js similarity index 100% rename from Samples/StreamSocket/js/js/socketsSample.js rename to archived/StreamSocket/js/js/socketsSample.js diff --git a/Samples/StreamSocket/js/sample-utils/placeholder.txt b/archived/StreamSocket/js/sample-utils/placeholder.txt similarity index 100% rename from Samples/StreamSocket/js/sample-utils/placeholder.txt rename to archived/StreamSocket/js/sample-utils/placeholder.txt diff --git a/Samples/StreamSocket/js/server/removeserver.ps1 b/archived/StreamSocket/js/server/removeserver.ps1 similarity index 100% rename from Samples/StreamSocket/js/server/removeserver.ps1 rename to archived/StreamSocket/js/server/removeserver.ps1 diff --git a/Samples/StreamSocket/js/server/setupserver.ps1 b/archived/StreamSocket/js/server/setupserver.ps1 similarity index 100% rename from Samples/StreamSocket/js/server/setupserver.ps1 rename to archived/StreamSocket/js/server/setupserver.ps1 diff --git a/archived/SystemMediaTransportControls/README.md b/archived/SystemMediaTransportControls/README.md new file mode 100644 index 0000000000..41946ebb98 --- /dev/null +++ b/archived/SystemMediaTransportControls/README.md @@ -0,0 +1,109 @@ +--- +topic: sample +languages: +- js +products: +- windows +- windows-uwp +--- + +# System media transport controls sample + +Shows how to use the APIs in the [Windows.Media](https://msdn.microsoft.com/library/windows/apps/windows.media.aspx) namespace to allow +your app to respond to system media events as well as providing the system with +metadata about the content that is playing. + +> **Note:** This sample is part of a large collection of UWP feature samples. +> If you are unfamiliar with Git and GitHub, you can download the entire collection as a +> [ZIP file](https://github.com/Microsoft/Windows-universal-samples/archive/master.zip), but be +> sure to unzip everything to access shared dependencies. For more info on working with the ZIP file, +> the samples collection, and GitHub, see [Get the UWP samples from GitHub](https://aka.ms/ovu2uq). +> For more samples, see the [Samples portal](https://aka.ms/winsamples) on the Windows Dev Center. + +In particular, this sample +demonstrates *manual* integration with SystemMediaTransportControls (SMTC). +MediaPlayer has *automatic* integration with SMTC, but since this sample +demonstrates *manual* integration with SMTC, it disables the MediaPlayer's +CommandManager which is what performs the automatic integration. Unless you have +a need to manually integrate with SMTC, such as using an audio API like WASAPI +or AudioGraph, it is recommended that you use the built-in integration through +CommandManager instead of the procedures demonstrated throughout this sample. + +With automatic integration, timeline properties are synchronized from the +player, button state is inferred but can still be customized, and metadata is +updated through MediaPlaybackItem.ApplyDisplayProperties() instead of directly +updating the SMTC. In contrast, manual integration means that the app intends to +update all state and handle all events of the SMTC itself. + +Note that the SMTC does not show data for the first time until the application +begins an audio playback session. + +## Walkthrough + +Scenario 1: Press the "Select Files" button in order to select some media +content from your device. + +In the code behind, when the file open picker is launched and a file is +selected, the file/s are assigned to the playlist defined as a list of Storage +Items and the first item is passed to SetNewMediaItem. + +SetNewMediaItem performs a number of interesting jobs. It enables or disables +certain system controls, such as next and previous based on where we are in the +playlist. It then opens the file and sets it on the MediaPlayer using +Source. The MediaPlayer is set to AutoPlay so the file will begin to play on +it's own. The final thing it does is attempt to read metadata from the file +itself, using the CopyFromFileAsync method on the DisplayUpdater in order update +the SystemMediaTransportControls. It's possible to set all of the metadata +required manually by directly manipulating the properties on the display +updater. + +The rest of the sample focuses on some core concepts of using the System Media +Transport Controls. Firstly we keep the controls up to date with our state, such +as our current playback status and the position of our current playback. + +The second thing we do is set up a number of event handlers in order to handle +certain events from the system. One example of this is the ButtonPressed event +which sends the app commands such as play, pause and skip etc. This is so the +user can still control the app, even if it isn't neccesarily on screen. In this +event handler we take the appropriate action for the command, such as pausing +our media and then updating the state back on the control. + +## JavaScript + +The