diff --git a/README.md b/README.md index 4e7990b035..6533fdf1e1 100644 --- a/README.md +++ b/README.md @@ -14,9 +14,9 @@ This repo contains the samples that demonstrate the API usage patterns for the U ## Universal Windows Platform development -These samples require Visual Studio 2015 and the Windows Software Development Kit (SDK) for Windows 10 to build, test, and deploy your Universal Windows Platform apps. +These samples require Visual Studio 2017 and the Windows Software Development Kit (SDK) for Windows 10 to build, test, and deploy your Universal Windows Platform apps. - [Get a free copy of Visual Studio 2015 Community Edition with support for building Universal Windows Platform apps](http://go.microsoft.com/fwlink/p/?LinkID=280676) + [Get a free copy of Visual Studio 2017 Community Edition with support for building Universal Windows Platform apps](http://go.microsoft.com/fwlink/p/?LinkID=280676) Additionally, to stay on top of the latest updates to Windows and the development tools, become a Windows Insider by joining the Windows Insider Program. @@ -24,14 +24,14 @@ Additionally, to stay on top of the latest updates to Windows and the developmen ## Using the samples -The easiest way to use these samples without using Git is to download the zip file containing the current version (using the following link or by clicking the "Download ZIP" button on the repo page). You can then unzip the entire archive and use the samples in Visual Studio 2015. +The easiest way to use these samples without using Git is to download the zip file containing the current version (using the following link or by clicking the "Download ZIP" button on the repo page). You can then unzip the entire archive and use the samples in Visual Studio 2017. [Download the samples ZIP](../../archive/master.zip) **Notes:** * Before you unzip the archive, right-click it, select **Properties**, and then select **Unblock**. * Be sure to unzip the entire archive, and not just individual samples. The samples all depend on the SharedContent folder in the archive. - * In Visual Studio 2015, the platform target defaults to ARM, so be sure to change that to x64 or x86 if you want to test on a non-ARM device. + * In Visual Studio 2017, the platform target defaults to ARM, so be sure to change that to x64 or x86 if you want to test on a non-ARM device. The samples use Linked files in Visual Studio to reduce duplication of common files, including sample template files and image assets. These common files are stored in the SharedContent folder at the root of the repository, and are referred to in the project files using links. @@ -412,8 +412,11 @@ For additional Windows samples, see [Windows on GitHub](http://microsoft.github. Direct2D gradient mesh + Direct2D SVG image rendering Efficient animations (HTML) Transform3D animations + + Transform3D parallax diff --git a/Samples/3DPrinting/README.md b/Samples/3DPrinting/README.md index d1984484ab..3e938ede53 100644 --- a/Samples/3DPrinting/README.md +++ b/Samples/3DPrinting/README.md @@ -35,8 +35,8 @@ 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 2015 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 2015 Solution (.sln) file. +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 diff --git a/Samples/3DPrintingFromUnity/README.md b/Samples/3DPrintingFromUnity/README.md index 9779ccc968..000dee26e8 100644 --- a/Samples/3DPrintingFromUnity/README.md +++ b/Samples/3DPrintingFromUnity/README.md @@ -31,7 +31,7 @@ In addition to Visual Studio and the Windows SDK, you need the following: * The Unity plugin for Visual Studio. This can be installed as part of installing Unity, or you can - [download it](https://visualstudiogallery.msdn.microsoft.com/8d26236e-4a64-4d64-8486-7df95156aba9 "Visual Studio 2015 Tools for Unity") + [download it](https://visualstudiogallery.msdn.microsoft.com/8d26236e-4a64-4d64-8486-7df95156aba9 "Visual Studio 2017 Tools for Unity") manually. * The 3D Builder app. diff --git a/Samples/Accelerometer/README.md b/Samples/Accelerometer/README.md index 848c9a9117..d04ba2cf26 100644 --- a/Samples/Accelerometer/README.md +++ b/Samples/Accelerometer/README.md @@ -79,8 +79,8 @@ When you choose the **Enable** button for the **Data Events** option, the app be ## 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 2015 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 2015 Solution (.sln) file. +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 diff --git a/Samples/Accelerometer/cpp/Accelerometer.vcxproj b/Samples/Accelerometer/cpp/Accelerometer.vcxproj index 9307d5cee1..40491f3782 100644 --- a/Samples/Accelerometer/cpp/Accelerometer.vcxproj +++ b/Samples/Accelerometer/cpp/Accelerometer.vcxproj @@ -42,37 +42,37 @@ Application true - v140 + v141 Application true - v140 + v141 Application true - v140 + v141 Application false true - v140 + v141 true Application false true - v140 + v141 true Application false true - v140 + v141 true diff --git a/Samples/ActivitySensor/README.md b/Samples/ActivitySensor/README.md index 3c63ecbba0..1c2e3b7e83 100644 --- a/Samples/ActivitySensor/README.md +++ b/Samples/ActivitySensor/README.md @@ -49,8 +49,8 @@ Registers a background task for activity changes. The background task runs whene ## 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 2015 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 2015 Solution (.sln) file. +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 diff --git a/Samples/ActivitySensor/cpp/ActivitySensor.vcxproj b/Samples/ActivitySensor/cpp/ActivitySensor.vcxproj index 4c8ac97ac4..a87513c0b6 100644 --- a/Samples/ActivitySensor/cpp/ActivitySensor.vcxproj +++ b/Samples/ActivitySensor/cpp/ActivitySensor.vcxproj @@ -42,37 +42,37 @@ Application true - v140 + v141 Application true - v140 + v141 Application true - v140 + v141 Application false true - v140 + v141 true Application false true - v140 + v141 true Application false true - v140 + v141 true diff --git a/Samples/ActivitySensor/cpp/Tasks/ActivitySensorTasks.vcxproj b/Samples/ActivitySensor/cpp/Tasks/ActivitySensorTasks.vcxproj index b812ae9bee..b5ec3ad437 100644 --- a/Samples/ActivitySensor/cpp/Tasks/ActivitySensorTasks.vcxproj +++ b/Samples/ActivitySensor/cpp/Tasks/ActivitySensorTasks.vcxproj @@ -43,37 +43,37 @@ DynamicLibrary true - v140 + v141 DynamicLibrary true - v140 + v141 DynamicLibrary true - v140 + v141 DynamicLibrary false true - v140 + v141 true DynamicLibrary false true - v140 + v141 true DynamicLibrary false true - v140 + v141 true diff --git a/Samples/AdaptiveStreaming/README.md b/Samples/AdaptiveStreaming/README.md index c6de782be6..482b629de0 100644 --- a/Samples/AdaptiveStreaming/README.md +++ b/Samples/AdaptiveStreaming/README.md @@ -86,11 +86,10 @@ by imposing a lower DesiredMaxBitrate in order to restrict content on unsecured Not shown in this scenario, but related in concept: -* Passing a Stream to a manifest in the constructor of AdaptiveMediaSource, -to replace the first web request for a Uri. +* Passing a Stream to a manifest in the constructor of AdaptiveMediaSource, to replace the first web request for a Uri. * Getting a copy of the downloaded bytes after they have been consumed by the platform in DownloadCompleted. -*Tune the AdaptiveMediaSource download and bitrate switching heuristics** +**Tune the AdaptiveMediaSource download and bitrate switching heuristics** This scenario shows ways in which the app can tune the adaptive media source. @@ -104,10 +103,14 @@ only after extensive testing under a range of network conditions. This scenario shows ways in which the app can consume or create timed metadata. -The AdaptiveMediaSource publishes ID3 tags within TS content -and any M3U8 comment tags it finds in manifests -as TimedMetadataTracks. -This sample shows how to register to consume this data in the app. +The AdaptiveMediaSource creates TimedMetadataTracks, and fires Cues for + +* ID3 tags within TS content +* emsg boxes within fragmented MP4 content +* Comment tags found in HLS manifests + +This sample shows how to register to consume this data in the app, and demonstrates +how SCTE-35 can be parsed from emsg boxes and used to schedule ads. The captioning system will also publish TimedMetadataTracks for: WebVTT segments within an HLS presentation, @@ -115,13 +118,12 @@ additional files (TTML, SRT or WebVTT) added to the source, or 608 captions within SEI NALUs of H.264. Although it is not demonstrated in this sample, the app can opt to render the captions itself -by following a process similar to one used in this scenario. +by following a process similar to one used for data cues in this scenario. The app can also create a Custom TimedMetadataTrack and add it to a MediaSource. This provides a uniform event-based mechanism to consume timed-synchronized information. Here we demonstrate playback progress reporting using a custom class TrackingEventCue. -We re-use this concept in the next sample -to provide reporting on five ads inserted into a main MediaPlaybackItem. +We re-use this concept in the next sample to provide reporting on ads inserted into a main MediaPlaybackItem. **Create advertisements within an AdaptiveMediaSource MediaPlaybackItem** @@ -135,11 +137,37 @@ For each of these ads, and the main content, we re-use the Custom TimedMetadataTracks from the Metadata sample to raise playback progress events. -**Note** The Windows universal samples require Visual Studio 2015 to build and Windows 10 to execute. +**Live Seekable Range** + +This scenario demonstrates seeking within the MediaTimeRange exposed by +`MediaPlayer.MediaPlaybackSession.GetSeekableRanges()` +This is often called a DVR Window and is used in over the top television (OTT) broadcasts +and live event streaming. + +The sample also demonstrate how to further limit the size of the DVR window +using the AdaptiveMediaSource properties: + +* MinLiveOffset: The leading edge of the DRV window, as imposed by the content or platform. + +* DesiredLiveOffset: The application-controlled leading-edge of the DRV window. +It allows the app to provide additional back-off from the leading edge of the Content +to manage Content Distribution Network conditions. + +* DesiredSeekableWindowSize: The application-controlled DVR window depth. +This allows the app to limit how far back into the DVR window the user can seek. + +* MaxSeekableWindowSize: The DRV window depth, as imposed by the content. + +The sample demonstrates the use of AdaptiveMediaSourceCorrelatedTimes, +an object which provides the offsets between the platform's media Position, +the original PresentationTimeStamp within the media segments, and +the content encoding time (EXT-X-PROGRAM-DATE-TIME in HLS and its equivalent in DASH). + +**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 2015 and the tools for developing Windows apps, go to [Visual Studio 2015](http://go.microsoft.com/fwlink/?LinkID=532422) +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 @@ -169,9 +197,8 @@ To obtain information about Microsoft Visual Studio 2015 and the tools for devel ## 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 2015 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?2015 Solution (.sln) file. +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 @@ -185,3 +212,4 @@ The next steps depend on whether you just want to deploy the sample or you want ### 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/AdaptiveStreaming/cs/AdaptiveStreaming.csproj b/Samples/AdaptiveStreaming/cs/AdaptiveStreaming.csproj index 02501d0e59..226075faa6 100644 --- a/Samples/AdaptiveStreaming/cs/AdaptiveStreaming.csproj +++ b/Samples/AdaptiveStreaming/cs/AdaptiveStreaming.csproj @@ -21,8 +21,7 @@ true bin\ARM\Debug\ - DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP - ;2008 + DEBUG;TRACE;NETFX_CORE;WINDOWS_UAP full ARM false @@ -31,9 +30,8 @@ bin\ARM\Release\ - TRACE;NETFX_CORE;WINDOWS_UWP + TRACE;NETFX_CORE;WINDOWS_UAP true - ;2008 pdbonly ARM false @@ -44,8 +42,7 @@ true bin\x64\Debug\ - DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP - ;2008 + DEBUG;TRACE;NETFX_CORE;WINDOWS_UAP full x64 false @@ -54,9 +51,8 @@ bin\x64\Release\ - TRACE;NETFX_CORE;WINDOWS_UWP + TRACE;NETFX_CORE;WINDOWS_UAP true - ;2008 pdbonly x64 false @@ -67,8 +63,7 @@ true bin\x86\Debug\ - DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP - ;2008 + DEBUG;TRACE;NETFX_CORE;WINDOWS_UAP full x86 false @@ -77,9 +72,8 @@ bin\x86\Release\ - TRACE;NETFX_CORE;WINDOWS_UWP + TRACE;NETFX_CORE;WINDOWS_UAP true - ;2008 pdbonly x86 false @@ -102,13 +96,50 @@ Properties\AssemblyInfo.cs + + Shared\Logging\LogView.xaml.cs + + + Shared\Logging\AdaptiveMediaSourceHttpFilterLogger.cs + + + Shared\Logging\AdaptiveMediaSourceLogger.cs + + + Shared\Logging\MediaPlaybackItemLogger.cs + + + Shared\Logging\MediaPlaybackListLogger.cs + + + Shared\Logging\MediaPlayerLogger.cs + + + Shared\Logging\MediaSourceLogger.cs + + + Shared\Logging\Extensions\AdaptiveMediaSourceStringExtensions.cs + + + Shared\Logging\Extensions\HttpProgressStringExtensions.cs + + + Shared\Logging\Extensions\JsonFormatter.cs + + + Shared\Logging\Extensions\MediaFoundationGuidStringExtensions.cs + + + Shared\Logging\Extensions\MediaPlaybackItemStringExtensions.cs + + + Shared\Logging\Extensions\MediaPlaybackListStringExtensions.cs + - - - - Logger.xaml + + ContentSelector.xaml @@ -130,6 +161,9 @@ Scenario6_AdInsertion.xaml + + Scenario7_LiveSeekableRange.xaml + @@ -148,7 +182,12 @@ MSBuild:Compile Designer - + + Shared\Logging\LogView.xaml + MSBuild:Compile + Designer + + Designer MSBuild:Compile @@ -176,6 +215,10 @@ Designer MSBuild:Compile + + Designer + MSBuild:Compile + Styles\Styles.xaml MSBuild:Compile diff --git a/Samples/AdaptiveStreaming/cs/Controls/ContentSelector.xaml b/Samples/AdaptiveStreaming/cs/Controls/ContentSelector.xaml new file mode 100644 index 0000000000..502900bffa --- /dev/null +++ b/Samples/AdaptiveStreaming/cs/Controls/ContentSelector.xaml @@ -0,0 +1,28 @@ + + + + + + + + Size: + + + + + diff --git a/Samples/D2DSvgImage/cpp/DirectXPage.xaml.cpp b/Samples/D2DSvgImage/cpp/DirectXPage.xaml.cpp new file mode 100644 index 0000000000..60a0617cbb --- /dev/null +++ b/Samples/D2DSvgImage/cpp/DirectXPage.xaml.cpp @@ -0,0 +1,171 @@ +//********************************************************* +// +// Copyright (c) Microsoft. All rights reserved. +// This code is licensed under the MIT License (MIT). +// THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF +// ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY +// IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR +// PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT. +// +//********************************************************* + +#include "pch.h" +#include "DirectXPage.xaml.h" + +using namespace SDKTemplate; + +using namespace concurrency; +using namespace Platform; +using namespace Windows::Foundation; +using namespace Windows::Foundation::Collections; +using namespace Windows::Graphics::Display; +using namespace Windows::System::Threading; +using namespace Windows::UI::Core; +using namespace Windows::UI::Input; +using namespace Windows::UI::Xaml; +using namespace Windows::UI::Xaml::Controls; +using namespace Windows::UI::Xaml::Controls::Primitives; +using namespace Windows::UI::Xaml::Data; +using namespace Windows::UI::Xaml::Input; +using namespace Windows::UI::Xaml::Media; +using namespace Windows::UI::Xaml::Navigation; + +DirectXPage::DirectXPage() : + m_isWindowVisible(true) +{ + InitializeComponent(); + + // Register event handlers for page lifecycle. + CoreWindow^ window = Window::Current->CoreWindow; + + window->VisibilityChanged += + ref new TypedEventHandler(this, &DirectXPage::OnVisibilityChanged); + + DisplayInformation^ currentDisplayInformation = DisplayInformation::GetForCurrentView(); + + currentDisplayInformation->DpiChanged += + ref new TypedEventHandler(this, &DirectXPage::OnDpiChanged); + + currentDisplayInformation->OrientationChanged += + ref new TypedEventHandler(this, &DirectXPage::OnOrientationChanged); + + DisplayInformation::DisplayContentsInvalidated += + ref new TypedEventHandler(this, &DirectXPage::OnDisplayContentsInvalidated); + + swapChainPanel->CompositionScaleChanged += + ref new TypedEventHandler(this, &DirectXPage::OnCompositionScaleChanged); + + swapChainPanel->SizeChanged += + ref new SizeChangedEventHandler(this, &DirectXPage::OnSwapChainPanelSizeChanged); + + // At this point we have access to the device and + // can create the device-dependent resources. + m_deviceResources = std::make_shared(); + m_deviceResources->SetSwapChainPanel(swapChainPanel); + + m_renderer = std::unique_ptr(new D2DSvgImageRenderer(m_deviceResources)); +} + +DirectXPage::~DirectXPage() +{ +} + +// UI element event handlers. + +void DirectXPage::YellowButton_Click(Platform::Object^ sender, Windows::UI::Xaml::RoutedEventArgs^ e) +{ + m_renderer->RecolorSvg(D2D1::ColorF(D2D1::ColorF::Yellow)); + m_renderer->Draw(); +} + +void DirectXPage::GreenButton_Click(_In_ Object^ sender, _In_ RoutedEventArgs^ e) +{ + m_renderer->RecolorSvg(D2D1::ColorF(D2D1::ColorF::Green)); + m_renderer->Draw(); +} + +void DirectXPage::PurpleButton_Click(Platform::Object^ sender, Windows::UI::Xaml::RoutedEventArgs^ e) +{ + m_renderer->RecolorSvg(D2D1::ColorF(D2D1::ColorF::Purple)); + m_renderer->Draw(); +} + +void DirectXPage::TongueButton_Click(Platform::Object^ sender, Windows::UI::Xaml::RoutedEventArgs^ e) +{ + m_renderer->ToggleTongue(); + m_renderer->Draw(); +} + +void DirectXPage::Slider_ValueChanged(Platform::Object^ sender, Windows::UI::Xaml::Controls::Primitives::RangeBaseValueChangedEventArgs^ e) +{ + if (m_renderer) + { + m_renderer->SetScaleValue((float)e->NewValue); + m_renderer->Draw(); + } +} +// Saves the current state of the app for suspend and terminate events. +void DirectXPage::SaveInternalState(_In_ IPropertySet^ state) +{ + m_deviceResources->Trim(); +} + +// Loads the current state of the app for resume events. +void DirectXPage::LoadInternalState(_In_ IPropertySet^ state) +{ +} + +// Window event handlers. + +void DirectXPage::OnVisibilityChanged(_In_ CoreWindow^ sender, _In_ VisibilityChangedEventArgs^ args) +{ + m_isWindowVisible = args->Visible; + if (m_isWindowVisible) + { + m_renderer->Draw(); + } +} + +// DisplayInformation event handlers. + +void DirectXPage::OnDpiChanged(_In_ DisplayInformation^ sender, _In_ Object^ args) +{ + m_deviceResources->SetDpi(sender->LogicalDpi); + m_renderer->CreateWindowSizeDependentResources(); + m_renderer->Draw(); +} + +void DirectXPage::OnOrientationChanged(_In_ DisplayInformation^ sender, _In_ Object^ args) +{ + m_deviceResources->SetCurrentOrientation(sender->CurrentOrientation); + m_renderer->CreateWindowSizeDependentResources(); + m_renderer->Draw(); +} + +void DirectXPage::OnDisplayContentsInvalidated(_In_ DisplayInformation^ sender, _In_ Object^ args) +{ + m_deviceResources->ValidateDevice(); + m_renderer->Draw(); +} + +// Other event handlers. + +void DirectXPage::OnCompositionScaleChanged(_In_ SwapChainPanel^ sender, _In_ Object^ args) +{ + m_deviceResources->SetCompositionScale(sender->CompositionScaleX, sender->CompositionScaleY); + m_renderer->CreateWindowSizeDependentResources(); + m_renderer->Draw(); +} + +void DirectXPage::OnSwapChainPanelSizeChanged(_In_ Object^ sender, _In_ SizeChangedEventArgs^ e) +{ + m_deviceResources->SetLogicalSize(e->NewSize); + m_renderer->CreateWindowSizeDependentResources(); + m_renderer->Draw(); +} + +// INotifyPropertyChanged. +void DirectXPage::OnPropertyChanged(String^ propertyName) +{ + PropertyChanged(this, ref new PropertyChangedEventArgs(propertyName)); +} diff --git a/Samples/D2DSvgImage/cpp/DirectXPage.xaml.h b/Samples/D2DSvgImage/cpp/DirectXPage.xaml.h new file mode 100644 index 0000000000..b0e2fd524c --- /dev/null +++ b/Samples/D2DSvgImage/cpp/DirectXPage.xaml.h @@ -0,0 +1,69 @@ +//********************************************************* +// +// Copyright (c) Microsoft. All rights reserved. +// This code is licensed under the MIT License (MIT). +// THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF +// ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY +// IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR +// PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT. +// +//********************************************************* + +#pragma once + +#include "DirectXPage.g.h" + +#include "Common\DeviceResources.h" +#include "D2DSvgImageRenderer.h" + +namespace SDKTemplate +{ + /// + /// A page that hosts the Direct2D app in a SwapChainPanel, and app UI in XAML. + /// + [Windows::UI::Xaml::Data::Bindable] + public ref class DirectXPage sealed : Windows::UI::Xaml::Data::INotifyPropertyChanged + { + public: + DirectXPage(); + virtual ~DirectXPage(); + + void SaveInternalState(_In_ Windows::Foundation::Collections::IPropertySet^ state); + void LoadInternalState(_In_ Windows::Foundation::Collections::IPropertySet^ state); + + // INotifyPropertyChanged. + virtual event Windows::UI::Xaml::Data::PropertyChangedEventHandler^ PropertyChanged; + + private: + // UI element event handlers. + void YellowButton_Click(Platform::Object^ sender, Windows::UI::Xaml::RoutedEventArgs^ e); + void GreenButton_Click(_In_ Platform::Object^ sender, _In_ Windows::UI::Xaml::RoutedEventArgs^ e); + void PurpleButton_Click(_In_ Platform::Object^ sender, _In_ Windows::UI::Xaml::RoutedEventArgs^ e); + void TongueButton_Click(_In_ Platform::Object^ sender, _In_ Windows::UI::Xaml::RoutedEventArgs^ e); + void Slider_ValueChanged(Platform::Object^ sender, Windows::UI::Xaml::Controls::Primitives::RangeBaseValueChangedEventArgs^ e); + + // XAML low-level rendering event handler. + void OnRendering(_In_ Platform::Object^ sender, _In_ Platform::Object^ args); + + // Window event handlers. + void OnVisibilityChanged(_In_ Windows::UI::Core::CoreWindow^ sender, _In_ Windows::UI::Core::VisibilityChangedEventArgs^ args); + + // DisplayInformation event handlers. + void OnDpiChanged(_In_ Windows::Graphics::Display::DisplayInformation^ sender, _In_ Platform::Object^ args); + void OnOrientationChanged(_In_ Windows::Graphics::Display::DisplayInformation^ sender, _In_ Platform::Object^ args); + void OnDisplayContentsInvalidated(_In_ Windows::Graphics::Display::DisplayInformation^ sender, _In_ Platform::Object^ args); + + // Other event handlers. + void OnCompositionScaleChanged(_In_ Windows::UI::Xaml::Controls::SwapChainPanel^ sender, _In_ Object^ args); + void OnSwapChainPanelSizeChanged(_In_ Platform::Object^ sender, _In_ Windows::UI::Xaml::SizeChangedEventArgs^ e); + + // Resources used to draw the DirectX content in the XAML page. + std::shared_ptr m_deviceResources; + std::unique_ptr m_renderer; + bool m_isWindowVisible; + + // INotifyPropertyChanged. + void OnPropertyChanged(Platform::String^ propertyName); + }; +} + diff --git a/Samples/D2DSvgImage/cpp/Package.appxmanifest b/Samples/D2DSvgImage/cpp/Package.appxmanifest new file mode 100644 index 0000000000..c693ec957a --- /dev/null +++ b/Samples/D2DSvgImage/cpp/Package.appxmanifest @@ -0,0 +1,40 @@ + + + + + + Direct2D SVG Image Rendering C++ Sample + Microsoft Corporation + Assets\StoreLogo-sdk.png + + + + + + + + + + + + + + + + + + + + + diff --git a/Samples/D2DSvgImage/cpp/drawing.svg b/Samples/D2DSvgImage/cpp/drawing.svg new file mode 100644 index 0000000000..4c760666a1 --- /dev/null +++ b/Samples/D2DSvgImage/cpp/drawing.svg @@ -0,0 +1,57 @@ + + + + + + + + + diff --git a/Samples/D2DSvgImage/cpp/pch.cpp b/Samples/D2DSvgImage/cpp/pch.cpp new file mode 100644 index 0000000000..14ef4dbcf3 --- /dev/null +++ b/Samples/D2DSvgImage/cpp/pch.cpp @@ -0,0 +1,12 @@ +//********************************************************* +// +// Copyright (c) Microsoft. All rights reserved. +// This code is licensed under the MIT License (MIT). +// THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF +// ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY +// IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR +// PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT. +// +//********************************************************* + +#include "pch.h" diff --git a/Samples/D2DSvgImage/cpp/pch.h b/Samples/D2DSvgImage/cpp/pch.h new file mode 100644 index 0000000000..f1f2507ecd --- /dev/null +++ b/Samples/D2DSvgImage/cpp/pch.h @@ -0,0 +1,26 @@ +//********************************************************* +// +// Copyright (c) Microsoft. All rights reserved. +// This code is licensed under the MIT License (MIT). +// THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF +// ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY +// IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR +// PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT. +// +//********************************************************* + +#pragma once + +#include +#include +#include +#include +#include +#include +#include + +#include +#include +#include +#include +#include diff --git a/Samples/DWriteColorGlyph/README.md b/Samples/DWriteColorGlyph/README.md index f0878f3d73..4f5338dfb5 100644 --- a/Samples/DWriteColorGlyph/README.md +++ b/Samples/DWriteColorGlyph/README.md @@ -72,8 +72,8 @@ Variants of the following files are found in every UWP app written in C++: ## 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 2015 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 Studio2015 Solution (.sln) file. +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 diff --git a/Samples/DWriteColorGlyph/cpp/DWriteColorTextRenderer.vcxproj b/Samples/DWriteColorGlyph/cpp/DWriteColorTextRenderer.vcxproj index 2fd0f1054c..8e4bee9d5e 100644 --- a/Samples/DWriteColorGlyph/cpp/DWriteColorTextRenderer.vcxproj +++ b/Samples/DWriteColorGlyph/cpp/DWriteColorTextRenderer.vcxproj @@ -43,37 +43,37 @@ Application true - v140 + v141 Application true - v140 + v141 Application true - v140 + v141 Application false true - v140 + v141 true Application false true - v140 + v141 true Application false true - v140 + v141 true diff --git a/Samples/DWriteLineSpacingModes/README.md b/Samples/DWriteLineSpacingModes/README.md index f1d81b64af..4b01eb39ff 100644 --- a/Samples/DWriteLineSpacingModes/README.md +++ b/Samples/DWriteLineSpacingModes/README.md @@ -60,8 +60,8 @@ Other files are boilerplate files used for UWP sample apps. ## 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 2015 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 2015 Solution (.sln) file. +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 diff --git a/Samples/DWriteLineSpacingModes/cpp/DWriteLineSpacingModes/DWriteLineSpacingModes.vcxproj b/Samples/DWriteLineSpacingModes/cpp/DWriteLineSpacingModes/DWriteLineSpacingModes.vcxproj index b62536951b..f185d35a8c 100644 --- a/Samples/DWriteLineSpacingModes/cpp/DWriteLineSpacingModes/DWriteLineSpacingModes.vcxproj +++ b/Samples/DWriteLineSpacingModes/cpp/DWriteLineSpacingModes/DWriteLineSpacingModes.vcxproj @@ -43,37 +43,37 @@ Application true - v140 + v141 Application true - v140 + v141 Application true - v140 + v141 Application false true - v140 + v141 true Application false true - v140 + v141 true Application false true - v140 + v141 true diff --git a/Samples/DWriteLineSpacingModes/cpp/DWriteTextLayoutImplementation/DWriteTextLayoutImplementation.vcxproj b/Samples/DWriteLineSpacingModes/cpp/DWriteTextLayoutImplementation/DWriteTextLayoutImplementation.vcxproj index 3dbe850a4e..0612cb640f 100644 --- a/Samples/DWriteLineSpacingModes/cpp/DWriteTextLayoutImplementation/DWriteTextLayoutImplementation.vcxproj +++ b/Samples/DWriteLineSpacingModes/cpp/DWriteTextLayoutImplementation/DWriteTextLayoutImplementation.vcxproj @@ -45,37 +45,37 @@ DynamicLibrary true - v140 + v141 DynamicLibrary true - v140 + v141 DynamicLibrary true - v140 + v141 DynamicLibrary false true - v140 + v141 true DynamicLibrary false true - v140 + v141 true DynamicLibrary false true - v140 + v141 true diff --git a/Samples/DWriteTextLayoutCloudFont/README.md b/Samples/DWriteTextLayoutCloudFont/README.md index beb4817980..8489967ffb 100644 --- a/Samples/DWriteTextLayoutCloudFont/README.md +++ b/Samples/DWriteTextLayoutCloudFont/README.md @@ -64,8 +64,8 @@ The ClearDownloadableFontCache.ps1 file is not part of the sample project itself ## 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 2015 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 2015 Solution (.sln) file. +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 diff --git a/Samples/DWriteTextLayoutCloudFont/cpp/DWriteTextLayoutCloudFont/DWriteTextLayoutCloudFont.vcxproj b/Samples/DWriteTextLayoutCloudFont/cpp/DWriteTextLayoutCloudFont/DWriteTextLayoutCloudFont.vcxproj index 76dc417713..f213ea11a1 100644 --- a/Samples/DWriteTextLayoutCloudFont/cpp/DWriteTextLayoutCloudFont/DWriteTextLayoutCloudFont.vcxproj +++ b/Samples/DWriteTextLayoutCloudFont/cpp/DWriteTextLayoutCloudFont/DWriteTextLayoutCloudFont.vcxproj @@ -42,37 +42,37 @@ Application true - v140 + v141 Application true - v140 + v141 Application true - v140 + v141 Application false true - v140 + v141 true Application false true - v140 + v141 true Application false true - v140 + v141 true diff --git a/Samples/DWriteTextLayoutCloudFont/cpp/DWriteTextLayoutCloudFontImplementation/DWriteTextLayoutCloudFontImplementation.vcxproj b/Samples/DWriteTextLayoutCloudFont/cpp/DWriteTextLayoutCloudFontImplementation/DWriteTextLayoutCloudFontImplementation.vcxproj index e7ff9c3de8..ea865c6ac4 100644 --- a/Samples/DWriteTextLayoutCloudFont/cpp/DWriteTextLayoutCloudFontImplementation/DWriteTextLayoutCloudFontImplementation.vcxproj +++ b/Samples/DWriteTextLayoutCloudFont/cpp/DWriteTextLayoutCloudFontImplementation/DWriteTextLayoutCloudFontImplementation.vcxproj @@ -44,37 +44,37 @@ DynamicLibrary true - v140 + v141 DynamicLibrary true - v140 + v141 DynamicLibrary true - v140 + v141 DynamicLibrary false true - v140 + v141 true DynamicLibrary false true - v140 + v141 true DynamicLibrary false true - v140 + v141 true diff --git a/Samples/DataReaderWriter/README.md b/Samples/DataReaderWriter/README.md index a6211d2109..71534d734b 100644 --- a/Samples/DataReaderWriter/README.md +++ b/Samples/DataReaderWriter/README.md @@ -20,11 +20,11 @@ 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 2015 to build and Windows 10 to execute. +**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 2015 and the tools for developing Windows apps, go to [Visual Studio 2015](http://go.microsoft.com/fwlink/?LinkID=532422) +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 @@ -48,8 +48,8 @@ To obtain information about Microsoft Visual Studio 2015 and the tools for devel ## 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 2015 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 2015 Solution (.sln) file. +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 diff --git a/Samples/DataReaderWriter/cpp/DataReaderWriter.vcxproj b/Samples/DataReaderWriter/cpp/DataReaderWriter.vcxproj index f21443ba86..70f4104594 100644 --- a/Samples/DataReaderWriter/cpp/DataReaderWriter.vcxproj +++ b/Samples/DataReaderWriter/cpp/DataReaderWriter.vcxproj @@ -42,37 +42,37 @@ Application true - v140 + v141 Application true - v140 + v141 Application true - v140 + v141 Application false true - v140 + v141 true Application false true - v140 + v141 true Application false true - v140 + v141 true diff --git a/Samples/DatagramSocket/README.md b/Samples/DatagramSocket/README.md index 6391a9b6fd..bf3416dfa3 100644 --- a/Samples/DatagramSocket/README.md +++ b/Samples/DatagramSocket/README.md @@ -92,8 +92,8 @@ This sample requires that network capabilities be set in the *Package.appxmanife ## 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 2015 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 2015 Solution (.sln) file. +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 diff --git a/Samples/DatagramSocket/cpp/DatagramSocket.vcxproj b/Samples/DatagramSocket/cpp/DatagramSocket.vcxproj index 254227be79..6b28f7b020 100644 --- a/Samples/DatagramSocket/cpp/DatagramSocket.vcxproj +++ b/Samples/DatagramSocket/cpp/DatagramSocket.vcxproj @@ -42,37 +42,37 @@ Application true - v140 + v141 Application true - v140 + v141 Application true - v140 + v141 Application false true - v140 + v141 true Application false true - v140 + v141 true Application false true - v140 + v141 true diff --git a/Samples/DateTimeFormatting/README.md b/Samples/DateTimeFormatting/README.md index fb2a427108..e30609336a 100644 --- a/Samples/DateTimeFormatting/README.md +++ b/Samples/DateTimeFormatting/README.md @@ -60,8 +60,8 @@ This sample contains scenarios that demonstrate: ## 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 2015 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 2015 Solution (.sln) file. +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 diff --git a/Samples/DateTimeFormatting/cpp/DateTimeFormatting.vcxproj b/Samples/DateTimeFormatting/cpp/DateTimeFormatting.vcxproj index 11cbeaa518..346738e78c 100644 --- a/Samples/DateTimeFormatting/cpp/DateTimeFormatting.vcxproj +++ b/Samples/DateTimeFormatting/cpp/DateTimeFormatting.vcxproj @@ -42,37 +42,37 @@ Application true - v140 + v141 Application true - v140 + v141 Application true - v140 + v141 Application false true - v140 + v141 true Application false true - v140 + v141 true Application false true - v140 + v141 true diff --git a/Samples/DeviceEnumerationAndPairing/README.md b/Samples/DeviceEnumerationAndPairing/README.md index d60b26649a..69399bb37b 100644 --- a/Samples/DeviceEnumerationAndPairing/README.md +++ b/Samples/DeviceEnumerationAndPairing/README.md @@ -54,7 +54,7 @@ The sample demonstrates eight scenarios: ## Build the sample -1. Start Visual Studio 2015 and select **File** \> **Open** \> **Project/Solution**. +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**. diff --git a/Samples/DeviceEnumerationAndPairing/cpp/DeviceEnumeration.vcxproj b/Samples/DeviceEnumerationAndPairing/cpp/DeviceEnumeration.vcxproj index 29ebc6e155..3835684898 100644 --- a/Samples/DeviceEnumerationAndPairing/cpp/DeviceEnumeration.vcxproj +++ b/Samples/DeviceEnumerationAndPairing/cpp/DeviceEnumeration.vcxproj @@ -42,37 +42,37 @@ Application true - v140 + v141 Application true - v140 + v141 Application true - v140 + v141 Application false true - v140 + v141 true Application false true - v140 + v141 true Application false true - v140 + v141 true diff --git a/Samples/DeviceEnumerationAndPairing/cpp/Tasks/Tasks.vcxproj b/Samples/DeviceEnumerationAndPairing/cpp/Tasks/Tasks.vcxproj index 66ff081e7c..78db6557a4 100644 --- a/Samples/DeviceEnumerationAndPairing/cpp/Tasks/Tasks.vcxproj +++ b/Samples/DeviceEnumerationAndPairing/cpp/Tasks/Tasks.vcxproj @@ -44,37 +44,37 @@ DynamicLibrary true - v140 + v141 DynamicLibrary true - v140 + v141 DynamicLibrary true - v140 + v141 DynamicLibrary false true - v140 + v141 true DynamicLibrary false true - v140 + v141 true DynamicLibrary false true - v140 + v141 true diff --git a/Samples/DeviceEnumerationAndPairing/cs/Scenario9_CustomPairDevice.xaml.cs b/Samples/DeviceEnumerationAndPairing/cs/Scenario9_CustomPairDevice.xaml.cs index c9f3d20c94..8fdfcafa58 100644 --- a/Samples/DeviceEnumerationAndPairing/cs/Scenario9_CustomPairDevice.xaml.cs +++ b/Samples/DeviceEnumerationAndPairing/cs/Scenario9_CustomPairDevice.xaml.cs @@ -282,7 +282,7 @@ private async void PairingRequestedHandler( case DevicePairingKinds.DisplayPin: // We just show the PIN on this side. The ceremony is actually completed when the user enters the PIN - // on the target device. We automatically except here since we can't really "cancel" the operation + // on the target device. We automatically accept here since we can't really "cancel" the operation // from this side. args.Accept(); diff --git a/Samples/DeviceLockdownAzureLogin/README.md b/Samples/DeviceLockdownAzureLogin/README.md index b3319e0a24..963c8abfe4 100644 --- a/Samples/DeviceLockdownAzureLogin/README.md +++ b/Samples/DeviceLockdownAzureLogin/README.md @@ -81,11 +81,11 @@ This step is needed if you intend to use Azure Authentication. * Replace the provided value of "clientId" with the actual value of your native application created in Azure Active Directory. (See step 5 above.) -**Note** The Windows universal samples require Visual Studio 2015 to build and Windows 10 to execute. +**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 2015 and the tools for developing Windows apps, go to [Visual Studio 2015](http://go.microsoft.com/fwlink/?LinkID=532422) +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 @@ -108,8 +108,8 @@ Server: Not supported ## Build the sample -1. Start Microsoft Visual Studio 2015 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 2015 Solution (.sln) file. +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 language you desire - either C++, C#, or JavaScript. Double-click the Visual Studio Solution (.sln) file. 3. Press Ctrl+Shift+B, or select **Build** > **Build Solution**. ## Run the sample diff --git a/Samples/DisablingScreenCapture/README.md b/Samples/DisablingScreenCapture/README.md index 95e3c16eda..3dc114bf33 100644 --- a/Samples/DisablingScreenCapture/README.md +++ b/Samples/DisablingScreenCapture/README.md @@ -25,11 +25,11 @@ The sample consists of the following scenarios: 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 2015 to build and Windows 10 to execute. +**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 2015 and the tools for developing Windows apps, go to [Visual Studio 2015](http://go.microsoft.com/fwlink/?LinkID=532422) +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 @@ -48,8 +48,8 @@ To obtain information about Microsoft Visual Studio 2015 and the tools for devel ## 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 2015 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 2015 Solution (.sln) file. +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 diff --git a/Samples/DisablingScreenCapture/cpp/DisablingScreenCapture.vcxproj b/Samples/DisablingScreenCapture/cpp/DisablingScreenCapture.vcxproj index 1c5698fa7d..2d07b49c35 100644 --- a/Samples/DisablingScreenCapture/cpp/DisablingScreenCapture.vcxproj +++ b/Samples/DisablingScreenCapture/cpp/DisablingScreenCapture.vcxproj @@ -42,37 +42,37 @@ Application true - v140 + v141 Application true - v140 + v141 Application true - v140 + v141 Application false true - v140 + v141 true Application false true - v140 + v141 true Application false true - v140 + v141 true diff --git a/Samples/DisplayOrientation/README.md b/Samples/DisplayOrientation/README.md index a59f6e03b4..36904a06db 100644 --- a/Samples/DisplayOrientation/README.md +++ b/Samples/DisplayOrientation/README.md @@ -27,11 +27,11 @@ 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 2015 to build and Windows 10 to execute. +**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 2015 and the tools for developing Windows apps, go to [Visual Studio 2015](http://go.microsoft.com/fwlink/?LinkID=532422) +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 @@ -55,8 +55,8 @@ To obtain information about Microsoft Visual Studio 2015 and the tools for devel ## 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 2015 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 2015 Solution (.sln) file. +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 diff --git a/Samples/DisplayOrientation/cpp/DisplayOrientation.vcxproj b/Samples/DisplayOrientation/cpp/DisplayOrientation.vcxproj index 8d0233624c..43709655a4 100644 --- a/Samples/DisplayOrientation/cpp/DisplayOrientation.vcxproj +++ b/Samples/DisplayOrientation/cpp/DisplayOrientation.vcxproj @@ -42,37 +42,37 @@ Application true - v140 + v141 Application true - v140 + v141 Application true - v140 + v141 Application false true - v140 + v141 true Application false true - v140 + v141 true Application false true - v140 + v141 true diff --git a/Samples/DpiScaling/README.md b/Samples/DpiScaling/README.md index e966ee5164..2bdc7c75c7 100644 --- a/Samples/DpiScaling/README.md +++ b/Samples/DpiScaling/README.md @@ -29,11 +29,11 @@ Important APIs in this sample include: - [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 2015 to build and Windows 10 to execute. +**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 2015 and the tools for developing Windows apps, go to [Visual Studio 2015](http://go.microsoft.com/fwlink/?LinkID=532422) +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 @@ -46,8 +46,8 @@ To obtain information about Microsoft Visual Studio 2015 and the tools for devel ## 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 2015 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 2015 Solution (.sln) file. +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 diff --git a/Samples/DpiScaling/cpp/DpiScaling.vcxproj b/Samples/DpiScaling/cpp/DpiScaling.vcxproj index 6f3e08f4a4..ef21a1ed80 100644 --- a/Samples/DpiScaling/cpp/DpiScaling.vcxproj +++ b/Samples/DpiScaling/cpp/DpiScaling.vcxproj @@ -42,37 +42,37 @@ Application true - v140 + v141 Application true - v140 + v141 Application true - v140 + v141 Application false true - v140 + v141 true Application false true - v140 + v141 true Application false true - v140 + v141 true diff --git a/Samples/EfficientAnimations/README.md b/Samples/EfficientAnimations/README.md index d293d8fbce..9b29423642 100644 --- a/Samples/EfficientAnimations/README.md +++ b/Samples/EfficientAnimations/README.md @@ -39,8 +39,8 @@ 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 2015 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 2015 Solution (.sln) file. +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 diff --git a/Samples/EnterpriseDataProtection/README.md b/Samples/EnterpriseDataProtection/README.md index d82ad733fb..05c5472567 100644 --- a/Samples/EnterpriseDataProtection/README.md +++ b/Samples/EnterpriseDataProtection/README.md @@ -33,8 +33,8 @@ 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 2015 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 2015 Solution (.sln) file. +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 diff --git a/Samples/ExtendedExecution/README.md b/Samples/ExtendedExecution/README.md index c0f41de4d0..ea5ee7789e 100644 --- a/Samples/ExtendedExecution/README.md +++ b/Samples/ExtendedExecution/README.md @@ -60,8 +60,8 @@ See **Deploying and running the sample** below for instructions on using the sam ## 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 2015 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 2015 Solution (.sln) file. +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 diff --git a/Samples/ExtendedExecution/cpp/ExtendedExecution.vcxproj b/Samples/ExtendedExecution/cpp/ExtendedExecution.vcxproj index 0ab7ef6144..b11932f6d8 100644 --- a/Samples/ExtendedExecution/cpp/ExtendedExecution.vcxproj +++ b/Samples/ExtendedExecution/cpp/ExtendedExecution.vcxproj @@ -42,37 +42,37 @@ Application true - v140 + v141 Application true - v140 + v141 Application true - v140 + v141 Application false true - v140 + v141 true Application false true - v140 + v141 true Application false true - v140 + v141 true diff --git a/Samples/FeedReader/README.md b/Samples/FeedReader/README.md index 8b810197d3..fd1ba70e61 100644 --- a/Samples/FeedReader/README.md +++ b/Samples/FeedReader/README.md @@ -68,11 +68,11 @@ Here are some general Windows Store app features demonstrated by this app. Sample: Review article.css in the \\pages\\article folder and feed.css in the \\pages\\feed folder. -**Note** The Windows universal samples require Visual Studio 2015 to build and Windows 10 to execute. +**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 2015 and the tools for developing Windows apps, go to [Visual Studio 2015](http://go.microsoft.com/fwlink/?LinkID=532422) +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 @@ -131,13 +131,13 @@ To obtain information about Microsoft Visual Studio 2015 and the tools for devel ## 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 2015 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 2015 Solution (.sln) file. +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 -1. Open the sample's project in Visual Studio 2015. +1. Open the sample's project in Visual Studio 2017. 2. 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**. App highlights: diff --git a/Samples/FileAccess/README.md b/Samples/FileAccess/README.md index 5ab73ae04b..1f00acc093 100644 --- a/Samples/FileAccess/README.md +++ b/Samples/FileAccess/README.md @@ -71,11 +71,11 @@ The sample demonstrates these tasks: 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 2015 to build and Windows 10 to execute. +**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 2015 and the tools for developing Windows apps, go to [Visual Studio 2015](http://go.microsoft.com/fwlink/?LinkID=532422) +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 @@ -110,8 +110,8 @@ To obtain information about Microsoft Visual Studio 2015 and the tools for devel ## 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 2015 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 2015 Solution (.sln) file. +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 diff --git a/Samples/FileAccess/cpp/FileAccess.vcxproj b/Samples/FileAccess/cpp/FileAccess.vcxproj index 0b39c4c84b..0976704f16 100644 --- a/Samples/FileAccess/cpp/FileAccess.vcxproj +++ b/Samples/FileAccess/cpp/FileAccess.vcxproj @@ -42,37 +42,37 @@ Application true - v140 + v141 Application true - v140 + v141 Application true - v140 + v141 Application false true - v140 + v141 true Application false true - v140 + v141 true Application false true - v140 + v141 true diff --git a/Samples/FilePicker/README.md b/Samples/FilePicker/README.md index 4d20601b9b..b9d19de79b 100644 --- a/Samples/FilePicker/README.md +++ b/Samples/FilePicker/README.md @@ -49,11 +49,11 @@ The sample demonstrates these tasks: 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 2015 to build and Windows 10 to execute. +**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 2015 and the tools for developing Windows apps, go to [Visual Studio 2015](http://go.microsoft.com/fwlink/?LinkID=532422) +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 @@ -79,8 +79,8 @@ To obtain information about Microsoft Visual Studio 2015 and the tools for devel ## 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 2015 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 2015 Solution (.sln) file. +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 diff --git a/Samples/FilePicker/cpp/FilePicker.vcxproj b/Samples/FilePicker/cpp/FilePicker.vcxproj index 583d78a125..87cf0b4517 100644 --- a/Samples/FilePicker/cpp/FilePicker.vcxproj +++ b/Samples/FilePicker/cpp/FilePicker.vcxproj @@ -42,37 +42,37 @@ Application true - v140 + v141 Application true - v140 + v141 Application true - v140 + v141 Application false true - v140 + v141 true Application false true - v140 + v141 true Application false true - v140 + v141 true diff --git a/Samples/FilePickerContracts/README.md b/Samples/FilePickerContracts/README.md index fbe976946d..5f4ed1bbe9 100644 --- a/Samples/FilePickerContracts/README.md +++ b/Samples/FilePickerContracts/README.md @@ -63,8 +63,8 @@ and [Guidelines and checklist for file picker contracts](http://msdn.microsoft.c ## 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 2015 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 2015 Solution (.sln) file. +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 diff --git a/Samples/FileSearch/README.md b/Samples/FileSearch/README.md index adb961a920..5828aad119 100644 --- a/Samples/FileSearch/README.md +++ b/Samples/FileSearch/README.md @@ -23,11 +23,11 @@ Important APIs in this sample include: For a walkthrough, see [Quickstart: Accessing files programmatically](http://msdn.microsoft.com/library/windows/apps/jj150596). -**Note** The Windows universal samples require Visual Studio 2015 to build and Windows 10 to execute. +**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 2015 and the tools for developing Windows apps, go to [Visual Studio 2015](http://go.microsoft.com/fwlink/?LinkID=532422) +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 @@ -52,8 +52,8 @@ To obtain information about Microsoft Visual Studio 2015 and the tools for devel ## 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 2015 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 2015 Solution (.sln) file. +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 diff --git a/Samples/FileSearch/cpp/FileSearch.vcxproj b/Samples/FileSearch/cpp/FileSearch.vcxproj index 0df923ab9b..4eaae0ae2e 100644 --- a/Samples/FileSearch/cpp/FileSearch.vcxproj +++ b/Samples/FileSearch/cpp/FileSearch.vcxproj @@ -42,37 +42,37 @@ Application true - v140 + v141 Application true - v140 + v141 Application true - v140 + v141 Application false true - v140 + v141 true Application false true - v140 + v141 true Application false true - v140 + v141 true diff --git a/Samples/FileThumbnails/README.md b/Samples/FileThumbnails/README.md index fe323f69e7..b4e2796958 100644 --- a/Samples/FileThumbnails/README.md +++ b/Samples/FileThumbnails/README.md @@ -40,11 +40,11 @@ Important APIs in this sample include: - [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 2015 to build and Windows 10 to execute. +**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 2015 and the tools for developing Windows apps, go to [Visual Studio 2015](http://go.microsoft.com/fwlink/?LinkID=532422) +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 @@ -71,8 +71,8 @@ To obtain information about Microsoft Visual Studio 2015 and the tools for devel ## 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 2015 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 2015 Solution (.sln) file. +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 diff --git a/Samples/FileThumbnails/cpp/FileThumbnails.vcxproj b/Samples/FileThumbnails/cpp/FileThumbnails.vcxproj index 3450df1b24..fe71cae45a 100644 --- a/Samples/FileThumbnails/cpp/FileThumbnails.vcxproj +++ b/Samples/FileThumbnails/cpp/FileThumbnails.vcxproj @@ -42,37 +42,37 @@ Application true - v140 + v141 Application true - v140 + v141 Application true - v140 + v141 Application false true - v140 + v141 true Application false true - v140 + v141 true Application false true - v140 + v141 true diff --git a/Samples/FolderEnumeration/README.md b/Samples/FolderEnumeration/README.md index 81f00fae92..96779e2ffc 100644 --- a/Samples/FolderEnumeration/README.md +++ b/Samples/FolderEnumeration/README.md @@ -48,11 +48,11 @@ Additional important APIs in this sample include: - [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 2015 to build and Windows 10 to execute. +**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 2015 and the tools for developing Windows apps, go to [Visual Studio 2015](http://go.microsoft.com/fwlink/?LinkID=532422) +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 @@ -78,8 +78,8 @@ To obtain information about Microsoft Visual Studio 2015 and the tools for devel ## 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 2015 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 2015 Solution (.sln) file. +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 diff --git a/Samples/FolderEnumeration/cpp/FolderEnumeration.vcxproj b/Samples/FolderEnumeration/cpp/FolderEnumeration.vcxproj index b2924b40ef..e7367f28b5 100644 --- a/Samples/FolderEnumeration/cpp/FolderEnumeration.vcxproj +++ b/Samples/FolderEnumeration/cpp/FolderEnumeration.vcxproj @@ -42,37 +42,37 @@ Application true - v140 + v141 Application true - v140 + v141 Application true - v140 + v141 Application false true - v140 + v141 true Application false true - v140 + v141 true Application false true - v140 + v141 true diff --git a/Samples/FullScreenMode/README.md b/Samples/FullScreenMode/README.md index b0ccb3f3bd..61a6def182 100644 --- a/Samples/FullScreenMode/README.md +++ b/Samples/FullScreenMode/README.md @@ -22,11 +22,11 @@ The sample shows the following techniques: **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 2015 to build and Windows 10 to execute. +**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 2015 and the tools for developing Windows apps, go to [Visual Studio 2015](http://go.microsoft.com/fwlink/?LinkID=532422) +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 @@ -49,8 +49,8 @@ To obtain information about Microsoft Visual Studio 2015 and the tools for devel ## 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 2015 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 2015 Solution (.sln) file. +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 diff --git a/Samples/FullScreenMode/cpp/FullScreenMode.vcxproj b/Samples/FullScreenMode/cpp/FullScreenMode.vcxproj index 26ef55727c..7767d61908 100644 --- a/Samples/FullScreenMode/cpp/FullScreenMode.vcxproj +++ b/Samples/FullScreenMode/cpp/FullScreenMode.vcxproj @@ -42,37 +42,37 @@ Application true - v140 + v141 Application true - v140 + v141 Application true - v140 + v141 Application false true - v140 + v141 true Application false true - v140 + v141 true Application false true - v140 + v141 true diff --git a/Samples/Geolocation/README.md b/Samples/Geolocation/README.md index acad5d25ac..e3113e7f5a 100644 --- a/Samples/Geolocation/README.md +++ b/Samples/Geolocation/README.md @@ -60,8 +60,8 @@ This sample requires that location capability be set in the *Package.appxmanifes ## 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 2015 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 2015 Solution (.sln) file. +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 diff --git a/Samples/Geolocation/cpp/BackgroundTask/BackgroundTask.vcxproj b/Samples/Geolocation/cpp/BackgroundTask/BackgroundTask.vcxproj index 6d45adce42..fb97718908 100644 --- a/Samples/Geolocation/cpp/BackgroundTask/BackgroundTask.vcxproj +++ b/Samples/Geolocation/cpp/BackgroundTask/BackgroundTask.vcxproj @@ -44,37 +44,37 @@ DynamicLibrary true - v140 + v141 DynamicLibrary true - v140 + v141 DynamicLibrary true - v140 + v141 DynamicLibrary false true - v140 + v141 true DynamicLibrary false true - v140 + v141 true DynamicLibrary false true - v140 + v141 true diff --git a/Samples/Geolocation/cpp/GeolocationCPP/Geolocation.vcxproj b/Samples/Geolocation/cpp/GeolocationCPP/Geolocation.vcxproj index 60bf8258c4..3346ad0ba8 100644 --- a/Samples/Geolocation/cpp/GeolocationCPP/Geolocation.vcxproj +++ b/Samples/Geolocation/cpp/GeolocationCPP/Geolocation.vcxproj @@ -42,37 +42,37 @@ Application true - v140 + v141 Application true - v140 + v141 Application true - v140 + v141 Application false true - v140 + v141 true Application false true - v140 + v141 true Application false true - v140 + v141 true diff --git a/Samples/Geotag/README.md b/Samples/Geotag/README.md index afc0932094..86d21693be 100644 --- a/Samples/Geotag/README.md +++ b/Samples/Geotag/README.md @@ -31,8 +31,8 @@ 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 2015 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 2015 Solution (.sln) file. +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 diff --git a/Samples/Geotag/cpp/Geotag.vcxproj b/Samples/Geotag/cpp/Geotag.vcxproj index 516d85af07..7f5494d043 100644 --- a/Samples/Geotag/cpp/Geotag.vcxproj +++ b/Samples/Geotag/cpp/Geotag.vcxproj @@ -42,37 +42,37 @@ Application true - v140 + v141 Application true - v140 + v141 Application true - v140 + v141 Application false true - v140 + v141 true Application false true - v140 + v141 true Application false true - v140 + v141 true diff --git a/Samples/GlobalizationPreferences/README.md b/Samples/GlobalizationPreferences/README.md index 420d61df3c..8a69ff1315 100644 --- a/Samples/GlobalizationPreferences/README.md +++ b/Samples/GlobalizationPreferences/README.md @@ -33,11 +33,11 @@ class provides specific methods for accessing the following user preferences: 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 2015 to build and Windows 10 to execute. +**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 2015 and the tools for developing Windows apps, go to [Visual Studio 2015](http://go.microsoft.com/fwlink/?LinkID=532422) +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 @@ -67,8 +67,8 @@ To obtain information about Microsoft Visual Studio 2015 and the tools for devel ## 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 2015 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 2015 Solution (.sln) file. +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 diff --git a/Samples/GlobalizationPreferences/cpp/GlobalizationPreferences.vcxproj b/Samples/GlobalizationPreferences/cpp/GlobalizationPreferences.vcxproj index c2ffc1bfa8..0b96183238 100644 --- a/Samples/GlobalizationPreferences/cpp/GlobalizationPreferences.vcxproj +++ b/Samples/GlobalizationPreferences/cpp/GlobalizationPreferences.vcxproj @@ -42,37 +42,37 @@ Application true - v140 + v141 Application true - v140 + v141 Application true - v140 + v141 Application false true - v140 + v141 true Application false true - v140 + v141 true Application false true - v140 + v141 true diff --git a/Samples/Gyrometer/README.md b/Samples/Gyrometer/README.md index 2aaa199eec..49adb6832f 100644 --- a/Samples/Gyrometer/README.md +++ b/Samples/Gyrometer/README.md @@ -47,8 +47,8 @@ When you click the **Get Sample** button, two sets of readings are displayed: ra ## 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 2015 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 2015 Solution (.sln) file. +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 diff --git a/Samples/Gyrometer/cpp/Gyrometer.vcxproj b/Samples/Gyrometer/cpp/Gyrometer.vcxproj index 5ca6939a3e..84606646c2 100644 --- a/Samples/Gyrometer/cpp/Gyrometer.vcxproj +++ b/Samples/Gyrometer/cpp/Gyrometer.vcxproj @@ -42,37 +42,37 @@ Application true - v140 + v141 Application true - v140 + v141 Application true - v140 + v141 Application false true - v140 + v141 true Application false true - v140 + v141 true Application false true - v140 + v141 true diff --git a/Samples/HolographicDepthBasedImageStabilization/README.md b/Samples/HolographicDepthBasedImageStabilization/README.md index a6fa30d366..0e16792ffc 100644 --- a/Samples/HolographicDepthBasedImageStabilization/README.md +++ b/Samples/HolographicDepthBasedImageStabilization/README.md @@ -29,8 +29,8 @@ For an example, see the [Holographic Tag-along Sample](http://go.microsoft.com/f This sample demonstrates best practices for user comfort by always setting the image stabilization plane. -**Note** The image stabilization plane can be observed via the [Windows Device Portal] -(https://developer.microsoft.com/windows/holographic/Using_the_Windows_Device_Portal.html). +**Note** The image stabilization plane can be observed via the +[Windows Device Portal](https://developer.microsoft.com/windows/mixed-reality/using_the_windows_device_portal). ## Compute shaders @@ -40,15 +40,15 @@ require shader model 5.0. Running this code sample in the HoloLens emulator will ### Additional remarks -**Note** The Windows universal samples for Windows 10 Holographic require Visual Studio 2015 Update 3 +**Note** The Windows universal samples for Windows 10 Holographic require Visual Studio 2017 Update 3 to build, and a Windows Holographic device to execute. Windows Holographic devices include the Microsoft HoloLens and the Microsoft HoloLens Emulator. To obtain information about Windows 10 development, go to the [Windows Dev Center](http://go.microsoft.com/fwlink/?LinkID=532421). To obtain information about the tools used for Windows Holographic development, including Microsoft -Visual Studio 2015 Update 2 and the Microsoft HoloLens Emulator, go to [Install the tools] -(https://developer.microsoft.com/windows/holographic/install_the_tools). +Visual Studio and the Microsoft HoloLens Emulator, go to +[Install the tools](https://developer.microsoft.com/windows/mixed-reality/install_the_tools). ## Reference @@ -70,10 +70,10 @@ in this code 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 2015 and select **File** \> **Open** \> **Project/Solution**. +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 2015 Solution (.sln) file. + JavaScript). Double-click the Visual Studio Solution (.sln) file. 4. Press Ctrl+Shift+B, or select **Build** \> **Build Solution**. ## Run the sample @@ -88,8 +88,8 @@ run it. ### Deploying the sample to a Microsoft HoloLens -- Developer unlock your Microsoft HoloLens. For instructions, go to [Enable your device for development] - (https://msdn.microsoft.com/windows/uwp/get-started/enable-your-device-for-development#enable-your-windows-10-devices). +- Developer unlock your Microsoft HoloLens. For instructions, go to + [Enable your device for development](https://msdn.microsoft.com/windows/uwp/get-started/enable-your-device-for-development#enable-your-windows-10-devices). - Find the IP address of your Microsoft HoloLens. The IP address can be found in **Settings** \> **Network & Internet** \> **Wi-Fi** \> **Advanced options**. Or, you can ask Cortana for this information by saying: "Hey Cortana, what's my IP address?" diff --git a/Samples/HolographicDepthBasedImageStabilization/cpp/HolographicDepthBasedImageStabilization.vcxproj b/Samples/HolographicDepthBasedImageStabilization/cpp/HolographicDepthBasedImageStabilization.vcxproj index f3480e6eb1..5abff44520 100644 --- a/Samples/HolographicDepthBasedImageStabilization/cpp/HolographicDepthBasedImageStabilization.vcxproj +++ b/Samples/HolographicDepthBasedImageStabilization/cpp/HolographicDepthBasedImageStabilization.vcxproj @@ -28,13 +28,13 @@ Application true - v140 + v141 Application false true - v140 + v141 diff --git a/Samples/HolographicFaceTracking/README.md b/Samples/HolographicFaceTracking/README.md index fac3110954..eb92ef67a1 100644 --- a/Samples/HolographicFaceTracking/README.md +++ b/Samples/HolographicFaceTracking/README.md @@ -47,14 +47,14 @@ see [Recommended 8-Bit YUV Formats for Video Rendering](https://msdn.microsoft.c ### Additional remarks -**Note** The Windows universal samples for Windows 10 Holographic require Visual Studio 2015 Update 3 +**Note** The Windows universal samples for Windows 10 Holographic require Visual Studio 2017 Update 3 to build, and a Windows Holographic device to execute. Windows Holographic devices include the Microsoft HoloLens and the Microsoft HoloLens Emulator. To obtain information about Windows 10 development, go to the [Windows Dev Center](http://go.microsoft.com/fwlink/?LinkID=532421). To obtain information about the tools used for Windows Holographic development, including -Microsoft Visual Studio 2015 Update 3 and the Microsoft HoloLens Emulator, go to +Microsoft Visual Studio 2017 Update 3 and the Microsoft HoloLens Emulator, go to [Install the tools](https://developer.microsoft.com/windows/holographic/install_the_tools). ## Related topics @@ -95,10 +95,10 @@ The following types are used in this code 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 2015 and select **File** \> **Open** \> **Project/Solution**. +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 2015 Solution (.sln) file. + JavaScript). 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/HolographicFaceTracking/cpp/HolographicFaceTracking.vcxproj b/Samples/HolographicFaceTracking/cpp/HolographicFaceTracking.vcxproj index 52d8dbaa3c..743716f1c7 100644 --- a/Samples/HolographicFaceTracking/cpp/HolographicFaceTracking.vcxproj +++ b/Samples/HolographicFaceTracking/cpp/HolographicFaceTracking.vcxproj @@ -27,13 +27,13 @@ Application true - v140 + v141 Application false true - v140 + v141 diff --git a/Samples/HolographicMixedRealityCapture/README.md b/Samples/HolographicMixedRealityCapture/README.md index 5cf0db3d47..3229839ace 100644 --- a/Samples/HolographicMixedRealityCapture/README.md +++ b/Samples/HolographicMixedRealityCapture/README.md @@ -29,15 +29,15 @@ MixedRealityCaptureAudioEffect and MixedRealityCaptureVideoEffect classes. ## Additional remarks -**Note** The Windows universal samples for Windows 10 Holographic require Visual Studio 2015 Update 2 +**Note** The Windows universal samples for Windows 10 Holographic require Visual Studio 2017 Update 2 to build, and a Windows Holographic device to execute. Windows Holographic devices include the Microsoft HoloLens and the Microsoft HoloLens Emulator. To obtain information about Windows 10 development, go to the [Windows Dev Center](http://go.microsoft.com/fwlink/?LinkID=532421). To obtain information about the tools used for Windows Holographic development, including -Microsoft Visual Studio 2015 Update 2 and the Microsoft HoloLens Emulator, go to -[Install the tools](https://developer.microsoft.com/windows/holographic/install_the_tools). +Visual Studio and the Microsoft HoloLens Emulator, go to +[Install the tools](https://developer.microsoft.com/windows/mixed-reality/install_the_tools). ## Reference @@ -58,10 +58,10 @@ The following are used to demonstrate spatial mapping in this code 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 2015 and select **File** \> **Open** \> **Project/Solution**. +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 2015 Solution (.sln) file. + JavaScript). Double-click the Visual Studio Solution (.sln) file. 4. Press Ctrl+Shift+B, or select **Build** \> **Build Solution**. ## Run the sample @@ -76,8 +76,8 @@ run it. ### Deploying the sample to a Microsoft HoloLens -- Developer unlock your Microsoft HoloLens. For instructions, go to [Enable your device for development] - (https://msdn.microsoft.com/windows/uwp/get-started/enable-your-device-for-development#enable-your-windows-10-devices). +- Developer unlock your Microsoft HoloLens. For instructions, go to + [Enable your device for development](https://msdn.microsoft.com/windows/uwp/get-started/enable-your-device-for-development#enable-your-windows-10-devices). - Find the IP address of your Microsoft HoloLens. The IP address can be found in **Settings** \> **Network & Internet** \> **Wi-Fi** \> **Advanced options**. Or, you can ask Cortana for this information by saying: "Hey Cortana, what's my IP address?" diff --git a/Samples/HolographicMixedRealityCapture/cpp/HolographicMRCapture.vcxproj b/Samples/HolographicMixedRealityCapture/cpp/HolographicMRCapture.vcxproj index ed0f5b8491..499b9a1c43 100644 --- a/Samples/HolographicMixedRealityCapture/cpp/HolographicMRCapture.vcxproj +++ b/Samples/HolographicMixedRealityCapture/cpp/HolographicMRCapture.vcxproj @@ -27,13 +27,13 @@ Application true - v140 + v141 Application false true - v140 + v141 diff --git a/Samples/HolographicMixedRealityCapture/cpp/MrcEffectDefinitions/MrcEffectDefinitions.vcxproj b/Samples/HolographicMixedRealityCapture/cpp/MrcEffectDefinitions/MrcEffectDefinitions.vcxproj index d81307c92d..1bfd452cbf 100644 --- a/Samples/HolographicMixedRealityCapture/cpp/MrcEffectDefinitions/MrcEffectDefinitions.vcxproj +++ b/Samples/HolographicMixedRealityCapture/cpp/MrcEffectDefinitions/MrcEffectDefinitions.vcxproj @@ -43,35 +43,35 @@ DynamicLibrary true - v140 + v141 DynamicLibrary true - v140 + v141 DynamicLibrary true - v140 + v141 DynamicLibrary false true - v140 + v141 DynamicLibrary false true - v140 + v141 DynamicLibrary false true - v140 + v141 diff --git a/Samples/HolographicSpatialMapping/README.md b/Samples/HolographicSpatialMapping/README.md index 55d0c07df6..8e1b671947 100644 --- a/Samples/HolographicSpatialMapping/README.md +++ b/Samples/HolographicSpatialMapping/README.md @@ -41,15 +41,15 @@ simplified lighting algorithm. ### Additional remarks -**Note** The Windows universal samples for Windows 10 Holographic require Visual Studio 2015 Update 2 +**Note** The Windows universal samples for Windows 10 Holographic require Visual Studio 2017 Update 2 to build, and a Windows Holographic device to execute. Windows Holographic devices include the Microsoft HoloLens and the Microsoft HoloLens Emulator. To obtain information about Windows 10 development, go to the [Windows Dev Center](http://go.microsoft.com/fwlink/?LinkID=532421). To obtain information about the tools used for Windows Holographic development, including -Microsoft Visual Studio 2015 Update 2 and the Microsoft HoloLens Emulator, go to -[Install the tools](https://developer.microsoft.com/windows/holographic/install_the_tools). +Visual Studio and the Microsoft HoloLens Emulator, go to +[Install the tools](https://developer.microsoft.com/windows/mixed-reality/install_the_tools). ## Reference @@ -77,10 +77,10 @@ The following are used to demonstrate spatial mapping in this code 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 2015 and select **File** \> **Open** \> **Project/Solution**. +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 2015 Solution (.sln) file. + JavaScript). Double-click the Visual Studio Solution (.sln) file. 4. Press Ctrl+Shift+B, or select **Build** \> **Build Solution**. ## Run the sample @@ -95,8 +95,8 @@ run it. ### Deploying the sample to a Microsoft HoloLens -- Developer unlock your Microsoft HoloLens. For instructions, go to [Enable your device for development] - (https://msdn.microsoft.com/windows/uwp/get-started/enable-your-device-for-development#enable-your-windows-10-devices). +- Developer unlock your Microsoft HoloLens. For instructions, go to + [Enable your device for development](https://msdn.microsoft.com/windows/uwp/get-started/enable-your-device-for-development#enable-your-windows-10-devices). - Find the IP address of your Microsoft HoloLens. The IP address can be found in **Settings** \> **Network & Internet** \> **Wi-Fi** \> **Advanced options**. Or, you can ask Cortana for this information by saying: "Hey Cortana, what's my IP address?" diff --git a/Samples/HolographicSpatialMapping/cpp/HolographicSpatialMapping.vcxproj b/Samples/HolographicSpatialMapping/cpp/HolographicSpatialMapping.vcxproj index a73f03341e..8d8c3236dc 100644 --- a/Samples/HolographicSpatialMapping/cpp/HolographicSpatialMapping.vcxproj +++ b/Samples/HolographicSpatialMapping/cpp/HolographicSpatialMapping.vcxproj @@ -27,13 +27,13 @@ Application true - v140 + v141 Application false true - v140 + v141 diff --git a/Samples/HolographicTagAlong/README.md b/Samples/HolographicTagAlong/README.md index 0cd73bfdf6..36479edcef 100644 --- a/Samples/HolographicTagAlong/README.md +++ b/Samples/HolographicTagAlong/README.md @@ -30,8 +30,8 @@ This sample demonstrates best practices for user comfort. The motion of the bill so that it is part of the world, not affixed to the eye, and image stabilization is configured to follow the billboard's position and velocity. -**Note** The image stabilization plane can be observed via the [Windows Device Portal] -(https://developer.microsoft.com/windows/holographic/Using_the_Windows_Device_Portal.html). +**Note** The image stabilization plane can be observed via the +[Windows Device Portal](https://developer.microsoft.com/windows/mixed-reality/using_the_windows_device_portal). ## Holographic rendering of vector graphics using low-bandwidth distance function textures @@ -45,21 +45,21 @@ this sample uses DirectWrite to create the text at app startup, and generates th after Direct3D device-based resource loading is complete. **Reference** The method used is as described by Chris Green in the following text: -[Improved Alpha-Tested Magnification for Vector Textures and Special Effects] (http://www.valvesoftware.com/publications/2007/SIGGRAPH2007_AlphaTestedMagnification.pdf), +[Improved Alpha-Tested Magnification for Vector Textures and Special Effects](http://www.valvesoftware.com/publications/2007/SIGGRAPH2007_AlphaTestedMagnification.pdf), Chris Green, Valve Software, 2007. ### Additional remarks -**Note** The Windows universal samples for Windows 10 Holographic require Visual Studio 2015 Update 2 +**Note** The Windows universal samples for Windows 10 Holographic require Visual Studio 2017 Update 2 to build, and a Windows Holographic device to execute. Windows Holographic devices include the Microsoft HoloLens and the Microsoft HoloLens Emulator. To obtain information about Windows 10 development, go to the [Windows Dev Center](http://go.microsoft.com/fwlink/?LinkID=532421). To obtain information about the tools used for Windows Holographic development, including Microsoft -Visual Studio 2015 Update 2 and the Microsoft HoloLens Emulator, go to [Install the tools] -(https://developer.microsoft.com/windows/holographic/install_the_tools). +Visual Studio and the Microsoft HoloLens Emulator, go to +[Install the tools](https://developer.microsoft.com/windows/mixed-reality/install_the_tools). ## Reference @@ -91,10 +91,10 @@ rendering in this code 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 2015 and select **File** \> **Open** \> **Project/Solution**. +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 2015 Solution (.sln) file. + JavaScript). Double-click the Visual Studio Solution (.sln) file. 4. Press Ctrl+Shift+B, or select **Build** \> **Build Solution**. ## Run the sample @@ -109,8 +109,8 @@ run it. ### Deploying the sample to a Microsoft HoloLens -- Developer unlock your Microsoft HoloLens. For instructions, go to [Enable your device for development] - (https://msdn.microsoft.com/windows/uwp/get-started/enable-your-device-for-development#enable-your-windows-10-devices). +- Developer unlock your Microsoft HoloLens. For instructions, go to + [Enable your device for development](https://msdn.microsoft.com/windows/uwp/get-started/enable-your-device-for-development#enable-your-windows-10-devices). - Find the IP address of your Microsoft HoloLens. The IP address can be found in **Settings** \> **Network & Internet** \> **Wi-Fi** \> **Advanced options**. Or, you can ask Cortana for this information by saying: "Hey Cortana, what's my IP address?" diff --git a/Samples/HolographicTagAlong/cpp/HolographicTagAlong.vcxproj b/Samples/HolographicTagAlong/cpp/HolographicTagAlong.vcxproj index c9255eeb0a..433018fb64 100644 --- a/Samples/HolographicTagAlong/cpp/HolographicTagAlong.vcxproj +++ b/Samples/HolographicTagAlong/cpp/HolographicTagAlong.vcxproj @@ -27,13 +27,13 @@ Application true - v140 + v141 Application false true - v140 + v141 diff --git a/Samples/HolographicVoiceInput/README.md b/Samples/HolographicVoiceInput/README.md index ff08949da4..ae0e64e352 100644 --- a/Samples/HolographicVoiceInput/README.md +++ b/Samples/HolographicVoiceInput/README.md @@ -21,26 +21,26 @@ This sample uses the microphone app capability in order to access the user's voi ### ### Additional remarks -**Note** The Windows universal samples for Windows 10 Holographic require Visual Studio 2015 Update 3 +**Note** The Windows universal samples for Windows 10 Holographic require Visual Studio 2017 Update 3 to build, and a Windows Holographic device to execute. Windows Holographic devices include the Microsoft HoloLens and the Microsoft HoloLens Emulator. To obtain information about Windows 10 development, go to the [Windows Dev Center](http://go.microsoft.com/fwlink/?LinkID=532421). To obtain information about the tools used for Windows Holographic development, including -Microsoft Visual Studio 2015 Update 3 and the Microsoft HoloLens Emulator, go to +Microsoft Visual Studio 2017 Update 3 and the Microsoft HoloLens Emulator, go to [Install the tools](https://developer.microsoft.com/windows/holographic/install_the_tools). ### Reference The following types are used in this code sample: -* [Windows.Media.SpeechRecognition namespace](https://docs.microsoft.com/en-us/uwp/api/windows.media.speechrecognition) - * [SpeechRecognizer class](https://docs.microsoft.com/en-us/uwp/api/Windows.Media.SpeechRecognition.SpeechRecognizer) -* [SpeechContinuousRecognitionSession class](https://docs.microsoft.com/en-us/uwp/api/windows.media.speechrecognition.speechcontinuousrecognitionsession) - * [SpeechRecognitionCompilationResult class](https://docs.microsoft.com/en-us/uwp/api/windows.media.speechrecognition.speechrecognitioncompilationresult) - * [SpeechRecognitionResult class](https://docs.microsoft.com/en-us/uwp/api/windows.media.speechrecognition.speechrecognitionresult) - * [SpeechRecognitionListConstraint class](https://docs.microsoft.com/en-us/uwp/api/windows.media.speechrecognition.speechrecognitionlistconstraint) - * [SpeechSynthesizer class](https://docs.microsoft.com/en-us/uwp/api/windows.media.speechsynthesis.speechsynthesizer) +* [Windows.Media.SpeechRecognition namespace](https://docs.microsoft.com/uwp/api/windows.media.speechrecognition) + * [SpeechRecognizer class](https://docs.microsoft.com/uwp/api/Windows.Media.SpeechRecognition.SpeechRecognizer) +* [SpeechContinuousRecognitionSession class](https://docs.microsoft.com/uwp/api/windows.media.speechrecognition.speechcontinuousrecognitionsession) + * [SpeechRecognitionCompilationResult class](https://docs.microsoft.com/uwp/api/windows.media.speechrecognition.speechrecognitioncompilationresult) + * [SpeechRecognitionResult class](https://docs.microsoft.com/uwp/api/windows.media.speechrecognition.speechrecognitionresult) + * [SpeechRecognitionListConstraint class](https://docs.microsoft.com/uwp/api/windows.media.speechrecognition.speechrecognitionlistconstraint) + * [SpeechSynthesizer class](https://docs.microsoft.com/uwp/api/windows.media.speechsynthesis.speechsynthesizer) ## System requirements @@ -52,10 +52,10 @@ The following types are used in this code 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 2015 and select **File** \> **Open** \> **Project/Solution**. +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 2015 Solution (.sln) file. + JavaScript). 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/HolographicVoiceInput/cpp/HolographicVoiceInput.vcxproj b/Samples/HolographicVoiceInput/cpp/HolographicVoiceInput.vcxproj index 559a132f19..7a38b38456 100644 --- a/Samples/HolographicVoiceInput/cpp/HolographicVoiceInput.vcxproj +++ b/Samples/HolographicVoiceInput/cpp/HolographicVoiceInput.vcxproj @@ -27,13 +27,13 @@ Application true - v140 + v141 Application false true - v140 + v141 diff --git a/Samples/HomeGroup/README.md b/Samples/HomeGroup/README.md index 4cb054a4d9..9171d5a8b5 100644 --- a/Samples/HomeGroup/README.md +++ b/Samples/HomeGroup/README.md @@ -27,11 +27,11 @@ This sample covers the following processes: - How to stream a video from a HomeGroup - How to conduct advanced searches in a HomeGroup -**Note** The Windows universal samples require Visual Studio 2015 to build and Windows 10 to execute. +**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 2015 and the tools for developing Windows apps, go to [Visual Studio 2015](http://go.microsoft.com/fwlink/?LinkID=532422) +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 @@ -58,8 +58,8 @@ To obtain information about Microsoft Visual Studio 2015 and the tools for devel ## 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 2015 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 2015 Solution (.sln) file. +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 diff --git a/Samples/HomeGroup/cpp/HomeGroup.vcxproj b/Samples/HomeGroup/cpp/HomeGroup.vcxproj index c0b469dd31..654eee5239 100644 --- a/Samples/HomeGroup/cpp/HomeGroup.vcxproj +++ b/Samples/HomeGroup/cpp/HomeGroup.vcxproj @@ -42,37 +42,37 @@ Application true - v140 + v141 Application true - v140 + v141 Application true - v140 + v141 Application false true - v140 + v141 true Application false true - v140 + v141 true Application false true - v140 + v141 true diff --git a/Samples/HtmlFormValidation/README.md b/Samples/HtmlFormValidation/README.md index 569d76743a..ba0a89894a 100644 --- a/Samples/HtmlFormValidation/README.md +++ b/Samples/HtmlFormValidation/README.md @@ -23,8 +23,8 @@ 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 2015 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 2015 Solution (.sln) file. +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 diff --git a/Samples/HttpClient/HttpFilters/HttpFilters.vcxproj b/Samples/HttpClient/HttpFilters/HttpFilters.vcxproj index affad4b0bb..724cdc6f0c 100644 --- a/Samples/HttpClient/HttpFilters/HttpFilters.vcxproj +++ b/Samples/HttpClient/HttpFilters/HttpFilters.vcxproj @@ -44,37 +44,37 @@ DynamicLibrary true - v140 + v141 DynamicLibrary true - v140 + v141 DynamicLibrary true - v140 + v141 DynamicLibrary false true - v140 + v141 true DynamicLibrary false true - v140 + v141 true DynamicLibrary false true - v140 + v141 true diff --git a/Samples/HttpClient/README.md b/Samples/HttpClient/README.md index 2841e520de..9993de611b 100644 --- a/Samples/HttpClient/README.md +++ b/Samples/HttpClient/README.md @@ -114,8 +114,8 @@ For more information on network capabilities, see [How to set network capabiliti ## 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 2015 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 2015 Solution (.sln) file. +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 diff --git a/Samples/HttpClient/cpp/HttpClient.vcxproj b/Samples/HttpClient/cpp/HttpClient.vcxproj index cefa555b78..6c13fd03e2 100644 --- a/Samples/HttpClient/cpp/HttpClient.vcxproj +++ b/Samples/HttpClient/cpp/HttpClient.vcxproj @@ -42,35 +42,35 @@ Application true - v140 + v141 Application true - v140 + v141 Application true - v140 + v141 Application false true - v140 + v141 Application false true - v140 + v141 Application false true - v140 + v141 diff --git a/Samples/Inclinometer/README.md b/Samples/Inclinometer/README.md index a703962b1c..714be73c7c 100644 --- a/Samples/Inclinometer/README.md +++ b/Samples/Inclinometer/README.md @@ -48,8 +48,8 @@ Related topics ## 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 2015 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 2015 Solution (.sln) file. +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 diff --git a/Samples/Inclinometer/cpp/Inclinometer.vcxproj b/Samples/Inclinometer/cpp/Inclinometer.vcxproj index 4c44c75c57..8a4a28557d 100644 --- a/Samples/Inclinometer/cpp/Inclinometer.vcxproj +++ b/Samples/Inclinometer/cpp/Inclinometer.vcxproj @@ -42,37 +42,37 @@ Application true - v140 + v141 Application true - v140 + v141 Application true - v140 + v141 Application false true - v140 + v141 true Application false true - v140 + v141 true Application false true - v140 + v141 true diff --git a/Samples/IndexedDB/README.md b/Samples/IndexedDB/README.md index 4fde67fbfd..2bbf662e05 100644 --- a/Samples/IndexedDB/README.md +++ b/Samples/IndexedDB/README.md @@ -27,8 +27,8 @@ 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 2015 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 2015 Solution (.sln) file. +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 diff --git a/Samples/Ink/README.md b/Samples/Ink/README.md index df85514dfd..ecb9c85bd6 100644 --- a/Samples/Ink/README.md +++ b/Samples/Ink/README.md @@ -46,7 +46,7 @@ Specifically, this sample covers using the [Windows.UI.Input.Inking](http://msdn 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 2015 and the tools for developing Windows apps, go to [Visual Studio 2015](http://go.microsoft.com/fwlink/?LinkID=532422) +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 @@ -73,8 +73,8 @@ To obtain information about Microsoft Visual Studio 2015 and the tools for devel ## 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 2015 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 2015 Solution (.sln) file. +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 diff --git a/Samples/InkAnalysis/README.md b/Samples/InkAnalysis/README.md index f5d50a69b8..abec23af4c 100644 --- a/Samples/InkAnalysis/README.md +++ b/Samples/InkAnalysis/README.md @@ -44,8 +44,8 @@ Specifically, this sample covers using the Windows.UI.Input.Inking.Analysis APIs ## 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 2015 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 2015 Solution (.sln) file. +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 diff --git a/Samples/IoT-GPIO/README.md b/Samples/IoT-GPIO/README.md index 35b83ec5b9..6ac7256164 100644 --- a/Samples/IoT-GPIO/README.md +++ b/Samples/IoT-GPIO/README.md @@ -24,13 +24,13 @@ This sample demonstrates the following: - Getting GPIO pin values. - Listening for changes in GPIO pin values. -**Note** The Windows universal samples require Visual Studio 2015 to build and Windows 10 IoT Core to execute. +**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) To see more samples specifically describing how to leverage Windows 10 IoT Core, click on the [Samples tab here](http://ms-iot.github.io/content/win10/StartCoding.htm). -To obtain information about Microsoft Visual Studio 2015 and the tools for developing Windows apps, go to [Visual Studio 2015](http://go.microsoft.com/fwlink/?LinkID=532422) +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 @@ -39,8 +39,8 @@ To obtain information about Microsoft Visual Studio 2015 and the tools for devel ## 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 2015 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 2015 Solution (.sln) file. +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 diff --git a/Samples/IoT-GPIO/cpp/Gpio.vcxproj b/Samples/IoT-GPIO/cpp/Gpio.vcxproj index fd3e4ae169..de9c5fc632 100644 --- a/Samples/IoT-GPIO/cpp/Gpio.vcxproj +++ b/Samples/IoT-GPIO/cpp/Gpio.vcxproj @@ -42,37 +42,37 @@ Application true - v140 + v141 Application true - v140 + v141 Application true - v140 + v141 Application false true - v140 + v141 true Application false true - v140 + v141 true Application false true - v140 + v141 true diff --git a/Samples/IoT-I2C/README.md b/Samples/IoT-I2C/README.md index 73c258c6b3..ae9700399a 100644 --- a/Samples/IoT-I2C/README.md +++ b/Samples/IoT-I2C/README.md @@ -23,13 +23,13 @@ The sample shows the following techniques: - Reading data from an I2C device. -**Note** The Windows universal samples require Visual Studio 2015 to build and Windows 10 IoT Core to execute. +**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) To see more samples specifically describing how to leverage Windows 10 IoT Core, click on the [Samples tab here](http://ms-iot.github.io/content/win10/StartCoding.htm). -To obtain information about Microsoft Visual Studio 2015 and the tools for developing Windows apps, go to [Visual Studio 2015](http://go.microsoft.com/fwlink/?LinkID=532422) +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 @@ -38,8 +38,8 @@ To obtain information about Microsoft Visual Studio 2015 and the tools for devel ## 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 2015 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 2015 Solution (.sln) file. +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 diff --git a/Samples/IoT-I2C/cpp/I2C.vcxproj b/Samples/IoT-I2C/cpp/I2C.vcxproj index 6d0866b629..d9ecf56b40 100644 --- a/Samples/IoT-I2C/cpp/I2C.vcxproj +++ b/Samples/IoT-I2C/cpp/I2C.vcxproj @@ -42,37 +42,37 @@ Application true - v140 + v141 Application true - v140 + v141 Application true - v140 + v141 Application false true - v140 + v141 true Application false true - v140 + v141 true Application false true - v140 + v141 true diff --git a/Samples/IoT-SPI/README.md b/Samples/IoT-SPI/README.md index 8be18bb457..a56ee538d4 100644 --- a/Samples/IoT-SPI/README.md +++ b/Samples/IoT-SPI/README.md @@ -24,13 +24,13 @@ The sample shows the following techniques: - Reading data from an SPI device. -**Note** The Windows universal samples require Visual Studio 2015 to build and Windows 10 IoT Core to execute. +**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). To see more samples specifically describing how to leverage Windows 10 IoT Core, click on the [Samples tab here](http://ms-iot.github.io/content/win10/StartCoding.htm). -To obtain information about Microsoft Visual Studio 2015 and the tools for developing Windows apps, go to [Visual Studio 2015](http://go.microsoft.com/fwlink/?LinkID=532422) +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 @@ -39,8 +39,8 @@ To obtain information about Microsoft Visual Studio 2015 and the tools for devel ## 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 2015 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 2015 Solution (.sln) file. +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 diff --git a/Samples/IoT-SPI/cpp/SPI.vcxproj b/Samples/IoT-SPI/cpp/SPI.vcxproj index 522e191229..d51fd49e31 100644 --- a/Samples/IoT-SPI/cpp/SPI.vcxproj +++ b/Samples/IoT-SPI/cpp/SPI.vcxproj @@ -42,37 +42,37 @@ Application true - v140 + v141 Application true - v140 + v141 Application true - v140 + v141 Application false true - v140 + v141 true Application false true - v140 + v141 true Application false true - v140 + v141 true diff --git a/Samples/JapanesePhoneticAnalysis/README.md b/Samples/JapanesePhoneticAnalysis/README.md index c8d44a4a5f..fa22bd55f5 100644 --- a/Samples/JapanesePhoneticAnalysis/README.md +++ b/Samples/JapanesePhoneticAnalysis/README.md @@ -22,11 +22,11 @@ The sample demonstrates these tasks: 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 2015 to build and Windows 10 to execute. +**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 2015 and the tools for developing Windows apps, go to [Visual Studio 2015](http://go.microsoft.com/fwlink/?LinkID=532422) +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 @@ -49,8 +49,8 @@ To obtain information about Microsoft Visual Studio 2015 and the tools for devel ## 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 2015 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 2015 Solution (.sln) file. +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 diff --git a/Samples/JapanesePhoneticAnalysis/cpp/JapanesePhoneticAnalysis.vcxproj b/Samples/JapanesePhoneticAnalysis/cpp/JapanesePhoneticAnalysis.vcxproj index a314cfbe6c..9462df230f 100644 --- a/Samples/JapanesePhoneticAnalysis/cpp/JapanesePhoneticAnalysis.vcxproj +++ b/Samples/JapanesePhoneticAnalysis/cpp/JapanesePhoneticAnalysis.vcxproj @@ -42,40 +42,40 @@ Application true - v140 + v141 true Application true - v140 + v141 true Application true - v140 + v141 true Application false true - v140 + v141 true Application false true - v140 + v141 true Application false true - v140 + v141 true diff --git a/Samples/Json/README.md b/Samples/Json/README.md index 1e0946f4c6..90df56ec91 100644 --- a/Samples/Json/README.md +++ b/Samples/Json/README.md @@ -64,8 +64,8 @@ The following features can be used to retrieve text that contains JSON from an H ## 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 2015 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 2015 Solution (.sln) file. +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 diff --git a/Samples/JumpList/README.md b/Samples/JumpList/README.md index 5a29dd300b..da6732b8b6 100644 --- a/Samples/JumpList/README.md +++ b/Samples/JumpList/README.md @@ -25,11 +25,11 @@ The sample shows the following techniques: **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 2015 to build and Windows 10 to execute. +**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 2015 and the tools for developing Windows apps, go to [Visual Studio 2015](http://go.microsoft.com/fwlink/?LinkID=532422) +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 @@ -49,8 +49,8 @@ To obtain information about Microsoft Visual Studio 2015 and the tools for devel ## 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 2015 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 2015 Solution (.sln) file. +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 diff --git a/Samples/JumpList/cpp/JumpList.vcxproj b/Samples/JumpList/cpp/JumpList.vcxproj index 8e9208890c..882f7c84a6 100644 --- a/Samples/JumpList/cpp/JumpList.vcxproj +++ b/Samples/JumpList/cpp/JumpList.vcxproj @@ -42,37 +42,37 @@ Application true - v140 + v141 Application true - v140 + v141 Application true - v140 + v141 Application false true - v140 + v141 true Application false true - v140 + v141 true Application false true - v140 + v141 true diff --git a/Samples/KeyCredentialManager/README.md b/Samples/KeyCredentialManager/README.md index bffad23e67..2bebb7686f 100644 --- a/Samples/KeyCredentialManager/README.md +++ b/Samples/KeyCredentialManager/README.md @@ -38,8 +38,8 @@ 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 2015 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 2015 Solution (.sln) file. +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 diff --git a/Samples/KeyCredentialManager/cpp/KeyCredentialManager.vcxproj b/Samples/KeyCredentialManager/cpp/KeyCredentialManager.vcxproj index 1b9f91a20c..6720a6791a 100644 --- a/Samples/KeyCredentialManager/cpp/KeyCredentialManager.vcxproj +++ b/Samples/KeyCredentialManager/cpp/KeyCredentialManager.vcxproj @@ -42,35 +42,35 @@ Application true - v140 + v141 Application true - v140 + v141 Application true - v140 + v141 Application false true - v140 + v141 Application false true - v140 + v141 Application false true - v140 + v141 diff --git a/Samples/LampDevice/README.md b/Samples/LampDevice/README.md index 95a4d5f12b..e7845acdb1 100644 --- a/Samples/LampDevice/README.md +++ b/Samples/LampDevice/README.md @@ -40,10 +40,10 @@ the default lamp device when page loads and provide a toggle to turn the lamp on Related topics -------------- -[Windows.Media.Devices namespace] (https://msdn.microsoft.com/library/windows/apps/windows.media.devices.aspx) +[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) +[Windows.Media.Devices.VideoDeviceController.TorchControl](https://msdn.microsoft.com/library/windows/apps/windows.media.devices.videodevicecontroller.torchcontrol.aspx) System requirements @@ -57,8 +57,8 @@ 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 2015 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 2015 Solution (.sln) file. +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 diff --git a/Samples/LampDevice/cpp/LampDevice.vcxproj b/Samples/LampDevice/cpp/LampDevice.vcxproj index 7abb5692d6..a4dc5585e1 100644 --- a/Samples/LampDevice/cpp/LampDevice.vcxproj +++ b/Samples/LampDevice/cpp/LampDevice.vcxproj @@ -42,37 +42,37 @@ Application true - v140 + v141 Application true - v140 + v141 Application true - v140 + v141 Application false true - v140 + v141 true Application false true - v140 + v141 true Application false true - v140 + v141 true diff --git a/Samples/LanguageFont/README.md b/Samples/LanguageFont/README.md index 181227f063..93b3b5dce0 100644 --- a/Samples/LanguageFont/README.md +++ b/Samples/LanguageFont/README.md @@ -26,11 +26,11 @@ Scenarios in which this API is recommended are those that include text in multip 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 2015 to build and Windows 10 to execute. +**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 2015 and the tools for developing Windows apps, go to [Visual Studio 2015](http://go.microsoft.com/fwlink/?LinkID=532422) +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 @@ -48,8 +48,8 @@ To obtain information about Microsoft Visual Studio 2015 and the tools for devel ## 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 2015 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 2015 Solution (.sln) file. +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 diff --git a/Samples/LanguageFont/cpp/LanguageFont.vcxproj b/Samples/LanguageFont/cpp/LanguageFont.vcxproj index 09edd05eed..0c25d23483 100644 --- a/Samples/LanguageFont/cpp/LanguageFont.vcxproj +++ b/Samples/LanguageFont/cpp/LanguageFont.vcxproj @@ -42,37 +42,37 @@ Application true - v140 + v141 Application true - v140 + v141 Application true - v140 + v141 Application false true - v140 + v141 true Application false true - v140 + v141 true Application false true - v140 + v141 true diff --git a/Samples/LibraryManagement/README.md b/Samples/LibraryManagement/README.md index 9967723ea1..96e7d1379a 100644 --- a/Samples/LibraryManagement/README.md +++ b/Samples/LibraryManagement/README.md @@ -29,11 +29,11 @@ The sample demonstrates these tasks: 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 2015 to build and Windows 10 to execute. +**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 2015 and the tools for developing Windows apps, go to [Visual Studio 2015](http://go.microsoft.com/fwlink/?LinkID=532422) +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 @@ -52,8 +52,8 @@ To obtain information about Microsoft Visual Studio 2015 and the tools for devel ## 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 2015 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 2015 Solution (.sln) file. +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 diff --git a/Samples/LibraryManagement/cpp/LibraryManagement.vcxproj b/Samples/LibraryManagement/cpp/LibraryManagement.vcxproj index 70a43a411f..00004e1430 100644 --- a/Samples/LibraryManagement/cpp/LibraryManagement.vcxproj +++ b/Samples/LibraryManagement/cpp/LibraryManagement.vcxproj @@ -42,37 +42,37 @@ Application true - v140 + v141 Application true - v140 + v141 Application true - v140 + v141 Application false true - v140 + v141 true Application false true - v140 + v141 true Application false true - v140 + v141 true diff --git a/Samples/LightSensor/README.md b/Samples/LightSensor/README.md index 9867443cf6..317b385096 100644 --- a/Samples/LightSensor/README.md +++ b/Samples/LightSensor/README.md @@ -42,8 +42,8 @@ When you click the **Enable** button for the **Polling** option, the app will re ## 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 2015 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 2015 Solution (.sln) file. +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 diff --git a/Samples/LightSensor/cpp/LightSensor.vcxproj b/Samples/LightSensor/cpp/LightSensor.vcxproj index ce218b48e7..a75b475a5e 100644 --- a/Samples/LightSensor/cpp/LightSensor.vcxproj +++ b/Samples/LightSensor/cpp/LightSensor.vcxproj @@ -42,37 +42,37 @@ Application true - v140 + v141 Application true - v140 + v141 Application true - v140 + v141 Application false true - v140 + v141 true Application false true - v140 + v141 true Application false true - v140 + v141 true diff --git a/Samples/LineDisplay/README.md b/Samples/LineDisplay/README.md index c05512898a..565b44f21b 100644 --- a/Samples/LineDisplay/README.md +++ b/Samples/LineDisplay/README.md @@ -29,7 +29,7 @@ Specifically, this sample shows how to: 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 2017 and the tools for developing Windows apps, go to [Visual Studio 2017](http://go.microsoft.com/fwlink/?LinkID=532422) +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 @@ -59,7 +59,7 @@ To obtain information about Microsoft Visual Studio 2017 and the tools for devel 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. +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 diff --git a/Samples/LineDisplay/cpp/LineDisplay.vcxproj b/Samples/LineDisplay/cpp/LineDisplay.vcxproj index d33ce8903c..b955b9bca8 100644 --- a/Samples/LineDisplay/cpp/LineDisplay.vcxproj +++ b/Samples/LineDisplay/cpp/LineDisplay.vcxproj @@ -41,35 +41,35 @@ Application true - v140 + v141 Application true - v140 + v141 Application true - v140 + v141 Application false true - v140 + v141 Application false true - v140 + v141 Application false true - v140 + v141 diff --git a/Samples/LinguisticServices/README.md b/Samples/LinguisticServices/README.md index 8f493f589c..c7ecfee217 100644 --- a/Samples/LinguisticServices/README.md +++ b/Samples/LinguisticServices/README.md @@ -30,11 +30,11 @@ The scenarios demonstrate the use of the these services: Enter a selection of text in Cyrillic. This returns the input text transliterated to Latin. -**Note** The Windows universal samples require Visual Studio 2015 to build and Windows 10 to execute. +**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 2015 and the tools for developing Windows apps, go to [Visual Studio 2015](http://go.microsoft.com/fwlink/?LinkID=532422) +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 @@ -47,8 +47,8 @@ To obtain information about Microsoft Visual Studio 2015 and the tools for devel ## 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 2015 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 2015 Solution (.sln) file. +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 diff --git a/Samples/LinguisticServices/cpp/LinguisticServices.vcxproj b/Samples/LinguisticServices/cpp/LinguisticServices.vcxproj index 3c83d4b7eb..8e810f1d04 100644 --- a/Samples/LinguisticServices/cpp/LinguisticServices.vcxproj +++ b/Samples/LinguisticServices/cpp/LinguisticServices.vcxproj @@ -42,37 +42,37 @@ Application true - v140 + v141 Application true - v140 + v141 Application true - v140 + v141 Application false true - v140 + v141 true Application false true - v140 + v141 true Application false true - v140 + v141 true diff --git a/Samples/LinguisticServices/cpp/Package.appxmanifest b/Samples/LinguisticServices/cpp/Package.appxmanifest index 367a6b42ff..a6c734b3a6 100644 --- a/Samples/LinguisticServices/cpp/Package.appxmanifest +++ b/Samples/LinguisticServices/cpp/Package.appxmanifest @@ -4,8 +4,7 @@ xmlns="http://schemas.microsoft.com/appx/manifest/foundation/windows10" xmlns:mp="http://schemas.microsoft.com/appx/2014/phone/manifest" xmlns:uap="http://schemas.microsoft.com/appx/manifest/uap/windows10" - xmlns:build="http://schemas.microsoft.com/developer/appx/2015/build" - IgnorableNamespaces= "build uap mp"> + IgnorableNamespaces= "uap mp"> - \ No newline at end of file + diff --git a/Samples/LiveDash/README.md b/Samples/LiveDash/README.md index a916a5e0a6..00ef8a7253 100644 --- a/Samples/LiveDash/README.md +++ b/Samples/LiveDash/README.md @@ -40,8 +40,8 @@ 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 2015 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 2015 Solution (.sln) file. +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 diff --git a/Samples/LockScreenApps/README.md b/Samples/LockScreenApps/README.md index de5f0187c0..a79c1b945e 100644 --- a/Samples/LockScreenApps/README.md +++ b/Samples/LockScreenApps/README.md @@ -58,8 +58,8 @@ To obtain an insider copy of Windows 10, go to [Windows 10](http://insider.windo ## 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 2015 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 2015 Solution (.sln) file. +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 diff --git a/Samples/Logging/README.md b/Samples/Logging/README.md index 78a8f82ef8..2c004aedac 100644 --- a/Samples/Logging/README.md +++ b/Samples/Logging/README.md @@ -45,11 +45,11 @@ 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 2015 to build and Windows 10 to execute. +**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 2015 and the tools for developing Windows apps, go to [Visual Studio 2015](http://go.microsoft.com/fwlink/?LinkID=532422) +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 @@ -75,8 +75,8 @@ To obtain information about Microsoft Visual Studio 2015 and the tools for devel ## 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 2015 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 2015 Solution (.sln) file. +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 diff --git a/Samples/Logging/cpp/Logging.vcxproj b/Samples/Logging/cpp/Logging.vcxproj index c6e38efa2a..4396f7252d 100644 --- a/Samples/Logging/cpp/Logging.vcxproj +++ b/Samples/Logging/cpp/Logging.vcxproj @@ -42,37 +42,37 @@ Application true - v140 + v141 Application true - v140 + v141 Application true - v140 + v141 Application false true - v140 + v141 true Application false true - v140 + v141 true Application false true - v140 + v141 true diff --git a/Samples/LowLatencyInput/README.md b/Samples/LowLatencyInput/README.md index 7c5cd26fb6..f8d1d07733 100644 --- a/Samples/LowLatencyInput/README.md +++ b/Samples/LowLatencyInput/README.md @@ -22,11 +22,11 @@ Specifically, this sample shows: 4. Achieving lowest output latency using Waitable Back Buffers 5. Artificially blocking the UI thread to show the XAML rect rendering choppy and the DirectX rect rendering smooth and unaffected -**Note** The Windows universal samples require Visual Studio 2015 to build and Windows 10 to execute. +**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 2015 and the tools for developing Windows apps, go to [Visual Studio 2015](http://go.microsoft.com/fwlink/?LinkID=532422) +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 @@ -47,8 +47,8 @@ To obtain information about Microsoft Visual Studio 2015 and the tools for devel ## 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 2015 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 2015 Solution (.sln) file. +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 diff --git a/Samples/LowLatencyInput/cpp/LowLatencyInput.vcxproj b/Samples/LowLatencyInput/cpp/LowLatencyInput.vcxproj index 3afa006189..692735a220 100644 --- a/Samples/LowLatencyInput/cpp/LowLatencyInput.vcxproj +++ b/Samples/LowLatencyInput/cpp/LowLatencyInput.vcxproj @@ -45,37 +45,37 @@ Application true - v140 + v141 Application true - v140 + v141 Application true - v140 + v141 Application false true - v140 + v141 true Application false true - v140 + v141 true Application false true - v140 + v141 true diff --git a/Samples/MIDI/README.md b/Samples/MIDI/README.md index b699e64558..533c0a3e6c 100644 --- a/Samples/MIDI/README.md +++ b/Samples/MIDI/README.md @@ -36,8 +36,8 @@ This sample demonstrates the following features: ## 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 2015 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 2015 Solution (.sln) file. +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 @@ -46,4 +46,4 @@ To debug the app and then run it, press F5 or use **Debug** \> **Start Debugging ## Sounds for the MIDI synth -The sounds for the inbox MIDI GS synth are available when the Microsoft.Midi.GmDls framework package is added to the package. This SDK sample has the reference added to the project already. Note that this requires Visual Studio 2015 Update 1 [https://www.visualstudio.com/news/vs2015-update1-vs] to be installed for the appx to deploy successfully. \ No newline at end of file +The sounds for the inbox MIDI GS synth are available when the Microsoft.Midi.GmDls framework package is added to the package. This SDK sample has the reference added to the project already. \ No newline at end of file diff --git a/Samples/MagneticStripeReader/README.md b/Samples/MagneticStripeReader/README.md index 7a8c700396..cc3cb4d907 100644 --- a/Samples/MagneticStripeReader/README.md +++ b/Samples/MagneticStripeReader/README.md @@ -19,7 +19,7 @@ Specifically, this sample shows how to: 1. **Get the magnetic stripe reader** - Uses a [**DeviceWatcher**](https://docs.microsoft.com/en-us/uwp/api/Windows.Devices.Enumeration.DeviceWatcher) + 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** @@ -46,11 +46,11 @@ The following list shows the magnetic stripe readers that were used with this co - 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 2015 to build and Windows 10 to execute. +**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 2015 and the tools for developing Windows apps, go to [Visual Studio 2015](http://go.microsoft.com/fwlink/?LinkID=532422) +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 @@ -74,8 +74,8 @@ To obtain information about Microsoft Visual Studio 2015 and the tools for devel ## 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 2015 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 2015 Solution (.sln) file. +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 diff --git a/Samples/MagneticStripeReader/cpp/MagneticStripeReader.vcxproj b/Samples/MagneticStripeReader/cpp/MagneticStripeReader.vcxproj index b2e8092077..226f69565b 100644 --- a/Samples/MagneticStripeReader/cpp/MagneticStripeReader.vcxproj +++ b/Samples/MagneticStripeReader/cpp/MagneticStripeReader.vcxproj @@ -42,37 +42,37 @@ Application true - v140 + v141 Application true - v140 + v141 Application true - v140 + v141 Application false true - v140 + v141 true Application false true - v140 + v141 true Application false true - v140 + v141 true diff --git a/Samples/MapControl/README.md b/Samples/MapControl/README.md index 081ddc656f..b5180fcd1f 100644 --- a/Samples/MapControl/README.md +++ b/Samples/MapControl/README.md @@ -43,8 +43,8 @@ This sample is written in XAML. ## 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 2015 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 2015 Solution (.sln) file. +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 diff --git a/Samples/MediaEditing/README.md b/Samples/MediaEditing/README.md index eb7c3a9862..7266995a7b 100644 --- a/Samples/MediaEditing/README.md +++ b/Samples/MediaEditing/README.md @@ -93,8 +93,8 @@ 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 2015 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 2015 Solution (.sln) file. +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 diff --git a/Samples/MediaEditing/cpp/MediaEditing.vcxproj b/Samples/MediaEditing/cpp/MediaEditing.vcxproj index 0ddfb86bb3..001a268ca6 100644 --- a/Samples/MediaEditing/cpp/MediaEditing.vcxproj +++ b/Samples/MediaEditing/cpp/MediaEditing.vcxproj @@ -42,37 +42,37 @@ Application true - v140 + v141 Application true - v140 + v141 Application true - v140 + v141 Application false true - v140 + v141 true Application false true - v140 + v141 true Application false true - v140 + v141 true diff --git a/Samples/MediaImport/README.md b/Samples/MediaImport/README.md index 0bce6120fd..3a4c563058 100644 --- a/Samples/MediaImport/README.md +++ b/Samples/MediaImport/README.md @@ -23,11 +23,11 @@ Important APIs in this sample include: - [PhotoImportFindItemsResult.ImportItemsAsync](https://msdn.microsoft.com/library/windows/apps/windows.media.import.photoimportfinditemsresult.importitemsasync.aspx) - [PhotoImportManager.GetPendingOperations](https://msdn.microsoft.com/library/windows/apps/windows.media.import.photoimportmanager.getpendingoperations.aspx) -**Note** The Windows universal samples require Visual Studio 2015 to build and Windows 10 to execute. +**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 2015 and the tools for developing Windows apps, go to [Visual Studio 2015](http://go.microsoft.com/fwlink/?LinkID=532422) +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 @@ -40,8 +40,8 @@ To obtain information about Microsoft Visual Studio 2015 and the tools for devel ## 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 2015 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 2015 Solution (.sln) file. +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 diff --git a/Samples/MediaTranscoding/README.md b/Samples/MediaTranscoding/README.md index c397fbf9c4..f0cfdfcd60 100644 --- a/Samples/MediaTranscoding/README.md +++ b/Samples/MediaTranscoding/README.md @@ -69,8 +69,8 @@ For more info about transcoding video files in Windows Store apps, see [Transcod ## 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 2015 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 2015 Solution (.sln) file. +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 diff --git a/Samples/MediaTranscoding/cpp/MediaTranscoding.vcxproj b/Samples/MediaTranscoding/cpp/MediaTranscoding.vcxproj index a4ab276fc1..4d82394bf0 100644 --- a/Samples/MediaTranscoding/cpp/MediaTranscoding.vcxproj +++ b/Samples/MediaTranscoding/cpp/MediaTranscoding.vcxproj @@ -42,37 +42,37 @@ Application true - v140 + v141 Application true - v140 + v141 Application true - v140 + v141 Application false true - v140 + v141 true Application false true - v140 + v141 true Application false true - v140 + v141 true diff --git a/Samples/MessageDialog/README.md b/Samples/MessageDialog/README.md index 5b5545ce48..ecf1dd8b97 100644 --- a/Samples/MessageDialog/README.md +++ b/Samples/MessageDialog/README.md @@ -18,11 +18,11 @@ and changing the default button. 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 2015 to build and Windows 10 to execute. +**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 2015 and the tools for developing Windows apps, go to [Visual Studio 2015](http://go.microsoft.com/fwlink/?LinkID=532422) +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 @@ -39,8 +39,8 @@ To obtain information about Microsoft Visual Studio 2015 and the tools for devel ## 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 2015 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 2015 Solution (.sln) file. +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 diff --git a/Samples/MessageDialog/cpp/MessageDialogSample.vcxproj b/Samples/MessageDialog/cpp/MessageDialogSample.vcxproj index 14a91e582a..806df8580f 100644 --- a/Samples/MessageDialog/cpp/MessageDialogSample.vcxproj +++ b/Samples/MessageDialog/cpp/MessageDialogSample.vcxproj @@ -42,37 +42,37 @@ Application true - v140 + v141 Application true - v140 + v141 Application true - v140 + v141 Application false true - v140 + v141 true Application false true - v140 + v141 true Application false true - v140 + v141 true diff --git a/Samples/MicrosoftPassport/README.md b/Samples/MicrosoftPassport/README.md index e33f45412b..0771d5c4af 100644 --- a/Samples/MicrosoftPassport/README.md +++ b/Samples/MicrosoftPassport/README.md @@ -72,7 +72,7 @@ Microsoft Passport can be enabled by setting a PIN in Windows Settings under **A ## System requirements -**Development machine**: Windows 10, Version 1511 and Microsoft Visual Studio 2015 Update 1 with the Windows 10 Build 10586 SDK +**Development machine**: Windows 10, Version 1511 and Microsoft Visual Studio 2017 Update 1 with the Windows 10 Build 10586 SDK **Client**: Windows 10, Version 1511 @@ -81,8 +81,8 @@ Microsoft Passport can be enabled by setting a PIN in Windows Settings under **A ## Build the sample 1. Download and extract the samples ZIP -2. Start Microsoft Visual Studio 2015 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. Double-click the Visual Studio 2015 Solution (.sln) file. +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. Double-click the Visual Studio Solution (.sln) file. 4. Press Ctrl+Shift+B, or select **Build > Build Solution**. 5. Repeat with the Server solution in the same directory. diff --git a/Samples/MobileBroadband/README.md b/Samples/MobileBroadband/README.md index 13ebc6bac5..827c242d3b 100644 --- a/Samples/MobileBroadband/README.md +++ b/Samples/MobileBroadband/README.md @@ -48,8 +48,8 @@ to be declared in package manifest. ## 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 2015 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 2015 Solution (.sln) file. +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 diff --git a/Samples/MsBlobBuilder/README.md b/Samples/MsBlobBuilder/README.md index 74b8cfcfce..f49bf92aeb 100644 --- a/Samples/MsBlobBuilder/README.md +++ b/Samples/MsBlobBuilder/README.md @@ -44,8 +44,8 @@ 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 2015 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 2015 Solution (.sln) file. +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 diff --git a/Samples/MultipleViews/README.md b/Samples/MultipleViews/README.md index 55f42d8522..32d318cccd 100644 --- a/Samples/MultipleViews/README.md +++ b/Samples/MultipleViews/README.md @@ -44,8 +44,8 @@ To obtain an insider copy of Windows 10, go to [Windows 10](http://insider.windo ## 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 2015 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 2015 Solution (.sln) file. +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 diff --git a/Samples/Nfc/NfcHceBackgroundTask/NfcHceBackgroundTask.vcxproj b/Samples/Nfc/NfcHceBackgroundTask/NfcHceBackgroundTask.vcxproj index 7def18d629..46562bb87f 100644 --- a/Samples/Nfc/NfcHceBackgroundTask/NfcHceBackgroundTask.vcxproj +++ b/Samples/Nfc/NfcHceBackgroundTask/NfcHceBackgroundTask.vcxproj @@ -44,37 +44,37 @@ DynamicLibrary true - v140 + v141 DynamicLibrary true - v140 + v141 DynamicLibrary true - v140 + v141 DynamicLibrary false true - v140 + v141 true DynamicLibrary false true - v140 + v141 true DynamicLibrary false true - v140 + v141 true diff --git a/Samples/Nfc/README.md b/Samples/Nfc/README.md index bb9f17879e..03ee895619 100644 --- a/Samples/Nfc/README.md +++ b/Samples/Nfc/README.md @@ -15,11 +15,11 @@ Shows how to implement an NFC HCE (Host Card Emulation) tap+pay application. Als > 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. -**Note** The Windows universal samples require Visual Studio 2015 to build and Windows 10 to execute. +**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 2015 and the tools for developing Windows apps, go to [Visual Studio 2015](http://go.microsoft.com/fwlink/?LinkID=532422) +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 @@ -40,8 +40,8 @@ To obtain information about Microsoft Visual Studio 2015 and the tools for devel ## 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 2015 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 2015 Solution (.sln) file. +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 diff --git a/Samples/NfcProvisioner/README.md b/Samples/NfcProvisioner/README.md index f3d5c0a140..a24b53d74a 100644 --- a/Samples/NfcProvisioner/README.md +++ b/Samples/NfcProvisioner/README.md @@ -20,11 +20,11 @@ Specifically, this sample shows how to: - Creating and composing NFC messages to transfer one enterprise provisioning package. - Implementing recommended error handling when doing the package transfer. -**Note** The Windows universal samples require Visual Studio 2015 to build and Windows 10 to execute. +**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 2015 and the tools for developing Windows apps, go to [Visual Studio 2015](http://go.microsoft.com/fwlink/?LinkID=532422) +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 @@ -33,8 +33,8 @@ To obtain information about Microsoft Visual Studio 2015 and the tools for devel ## 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 2015 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 2015 Solution (.sln) file. +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 diff --git a/Samples/Notifications/README.md b/Samples/Notifications/README.md index 2201ab22e2..f7881a2a70 100644 --- a/Samples/Notifications/README.md +++ b/Samples/Notifications/README.md @@ -129,8 +129,8 @@ New to Windows 10 are actionable toasts where a user has a choice to interact wi ## 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 2015 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 2015 Solution (.sln) file. +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 diff --git a/Samples/NumberFormatting/README.md b/Samples/NumberFormatting/README.md index 0319a8ad0c..ebb187b132 100644 --- a/Samples/NumberFormatting/README.md +++ b/Samples/NumberFormatting/README.md @@ -30,11 +30,11 @@ The [Windows.Globalization.NumberFormatting](http://msdn.microsoft.com/library/w 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 2015 to build and Windows 10 to execute. +**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 2015 and the tools for developing Windows apps, go to [Visual Studio 2015](http://go.microsoft.com/fwlink/?LinkID=532422) +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 @@ -66,8 +66,8 @@ To obtain information about Microsoft Visual Studio 2015 and the tools for devel ## 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 2015 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 2015 Solution (.sln) file. +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 diff --git a/Samples/NumberFormatting/cpp/NumberFormatting.vcxproj b/Samples/NumberFormatting/cpp/NumberFormatting.vcxproj index eb99e58704..a8f017d078 100644 --- a/Samples/NumberFormatting/cpp/NumberFormatting.vcxproj +++ b/Samples/NumberFormatting/cpp/NumberFormatting.vcxproj @@ -42,37 +42,37 @@ Application true - v140 + v141 Application true - v140 + v141 Application true - v140 + v141 Application false true - v140 + v141 true Application false true - v140 + v141 true Application false true - v140 + v141 true diff --git a/Samples/OCR/README.md b/Samples/OCR/README.md index 3e274fe21f..771712d523 100644 --- a/Samples/OCR/README.md +++ b/Samples/OCR/README.md @@ -43,7 +43,7 @@ Scenario 2: Capture image from camera and extract text. [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) +[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) @@ -60,8 +60,8 @@ Scenario 2: Capture image from camera and extract text. ## 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 2015 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 2015 Solution (.sln) file. +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 diff --git a/Samples/OCR/cpp/OCR.vcxproj b/Samples/OCR/cpp/OCR.vcxproj index 4aaaca0eaa..16f5fb429a 100644 --- a/Samples/OCR/cpp/OCR.vcxproj +++ b/Samples/OCR/cpp/OCR.vcxproj @@ -42,37 +42,37 @@ Application true - v140 + v141 Application true - v140 + v141 Application true - v140 + v141 Application false true - v140 + v141 true Application false true - v140 + v141 true Application false true - v140 + v141 true diff --git a/Samples/OrientationSensor/README.md b/Samples/OrientationSensor/README.md index 6658d06014..8ed7cb145a 100644 --- a/Samples/OrientationSensor/README.md +++ b/Samples/OrientationSensor/README.md @@ -53,8 +53,8 @@ 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 2015 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 2015 Solution (.sln) file. +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 diff --git a/Samples/OrientationSensor/cpp/OrientationSensor.vcxproj b/Samples/OrientationSensor/cpp/OrientationSensor.vcxproj index 3175a4ffd2..4a477eac38 100644 --- a/Samples/OrientationSensor/cpp/OrientationSensor.vcxproj +++ b/Samples/OrientationSensor/cpp/OrientationSensor.vcxproj @@ -42,37 +42,37 @@ Application true - v140 + v141 Application true - v140 + v141 Application true - v140 + v141 Application false true - v140 + v141 true Application false true - v140 + v141 true Application false true - v140 + v141 true diff --git a/Samples/Package/README.md b/Samples/Package/README.md index 064044b31b..9024cf3c48 100644 --- a/Samples/Package/README.md +++ b/Samples/Package/README.md @@ -37,7 +37,7 @@ The sample covers these new tasks for Windows 10: 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 2015 and the tools for developing Windows apps, go to [Visual Studio 2015](http://go.microsoft.com/fwlink/?LinkID=532422) +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** @@ -84,8 +84,8 @@ For more info about the concepts and APIs demonstrated in this sample, see these ## 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 2015 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 2015 Solution (.sln) file. +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 diff --git a/Samples/Package/cpp/PackageSample.vcxproj b/Samples/Package/cpp/PackageSample.vcxproj index 79b815f446..34387b0455 100644 --- a/Samples/Package/cpp/PackageSample.vcxproj +++ b/Samples/Package/cpp/PackageSample.vcxproj @@ -42,37 +42,37 @@ Application true - v140 + v141 Application true - v140 + v141 Application true - v140 + v141 Application false true - v140 + v141 true Application false true - v140 + v141 true Application false true - v140 + v141 true diff --git a/Samples/PackagedContent/README.md b/Samples/PackagedContent/README.md index 1b27b1537c..1c3f5d928e 100644 --- a/Samples/PackagedContent/README.md +++ b/Samples/PackagedContent/README.md @@ -47,8 +47,8 @@ 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 2015 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 2015 Solution (.sln) file. +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 diff --git a/Samples/PasswordVault/README.md b/Samples/PasswordVault/README.md index 36410de5fa..f2dd652a8a 100644 --- a/Samples/PasswordVault/README.md +++ b/Samples/PasswordVault/README.md @@ -34,11 +34,11 @@ This sample demonstrates the following operations: 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 2015 to build and Windows 10 to execute. +**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 2015 and the tools for developing Windows apps, go to [Visual Studio 2015](http://go.microsoft.com/fwlink/?LinkID=532422) +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 @@ -64,8 +64,8 @@ To obtain information about Microsoft Visual Studio 2015 and the tools for devel ## 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 2015 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 2015 Solution (.sln) file. +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 diff --git a/Samples/PasswordVault/cpp/PasswordVault.vcxproj b/Samples/PasswordVault/cpp/PasswordVault.vcxproj index 3863f31d8f..76578a89fb 100644 --- a/Samples/PasswordVault/cpp/PasswordVault.vcxproj +++ b/Samples/PasswordVault/cpp/PasswordVault.vcxproj @@ -43,37 +43,37 @@ Application true - v140 + v141 Application true - v140 + v141 Application true - v140 + v141 Application false true - v140 + v141 true Application false true - v140 + v141 true Application false true - v140 + v141 true diff --git a/Samples/PdfDocument/README.md b/Samples/PdfDocument/README.md index 6741bceb94..f1d904d034 100644 --- a/Samples/PdfDocument/README.md +++ b/Samples/PdfDocument/README.md @@ -22,11 +22,11 @@ The sample shows the following techniques: - 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 2015 to build and Windows 10 to execute. +**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 2015 and the tools for developing Windows apps, go to [Visual Studio 2015](http://go.microsoft.com/fwlink/?LinkID=532422) +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 @@ -47,8 +47,8 @@ To obtain information about Microsoft Visual Studio 2015 and the tools for devel ## 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 2015 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 2015 Solution (.sln) file. +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 diff --git a/Samples/PdfDocument/cpp/PdfDocument.vcxproj b/Samples/PdfDocument/cpp/PdfDocument.vcxproj index e6c6be6bae..71d6ff8c4c 100644 --- a/Samples/PdfDocument/cpp/PdfDocument.vcxproj +++ b/Samples/PdfDocument/cpp/PdfDocument.vcxproj @@ -42,37 +42,37 @@ Application true - v140 + v141 Application true - v140 + v141 Application true - v140 + v141 Application false true - v140 + v141 true Application false true - v140 + v141 true Application false true - v140 + v141 true diff --git a/Samples/Pedometer/README.md b/Samples/Pedometer/README.md index 1449686b38..b210d5d75c 100644 --- a/Samples/Pedometer/README.md +++ b/Samples/Pedometer/README.md @@ -53,8 +53,8 @@ When the step goal is met, the registered background task gets fired. Pedometer ## 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 2015 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 2015 Solution (.sln) file. +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 diff --git a/Samples/Pedometer/cpp/Pedometer.vcxproj b/Samples/Pedometer/cpp/Pedometer.vcxproj index acdca6fa93..c43fb0d457 100644 --- a/Samples/Pedometer/cpp/Pedometer.vcxproj +++ b/Samples/Pedometer/cpp/Pedometer.vcxproj @@ -42,37 +42,37 @@ Application true - v140 + v141 Application true - v140 + v141 Application true - v140 + v141 Application false true - v140 + v141 true Application false true - v140 + v141 true Application false true - v140 + v141 true diff --git a/Samples/Pedometer/cpp/Tasks/Tasks.vcxproj b/Samples/Pedometer/cpp/Tasks/Tasks.vcxproj index 6bbb55a320..75b43e6b84 100644 --- a/Samples/Pedometer/cpp/Tasks/Tasks.vcxproj +++ b/Samples/Pedometer/cpp/Tasks/Tasks.vcxproj @@ -43,35 +43,35 @@ DynamicLibrary true - v140 + v141 DynamicLibrary true - v140 + v141 DynamicLibrary true - v140 + v141 DynamicLibrary false true - v140 + v141 DynamicLibrary false true - v140 + v141 DynamicLibrary false true - v140 + v141 diff --git a/Samples/Personalization/README.md b/Samples/Personalization/README.md index 8a83d58b23..af651f6e3f 100644 --- a/Samples/Personalization/README.md +++ b/Samples/Personalization/README.md @@ -43,8 +43,8 @@ To learn more about the lock screen, see [Lock screen overview](http://msdn.micr ## 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 2015 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 2015 Solution (.sln) file. +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 diff --git a/Samples/Personalization/cpp/Personalization.vcxproj b/Samples/Personalization/cpp/Personalization.vcxproj index 9c08e71f82..19b4e75b92 100644 --- a/Samples/Personalization/cpp/Personalization.vcxproj +++ b/Samples/Personalization/cpp/Personalization.vcxproj @@ -42,37 +42,37 @@ Application true - v140 + v141 Application true - v140 + v141 Application true - v140 + v141 Application false true - v140 + v141 true Application false true - v140 + v141 true Application false true - v140 + v141 true diff --git a/Samples/PhoneCall/README.md b/Samples/PhoneCall/README.md index ccf74ff181..475ccc39fa 100644 --- a/Samples/PhoneCall/README.md +++ b/Samples/PhoneCall/README.md @@ -53,8 +53,8 @@ This focuses on accessing voice mail information and placing calls to the user's ## 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 2015 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 2015 Solution (.sln) file. +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 diff --git a/Samples/PlayReady/README.md b/Samples/PlayReady/README.md index 5a619ca9c1..a14c978bf4 100644 --- a/Samples/PlayReady/README.md +++ b/Samples/PlayReady/README.md @@ -44,11 +44,11 @@ This example uses EME for requesting a license and sending a secure stop message -**Note** The Windows universal samples require Visual Studio 2015 to build and Windows 10 to execute. +**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 2015 and the tools for developing Windows apps, go to [Visual Studio 2015](http://go.microsoft.com/fwlink/?LinkID=532422) +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 @@ -91,8 +91,8 @@ In order to use PlayReady DRM within a Universal Application on Xbox One, an add ## 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 2015 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?2015 Solution (.sln) file. +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 diff --git a/Samples/Playlists/README.md b/Samples/Playlists/README.md index 038fc07a58..9eabaab064 100644 --- a/Samples/Playlists/README.md +++ b/Samples/Playlists/README.md @@ -36,11 +36,11 @@ This sample uses classes that are in the [Windows.Media.Playlists](http://msdn.m 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 2015 to build and Windows 10 to execute. +**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 2015 and the tools for developing Windows apps, go to [Visual Studio 2015](http://go.microsoft.com/fwlink/?LinkID=532422) +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 @@ -59,8 +59,8 @@ To obtain information about Microsoft Visual Studio 2015 and the tools for devel ## 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 2015 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 2015 Solution (.sln) file. +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 diff --git a/Samples/Playlists/cpp/Playlists.vcxproj b/Samples/Playlists/cpp/Playlists.vcxproj index 3f11ba9344..80e15aa91e 100644 --- a/Samples/Playlists/cpp/Playlists.vcxproj +++ b/Samples/Playlists/cpp/Playlists.vcxproj @@ -42,37 +42,37 @@ Application true - v140 + v141 Application true - v140 + v141 Application true - v140 + v141 Application false true - v140 + v141 true Application false true - v140 + v141 true Application false true - v140 + v141 true diff --git a/Samples/PosPrinter/README.md b/Samples/PosPrinter/README.md index 4a40b491a0..a962cb6147 100644 --- a/Samples/PosPrinter/README.md +++ b/Samples/PosPrinter/README.md @@ -28,11 +28,11 @@ Specifically, this sample shows how to: This scenario demonstrates the claim/release model used by the POS Printer API by allowing the user to manager two printer instances with UI controls for claiming, retaining, and releasing the printer objects. -**Note** The Windows universal samples require Visual Studio 2015 to build and Windows 10 to execute. +**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 2015 and the tools for developing Windows apps, go to [Visual Studio 2015](http://go.microsoft.com/fwlink/?LinkID=532422) +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 @@ -56,8 +56,8 @@ To obtain information about Microsoft Visual Studio 2015 and the tools for devel ## 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 2015 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 2015 Solution (.sln) file. +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 diff --git a/Samples/PosPrinter/cpp/PosPrinter.vcxproj b/Samples/PosPrinter/cpp/PosPrinter.vcxproj index fc87097e12..6d9fe5f506 100644 --- a/Samples/PosPrinter/cpp/PosPrinter.vcxproj +++ b/Samples/PosPrinter/cpp/PosPrinter.vcxproj @@ -42,37 +42,37 @@ Application true - v140 + v141 Application true - v140 + v141 Application true - v140 + v141 Application false true - v140 + v141 true Application false true - v140 + v141 true Application false true - v140 + v141 true diff --git a/Samples/PosPrinter/cpp/Scenario1_ReceiptPrinter.xaml.cpp b/Samples/PosPrinter/cpp/Scenario1_ReceiptPrinter.xaml.cpp index 5ed30e4535..31e09b610f 100644 --- a/Samples/PosPrinter/cpp/Scenario1_ReceiptPrinter.xaml.cpp +++ b/Samples/PosPrinter/cpp/Scenario1_ReceiptPrinter.xaml.cpp @@ -175,36 +175,31 @@ void Scenario1_ReceiptPrinter::PrintReceipt() { if (printer != nullptr && claimedPrinter != nullptr) { - - ReceiptPrintJob^ job = claimedPrinter->Receipt->CreateJob(); - job->PrintLine("======================"); - job->PrintLine("| Sample Header |"); - job->PrintLine("======================"); - - job->PrintLine("Item Price"); - job->PrintLine("----------------------"); - - job->PrintLine("Books 10.40"); - job->PrintLine("Games 9.60"); - job->PrintLine("----------------------"); - job->PrintLine("Total----------- 20.00"); - - ReceiptPrintJob^ merchantFooter = GetMerchantFooter(claimedPrinter); - ReceiptPrintJob^ customerFooter = GetCustomerFooter(claimedPrinter); - - create_task(job->ExecuteAsync()).then([this, customerFooter, merchantFooter, job](bool) + String^ receiptString = "======================\n" + + "| Sample Header |\n" + + "======================\n" + + "Item Price\n" + + "----------------------\n" + + "Books 10.40\n" + + "Games 9.60\n" + + "----------------------\n" + + "Total----------- 20.00\n"; + + ReceiptPrintJob^ merchantJob = claimedPrinter->Receipt->CreateJob(); + String^ merchantFooter = GetMerchantFooter(); + PrintLineFeedAndCutPaper(merchantJob, receiptString + merchantFooter); + ReceiptPrintJob^ customerJob = claimedPrinter->Receipt->CreateJob(); + String^ customerFooter = GetCustomerFooter(); + PrintLineFeedAndCutPaper(customerJob, receiptString + customerFooter); + + + + create_task(merchantJob->ExecuteAsync()).then([this, customerJob](bool) { - create_task(customerFooter->ExecuteAsync()).then([this, merchantFooter, job](bool) + rootPage->NotifyUser("Printed merchant receipt.", NotifyType::StatusMessage); + create_task(customerJob->ExecuteAsync()).then([this](bool) { rootPage->NotifyUser("Printed customer receipt.", NotifyType::StatusMessage); - - create_task(job->ExecuteAsync()).then([this, merchantFooter](bool) - { - create_task(merchantFooter->ExecuteAsync()).then([this](bool) - { - rootPage->NotifyUser("Printed merchant receipt.", NotifyType::StatusMessage); - }); - }); }); }); @@ -216,45 +211,42 @@ void Scenario1_ReceiptPrinter::PrintReceipt() } } -ReceiptPrintJob^ Scenario1_ReceiptPrinter::GetMerchantFooter(ClaimedPosPrinter ^ claimedInstance) +Platform::String^ Scenario1_ReceiptPrinter::GetMerchantFooter() { - ReceiptPrintJob^ merchantFooter = claimedInstance->Receipt->CreateJob(); - merchantFooter->PrintLine(); - merchantFooter->PrintLine("______________________"); - merchantFooter->PrintLine("Tip"); - merchantFooter->PrintLine(); - merchantFooter->PrintLine("______________________"); - merchantFooter->PrintLine("Signature"); - merchantFooter->PrintLine(); - merchantFooter->PrintLine("Merchant Copy"); - LineFeedAndCutPaper(merchantFooter); - - return merchantFooter; + return "\n" + + "______________________\n" + + "Tip\n" + + "\n" + + "______________________\n" + + "Signature\n" + + "\n" + + "Merchant Copy\n"; } -ReceiptPrintJob^ Scenario1_ReceiptPrinter::GetCustomerFooter(ClaimedPosPrinter ^ claimedInstance) +Platform::String^ Scenario1_ReceiptPrinter::GetCustomerFooter() { - ReceiptPrintJob^ customerFooter = claimedInstance->Receipt->CreateJob(); - customerFooter->PrintLine(); - customerFooter->PrintLine("______________________"); - customerFooter->PrintLine("Tip"); - customerFooter->PrintLine(); - customerFooter->PrintLine("Customer Copy"); - LineFeedAndCutPaper(customerFooter); - - return customerFooter; + return "\n" + + "______________________\n" + + "Tip\n" + + "\n" + + "Customer Copy\n"; } // Cut the paper after printing enough blank lines to clear the paper cutter. -void Scenario1_ReceiptPrinter::LineFeedAndCutPaper(ReceiptPrintJob^ job) +void Scenario1_ReceiptPrinter::PrintLineFeedAndCutPaper(ReceiptPrintJob^ job, Platform::String^ receipt) { if (printer != nullptr && claimedPrinter != nullptr) { + // Passing a multi-line string to the Print method results in + // smoother paper feeding than sending multiple single-line strings + // to PrintLine. + + Platform::String^ feedString = ""; for (unsigned int n = 0; n < claimedPrinter->Receipt->LinesToPaperCut; n++) { - job->PrintLine(); + feedString += "\n"; } - + job->Print(receipt + feedString); if (printer->Capabilities->Receipt->CanCutPaper) { job->CutPaper(); diff --git a/Samples/PosPrinter/cs/Scenario1_ReceiptPrinter.xaml.cs b/Samples/PosPrinter/cs/Scenario1_ReceiptPrinter.xaml.cs index 8522a86d71..898b57a3e6 100644 --- a/Samples/PosPrinter/cs/Scenario1_ReceiptPrinter.xaml.cs +++ b/Samples/PosPrinter/cs/Scenario1_ReceiptPrinter.xaml.cs @@ -225,33 +225,34 @@ private async Task PrintReceipt(Dictionary receiptItems) return false; } - ReceiptPrintJob job = claimedPrinter.Receipt.CreateJob(); - job.PrintLine("======================"); - job.PrintLine("| Sample Header |"); - job.PrintLine("======================"); + string receiptString = "======================\n" + + "| Sample Header |\n" + + "======================\n" + + "Item Price\n" + + "----------------------\n"; - job.PrintLine("Item Price"); - job.PrintLine("----------------------"); double total = 0.0; foreach (KeyValuePair item in receiptItems) { - job.PrintLine(string.Format("{0,-15} {1,6:##0.00}", item.Key, item.Value)); + receiptString += string.Format("{0,-15} {1,6:##0.00}\n", item.Key, item.Value); total += item.Value; } - job.PrintLine("----------------------"); - job.PrintLine(string.Format("Total-----------{0,6:##0.00}", total)); + receiptString += "----------------------\n"; + receiptString += string.Format("Total-----------{0,6:##0.00}\n", total); + + ReceiptPrintJob merchantJob = claimedPrinter.Receipt.CreateJob(); + string merchantFooter = GetMerchantFooter(); + PrintLineFeedAndCutPaper(merchantJob, receiptString + merchantFooter); - ReceiptPrintJob merchantFooter = GetMerchantFooter(claimedPrinter); - ReceiptPrintJob customerFooter = GetCustomerFooter(claimedPrinter); + ReceiptPrintJob customerJob = claimedPrinter.Receipt.CreateJob(); + string customerFooter = GetCustomerFooter(); + PrintLineFeedAndCutPaper(customerJob, receiptString + customerFooter); // execute print jobs // Note that we actually execute "job" twice in order to print // the statement for both the customer as well as the merchant. - - if (!await job.ExecuteAsync() || - !await customerFooter.ExecuteAsync() || - !await job.ExecuteAsync() || - !await merchantFooter.ExecuteAsync()) + if (!(await merchantJob.ExecuteAsync()) || + !(await customerJob.ExecuteAsync())) { rootPage.NotifyUser("Failed to print receipts.", NotifyType.ErrorMessage); return false; @@ -260,45 +261,42 @@ private async Task PrintReceipt(Dictionary receiptItems) return true; } - private ReceiptPrintJob GetMerchantFooter(ClaimedPosPrinter printer) + private string GetMerchantFooter() { - ReceiptPrintJob merchantFooter = printer.Receipt.CreateJob(); - merchantFooter.PrintLine(); - merchantFooter.PrintLine("______________________"); - merchantFooter.PrintLine("Tip"); - merchantFooter.PrintLine(); - merchantFooter.PrintLine("______________________"); - merchantFooter.PrintLine("Signature"); - merchantFooter.PrintLine(); - merchantFooter.PrintLine("Merchant Copy"); - LineFeedAndCutPaper(merchantFooter); - - return merchantFooter; + return "\n" + + "______________________\n" + + "Tip\n" + + "\n" + + "______________________\n" + + "Signature\n" + + "\n" + + "Merchant Copy\n"; } - private ReceiptPrintJob GetCustomerFooter(ClaimedPosPrinter printer) + private string GetCustomerFooter() { - ReceiptPrintJob customerFooter = printer.Receipt.CreateJob(); - customerFooter.PrintLine(); - customerFooter.PrintLine("______________________"); - customerFooter.PrintLine("Tip"); - customerFooter.PrintLine(); - customerFooter.PrintLine("Customer Copy"); - LineFeedAndCutPaper(customerFooter); - - return customerFooter; + return "\n" + + "______________________\n" + + "Tip\n" + + "\n" + + "Customer Copy\n"; } // Cut the paper after printing enough blank lines to clear the paper cutter. - private void LineFeedAndCutPaper(ReceiptPrintJob job) + private void PrintLineFeedAndCutPaper(ReceiptPrintJob job, string receipt) { if (IsPrinterClaimed()) { + // Passing a multi-line string to the Print method results in + // smoother paper feeding than sending multiple single-line strings + // to PrintLine. + + string feedString = ""; for (uint n = 0; n < claimedPrinter.Receipt.LinesToPaperCut; n++) { - job.PrintLine(); + feedString += "\n"; } - + job.Print(receipt + feedString); if (printer.Capabilities.Receipt.CanCutPaper) { job.CutPaper(); diff --git a/Samples/PosPrinter/js/js/Scenario1_ReceiptPrinter.js b/Samples/PosPrinter/js/js/Scenario1_ReceiptPrinter.js index 7557995c64..0df284ede8 100644 --- a/Samples/PosPrinter/js/js/Scenario1_ReceiptPrinter.js +++ b/Samples/PosPrinter/js/js/Scenario1_ReceiptPrinter.js @@ -144,40 +144,60 @@ WinJS.log("Claimed printer instance is null. Cannot print.", "sample", "error"); } else { - var job = _claimedPrinter.receipt.createJob(); - job.printLine("======================"); - job.printLine("| Sample Header |"); - job.printLine("======================"); - - job.printLine("Item Price"); - job.printLine("----------------------"); - - job.printLine("Books 10.40"); - job.printLine("Games 9.60"); - job.printLine("----------------------"); - job.printLine("Total----------- 20.00"); - - job.printLine(); - job.printLine("______________________"); - job.printLine("Tip"); - job.printLine(); - job.printLine("______________________"); - job.printLine("Signature"); - job.printLine(); - job.printLine("Merchant Copy"); - lineFeedAndCutPaper(job); - - - job.executeAsync().done(function () { - WinJS.log("Printed receipt.", "sample", "status"); + var receiptString = "======================\n" + + "| Sample Header |\n" + + "======================\n" + + "Item Price\n" + + "----------------------\n" + + "Books 10.40\n" + + "Games 9.60\n" + + "----------------------\n" + + "Total----------- 20.00\n"; + + + var merchantJob = _claimedPrinter.receipt.createJob(); + var merchantFooter = getMerchantFooter(); + printLineFeedAndCutPaper(merchantJob, receiptString + merchantFooter); + var customerJob = _claimedPrinter.receipt.createJob(); + var customerFooter = getCustomerFooter(); + printLineFeedAndCutPaper(customerJob, receiptString + customerFooter); + + + merchantJob.executeAsync().done(function () { + WinJS.log("Printed merchant receipt.", "sample", "status"); }, function error(e) { WinJS.log("Was not able to print receipt: " + e.message, "sample", "error"); }); + + customerJob.executeAsync().done(function () { + WinJS.log("Printed customer receipt.", "sample", "status"); + }, function error(e) { + WinJS.log("Was not able to print customer footer: " + e.message, "sample", "error"); + }); } } + function getMerchantFooter() { + return "\n" + + "______________________\n" + + "Tip\n" + + "\n" + + "______________________\n" + + "Signature\n" + + "\n" + + "Merchant Copy\n"; + } + + function getCustomerFooter() { + return "\n" + + "______________________\n" + + "Tip\n" + + "\n" + + "Customer Copy\n"; + } + // Cut the paper after printing enough blank lines to clear the paper cutter. - function lineFeedAndCutPaper(job) { + function printLineFeedAndCutPaper(job, receipt) { if (_printer == null) { WinJS.log("No printers found. Cannot print.", "sample", "error"); @@ -186,9 +206,14 @@ WinJS.log("Claimed printer instance is null. Cannot print.", "sample", "error"); } else { + // Passing a multi-line string to the print method results in + // smoother paper feeding than sending multiple single-line strings + // to printLine. + var feedString = ""; for (var n = 0; n < _claimedPrinter.receipt.linesToPaperCut; n++) { - job.printLine(); + feedString += "\n"; } + job.print(receipt + feedString); if (_printer.capabilities.receipt.canCutPaper) { job.cutPaper(); } diff --git a/Samples/Printing/README.md b/Samples/Printing/README.md index 44516f2a19..fe1dc58c7b 100644 --- a/Samples/Printing/README.md +++ b/Samples/Printing/README.md @@ -40,8 +40,8 @@ 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 2015 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 2015 Solution (.sln) file. +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 diff --git a/Samples/Printing/cpp/Printing.vcxproj b/Samples/Printing/cpp/Printing.vcxproj index 3023115dea..eb110eb86d 100644 --- a/Samples/Printing/cpp/Printing.vcxproj +++ b/Samples/Printing/cpp/Printing.vcxproj @@ -42,37 +42,37 @@ Application true - v140 + v141 Application true - v140 + v141 Application true - v140 + v141 Application false true - v140 + v141 true Application false true - v140 + v141 true Application false true - v140 + v141 true diff --git a/Samples/Projection/README.md b/Samples/Projection/README.md index c8cb6b4551..3057ffabf1 100644 --- a/Samples/Projection/README.md +++ b/Samples/Projection/README.md @@ -37,8 +37,8 @@ The sample demonstrates: ## 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 2015 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 2015 Solution (.sln) file. +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 diff --git a/Samples/Projection/cpp/Projection.vcxproj b/Samples/Projection/cpp/Projection.vcxproj index 7a81936745..8270797162 100644 --- a/Samples/Projection/cpp/Projection.vcxproj +++ b/Samples/Projection/cpp/Projection.vcxproj @@ -42,37 +42,37 @@ Application true - v140 + v141 Application true - v140 + v141 Application true - v140 + v141 Application false true - v140 + v141 true Application false true - v140 + v141 true Application false true - v140 + v141 true diff --git a/Samples/ProximitySensor/README.md b/Samples/ProximitySensor/README.md index e97a563840..a5c18111c5 100644 --- a/Samples/ProximitySensor/README.md +++ b/Samples/ProximitySensor/README.md @@ -51,8 +51,8 @@ When a change in the proximity is detected by the sensor, the registered backgro ## 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 2015 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 2015 Solution (.sln) file. +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 diff --git a/Samples/ProximitySensor/cpp/ProximitySensor.vcxproj b/Samples/ProximitySensor/cpp/ProximitySensor.vcxproj index e3a209ddf6..5a705defb0 100644 --- a/Samples/ProximitySensor/cpp/ProximitySensor.vcxproj +++ b/Samples/ProximitySensor/cpp/ProximitySensor.vcxproj @@ -42,37 +42,37 @@ Application true - v140 + v141 Application true - v140 + v141 Application true - v140 + v141 Application false true - v140 + v141 true Application false true - v140 + v141 true Application false true - v140 + v141 true diff --git a/Samples/ProximitySensor/cpp/Tasks/Tasks.vcxproj b/Samples/ProximitySensor/cpp/Tasks/Tasks.vcxproj index 99111cf2a0..be3a3f151b 100644 --- a/Samples/ProximitySensor/cpp/Tasks/Tasks.vcxproj +++ b/Samples/ProximitySensor/cpp/Tasks/Tasks.vcxproj @@ -43,35 +43,35 @@ DynamicLibrary true - v140 + v141 DynamicLibrary true - v140 + v141 DynamicLibrary true - v140 + v141 DynamicLibrary false true - v140 + v141 DynamicLibrary false true - v140 + v141 DynamicLibrary false true - v140 + v141 diff --git a/Samples/ProxyStubsForWinRTComponents/README.md b/Samples/ProxyStubsForWinRTComponents/README.md index f18b020ab8..e54105d702 100644 --- a/Samples/ProxyStubsForWinRTComponents/README.md +++ b/Samples/ProxyStubsForWinRTComponents/README.md @@ -14,11 +14,11 @@ Shows how to create proxies and stubs for a Windows Runtime in-process component > 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. -**Note** The Windows universal samples require Visual Studio 2015 to build and Windows 10 to execute. +**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 2015 and the tools for developing Windows apps, go to [Visual Studio 2015](http://go.microsoft.com/fwlink/?LinkID=532422) +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 @@ -31,8 +31,8 @@ To obtain information about Microsoft Visual Studio 2015 and the tools for devel ## 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 2015 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 2015 Solution (.sln) file. +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 diff --git a/Samples/ProxyStubsForWinRTComponents/cpp/Server/ProxyStubsForWinRTComponentsPS.vcxproj b/Samples/ProxyStubsForWinRTComponents/cpp/Server/ProxyStubsForWinRTComponentsPS.vcxproj index ba942e42b6..f89e94d286 100644 --- a/Samples/ProxyStubsForWinRTComponents/cpp/Server/ProxyStubsForWinRTComponentsPS.vcxproj +++ b/Samples/ProxyStubsForWinRTComponents/cpp/Server/ProxyStubsForWinRTComponentsPS.vcxproj @@ -44,39 +44,39 @@ DynamicLibrary - v140 + v141 true true DynamicLibrary - v140 + v141 true true DynamicLibrary - v140 + v141 true true DynamicLibrary - v140 + v141 false true false DynamicLibrary - v140 + v141 false true false DynamicLibrary - v140 + v141 false true false diff --git a/Samples/ProxyStubsForWinRTComponents/cpp/Server/ProxyStubsForWinRTComponents_server.vcxproj b/Samples/ProxyStubsForWinRTComponents/cpp/Server/ProxyStubsForWinRTComponents_server.vcxproj index 29788424a3..94fa159791 100644 --- a/Samples/ProxyStubsForWinRTComponents/cpp/Server/ProxyStubsForWinRTComponents_server.vcxproj +++ b/Samples/ProxyStubsForWinRTComponents/cpp/Server/ProxyStubsForWinRTComponents_server.vcxproj @@ -44,37 +44,37 @@ DynamicLibrary true - v140 + v141 DynamicLibrary true - v140 + v141 DynamicLibrary true - v140 + v141 DynamicLibrary false true - v140 + v141 true DynamicLibrary false true - v140 + v141 true DynamicLibrary false true - v140 + v141 true diff --git a/Samples/ProxyStubsForWinRTComponents/cpp/cpp/ProxyStubsForWinRTComponents_client_cpp.vcxproj b/Samples/ProxyStubsForWinRTComponents/cpp/cpp/ProxyStubsForWinRTComponents_client_cpp.vcxproj index a5dfd0bc50..d9144d8694 100644 --- a/Samples/ProxyStubsForWinRTComponents/cpp/cpp/ProxyStubsForWinRTComponents_client_cpp.vcxproj +++ b/Samples/ProxyStubsForWinRTComponents/cpp/cpp/ProxyStubsForWinRTComponents_client_cpp.vcxproj @@ -42,37 +42,37 @@ Application true - v140 + v141 Application true - v140 + v141 Application true - v140 + v141 Application false true - v140 + v141 true Application false true - v140 + v141 true Application false true - v140 + v141 true diff --git a/Samples/ProxyStubsForWinRTComponents/cs/Server/ProxyStubsForWinRTComponentsPS.vcxproj b/Samples/ProxyStubsForWinRTComponents/cs/Server/ProxyStubsForWinRTComponentsPS.vcxproj index 2ce4ff595d..afa8ec6b1e 100644 --- a/Samples/ProxyStubsForWinRTComponents/cs/Server/ProxyStubsForWinRTComponentsPS.vcxproj +++ b/Samples/ProxyStubsForWinRTComponents/cs/Server/ProxyStubsForWinRTComponentsPS.vcxproj @@ -44,39 +44,39 @@ DynamicLibrary - v140 + v141 true true DynamicLibrary - v140 + v141 true true DynamicLibrary - v140 + v141 true true DynamicLibrary - v140 + v141 false true false DynamicLibrary - v140 + v141 false true false DynamicLibrary - v140 + v141 false true false diff --git a/Samples/ProxyStubsForWinRTComponents/cs/cpp/ProxyStubsForWinRTComponents_client_cpp.vcxproj b/Samples/ProxyStubsForWinRTComponents/cs/cpp/ProxyStubsForWinRTComponents_client_cpp.vcxproj index 3261da711d..15a8793e16 100644 --- a/Samples/ProxyStubsForWinRTComponents/cs/cpp/ProxyStubsForWinRTComponents_client_cpp.vcxproj +++ b/Samples/ProxyStubsForWinRTComponents/cs/cpp/ProxyStubsForWinRTComponents_client_cpp.vcxproj @@ -42,37 +42,37 @@ Application true - v140 + v141 Application true - v140 + v141 Application true - v140 + v141 Application false true - v140 + v141 true Application false true - v140 + v141 true Application false true - v140 + v141 true diff --git a/Samples/RadialController/README.md b/Samples/RadialController/README.md index fb9216427e..a415e13b48 100644 --- a/Samples/RadialController/README.md +++ b/Samples/RadialController/README.md @@ -18,18 +18,25 @@ control the haptic feedback, and configure the default system items. Specifically, this sample shows how to: -- **Add, remove, and select custom items:** This sample demonstrates how to add, remove, and select custom items dynamically using provided or custom icons. +- **Add, remove, and select custom items:** This sample demonstrates how to add, remove, and select custom items dynamically using system-provided icons, + app-provided bitmaps, glyphs from a system-provided font, or glyphs from an app-provided font. - **Control haptic feedback:** This sample demonstrates how to enable and disable the haptic feedback for custom items. - **Configure default system items:** This sample demonstrates how to add, remove, and select the default system items. +- **Suppress the menu:** Normally, the system displays a menu when the user presses the Surface Dial. + The app can suppress the menu and direct input to a specific controller. -**Note** The Windows universal samples require Visual Studio 2015 to build and Windows 10 to execute. +**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 2015 and the tools for developing Windows apps, go to [Visual Studio 2015](http://go.microsoft.com/fwlink/?LinkID=532422) +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 +### Developer and UX guidance + +[Surface Dial interactions](https://msdn.microsoft.com/windows/uwp/input-and-devices/windows-wheel-interactions) + ### Reference [RadialController](https://msdn.microsoft.com/library/windows/apps/windows.ui.input.radialcontroller.aspx) @@ -44,8 +51,8 @@ To obtain information about Microsoft Visual Studio 2015 and the tools for devel ## 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 2015 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 the language. Double-click the Visual Studio 2015 Solution (.sln) file. +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 the 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/RadialController/cpp/README.md b/Samples/RadialController/cpp/README.md index 22027a78a0..3c9ea2ae05 100644 --- a/Samples/RadialController/cpp/README.md +++ b/Samples/RadialController/cpp/README.md @@ -18,11 +18,11 @@ Specifically, this sample shows how to: - **Add, remove, and select custom items:** This sample demonstrates how to add, remove, and select custom items dynamically using provided or custom icons. - **Control haptic feedback:** This sample demonstrates how to enable and disable the haptic feedback for custom items. -**Note** The Windows universal samples require Visual Studio 2015 to build and Windows 10 to execute. +**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 2015 and the tools for developing Windows apps, go to [Visual Studio 2015](http://go.microsoft.com/fwlink/?LinkID=532422) +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 @@ -44,8 +44,8 @@ To obtain information about Microsoft Visual Studio 2015 and the tools for devel ## 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 2015 and select **File** \> **Open** \> **Samples/RadialController/cpp/RadialControllerCXX.sln**. -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++ or C#). Double-click the Visual Studio 2015 Solution (.sln) file. +2. Start Microsoft Visual Studio 2017 and select **File** \> **Open** \> **Samples/RadialController/cpp/RadialControllerCXX.sln**. +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++ or C#). 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/RadialController/cpp/RadialController.vcxproj b/Samples/RadialController/cpp/RadialController.vcxproj index cea0c90d05..3a0a3c84d0 100644 --- a/Samples/RadialController/cpp/RadialController.vcxproj +++ b/Samples/RadialController/cpp/RadialController.vcxproj @@ -41,35 +41,35 @@ Application true - v140 + v141 Application true - v140 + v141 Application true - v140 + v141 Application false true - v140 + v141 Application false true - v140 + v141 Application false true - v140 + v141 @@ -152,10 +152,12 @@ Designer - Styles\Styles.xaml + + Designer + @@ -216,12 +218,11 @@ Assets\Item3.png - - Assets\Item4.png - - - Assets\Item5.png - + + + + Assets\Symbols.ttf + diff --git a/Samples/RadialController/cpp/RadialController.vcxproj.filters b/Samples/RadialController/cpp/RadialController.vcxproj.filters index bd499c6150..4523fd5262 100644 --- a/Samples/RadialController/cpp/RadialController.vcxproj.filters +++ b/Samples/RadialController/cpp/RadialController.vcxproj.filters @@ -70,11 +70,10 @@ Assets - - Assets - - + + + Assets - + \ No newline at end of file diff --git a/Samples/RadialController/cpp/Scenario1_EventAndMenuHookup.xaml.cpp b/Samples/RadialController/cpp/Scenario1_EventAndMenuHookup.xaml.cpp index 317a33140a..a1afabeb94 100644 --- a/Samples/RadialController/cpp/Scenario1_EventAndMenuHookup.xaml.cpp +++ b/Samples/RadialController/cpp/Scenario1_EventAndMenuHookup.xaml.cpp @@ -1,4 +1,4 @@ -//********************************************************* +//********************************************************* // // Copyright (c) Microsoft. All rights reserved. // This code is licensed under the MIT License (MIT). @@ -26,10 +26,9 @@ using namespace Windows::UI::Xaml::Media; using namespace Windows::UI::Xaml::Navigation; using namespace Windows::UI::Input; using namespace Windows::Storage::Streams; -using namespace std::placeholders; using std::vector; -Scenario1_EventAndMenuHookup::Scenario1_EventAndMenuHookup() : rootPage(MainPage::Current) +Scenario1_EventAndMenuHookup::Scenario1_EventAndMenuHookup() { InitializeComponent(); @@ -50,6 +49,7 @@ void Scenario1_EventAndMenuHookup::InitializeController() controller = RadialController::CreateForCurrentView(); controller->RotationResolutionInDegrees = 1; + // Wire events controller->RotationChanged += ref new TypedEventHandler(this, &Scenario1_EventAndMenuHookup::OnRotationChanged); controller->ButtonClicked += ref new TypedEventHandler(this, &Scenario1_EventAndMenuHookup::OnButtonClicked); controller->ScreenContactStarted += ref new TypedEventHandler(this, &Scenario1_EventAndMenuHookup::OnScreenContactStarted); @@ -61,23 +61,11 @@ void Scenario1_EventAndMenuHookup::InitializeController() void Scenario1_EventAndMenuHookup::CreateMenuItems() { - vector _menuItems = - { - RadialControllerMenuItem::CreateFromKnownIcon("Item0", RadialControllerMenuKnownIcon::InkColor), - RadialControllerMenuItem::CreateFromKnownIcon("Item1", RadialControllerMenuKnownIcon::NextPreviousTrack), - RadialControllerMenuItem::CreateFromKnownIcon("Item2", RadialControllerMenuKnownIcon::Volume), - RadialControllerMenuItem::CreateFromIcon("Item3", RandomAccessStreamReference::CreateFromUri(ref new Uri("ms-appx:///Assets/Item3.png"))), - RadialControllerMenuItem::CreateFromIcon("Item4", RandomAccessStreamReference::CreateFromUri(ref new Uri("ms-appx:///Assets/Item4.png"))), - RadialControllerMenuItem::CreateFromIcon("Item5", RandomAccessStreamReference::CreateFromUri(ref new Uri("ms-appx:///Assets/Item5.png"))) - }; - menuItems = std::move(_menuItems); - - vector _sliders = { Slider0, Slider1, Slider2, Slider3, Slider4, Slider5 }; - sliders = std::move(_sliders); - - vector _toggles = { Toggle0, Toggle1, Toggle2, Toggle3, Toggle4, Toggle5 }; - toggles = std::move(_toggles); + AddKnownIconItems(); + AddCustomIconItems(); + AddFontGlyphItems(); + // Set the invoked callbacks for each menu item for (unsigned int i = 0; i < menuItems.size(); ++i) { RadialControllerMenuItem^ radialControllerItem = menuItems[i]; @@ -85,6 +73,39 @@ void Scenario1_EventAndMenuHookup::CreateMenuItems() } } +void Scenario1_EventAndMenuHookup::AddKnownIconItems() +{ + menuItems.push_back(RadialControllerMenuItem::CreateFromKnownIcon("Item 0", RadialControllerMenuKnownIcon::InkColor)); + sliders.push_back(slider0); + toggles.push_back(toggle0); + + menuItems.push_back(RadialControllerMenuItem::CreateFromKnownIcon("Item 1", RadialControllerMenuKnownIcon::NextPreviousTrack)); + sliders.push_back(slider1); + toggles.push_back(toggle1); +} + +void Scenario1_EventAndMenuHookup::AddCustomIconItems() +{ + menuItems.push_back(RadialControllerMenuItem::CreateFromIcon(L"Item 2", RandomAccessStreamReference::CreateFromUri(ref new Uri(L"ms-appx:///Assets/Item2.png")))); + sliders.push_back(slider2); + toggles.push_back(toggle2); + + menuItems.push_back(RadialControllerMenuItem::CreateFromIcon(L"Item 3", RandomAccessStreamReference::CreateFromUri(ref new Uri(L"ms-appx:///Assets/Item3.png")))); + sliders.push_back(slider3); + toggles.push_back(toggle3); +} + +void Scenario1_EventAndMenuHookup::AddFontGlyphItems() +{ + menuItems.push_back(RadialControllerMenuItem::CreateFromFontGlyph(L"Item 4", L"\x2764", L"Segoe UI Emoji")); + sliders.push_back(slider4); + toggles.push_back(toggle4); + + menuItems.push_back(RadialControllerMenuItem::CreateFromFontGlyph(L"Item 5", L"\ue102", L"Symbols", ref new Uri(L"ms-appx:///Assets/Symbols.ttf"))); + sliders.push_back(slider5); + toggles.push_back(toggle5); +} + void Scenario1_EventAndMenuHookup::SetItemInvokedCallback(RadialControllerMenuItem^ menuItem, unsigned int index) { // Register Invoked callback to set active item index @@ -112,6 +133,7 @@ void Scenario1_EventAndMenuHookup::AddItem(Object^ sender, RoutedEventArgs^ args if (!IsItemInMenu(radialControllerMenuItem)) { controller->Menu->Items->Append(radialControllerMenuItem); + log->Text += "\n Added : " + radialControllerMenuItem->DisplayText; } } @@ -123,6 +145,7 @@ void Scenario1_EventAndMenuHookup::RemoveItem(Object^ sender, RoutedEventArgs^ a { unsigned int index = GetItemIndex(radialControllerMenuItem); controller->Menu->Items->RemoveAt(index); + log->Text += "\n Removed : " + radialControllerMenuItem->DisplayText; } } @@ -139,10 +162,8 @@ void Scenario1_EventAndMenuHookup::SelectItem(Object^ sender, RoutedEventArgs^ a void Scenario1_EventAndMenuHookup::SelectPreviouslySelectedItem(Object^ sender, RoutedEventArgs^ args) { - if (controller->Menu->TrySelectPreviouslySelectedMenuItem()) - { - PrintSelectedItem(); - } + controller->Menu->TrySelectPreviouslySelectedMenuItem(); + PrintSelectedItem(); } unsigned int Scenario1_EventAndMenuHookup::GetItemIndex(RadialControllerMenuItem^ item) @@ -175,69 +196,82 @@ void Scenario1_EventAndMenuHookup::PrintSelectedItem(Object^ sender, RoutedEvent } void Scenario1_EventAndMenuHookup::PrintSelectedItem() -{ - log->Text += "\n Selected : " + GetSelectedMenuItemName(); -} - -String^ Scenario1_EventAndMenuHookup::GetSelectedMenuItemName() { RadialControllerMenuItem^ selectedMenuItem = controller->Menu->GetSelectedMenuItem(); + String^ itemName = nullptr; if (selectedMenuItem) { - return selectedMenuItem->DisplayText; + itemName = selectedMenuItem->DisplayText; + } + else if (selectedMenuItem == nullptr) + { + itemName = L"System Item"; } - else + + if (itemName != nullptr) { - return L"System Item"; + log->Text += "\n Selected : " + itemName; } } -void Scenario1_EventAndMenuHookup::OnLogSizeChanged(Platform::Object ^sender, Platform::Object ^args) +void Scenario1_EventAndMenuHookup::OnLogSizeChanged(Object^ sender, Object^ args) { logViewer->ChangeView(nullptr, logViewer->ExtentHeight, nullptr); } -void Scenario1_EventAndMenuHookup::OnControlAcquired(Windows::UI::Input::RadialController ^sender, Windows::UI::Input::RadialControllerControlAcquiredEventArgs ^args) +void Scenario1_EventAndMenuHookup::OnControlAcquired(RadialController^ sender, RadialControllerControlAcquiredEventArgs^ args) { - log->Text += "\nControl Acquired"; + log->Text += "\n Control Acquired"; LogContactInfo(args->Contact); } -void Scenario1_EventAndMenuHookup::OnControlLost(Windows::UI::Input::RadialController ^sender, Platform::Object ^args) +void Scenario1_EventAndMenuHookup::OnControlLost(RadialController^ sender, Object^ args) { - log->Text += "\nControl Lost"; + log->Text += "\n Control Lost"; } -void Scenario1_EventAndMenuHookup::OnScreenContactStarted(Windows::UI::Input::RadialController ^sender, Windows::UI::Input::RadialControllerScreenContactStartedEventArgs ^args) +void Scenario1_EventAndMenuHookup::OnScreenContactStarted(RadialController^ sender, RadialControllerScreenContactStartedEventArgs^ args) { - log->Text += "\nContact Started "; + log->Text += "\n Contact Started "; LogContactInfo(args->Contact); } -void Scenario1_EventAndMenuHookup::OnScreenContactContinued(Windows::UI::Input::RadialController ^sender, Windows::UI::Input::RadialControllerScreenContactContinuedEventArgs ^args) +void Scenario1_EventAndMenuHookup::OnScreenContactContinued(RadialController^ sender, RadialControllerScreenContactContinuedEventArgs^ args) { - log->Text += "\nContact Continued "; + log->Text += "\n Contact Continued "; LogContactInfo(args->Contact); } -void Scenario1_EventAndMenuHookup::OnScreenContactEnded(Windows::UI::Input::RadialController ^sender, Platform::Object ^args) +void Scenario1_EventAndMenuHookup::OnScreenContactEnded(RadialController^ sender, Object^ args) +{ + log->Text += "\n Contact Ended"; +} + +void Scenario1_EventAndMenuHookup::ToggleMenuSuppression(Object^ sender, RoutedEventArgs^ args) { - log->Text += "\nContact Ended"; + RadialControllerConfiguration^ radialControllerConfig = RadialControllerConfiguration::GetForCurrentView(); + + if (MenuSuppressionToggleSwitch->IsOn) + { + radialControllerConfig->ActiveControllerWhenMenuIsSuppressed = controller; + } + + radialControllerConfig->IsMenuSuppressed = MenuSuppressionToggleSwitch->IsOn; } -void Scenario1_EventAndMenuHookup::OnButtonClicked(Windows::UI::Input::RadialController ^sender, Windows::UI::Input::RadialControllerButtonClickedEventArgs ^args) +void Scenario1_EventAndMenuHookup::OnButtonClicked(RadialController^ sender, RadialControllerButtonClickedEventArgs^ args) { - log->Text += "\nButton Clicked "; + log->Text += "\n Button Clicked "; LogContactInfo(args->Contact); ToggleSwitch^ toggle = toggles[activeItemIndex]; toggle->IsOn = !toggle->IsOn; } -void Scenario1_EventAndMenuHookup::OnRotationChanged(Windows::UI::Input::RadialController ^sender, Windows::UI::Input::RadialControllerRotationChangedEventArgs ^args) +void Scenario1_EventAndMenuHookup::OnRotationChanged(RadialController^ sender, RadialControllerRotationChangedEventArgs^ args) { - log->Text += "\nRotation Changed Delta = " + args->RotationDeltaInDegrees; + log->Text += "\n Rotation Changed Delta = " + args->RotationDeltaInDegrees; LogContactInfo(args->Contact); sliders[activeItemIndex]->Value += args->RotationDeltaInDegrees; @@ -247,7 +281,7 @@ void Scenario1_EventAndMenuHookup::LogContactInfo(RadialControllerScreenContact^ { if (contact != nullptr) { - log->Text += "\nBounds = " + contact->Bounds.ToString(); - log->Text += "\nPosition = " + contact->Position.ToString(); + log->Text += "\n Bounds = " + contact->Bounds.ToString(); + log->Text += "\n Position = " + contact->Position.ToString(); } } \ No newline at end of file diff --git a/Samples/RadialController/cpp/Scenario1_EventAndMenuHookup.xaml.h b/Samples/RadialController/cpp/Scenario1_EventAndMenuHookup.xaml.h index 2905d4763e..66ccc4d0ff 100644 --- a/Samples/RadialController/cpp/Scenario1_EventAndMenuHookup.xaml.h +++ b/Samples/RadialController/cpp/Scenario1_EventAndMenuHookup.xaml.h @@ -1,4 +1,4 @@ -//********************************************************* +//********************************************************* // // Copyright (c) Microsoft. All rights reserved. // This code is licensed under the MIT License (MIT). @@ -38,8 +38,6 @@ namespace SDKTemplate virtual void OnNavigatedFrom(Windows::UI::Xaml::Navigation::NavigationEventArgs^ e) override; private: - MainPage^ rootPage; - Windows::UI::Input::RadialController^ controller; int activeItemIndex; @@ -49,6 +47,9 @@ namespace SDKTemplate void InitializeController(); void CreateMenuItems(); + void AddKnownIconItems(); + void AddCustomIconItems(); + void AddFontGlyphItems(); void SetItemInvokedCallback(Windows::UI::Input::RadialControllerMenuItem^ menuItem, unsigned int index); void AddItem(Platform::Object^ sender, Windows::UI::Xaml::RoutedEventArgs^ args); @@ -62,18 +63,19 @@ namespace SDKTemplate void PrintSelectedItem(Platform::Object^ sender, Windows::UI::Xaml::RoutedEventArgs^ args); void PrintSelectedItem(); - Platform::String^ GetSelectedMenuItemName(); - void OnLogSizeChanged(Platform::Object ^sender, Platform::Object ^args); - void OnControlAcquired(Windows::UI::Input::RadialController ^sender, Windows::UI::Input::RadialControllerControlAcquiredEventArgs ^args); - void OnControlLost(Windows::UI::Input::RadialController ^sender, Platform::Object ^args); + void OnLogSizeChanged(Platform::Object^ sender, Platform::Object^ args); + void OnControlAcquired(Windows::UI::Input::RadialController^ sender, Windows::UI::Input::RadialControllerControlAcquiredEventArgs^ args); + void OnControlLost(Windows::UI::Input::RadialController^ sender, Platform::Object^ args); + + void OnScreenContactStarted(Windows::UI::Input::RadialController^ sender, Windows::UI::Input::RadialControllerScreenContactStartedEventArgs^ args); + void OnScreenContactContinued(Windows::UI::Input::RadialController^ sender, Windows::UI::Input::RadialControllerScreenContactContinuedEventArgs^ args); + void OnScreenContactEnded(Windows::UI::Input::RadialController^ sender, Platform::Object^ args); - void OnScreenContactStarted(Windows::UI::Input::RadialController ^sender, Windows::UI::Input::RadialControllerScreenContactStartedEventArgs ^args); - void OnScreenContactContinued(Windows::UI::Input::RadialController ^sender, Windows::UI::Input::RadialControllerScreenContactContinuedEventArgs ^args); - void OnScreenContactEnded(Windows::UI::Input::RadialController ^sender, Platform::Object ^args); + void ToggleMenuSuppression(Platform::Object^ sender, Windows::UI::Xaml::RoutedEventArgs^ args); - void OnButtonClicked(Windows::UI::Input::RadialController ^sender, Windows::UI::Input::RadialControllerButtonClickedEventArgs ^args); - void OnRotationChanged(Windows::UI::Input::RadialController ^sender, Windows::UI::Input::RadialControllerRotationChangedEventArgs ^args); + void OnButtonClicked(Windows::UI::Input::RadialController^ sender, Windows::UI::Input::RadialControllerButtonClickedEventArgs^ args); + void OnRotationChanged(Windows::UI::Input::RadialController^ sender, Windows::UI::Input::RadialControllerRotationChangedEventArgs^ args); void LogContactInfo(Windows::UI::Input::RadialControllerScreenContact^ contact); }; } diff --git a/Samples/RadialController/cs/RadialController.csproj b/Samples/RadialController/cs/RadialController.csproj index 9893bb3d48..dd94f5c927 100644 --- a/Samples/RadialController/cs/RadialController.csproj +++ b/Samples/RadialController/cs/RadialController.csproj @@ -179,11 +179,8 @@ Assets\Item3.png - - Assets\Item4.png - - - Assets\Item5.png + + Assets\Symbols.ttf diff --git a/Samples/RadialController/cs/Scenario1_EventAndMenuHookup.xaml.cs b/Samples/RadialController/cs/Scenario1_EventAndMenuHookup.xaml.cs index 5aa18ee99c..f035a3232c 100644 --- a/Samples/RadialController/cs/Scenario1_EventAndMenuHookup.xaml.cs +++ b/Samples/RadialController/cs/Scenario1_EventAndMenuHookup.xaml.cs @@ -27,9 +27,9 @@ public sealed partial class Scenario1_EventAndMenuHookup : Page private RadialController Controller; private int activeItemIndex; - private List menuItems; - private List sliders; - private List toggles; + private List menuItems = new List(); + private List sliders = new List(); + private List toggles = new List(); public Scenario1_EventAndMenuHookup() { @@ -69,18 +69,11 @@ private void InitializeController() private void CreateMenuItems() { - menuItems = new List - { - RadialControllerMenuItem.CreateFromKnownIcon("Item0", RadialControllerMenuKnownIcon.InkColor), - RadialControllerMenuItem.CreateFromKnownIcon("Item1", RadialControllerMenuKnownIcon.NextPreviousTrack), - RadialControllerMenuItem.CreateFromKnownIcon("Item2", RadialControllerMenuKnownIcon.Volume), - RadialControllerMenuItem.CreateFromIcon("Item3", RandomAccessStreamReference.CreateFromUri(new Uri("ms-appx:///Assets/Item3.png"))), - RadialControllerMenuItem.CreateFromIcon("Item4", RandomAccessStreamReference.CreateFromUri(new Uri("ms-appx:///Assets/Item4.png"))), - RadialControllerMenuItem.CreateFromIcon("Item5", RandomAccessStreamReference.CreateFromUri(new Uri("ms-appx:///Assets/Item5.png"))) - }; - sliders = new List { Slider0, Slider1, Slider2, Slider3, Slider4, Slider5 }; - toggles = new List { Toggle0, Toggle1, Toggle2, Toggle3, Toggle4, Toggle5 }; + AddKnownIconItems(); + AddCustomIconItems(); + AddFontGlyphItems(); + // Set the invoked callbacks for each menu item for (int i = 0; i < menuItems.Count; ++i) { RadialControllerMenuItem radialControllerItem = menuItems[i]; @@ -90,9 +83,48 @@ private void CreateMenuItems() } } + private void AddKnownIconItems() + { + menuItems.Add(RadialControllerMenuItem.CreateFromKnownIcon("Item0", RadialControllerMenuKnownIcon.InkColor)); + sliders.Add(slider0); + toggles.Add(toggle0); + + menuItems.Add(RadialControllerMenuItem.CreateFromKnownIcon("Item1", RadialControllerMenuKnownIcon.NextPreviousTrack)); + sliders.Add(slider1); + toggles.Add(toggle1); + } + + private void AddCustomIconItems() + { + menuItems.Add(RadialControllerMenuItem.CreateFromIcon("Item2", RandomAccessStreamReference.CreateFromUri(new Uri("ms-appx:///Assets/Item2.png")))); + sliders.Add(slider2); + toggles.Add(toggle2); + + menuItems.Add(RadialControllerMenuItem.CreateFromIcon("Item3", RandomAccessStreamReference.CreateFromUri(new Uri("ms-appx:///Assets/Item3.png")))); + sliders.Add(slider3); + toggles.Add(toggle3); + } + + private void AddFontGlyphItems() + { + // Using system font + menuItems.Add(RadialControllerMenuItem.CreateFromFontGlyph("Item4", "\x2764", "Segoe UI Emoji")); + sliders.Add(slider4); + toggles.Add(toggle4); + + // Using custom font + menuItems.Add(RadialControllerMenuItem.CreateFromFontGlyph("Item5", "\ue102", "Symbols", new Uri("ms-appx:///Assets/Symbols.ttf"))); + sliders.Add(slider5); + toggles.Add(toggle5); + } + private void OnItemInvoked(int selectedItemIndex) { - activeItemIndex = selectedItemIndex; + if (activeItemIndex != selectedItemIndex) + { + activeItemIndex = selectedItemIndex; + PrintSelectedItem(); + } } private void AddItem(object sender, RoutedEventArgs e) @@ -102,6 +134,7 @@ private void AddItem(object sender, RoutedEventArgs e) if (!Controller.Menu.Items.Contains(radialControllerMenuItem)) { Controller.Menu.Items.Add(radialControllerMenuItem); + log.Text += "\n Added : " + radialControllerMenuItem.DisplayText; } } @@ -112,6 +145,7 @@ private void RemoveItem(object sender, RoutedEventArgs e) if (Controller.Menu.Items.Contains(radialControllerMenuItem)) { Controller.Menu.Items.Remove(radialControllerMenuItem); + log.Text += "\n Removed : " + radialControllerMenuItem.DisplayText; } } @@ -128,10 +162,8 @@ private void SelectItem(object sender, RoutedEventArgs e) private void SelectPreviouslySelectedItem(object sender, RoutedEventArgs e) { - if (Controller.Menu.TrySelectPreviouslySelectedMenuItem()) - { - PrintSelectedItem(); - } + Controller.Menu.TrySelectPreviouslySelectedMenuItem(); + PrintSelectedItem(); } private RadialControllerMenuItem GetRadialControllerMenuItemFromSender(object sender) @@ -148,23 +180,25 @@ private void PrintSelectedItem(object sender, RoutedEventArgs e) } private void PrintSelectedItem() - { - log.Text += "\n Selected : " + GetSelectedMenuItemName(); - } - - private string GetSelectedMenuItemName() { RadialControllerMenuItem selectedMenuItem = Controller.Menu.GetSelectedMenuItem(); + string itemName = string.Empty; if (selectedMenuItem == menuItems[activeItemIndex]) { - return selectedMenuItem.DisplayText; + itemName = selectedMenuItem.DisplayText; + } + else if (selectedMenuItem == null) + { + itemName = "System Item"; } - else + + if (itemName != string.Empty) { - return "System Item"; + log.Text += "\n Selected : " + itemName; } } + private void OnLogSizeChanged(object sender, object e) { logViewer.ChangeView(null, logViewer.ExtentHeight, null); @@ -172,36 +206,48 @@ private void OnLogSizeChanged(object sender, object e) private void Controller_ControlAcquired(RadialController sender, RadialControllerControlAcquiredEventArgs args) { - log.Text += "\nControl Acquired"; + log.Text += "\n Control Acquired"; LogContactInfo(args.Contact); } private void Controller_ControlLost(RadialController sender, object args) { - log.Text += "\nControl Lost"; + log.Text += "\n Control Lost"; } private void Controller_ScreenContactStarted(RadialController sender, RadialControllerScreenContactStartedEventArgs args) { - log.Text += "\nContact Started "; + log.Text += "\n Contact Started "; LogContactInfo(args.Contact); } private void Controller_ScreenContactContinued(RadialController sender, RadialControllerScreenContactContinuedEventArgs args) { - log.Text += "\nContact Continued "; + log.Text += "\n Contact Continued "; LogContactInfo(args.Contact); } private void Controller_ScreenContactEnded(RadialController sender, object args) { - log.Text += "\nContact Ended"; + log.Text += "\n Contact Ended"; + } + + private void ToggleMenuSuppression(Object sender, RoutedEventArgs args) + { + RadialControllerConfiguration radialControllerConfig = RadialControllerConfiguration.GetForCurrentView(); + + if (MenuSuppressionToggleSwitch.IsOn) + { + radialControllerConfig.ActiveControllerWhenMenuIsSuppressed = Controller; + } + + radialControllerConfig.IsMenuSuppressed = MenuSuppressionToggleSwitch.IsOn; } private void Controller_ButtonClicked(RadialController sender, RadialControllerButtonClickedEventArgs args) { - log.Text += "\nButton Clicked "; + log.Text += "\n Button Clicked "; LogContactInfo(args.Contact); ToggleSwitch toggle = toggles[activeItemIndex]; @@ -210,7 +256,7 @@ private void Controller_ButtonClicked(RadialController sender, RadialControllerB private void Controller_RotationChanged(RadialController sender, RadialControllerRotationChangedEventArgs args) { - log.Text += "\nRotation Changed Delta = " + args.RotationDeltaInDegrees; + log.Text += "\n Rotation Changed Delta = " + args.RotationDeltaInDegrees; LogContactInfo(args.Contact); sliders[activeItemIndex].Value += args.RotationDeltaInDegrees; @@ -220,8 +266,8 @@ private void LogContactInfo(RadialControllerScreenContact contact) { if (contact != null) { - log.Text += "\nBounds = " + contact.Bounds.ToString(); - log.Text += "\nPosition = " + contact.Position.ToString(); + log.Text += "\n Bounds = " + contact.Bounds.ToString(); + log.Text += "\n Position = " + contact.Position.ToString(); } } } diff --git a/Samples/RadialController/cs/Scenario2_SystemDefaultMenu.xaml.cs b/Samples/RadialController/cs/Scenario2_SystemDefaultMenu.xaml.cs index 7ca8671da7..46d4c933ec 100644 --- a/Samples/RadialController/cs/Scenario2_SystemDefaultMenu.xaml.cs +++ b/Samples/RadialController/cs/Scenario2_SystemDefaultMenu.xaml.cs @@ -48,7 +48,7 @@ private void Controller_RotationChanged(RadialController sender, RadialControlle log.Text += "\nPosition = " + args.Contact.Position.ToString(); } - Slider1.Value += args.RotationDeltaInDegrees; + slider1.Value += args.RotationDeltaInDegrees; } private void ModifySystemDefaults(object sender, RoutedEventArgs e) diff --git a/Samples/RadialController/shared/Item2.png b/Samples/RadialController/shared/Item2.png index 3f5db01011..bb900a2cdd 100644 Binary files a/Samples/RadialController/shared/Item2.png and b/Samples/RadialController/shared/Item2.png differ diff --git a/Samples/RadialController/shared/Item3.png b/Samples/RadialController/shared/Item3.png index bb900a2cdd..2587274b3c 100644 Binary files a/Samples/RadialController/shared/Item3.png and b/Samples/RadialController/shared/Item3.png differ diff --git a/Samples/RadialController/shared/Item4.png b/Samples/RadialController/shared/Item4.png deleted file mode 100644 index 2587274b3c..0000000000 Binary files a/Samples/RadialController/shared/Item4.png and /dev/null differ diff --git a/Samples/RadialController/shared/Item5.png b/Samples/RadialController/shared/Item5.png deleted file mode 100644 index 889d5b3351..0000000000 Binary files a/Samples/RadialController/shared/Item5.png and /dev/null differ diff --git a/Samples/RadialController/shared/Scenario1_EventAndMenuHookup.xaml b/Samples/RadialController/shared/Scenario1_EventAndMenuHookup.xaml index 6485f4da95..d9e13ce9f6 100644 --- a/Samples/RadialController/shared/Scenario1_EventAndMenuHookup.xaml +++ b/Samples/RadialController/shared/Scenario1_EventAndMenuHookup.xaml @@ -25,12 +25,10 @@ - - @@ -60,63 +58,64 @@ -