From 259ad12119e9d890db3ee93ddabbf2b93b732cdb Mon Sep 17 00:00:00 2001 From: Raymond Chen Date: Wed, 1 Jun 2016 17:00:00 -0700 Subject: [PATCH] Windows 10 RTM Release - June 2016 Update --- README.md | 2 +- Samples/AllJoyn/ConsumerExperiences/README.md | 2 +- Samples/AllJoyn/ProducerExperiences/README.md | 2 +- Samples/AnimationLibrary/README.md | 2 +- Samples/AnimationMetrics/README.md | 2 +- Samples/ApplicationResources/README.md | 2 +- Samples/BarcodeScanner/README.md | 2 +- Samples/BasicFaceDetection/README.md | 2 +- Samples/BasicFaceTracking/README.md | 2 +- Samples/BasicInput/README.md | 2 +- Samples/BluetoothRfcommChat/README.md | 2 +- .../CameraFaceDetection/cpp/MainPage.xaml.cpp | 14 +-- .../CameraFaceDetection/cpp/MainPage.xaml.h | 6 +- Samples/CameraHdr/cpp/MainPage.xaml.cpp | 26 +++--- Samples/CameraHdr/cpp/MainPage.xaml.h | 10 +- .../CameraStarterKit/cpp/MainPage.xaml.cpp | 14 +-- Samples/CameraStarterKit/cpp/MainPage.xaml.h | 6 +- Samples/CashDrawer/README.md | 2 +- Samples/Clipboard/README.md | 2 +- Samples/CommunicationBlockAndFilter/README.md | 2 +- Samples/ComplexInk/README.md | 2 +- Samples/CompositionVisual/README.md | 2 +- Samples/Compression/README.md | 2 +- Samples/ContactCardIntegration/README.md | 2 +- Samples/ContactCards/README.md | 2 +- Samples/ContactPicker/README.md | 2 +- Samples/ContentIndexer/README.md | 2 +- Samples/ContextMenu/README.md | 2 +- Samples/D2DCustomEffects/README.md | 2 +- Samples/D2DPhotoAdjustment/README.md | 2 +- Samples/DataReaderWriter/README.md | 2 +- Samples/DisablingScreenCapture/README.md | 2 +- Samples/DisplayOrientation/README.md | 2 +- Samples/DpiScaling/README.md | 2 +- Samples/FeedReader/README.md | 2 +- Samples/FileAccess/README.md | 2 +- ...OrFolderSoThatYouCanAccessItLater.xaml.cpp | 27 +++--- ...eOrFolderSoThatYouCanAccessItLater.xaml.cs | 8 +- ...kAFileOrFolderSoThatYouCanAccessItLater.js | 31 ++++--- Samples/FilePicker/README.md | 2 +- Samples/FileSearch/README.md | 2 +- Samples/FileThumbnails/README.md | 2 +- Samples/FolderEnumeration/README.md | 2 +- Samples/FullScreenMode/README.md | 2 +- Samples/GlobalizationPreferences/README.md | 2 +- Samples/HomeGroup/README.md | 2 +- Samples/Ink/README.md | 6 +- Samples/JapanesePhoneticAnalysis/README.md | 2 +- Samples/LanguageFont/README.md | 2 +- Samples/LibraryManagement/README.md | 2 +- Samples/LinguisticServices/README.md | 2 +- Samples/Logging/README.md | 2 +- Samples/LowLatencyInput/README.md | 2 +- Samples/MagneticStripeReader/README.md | 2 +- Samples/MediaImport/README.md | 2 +- Samples/MessageDialog/README.md | 2 +- Samples/Nfc/README.md | 2 +- Samples/NfcProvisioner/README.md | 2 +- Samples/NumberFormatting/README.md | 2 +- Samples/Package/README.md | 2 +- Samples/PasswordVault/README.md | 2 +- Samples/PdfDocument/README.md | 2 +- Samples/Playlists/README.md | 2 +- Samples/PosPrinter/README.md | 2 +- .../ProxyStubsForWinRTComponents/README.md | 2 +- Samples/ResizeAppView/README.md | 2 +- Samples/SemanticTextQuery/README.md | 2 +- Samples/ShareSource/README.md | 2 +- Samples/Simple3DGameDX/README.md | 2 +- Samples/Simple3DGameXaml/README.md | 2 +- Samples/SimpleImaging/README.md | 2 +- Samples/SpatialSound/README.md | 2 +- Samples/TextSegmentation/README.md | 2 +- Samples/TitleBar/README.md | 2 +- Samples/Unicode/README.md | 2 +- Samples/UserInfo/README.md | 2 +- Samples/UserInteractionMode/README.md | 2 +- Samples/WRLInProcessWinRTComponent/README.md | 2 +- .../WRLOutOfProcessWinRTComponent/README.md | 2 +- Samples/WebAccountManagement/README.md | 2 +- Samples/XamlAnimatedGif/README.md | 2 +- Samples/XamlAnimatedGif/cs/GifView.xaml.cs | 93 ++++++++++--------- Samples/XamlAutoSuggestBox/README.md | 2 +- Samples/XamlBind/README.md | 2 +- Samples/XamlCommanding/README.md | 2 +- Samples/XamlContextMenu/README.md | 2 +- .../README.md | 2 +- Samples/XamlDeferLoadStrategy/README.md | 2 +- Samples/XamlDragAndDrop/README.md | 2 +- Samples/XamlFocusVisuals/README.md | 2 +- Samples/XamlListView/README.md | 2 +- Samples/XamlListView/cs/Model/Contact.cs | 5 + Samples/XamlMasterDetail/README.md | 2 +- Samples/XamlNavigation/README.md | 2 +- Samples/XamlPivot/README.md | 2 +- Samples/XamlPullToRefresh/README.md | 2 +- Samples/XamlResponsiveTechniques/README.md | 2 +- Samples/XamlStateTriggers/README.md | 2 +- Samples/XamlTailoredMultipleViews/README.md | 2 +- Samples/XamlTransform3DAnimations/README.md | 2 +- Samples/XamlTransform3DParallax/README.md | 2 +- Samples/XamlUIBasics/README.md | 2 +- .../ControlPages/HyperlinkButtonPage.xaml | 4 +- Samples/XamlWebView/README.md | 2 +- .../XamlWebView/cs/Scenario1_NavToUrl.xaml | 2 +- 105 files changed, 219 insertions(+), 215 deletions(-) diff --git a/README.md b/README.md index 6b649ffd..6cc1b85d 100644 --- a/README.md +++ b/README.md @@ -31,7 +31,7 @@ The samples use Linked files in Visual Studio to reduce duplication of common fi **Reminder:** If you unzip individual samples, they will not build due to references to other portions of the ZIP file that were not unzipped. You must unzip the entire archive if you intend to build the samples. -For more info about the programming models, platforms, languages, and APIs demonstrated in these samples, please refer to the guidance, tutorials, and reference topics provided in the Windows 10 documentation available in the [Windows Developer Center](https://dev.windows.com). These samples are provided as-is in order to indicate or demonstrate the functionality of the programming models and feature APIs for Windows. +For more info about the programming models, platforms, languages, and APIs demonstrated in these samples, please refer to the guidance, tutorials, and reference topics provided in the Windows 10 documentation available in the [Windows Developer Center](http://go.microsoft.com/fwlink/?LinkID=532421). These samples are provided as-is in order to indicate or demonstrate the functionality of the programming models and feature APIs for Windows. ## Contributions diff --git a/Samples/AllJoyn/ConsumerExperiences/README.md b/Samples/AllJoyn/ConsumerExperiences/README.md index cff52476..a9ad681f 100644 --- a/Samples/AllJoyn/ConsumerExperiences/README.md +++ b/Samples/AllJoyn/ConsumerExperiences/README.md @@ -19,7 +19,7 @@ Specifically, this sample covers: **Note** The Universal Windows samples require Visual Studio 2015 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 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) diff --git a/Samples/AllJoyn/ProducerExperiences/README.md b/Samples/AllJoyn/ProducerExperiences/README.md index 14ba77ef..8c2ecd2c 100644 --- a/Samples/AllJoyn/ProducerExperiences/README.md +++ b/Samples/AllJoyn/ProducerExperiences/README.md @@ -19,7 +19,7 @@ Specifically, this sample covers: **Note** The Universal Windows samples require Visual Studio 2015 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 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) diff --git a/Samples/AnimationLibrary/README.md b/Samples/AnimationLibrary/README.md index 32846bdd..0e893377 100644 --- a/Samples/AnimationLibrary/README.md +++ b/Samples/AnimationLibrary/README.md @@ -36,7 +36,7 @@ This sample is written in HTML, CSS, and JavaScript. For the XAML version, see t **Note** The Universal Windows app samples require Visual Studio 2015 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 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) diff --git a/Samples/AnimationMetrics/README.md b/Samples/AnimationMetrics/README.md index 45f9c245..ac8f396c 100644 --- a/Samples/AnimationMetrics/README.md +++ b/Samples/AnimationMetrics/README.md @@ -14,7 +14,7 @@ The sample shows the metrics involved in the following scenarios: **Note** The Universal Windows app samples require Visual Studio 2015 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 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) diff --git a/Samples/ApplicationResources/README.md b/Samples/ApplicationResources/README.md index 5065a3d6..bf00c854 100644 --- a/Samples/ApplicationResources/README.md +++ b/Samples/ApplicationResources/README.md @@ -13,7 +13,7 @@ We encourage you to separate your resources, such as strings and files, from you **Note** The Windows universal samples require Visual Studio 2015 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 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) diff --git a/Samples/BarcodeScanner/README.md b/Samples/BarcodeScanner/README.md index a98db996..01163245 100644 --- a/Samples/BarcodeScanner/README.md +++ b/Samples/BarcodeScanner/README.md @@ -36,7 +36,7 @@ In addition to the devices listed, you can use barcode scanners from various man **Note** The Universal Windows app samples require Visual Studio 2015 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 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) diff --git a/Samples/BasicFaceDetection/README.md b/Samples/BasicFaceDetection/README.md index 501506e7..b426dc90 100644 --- a/Samples/BasicFaceDetection/README.md +++ b/Samples/BasicFaceDetection/README.md @@ -17,7 +17,7 @@ Specifically, this sample shows how to: **Note** The Windows universal samples require Visual Studio 2015 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 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) diff --git a/Samples/BasicFaceTracking/README.md b/Samples/BasicFaceTracking/README.md index 0f23f3fb..009e7281 100644 --- a/Samples/BasicFaceTracking/README.md +++ b/Samples/BasicFaceTracking/README.md @@ -17,7 +17,7 @@ Specifically, this sample shows how to: **Note** The Windows universal samples require Visual Studio 2015 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 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) diff --git a/Samples/BasicInput/README.md b/Samples/BasicInput/README.md index 0ac9eaad..b24ecbf9 100644 --- a/Samples/BasicInput/README.md +++ b/Samples/BasicInput/README.md @@ -17,7 +17,7 @@ Specifically, this sample shows how to: **Note** The Windows universal samples require Visual Studio 2015 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 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) diff --git a/Samples/BluetoothRfcommChat/README.md b/Samples/BluetoothRfcommChat/README.md index c2594a3a..0ffdde46 100644 --- a/Samples/BluetoothRfcommChat/README.md +++ b/Samples/BluetoothRfcommChat/README.md @@ -22,7 +22,7 @@ to communicate over sockets. **Note** The Windows universal samples require Visual Studio 2015 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 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) diff --git a/Samples/CameraFaceDetection/cpp/MainPage.xaml.cpp b/Samples/CameraFaceDetection/cpp/MainPage.xaml.cpp index ed9fce14..c9ff7988 100644 --- a/Samples/CameraFaceDetection/cpp/MainPage.xaml.cpp +++ b/Samples/CameraFaceDetection/cpp/MainPage.xaml.cpp @@ -450,29 +450,29 @@ task MainPage::ReencodeAndSavePhotoAsync(Streams::IRandomAccessStream^ str { // Using this state variable to pass multiple values through our task chain ReencodeState^ state = ref new ReencodeState(); - state->_orientation = photoOrientation; + state->Orientation = photoOrientation; return create_task(BitmapDecoder::CreateAsync(stream)) .then([state](BitmapDecoder^ decoder) { - state->_decoder = decoder; + state->Decoder = decoder; return create_task(KnownFolders::PicturesLibrary->CreateFileAsync("SimplePhoto.jpg", CreationCollisionOption::GenerateUniqueName)); }).then([](StorageFile^ file) { return create_task(file->OpenAsync(FileAccessMode::ReadWrite)); }).then([state](Streams::IRandomAccessStream^ outputStream) { - return create_task(BitmapEncoder::CreateForTranscodingAsync(outputStream, state->_decoder)); + return create_task(BitmapEncoder::CreateForTranscodingAsync(outputStream, state->Decoder)); }).then([state](BitmapEncoder^ encoder) { - state->_encoder = encoder; + state->Encoder = encoder; auto properties = ref new Windows::Graphics::Imaging::BitmapPropertySet(); - properties->Insert("System.Photo.Orientation", ref new BitmapTypedValue((unsigned short)state->_orientation, Windows::Foundation::PropertyType::UInt16)); + properties->Insert("System.Photo.Orientation", ref new BitmapTypedValue((unsigned short)state->Orientation, Windows::Foundation::PropertyType::UInt16)); - return create_task(state->_encoder->BitmapProperties->SetPropertiesAsync(properties)); + return create_task(state->Encoder->BitmapProperties->SetPropertiesAsync(properties)); }).then([state]() { - return state->_encoder->FlushAsync(); + return state->Encoder->FlushAsync(); }); } diff --git a/Samples/CameraFaceDetection/cpp/MainPage.xaml.h b/Samples/CameraFaceDetection/cpp/MainPage.xaml.h index 36b46c0f..678b6ce8 100644 --- a/Samples/CameraFaceDetection/cpp/MainPage.xaml.h +++ b/Samples/CameraFaceDetection/cpp/MainPage.xaml.h @@ -18,9 +18,9 @@ namespace FaceDetection ref class ReencodeState sealed { internal: - Windows::Graphics::Imaging::BitmapDecoder^ _decoder; - Windows::Graphics::Imaging::BitmapEncoder^ _encoder; - Windows::Storage::FileProperties::PhotoOrientation _orientation; + Windows::Graphics::Imaging::BitmapDecoder^ Decoder; + Windows::Graphics::Imaging::BitmapEncoder^ Encoder; + Windows::Storage::FileProperties::PhotoOrientation Orientation; }; public ref class MainPage sealed diff --git a/Samples/CameraHdr/cpp/MainPage.xaml.cpp b/Samples/CameraHdr/cpp/MainPage.xaml.cpp index b8579894..ff19ba25 100644 --- a/Samples/CameraHdr/cpp/MainPage.xaml.cpp +++ b/Samples/CameraHdr/cpp/MainPage.xaml.cpp @@ -444,14 +444,14 @@ task MainPage::TakeHdrPhotoAsync() auto context = ref new AdvancedCaptureContext(); // Create file based off the current time - context->_captureFileName = L"SimplePhoto_" + GetTimeStr() + L".jpg";; - context->_captureOrientation = ConvertOrientationToPhotoOrientation(GetCameraOrientation()); + context->CaptureFileName = L"SimplePhoto_" + GetTimeStr() + L".jpg"; + context->CaptureOrientation = ConvertOrientationToPhotoOrientation(GetCameraOrientation()); return create_task(_advancedCapture->CaptureAsync(context)) .then([this, context](Capture::AdvancedCapturedPhoto^ photo) { WriteLine("HDR photo taken!"); - return ReencodeAndSavePhotoAsync(photo->Frame, context->_captureFileName, context->_captureOrientation); + return ReencodeAndSavePhotoAsync(photo->Frame, context->CaptureFileName, context->CaptureOrientation); }).then([this](task previousTask) { try @@ -509,29 +509,29 @@ task MainPage::ReencodeAndSavePhotoAsync(Streams::IRandomAccessStream^ str { // Using this state variable to pass multiple values through our task chain ReencodeState^ state = ref new ReencodeState(); - state->_orientation = photoOrientation; + state->Orientation = photoOrientation; return create_task(BitmapDecoder::CreateAsync(stream)) .then([state, fileName](BitmapDecoder^ decoder) { - state->_decoder = decoder; + state->Decoder = decoder; return create_task(KnownFolders::PicturesLibrary->CreateFileAsync(fileName, CreationCollisionOption::GenerateUniqueName)); }).then([](StorageFile^ file) { return create_task(file->OpenAsync(FileAccessMode::ReadWrite)); }).then([state](Streams::IRandomAccessStream^ outputStream) { - return create_task(BitmapEncoder::CreateForTranscodingAsync(outputStream, state->_decoder)); + return create_task(BitmapEncoder::CreateForTranscodingAsync(outputStream, state->Decoder)); }).then([state](BitmapEncoder^ encoder) { - state->_encoder = encoder; + state->Encoder = encoder; auto properties = ref new Windows::Graphics::Imaging::BitmapPropertySet(); - properties->Insert("System.Photo.Orientation", ref new BitmapTypedValue((unsigned short)state->_orientation, Windows::Foundation::PropertyType::UInt16)); + properties->Insert("System.Photo.Orientation", ref new BitmapTypedValue((unsigned short)state->Orientation, Windows::Foundation::PropertyType::UInt16)); - return create_task(state->_encoder->BitmapProperties->SetPropertiesAsync(properties)); + return create_task(state->Encoder->BitmapProperties->SetPropertiesAsync(properties)); }).then([state]() { - return state->_encoder->FlushAsync(); + return state->Encoder->FlushAsync(); }); } @@ -1005,14 +1005,14 @@ void MainPage::AdvancedCapture_OptionalReferencePhotoCaptured(Capture::AdvancedP // Retrieve the context (i.e. what capture does this belong to?) auto context = static_cast(args->Context); - WriteLine("AdvancedCapture_OptionalReferencePhotoCaptured for " + context->_captureFileName); + WriteLine("AdvancedCapture_OptionalReferencePhotoCaptured for " + context->CaptureFileName); // Remove "_HDR" from the name of the capture to create the name of the reference std::wstringstream fileName; - fileName << context->_captureFileName->Data(); + fileName << context->CaptureFileName->Data(); StringReplace(fileName.str(), std::wstring(L"_HDR"), std::wstring(L"")); - ReencodeAndSavePhotoAsync(args->Frame, ref new String(fileName.str().c_str()), context->_captureOrientation); + ReencodeAndSavePhotoAsync(args->Frame, ref new String(fileName.str().c_str()), context->CptureOrientation); } /// diff --git a/Samples/CameraHdr/cpp/MainPage.xaml.h b/Samples/CameraHdr/cpp/MainPage.xaml.h index e90b7c1d..3f09e2de 100644 --- a/Samples/CameraHdr/cpp/MainPage.xaml.h +++ b/Samples/CameraHdr/cpp/MainPage.xaml.h @@ -18,9 +18,9 @@ namespace CameraHdr ref class ReencodeState sealed { internal: - Windows::Graphics::Imaging::BitmapDecoder^ _decoder; - Windows::Graphics::Imaging::BitmapEncoder^ _encoder; - Windows::Storage::FileProperties::PhotoOrientation _orientation; + Windows::Graphics::Imaging::BitmapDecoder^ Decoder; + Windows::Graphics::Imaging::BitmapEncoder^ Encoder; + Windows::Storage::FileProperties::PhotoOrientation Orientation; }; /// @@ -29,8 +29,8 @@ namespace CameraHdr ref class AdvancedCaptureContext { internal: - Platform::String^ _captureFileName; - Windows::Storage::FileProperties::PhotoOrientation _captureOrientation; + Platform::String^ CaptureFileName; + Windows::Storage::FileProperties::PhotoOrientation CaptureOrientation; }; public ref class MainPage sealed diff --git a/Samples/CameraStarterKit/cpp/MainPage.xaml.cpp b/Samples/CameraStarterKit/cpp/MainPage.xaml.cpp index 545f1b79..e074e791 100644 --- a/Samples/CameraStarterKit/cpp/MainPage.xaml.cpp +++ b/Samples/CameraStarterKit/cpp/MainPage.xaml.cpp @@ -384,29 +384,29 @@ task MainPage::ReencodeAndSavePhotoAsync(Streams::IRandomAccessStream^ str { // Using this state variable to pass multiple values through our task chain ReencodeState^ state = ref new ReencodeState(); - state->_orientation = photoOrientation; + state->Orientation = photoOrientation; return create_task(BitmapDecoder::CreateAsync(stream)) .then([state](BitmapDecoder^ decoder) { - state->_decoder = decoder; + state->Decoder = decoder; return create_task(KnownFolders::PicturesLibrary->CreateFileAsync("SimplePhoto.jpg", CreationCollisionOption::GenerateUniqueName)); }).then([](StorageFile^ file) { return create_task(file->OpenAsync(FileAccessMode::ReadWrite)); }).then([state](Streams::IRandomAccessStream^ outputStream) { - return create_task(BitmapEncoder::CreateForTranscodingAsync(outputStream, state->_decoder)); + return create_task(BitmapEncoder::CreateForTranscodingAsync(outputStream, state->Decoder)); }).then([state](BitmapEncoder^ encoder) { - state->_encoder = encoder; + state->Encoder = encoder; auto properties = ref new Windows::Graphics::Imaging::BitmapPropertySet(); - properties->Insert("System.Photo.Orientation", ref new BitmapTypedValue((unsigned short)state->_orientation, Windows::Foundation::PropertyType::UInt16)); + properties->Insert("System.Photo.Orientation", ref new BitmapTypedValue((unsigned short)state->Orientation, Windows::Foundation::PropertyType::UInt16)); - return create_task(state->_encoder->BitmapProperties->SetPropertiesAsync(properties)); + return create_task(state->Encoder->BitmapProperties->SetPropertiesAsync(properties)); }).then([state]() { - return state->_encoder->FlushAsync(); + return state->Encoder->FlushAsync(); }); } diff --git a/Samples/CameraStarterKit/cpp/MainPage.xaml.h b/Samples/CameraStarterKit/cpp/MainPage.xaml.h index c709c414..d2056609 100644 --- a/Samples/CameraStarterKit/cpp/MainPage.xaml.h +++ b/Samples/CameraStarterKit/cpp/MainPage.xaml.h @@ -18,9 +18,9 @@ namespace CameraStarterKit ref class ReencodeState sealed { internal: - Windows::Graphics::Imaging::BitmapDecoder^ _decoder; - Windows::Graphics::Imaging::BitmapEncoder^ _encoder; - Windows::Storage::FileProperties::PhotoOrientation _orientation; + Windows::Graphics::Imaging::BitmapDecoder^ Decoder; + Windows::Graphics::Imaging::BitmapEncoder^ Encoder; + Windows::Storage::FileProperties::PhotoOrientation Orientation; }; public ref class MainPage sealed diff --git a/Samples/CashDrawer/README.md b/Samples/CashDrawer/README.md index 5678087a..be84c3eb 100644 --- a/Samples/CashDrawer/README.md +++ b/Samples/CashDrawer/README.md @@ -24,7 +24,7 @@ Specifically, this sample shows how to: **Note** The Windows universal samples require Visual Studio 2015 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 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) diff --git a/Samples/Clipboard/README.md b/Samples/Clipboard/README.md index 7352dd40..05882995 100644 --- a/Samples/Clipboard/README.md +++ b/Samples/Clipboard/README.md @@ -17,7 +17,7 @@ This sample covers the following: **Note** The Windows universal samples require Visual Studio 2015 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 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) diff --git a/Samples/CommunicationBlockAndFilter/README.md b/Samples/CommunicationBlockAndFilter/README.md index 39ace432..034f18b4 100755 --- a/Samples/CommunicationBlockAndFilter/README.md +++ b/Samples/CommunicationBlockAndFilter/README.md @@ -30,7 +30,7 @@ a communication blocking and filtering app must declare. **Note** The Windows universal samples require Visual Studio 2015 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 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) diff --git a/Samples/ComplexInk/README.md b/Samples/ComplexInk/README.md index f05a04d7..e1362b76 100644 --- a/Samples/ComplexInk/README.md +++ b/Samples/ComplexInk/README.md @@ -23,7 +23,7 @@ Specifically, this sample covers using the [**Windows.UI.Input.Inking**](http:// - All buttons and menu choices can be activated with mouse, pen, or touch. - Message box at the bottom of the page will report any events generated by current active inking input devices. -To obtain information about Windows 10 development, go to the [Windows Dev Center](https://dev.windows.com) +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) diff --git a/Samples/CompositionVisual/README.md b/Samples/CompositionVisual/README.md index 7e536f4f..2b908519 100644 --- a/Samples/CompositionVisual/README.md +++ b/Samples/CompositionVisual/README.md @@ -27,7 +27,7 @@ The sample demonstrates the following: **Note** The Universal Windows app samples require Visual Studio 2015 to build and Windows 10 to execute. (See additional discussion below under **Prerequisites**.) -To obtain information about Windows 10 development, go to the [Windows Dev Center](https://dev.windows.com). +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). diff --git a/Samples/Compression/README.md b/Samples/Compression/README.md index 708c5f34..ce8cc9c1 100644 --- a/Samples/Compression/README.md +++ b/Samples/Compression/README.md @@ -20,7 +20,7 @@ Specifically, this sample shows the following: - Read the compressed data from a file. - Decompress the data. -To obtain the Windows 10 developer tools preview, go to [Windows 10 developer tools](https://dev.windows.com/en-us/downloads/windows-10-developer-tools). +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) ## Operating system requirements diff --git a/Samples/ContactCardIntegration/README.md b/Samples/ContactCardIntegration/README.md index 92935f7e..0a350668 100644 --- a/Samples/ContactCardIntegration/README.md +++ b/Samples/ContactCardIntegration/README.md @@ -9,7 +9,7 @@ This sample shows how to integrate your app into the People App's contact card a **Note** The Windows universal samples require Visual Studio 2015 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 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) diff --git a/Samples/ContactCards/README.md b/Samples/ContactCards/README.md index 2a1efd2e..fc8f4c45 100644 --- a/Samples/ContactCards/README.md +++ b/Samples/ContactCards/README.md @@ -38,7 +38,7 @@ The samples also demonstrate how to detect support for mini contact cards. **Note** The Universal Windows app samples require Visual Studio 2015 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 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) diff --git a/Samples/ContactPicker/README.md b/Samples/ContactPicker/README.md index fc1ce0bf..4a7108c9 100644 --- a/Samples/ContactPicker/README.md +++ b/Samples/ContactPicker/README.md @@ -18,7 +18,7 @@ The sample demonstrates the following tasks: **Note** The Windows universal samples require Visual Studio 2015 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 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) diff --git a/Samples/ContentIndexer/README.md b/Samples/ContentIndexer/README.md index 001032a0..913f3261 100644 --- a/Samples/ContentIndexer/README.md +++ b/Samples/ContentIndexer/README.md @@ -39,7 +39,7 @@ The sample demonstrates these tasks: **Note** The Windows universal samples require Visual Studio 2015 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 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) diff --git a/Samples/ContextMenu/README.md b/Samples/ContextMenu/README.md index 851d260a..ab2d7e3b 100644 --- a/Samples/ContextMenu/README.md +++ b/Samples/ContextMenu/README.md @@ -22,7 +22,7 @@ Additional APIs for this sample include: **Note** The Windows universal samples require Visual Studio 2015 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 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) diff --git a/Samples/D2DCustomEffects/README.md b/Samples/D2DCustomEffects/README.md index 14ea6a55..8d0059ad 100644 --- a/Samples/D2DCustomEffects/README.md +++ b/Samples/D2DCustomEffects/README.md @@ -15,7 +15,7 @@ Specifically, this sample shows how to: **Note** The Windows universal samples require Visual Studio 2015 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 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) diff --git a/Samples/D2DPhotoAdjustment/README.md b/Samples/D2DPhotoAdjustment/README.md index 561d7aec..f6dda133 100644 --- a/Samples/D2DPhotoAdjustment/README.md +++ b/Samples/D2DPhotoAdjustment/README.md @@ -23,7 +23,7 @@ This sample uses the following Direct2D effects: **Note** The Windows universal samples require Visual Studio 2015 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 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) diff --git a/Samples/DataReaderWriter/README.md b/Samples/DataReaderWriter/README.md index 3633dc97..8994aa9f 100644 --- a/Samples/DataReaderWriter/README.md +++ b/Samples/DataReaderWriter/README.md @@ -12,7 +12,7 @@ This sample shows how to use the [**DataReader**](http://msdn.microsoft.com/libr **Note** The Windows universal samples require Visual Studio 2015 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 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) diff --git a/Samples/DisablingScreenCapture/README.md b/Samples/DisablingScreenCapture/README.md index 74ab349a..35e082d7 100644 --- a/Samples/DisablingScreenCapture/README.md +++ b/Samples/DisablingScreenCapture/README.md @@ -20,7 +20,7 @@ The sample consists of the following scenarios: **Note** The Windows universal samples require Visual Studio 2015 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 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) diff --git a/Samples/DisplayOrientation/README.md b/Samples/DisplayOrientation/README.md index 6a6e75f5..81ba1423 100644 --- a/Samples/DisplayOrientation/README.md +++ b/Samples/DisplayOrientation/README.md @@ -23,7 +23,7 @@ see the Orientation Changed scenario of the [the Accelerometer sample](../Accele **Note** The Windows universal samples require Visual Studio 2015 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 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) diff --git a/Samples/DpiScaling/README.md b/Samples/DpiScaling/README.md index a86733db..d28c10e3 100644 --- a/Samples/DpiScaling/README.md +++ b/Samples/DpiScaling/README.md @@ -23,7 +23,7 @@ Important APIs in this sample include: **Note** The Windows universal samples require Visual Studio 2015 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 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) diff --git a/Samples/FeedReader/README.md b/Samples/FeedReader/README.md index ad80d460..f024ae3b 100644 --- a/Samples/FeedReader/README.md +++ b/Samples/FeedReader/README.md @@ -67,7 +67,7 @@ Here are some general Windows Store app features demonstrated by this app. **Note** The Windows universal samples require Visual Studio 2015 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 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) diff --git a/Samples/FileAccess/README.md b/Samples/FileAccess/README.md index 07ff5305..214ac325 100644 --- a/Samples/FileAccess/README.md +++ b/Samples/FileAccess/README.md @@ -63,7 +63,7 @@ The sample demonstrates these tasks: **Note** The Windows universal samples require Visual Studio 2015 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 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) diff --git a/Samples/FileAccess/cpp/Scenario7_TrackAFileOrFolderSoThatYouCanAccessItLater.xaml.cpp b/Samples/FileAccess/cpp/Scenario7_TrackAFileOrFolderSoThatYouCanAccessItLater.xaml.cpp index ddbfe2fc..8d79e55a 100644 --- a/Samples/FileAccess/cpp/Scenario7_TrackAFileOrFolderSoThatYouCanAccessItLater.xaml.cpp +++ b/Samples/FileAccess/cpp/Scenario7_TrackAFileOrFolderSoThatYouCanAccessItLater.xaml.cpp @@ -109,21 +109,17 @@ void Scenario7::OpenFromListButton_Click(Object^ sender, RoutedEventArgs^ e) { if (rootPage->MruToken != nullptr) { - // Open the file via the token that was stored when adding this file into the MRU list - fileTask = create_task(StorageApplicationPermissions::MostRecentlyUsedList->GetFileAsync(rootPage->MruToken)).then([this](task task) + // When the MRU becomes full, older entries are automatically deleted, so check if the + // token is still valid before using it. + if (StorageApplicationPermissions::MostRecentlyUsedList->ContainsItem(rootPage->MruToken)) { - StorageFile^ file = nullptr; - try - { - file = task.get(); - } - catch (InvalidArgumentException^) - { - // When the MRU becomes full, older entries are automatically deleted. - rootPage->NotifyUser("The token is no longer valid.", NotifyType::ErrorMessage); - } - return file; - }); + // Open the file via the token that was stored when adding this file into the MRU list + fileTask = create_task(StorageApplicationPermissions::MostRecentlyUsedList->GetFileAsync(rootPage->MruToken)); + } + else + { + rootPage->NotifyUser("The token is no longer valid.", NotifyType::ErrorMessage); + } } else { @@ -134,7 +130,8 @@ void Scenario7::OpenFromListButton_Click(Object^ sender, RoutedEventArgs^ e) { if (rootPage->FalToken != nullptr) { - // Open the file via the token that was stored when adding this file into the FAL list + // Open the file via the token that was stored when adding this file into the FAL list. + // The token remains valid until we explicitly remove it. fileTask = create_task(StorageApplicationPermissions::FutureAccessList->GetFileAsync(rootPage->FalToken)); } else diff --git a/Samples/FileAccess/cs/Scenario7_TrackAFileOrFolderSoThatYouCanAccessItLater.xaml.cs b/Samples/FileAccess/cs/Scenario7_TrackAFileOrFolderSoThatYouCanAccessItLater.xaml.cs index 595c3da7..aa32554b 100644 --- a/Samples/FileAccess/cs/Scenario7_TrackAFileOrFolderSoThatYouCanAccessItLater.xaml.cs +++ b/Samples/FileAccess/cs/Scenario7_TrackAFileOrFolderSoThatYouCanAccessItLater.xaml.cs @@ -116,14 +116,15 @@ namespace SDKTemplate { if (rootPage.mruToken != null) { - try + // When the MRU becomes full, older entries are automatically deleted, so check if the + // token is still valid before using it. + if (StorageApplicationPermissions.MostRecentlyUsedList.ContainsItem(rootPage.mruToken)) { // Open the file via the token that was stored when adding this file into the MRU list file = await StorageApplicationPermissions.MostRecentlyUsedList.GetFileAsync(rootPage.mruToken); } - catch (ArgumentException) + else { - // When the MRU becomes full, older entries are automatically deleted. rootPage.NotifyUser("The token is no longer valid.", NotifyType.ErrorMessage); } } @@ -137,6 +138,7 @@ namespace SDKTemplate if (rootPage.falToken != null) { // Open the file via the token that was stored when adding this file into the FAL list. + // The token remains valid until we explicitly remove it. file = await StorageApplicationPermissions.FutureAccessList.GetFileAsync(rootPage.falToken); } else diff --git a/Samples/FileAccess/js/js/scenario7_TrackAFileOrFolderSoThatYouCanAccessItLater.js b/Samples/FileAccess/js/js/scenario7_TrackAFileOrFolderSoThatYouCanAccessItLater.js index 2651899d..9c10f34d 100644 --- a/Samples/FileAccess/js/js/scenario7_TrackAFileOrFolderSoThatYouCanAccessItLater.js +++ b/Samples/FileAccess/js/js/scenario7_TrackAFileOrFolderSoThatYouCanAccessItLater.js @@ -6,6 +6,8 @@ var FA_E_MAX_PERSISTED_ITEMS_REACHED = 0x80270220 | 0; var E_INVALIDARG = 0x80070057 | 0; + var StorageApplicationPermissions = Windows.Storage.AccessCache.StorageApplicationPermissions; + var page = WinJS.UI.Pages.define("/html/scenario7_TrackAFileOrFolderSoThatYouCanAccessItLater.html", { ready: function (element, options) { document.getElementById("addToList").addEventListener("click", addToList, false); @@ -23,12 +25,12 @@ var visibility = systemMRUcheckbox.checked ? Windows.Storage.AccessCache.RecentStorageItemVisibility.appAndSystem : Windows.Storage.AccessCache.RecentStorageItemVisibility.appOnly; - SdkSample.mruToken = Windows.Storage.AccessCache.StorageApplicationPermissions.mostRecentlyUsedList.add(SdkSample.sampleFile, SdkSample.sampleFile.name, + SdkSample.mruToken = StorageApplicationPermissions.mostRecentlyUsedList.add(SdkSample.sampleFile, SdkSample.sampleFile.name, visibility); WinJS.log && WinJS.log("The file '" + SdkSample.sampleFile.name + "' was added to the MRU list and a token was stored.", "sample", "status"); } else { try { - SdkSample.falToken = Windows.Storage.AccessCache.StorageApplicationPermissions.futureAccessList.add(SdkSample.sampleFile, SdkSample.sampleFile.name); + SdkSample.falToken = StorageApplicationPermissions.futureAccessList.add(SdkSample.sampleFile, SdkSample.sampleFile.name); WinJS.log && WinJS.log("The file '" + SdkSample.sampleFile.name + "' was added to the FAL list and a token was stored.", "sample", "status"); } catch (error) { if (error.number == FA_E_MAX_PERSISTED_ITEMS_REACHED) { @@ -50,10 +52,10 @@ var MRUradio = document.getElementById("MRUradio"); if (MRUradio.checked) { listName = "MRU"; - entries = Windows.Storage.AccessCache.StorageApplicationPermissions.mostRecentlyUsedList.entries; + entries = StorageApplicationPermissions.mostRecentlyUsedList.entries; } else { listName = "FAL"; - entries = Windows.Storage.AccessCache.StorageApplicationPermissions.futureAccessList.entries; + entries = StorageApplicationPermissions.futureAccessList.entries; } if (entries.size > 0) { @@ -73,24 +75,23 @@ var MRUradio = document.getElementById("MRUradio"); if (MRUradio.checked) { if (SdkSample.mruToken !== null) { - // Open the 'sample.dat' via the token that was stored when adding this file into the MRU list - try { - fileTask = Windows.Storage.AccessCache.StorageApplicationPermissions.mostRecentlyUsedList.getFileAsync(SdkSample.mruToken); - } catch (error) { + // When the MRU becomes full, older entries are automatically deleted, so check if the + // token is still valid before using it. + if (StorageApplicationPermissions.mostRecentlyUsedList.containsItem(SdkSample.mruToken)) { + // Open the 'sample.dat' via the token that was stored when adding this file into the MRU list. + fileTask = StorageApplicationPermissions.mostRecentlyUsedList.getFileAsync(SdkSample.mruToken); + } else { // When the MRU becomes full, older entries are automatically deleted. - if (error.number == E_INVALIDARG) { - WinJS.log && WinJS.log("The token is no longer valid.", "sample", "error"); - } else { - throw error; - } + WinJS.log && WinJS.log("The token is no longer valid.", "sample", "error"); } } else { WinJS.log && WinJS.log("This operation requires a token. Add file to the MRU list first.", "sample", "error"); } } else { if (SdkSample.falToken !== null) { - // Open the 'sample.dat' via the token that was stored when adding this file into the FAL list - fileTask = Windows.Storage.AccessCache.StorageApplicationPermissions.futureAccessList.getFileAsync(SdkSample.falToken); + // Open the 'sample.dat' via the token that was stored when adding this file into the FAL list. + // The token remains valid until we explicitly remove it. + fileTask = StorageApplicationPermissions.futureAccessList.getFileAsync(SdkSample.falToken); } else { WinJS.log && WinJS.log("This operation requires a token. Add file to the FAL list first.", "sample", "error"); } diff --git a/Samples/FilePicker/README.md b/Samples/FilePicker/README.md index 78d16751..a27c6491 100644 --- a/Samples/FilePicker/README.md +++ b/Samples/FilePicker/README.md @@ -41,7 +41,7 @@ To learn more about accessing and saving files and folders through file pickers, **Note** The Windows universal samples require Visual Studio 2015 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 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) diff --git a/Samples/FileSearch/README.md b/Samples/FileSearch/README.md index 2e82770c..3a726d28 100644 --- a/Samples/FileSearch/README.md +++ b/Samples/FileSearch/README.md @@ -17,7 +17,7 @@ For a walkthrough, see [Quickstart: Accessing files programmatically](http://msd **Note** The Windows universal samples require Visual Studio 2015 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 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) diff --git a/Samples/FileThumbnails/README.md b/Samples/FileThumbnails/README.md index 4e12a691..6211388c 100644 --- a/Samples/FileThumbnails/README.md +++ b/Samples/FileThumbnails/README.md @@ -35,7 +35,7 @@ Important APIs in this sample include: **Note** The Windows universal samples require Visual Studio 2015 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 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) diff --git a/Samples/FolderEnumeration/README.md b/Samples/FolderEnumeration/README.md index 3360487b..0d8e8646 100644 --- a/Samples/FolderEnumeration/README.md +++ b/Samples/FolderEnumeration/README.md @@ -41,7 +41,7 @@ Additional important APIs in this sample include: **Note** The Windows universal samples require Visual Studio 2015 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 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) diff --git a/Samples/FullScreenMode/README.md b/Samples/FullScreenMode/README.md index 652d9657..c7098955 100644 --- a/Samples/FullScreenMode/README.md +++ b/Samples/FullScreenMode/README.md @@ -17,7 +17,7 @@ The sample shows the following techniques: **Note** The Windows universal samples require Visual Studio 2015 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 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) diff --git a/Samples/GlobalizationPreferences/README.md b/Samples/GlobalizationPreferences/README.md index 325a44c9..31cab98b 100644 --- a/Samples/GlobalizationPreferences/README.md +++ b/Samples/GlobalizationPreferences/README.md @@ -35,7 +35,7 @@ class also enables the caller to obtain details about a given geographic region **Note** The Windows universal samples require Visual Studio 2015 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 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) diff --git a/Samples/HomeGroup/README.md b/Samples/HomeGroup/README.md index db7424a1..a206bfe7 100644 --- a/Samples/HomeGroup/README.md +++ b/Samples/HomeGroup/README.md @@ -16,7 +16,7 @@ This sample covers the following processes: **Note** The Windows universal samples require Visual Studio 2015 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 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) diff --git a/Samples/Ink/README.md b/Samples/Ink/README.md index 388fc96d..312b078d 100644 --- a/Samples/Ink/README.md +++ b/Samples/Ink/README.md @@ -37,14 +37,12 @@ Specifically, this sample covers using the [**Windows.UI.Input.Inking**](http:// - Use **Save** and **Load** to read and write Ink Serialized Format (ISF) files to the Libraries or Pictures folder or both. - All buttons and menu choices can be activated with mouse, pen, or touch. -To obtain information about Windows 10 development, go to the [Windows Dev Center](https://dev.windows.com) +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) ## Related topics -[Getting started with apps](https://dev.windows.com/getstarted) - [Responding to pen and stylus interactions](http://msdn.microsoft.com/library/windows/apps/hh700425) [Responding to user interaction](http://msdn.microsoft.com/library/windows/apps/hh700412) @@ -76,4 +74,4 @@ To obtain information about Microsoft Visual Studio 2015 and the tools for devel ## Run the sample -To debug the app and then run it, press F5 or use **Debug** \> **Start Debugging**. To run the app without debugging, press Ctrl+F5 or use **Debug** \> **Start Without Debugging**. \ No newline at end of file +To debug the app and then run it, press F5 or use **Debug** \> **Start Debugging**. To run the app without debugging, press Ctrl+F5 or use **Debug** \> **Start Without Debugging**. diff --git a/Samples/JapanesePhoneticAnalysis/README.md b/Samples/JapanesePhoneticAnalysis/README.md index ff5f9e8d..cd7d4d8c 100644 --- a/Samples/JapanesePhoneticAnalysis/README.md +++ b/Samples/JapanesePhoneticAnalysis/README.md @@ -16,7 +16,7 @@ The sample demonstrates these tasks: **Note** The Universal Windows app samples require Visual Studio 2015 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 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) diff --git a/Samples/LanguageFont/README.md b/Samples/LanguageFont/README.md index beb36f5c..b48d97fd 100644 --- a/Samples/LanguageFont/README.md +++ b/Samples/LanguageFont/README.md @@ -16,7 +16,7 @@ Be aware that if the content to which the font is applied contains text that is **Note** The Windows universal samples require Visual Studio 2015 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 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) diff --git a/Samples/LibraryManagement/README.md b/Samples/LibraryManagement/README.md index be248cb3..212bceb7 100644 --- a/Samples/LibraryManagement/README.md +++ b/Samples/LibraryManagement/README.md @@ -23,7 +23,7 @@ The sample demonstrates these tasks: **Note** The Windows universal samples require Visual Studio 2015 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 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) diff --git a/Samples/LinguisticServices/README.md b/Samples/LinguisticServices/README.md index af3705a8..392a080b 100644 --- a/Samples/LinguisticServices/README.md +++ b/Samples/LinguisticServices/README.md @@ -25,7 +25,7 @@ The scenarios demonstrate the use of the these services: **Note** The Windows universal samples require Visual Studio 2015 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 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) diff --git a/Samples/Logging/README.md b/Samples/Logging/README.md index 11ccfc34..123ad771 100644 --- a/Samples/Logging/README.md +++ b/Samples/Logging/README.md @@ -38,7 +38,7 @@ 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. -To obtain information about Windows 10 development, go to the [Windows Dev Center](https://dev.windows.com) +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) diff --git a/Samples/LowLatencyInput/README.md b/Samples/LowLatencyInput/README.md index f7ecd8ed..ea439013 100644 --- a/Samples/LowLatencyInput/README.md +++ b/Samples/LowLatencyInput/README.md @@ -17,7 +17,7 @@ Specifically, this sample shows: **Note** The Windows universal samples require Visual Studio 2015 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 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) diff --git a/Samples/MagneticStripeReader/README.md b/Samples/MagneticStripeReader/README.md index eb398e7b..e2045ed8 100644 --- a/Samples/MagneticStripeReader/README.md +++ b/Samples/MagneticStripeReader/README.md @@ -39,7 +39,7 @@ The following list shows the magnetic stripe readers that were used with this co **Note** The Windows universal samples require Visual Studio 2015 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 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) diff --git a/Samples/MediaImport/README.md b/Samples/MediaImport/README.md index 55df0d38..d646f0ac 100644 --- a/Samples/MediaImport/README.md +++ b/Samples/MediaImport/README.md @@ -18,7 +18,7 @@ Important APIs in this sample include: **Note** The Windows universal samples require Visual Studio 2015 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 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) diff --git a/Samples/MessageDialog/README.md b/Samples/MessageDialog/README.md index 26f9ca0e..54008a65 100644 --- a/Samples/MessageDialog/README.md +++ b/Samples/MessageDialog/README.md @@ -11,7 +11,7 @@ The [**Windows.UI.Popups**](http://msdn.microsoft.com/library/windows/apps/br242 **Note** The Windows universal samples require Visual Studio 2015 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 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) diff --git a/Samples/Nfc/README.md b/Samples/Nfc/README.md index c51e66c1..3de73c2c 100644 --- a/Samples/Nfc/README.md +++ b/Samples/Nfc/README.md @@ -12,7 +12,7 @@ This sample shows how to: **Note** The Windows universal samples require Visual Studio 2015 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 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) diff --git a/Samples/NfcProvisioner/README.md b/Samples/NfcProvisioner/README.md index 273f4bb6..3fc912d2 100644 --- a/Samples/NfcProvisioner/README.md +++ b/Samples/NfcProvisioner/README.md @@ -14,7 +14,7 @@ Specifically, this sample shows how to: **Note** The Windows universal samples require Visual Studio 2015 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 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) diff --git a/Samples/NumberFormatting/README.md b/Samples/NumberFormatting/README.md index 066ff5b6..1b67b422 100644 --- a/Samples/NumberFormatting/README.md +++ b/Samples/NumberFormatting/README.md @@ -17,7 +17,7 @@ The [**Windows.Globalization.NumberFormatting**](http://msdn.microsoft.com/libra **Note** The Windows universal samples require Visual Studio 2015 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 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) diff --git a/Samples/Package/README.md b/Samples/Package/README.md index 7d709616..89e23f30 100644 --- a/Samples/Package/README.md +++ b/Samples/Package/README.md @@ -27,7 +27,7 @@ The sample covers these new tasks for Windows 10: - Getting package logo using [**Package.Logo**](http://msdn.microsoft.com/library/windows/apps/dn175747) - Getting publisher display name of the package using [**Package.PublisherDisplayName**](http://msdn.microsoft.com/library/windows/apps/dn175748) -To obtain information about Windows 10 development, go to the [Windows Dev Center](https://dev.windows.com) +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) diff --git a/Samples/PasswordVault/README.md b/Samples/PasswordVault/README.md index 1c0a8ee3..6a47e3b6 100644 --- a/Samples/PasswordVault/README.md +++ b/Samples/PasswordVault/README.md @@ -32,7 +32,7 @@ User Accounts, Credential Manager. **Note** The Windows universal samples require Visual Studio 2015 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 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) diff --git a/Samples/PdfDocument/README.md b/Samples/PdfDocument/README.md index 02e1fab2..a47853c3 100644 --- a/Samples/PdfDocument/README.md +++ b/Samples/PdfDocument/README.md @@ -17,7 +17,7 @@ The sample shows the following techniques: **Note** The Windows universal samples require Visual Studio 2015 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 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) diff --git a/Samples/Playlists/README.md b/Samples/Playlists/README.md index 5bee7cd3..954a5c31 100644 --- a/Samples/Playlists/README.md +++ b/Samples/Playlists/README.md @@ -31,7 +31,7 @@ This sample uses classes that are in the [**Windows.Media.Playlists**](http://ms **Note** The Universal Windows app samples require Visual Studio 2015 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 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) diff --git a/Samples/PosPrinter/README.md b/Samples/PosPrinter/README.md index 7bac6aad..b8765014 100644 --- a/Samples/PosPrinter/README.md +++ b/Samples/PosPrinter/README.md @@ -23,7 +23,7 @@ Specifically, this sample shows how to: **Note** The Windows universal samples require Visual Studio 2015 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 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) diff --git a/Samples/ProxyStubsForWinRTComponents/README.md b/Samples/ProxyStubsForWinRTComponents/README.md index 68f7eb70..e98fe3cc 100644 --- a/Samples/ProxyStubsForWinRTComponents/README.md +++ b/Samples/ProxyStubsForWinRTComponents/README.md @@ -9,7 +9,7 @@ Create proxies and stubs for a Windows Runtime in-process component that is cons **Note** The Windows universal samples require Visual Studio 2015 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 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) diff --git a/Samples/ResizeAppView/README.md b/Samples/ResizeAppView/README.md index afdc36bd..5c4013df 100644 --- a/Samples/ResizeAppView/README.md +++ b/Samples/ResizeAppView/README.md @@ -18,7 +18,7 @@ In particular, the view resizing feature is not enabled on phones or on PCs in T **Note** The Windows universal samples require Visual Studio 2015 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 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) diff --git a/Samples/SemanticTextQuery/README.md b/Samples/SemanticTextQuery/README.md index b161e926..c468da39 100644 --- a/Samples/SemanticTextQuery/README.md +++ b/Samples/SemanticTextQuery/README.md @@ -15,7 +15,7 @@ The sample demonstrates the following scenarios: **Note** The Windows universal samples require Visual Studio 2015 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 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) diff --git a/Samples/ShareSource/README.md b/Samples/ShareSource/README.md index 79181e50..759adf53 100644 --- a/Samples/ShareSource/README.md +++ b/Samples/ShareSource/README.md @@ -24,7 +24,7 @@ Also, this sample shows how to display text when your app can't support a share **Note** The Windows universal samples require Visual Studio 2015 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 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) diff --git a/Samples/Simple3DGameDX/README.md b/Samples/Simple3DGameDX/README.md index 6ff83561..9df723b2 100644 --- a/Samples/Simple3DGameDX/README.md +++ b/Samples/Simple3DGameDX/README.md @@ -26,7 +26,7 @@ Both versions share significant amounts of logic: the Common and GameContent fol **Note** The Windows universal samples require Visual Studio 2015 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 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) diff --git a/Samples/Simple3DGameXaml/README.md b/Samples/Simple3DGameXaml/README.md index 0e904678..240ae4cc 100644 --- a/Samples/Simple3DGameXaml/README.md +++ b/Samples/Simple3DGameXaml/README.md @@ -27,7 +27,7 @@ Both versions share significant amounts of logic: the Common and GameContent fol **Note** The Windows universal samples require Visual Studio 2015 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 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) diff --git a/Samples/SimpleImaging/README.md b/Samples/SimpleImaging/README.md index 09fee39b..8ca0c356 100644 --- a/Samples/SimpleImaging/README.md +++ b/Samples/SimpleImaging/README.md @@ -18,7 +18,7 @@ Specifically, this sample demonstrates how to: **Note** The Windows universal samples require Visual Studio 2015 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 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) diff --git a/Samples/SpatialSound/README.md b/Samples/SpatialSound/README.md index cdf654e8..388e85b1 100644 --- a/Samples/SpatialSound/README.md +++ b/Samples/SpatialSound/README.md @@ -27,7 +27,7 @@ Specifically, this sample covers hosting the HRTF xAPO in an XAudio2 graph for r **Note** The Windows universal samples require Visual Studio 2015 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 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) diff --git a/Samples/TextSegmentation/README.md b/Samples/TextSegmentation/README.md index 6ee20d41..11814985 100644 --- a/Samples/TextSegmentation/README.md +++ b/Samples/TextSegmentation/README.md @@ -9,7 +9,7 @@ This sample shows how to identify separate boundaries of individual words in tex **Note** The Windows universal samples require Visual Studio 2015 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 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) diff --git a/Samples/TitleBar/README.md b/Samples/TitleBar/README.md index 683c61d5..82b2e030 100644 --- a/Samples/TitleBar/README.md +++ b/Samples/TitleBar/README.md @@ -18,7 +18,7 @@ The sample shows the following techniques: **Note** Not all of the title bar functionality is available in all builds. Functionality will arrive gradually as newer builds are released. -To obtain information about Windows 10 development, go to the [Windows Dev Center](https://dev.windows.com) +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) diff --git a/Samples/Unicode/README.md b/Samples/Unicode/README.md index 280b3be6..5503fd5e 100644 --- a/Samples/Unicode/README.md +++ b/Samples/Unicode/README.md @@ -13,7 +13,7 @@ To obtain an evaluation copy of Microsoft Visual Studio 2013, go to [Visual Stu **Note** The Windows universal samples require Visual Studio 2015 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 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) diff --git a/Samples/UserInfo/README.md b/Samples/UserInfo/README.md index f15a4f93..40b191da 100644 --- a/Samples/UserInfo/README.md +++ b/Samples/UserInfo/README.md @@ -17,7 +17,7 @@ Specifically, this sample demonstrates the following scenarios: **Note** The Universal Windows app samples require Visual Studio 2015 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 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) diff --git a/Samples/UserInteractionMode/README.md b/Samples/UserInteractionMode/README.md index 0254027b..27f3f9fd 100644 --- a/Samples/UserInteractionMode/README.md +++ b/Samples/UserInteractionMode/README.md @@ -14,7 +14,7 @@ The sample shows the following techniques: **Note** The Windows universal samples require Visual Studio 2015 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 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) diff --git a/Samples/WRLInProcessWinRTComponent/README.md b/Samples/WRLInProcessWinRTComponent/README.md index 20fb8c6c..5d414df3 100644 --- a/Samples/WRLInProcessWinRTComponent/README.md +++ b/Samples/WRLInProcessWinRTComponent/README.md @@ -9,7 +9,7 @@ Create an in-process component in C++ using WRL that is consumed in C++, JS, and **Note** The Windows universal samples require Visual Studio 2015 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 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) diff --git a/Samples/WRLOutOfProcessWinRTComponent/README.md b/Samples/WRLOutOfProcessWinRTComponent/README.md index 16139c56..28e702aa 100644 --- a/Samples/WRLOutOfProcessWinRTComponent/README.md +++ b/Samples/WRLOutOfProcessWinRTComponent/README.md @@ -9,7 +9,7 @@ This sample shows how to create an out-of-process component in C++ using WRL tha **Note** The Windows universal samples require Visual Studio 2015 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 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) diff --git a/Samples/WebAccountManagement/README.md b/Samples/WebAccountManagement/README.md index 0be244dd..55bbf4de 100644 --- a/Samples/WebAccountManagement/README.md +++ b/Samples/WebAccountManagement/README.md @@ -19,7 +19,7 @@ Specifically, this sample demonstrates the following scenarios: **Note 2** The app as provided will not be able to get tokens without having it's app manifest being modified to use the App Identity of a registered Microsoft Store/registered AAD app. See 'Related Topics' for instructions on how to register an app. -To obtain information about Windows 10 development, go to the [Windows Dev Center](https://dev.windows.com) +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) diff --git a/Samples/XamlAnimatedGif/README.md b/Samples/XamlAnimatedGif/README.md index 3cecd58f..75d0f041 100644 --- a/Samples/XamlAnimatedGif/README.md +++ b/Samples/XamlAnimatedGif/README.md @@ -8,7 +8,7 @@ This sample demonstrates a solution for playback of animated GIF images using Wi **Note** The Windows universal samples require Visual Studio 2015 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 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) diff --git a/Samples/XamlAnimatedGif/cs/GifView.xaml.cs b/Samples/XamlAnimatedGif/cs/GifView.xaml.cs index 0e9a90fd..05236969 100644 --- a/Samples/XamlAnimatedGif/cs/GifView.xaml.cs +++ b/Samples/XamlAnimatedGif/cs/GifView.xaml.cs @@ -52,16 +52,9 @@ namespace AnimatedGif private GifPresenter _gifPresenter; private bool _isLoaded; - private CancellationTokenSource _initializationCancellationTokenSource; - public GifView() { this.InitializeComponent(); - - // Register for visibility changed to stop the timer when minimized - Window.Current.VisibilityChanged += Window_VisibilityChanged; - // Register for SurfaceContentsLost to recreate the image source if necessary - CompositionTarget.SurfaceContentsLost += CompositionTarget_SurfaceContentsLost; } private async static void OnSourcePropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) @@ -73,7 +66,6 @@ namespace AnimatedGif private async Task UpdateSourceAsync() { _gifPresenter?.StopAnimation(); - _initializationCancellationTokenSource?.Cancel(); GifImage.Source = null; _gifPresenter = null; @@ -81,48 +73,43 @@ namespace AnimatedGif if (UriSource != null) { var uriSource = UriSource; - var cancellationTokenSource = new CancellationTokenSource(); - - _initializationCancellationTokenSource = cancellationTokenSource; - try { var streamReference = RandomAccessStreamReference.CreateFromUri(uriSource); - var inMemoryStream = new InMemoryRandomAccessStream(); + var readStream = await streamReference.OpenReadAsync(); - using (inMemoryStream) + if (readStream.ContentType.ToLowerInvariant() != "image/gif") { - var readStream = await streamReference.OpenReadAsync().AsTask(cancellationTokenSource.Token); + throw new ArgumentException("Unsupported content type: " + readStream.ContentType); + } + + using (readStream) + using (var inMemoryStream = new InMemoryRandomAccessStream()) + { + await RandomAccessStream.CopyAndCloseAsync( + readStream.GetInputStreamAt(0L), + inMemoryStream.GetOutputStreamAt(0L) + ); - if (readStream.ContentType.ToLowerInvariant() != "image/gif") - { - throw new ArgumentException("Unsupported content type: " + readStream.ContentType); - } - var copyAction = RandomAccessStream.CopyAndCloseAsync( - readStream.GetInputStreamAt(0L), - inMemoryStream.GetOutputStreamAt(0L) - ); - await copyAction.AsTask(cancellationTokenSource.Token); - if (uriSource.Equals(UriSource)) { var gifPresenter = new GifPresenter(); - GifImage.Source = await gifPresenter.InitializeAsync(inMemoryStream); - _gifPresenter = gifPresenter; - if (_isLoaded) + if (uriSource.Equals(UriSource)) { - _gifPresenter.StartAnimation(); + _gifPresenter?.StopAnimation(); + _gifPresenter = gifPresenter; + + if (_isLoaded) + { + _gifPresenter.StartAnimation(); + } } } } } - catch (TaskCanceledException) - { - // Just keep the empty image source. - } catch (FileNotFoundException) { // Just keep the empty image source. @@ -146,12 +133,22 @@ namespace AnimatedGif private void GifImage_Loaded(object sender, RoutedEventArgs e) { + // Register for visibility changed to stop the timer when minimized + Window.Current.VisibilityChanged += Window_VisibilityChanged; + // Register for SurfaceContentsLost to recreate the image source if necessary + CompositionTarget.SurfaceContentsLost += CompositionTarget_SurfaceContentsLost; + _isLoaded = true; _gifPresenter?.StartAnimation(); } private void GifImage_Unloaded(object sender, RoutedEventArgs e) { + // Register for visibility changed to stop the timer when minimized + Window.Current.VisibilityChanged -= Window_VisibilityChanged; + // Register for SurfaceContentsLost to recreate the image source if necessary + CompositionTarget.SurfaceContentsLost -= CompositionTarget_SurfaceContentsLost; + _isLoaded = false; _gifPresenter?.StopAnimation(); } @@ -205,7 +202,7 @@ namespace AnimatedGif private BitmapDecoder _bitmapDecoder; private ImageProperties _imageProperties; - private IList _frameProperties; + private FrameProperties?[] _frameProperties; private CanvasImageSource _canvasImageSource; private CanvasRenderTarget _accumulationRenderTarget; @@ -218,15 +215,8 @@ namespace AnimatedGif { var bitmapDecoder = await BitmapDecoder.CreateAsync(BitmapDecoder.GifDecoderId, streamSource); var imageProperties = await RetrieveImagePropertiesAsync(bitmapDecoder); - var frameProperties = new List(); - for (var i = 0u; i < bitmapDecoder.FrameCount; i++) - { - var bitmapFrame = await bitmapDecoder.GetFrameAsync(i); - frameProperties.Add(await RetrieveFramePropertiesAsync(bitmapFrame)); - } - - _frameProperties = frameProperties; + _frameProperties = new FrameProperties?[bitmapDecoder.FrameCount]; _bitmapDecoder = bitmapDecoder; _imageProperties = imageProperties; @@ -247,7 +237,7 @@ namespace AnimatedGif _animationTimer = new DispatcherTimer(); _animationTimer.Tick += AnimationTimer_Tick; - _animationTimer.Interval = TimeSpan.Zero; + _animationTimer.Interval = TimeSpan.FromMilliseconds(1.0); _animationTimer.Start(); _isAnimating = true; @@ -273,7 +263,14 @@ namespace AnimatedGif } var frameIndex = _currentFrameIndex; - var frameProperties = _frameProperties[frameIndex]; + BitmapFrame frame = null; + + if (!_frameProperties[frameIndex].HasValue) + { + frame = await _bitmapDecoder.GetFrameAsync((uint)frameIndex); + _frameProperties[frameIndex] = await RetrieveFramePropertiesAsync(frame); + } + FrameProperties frameProperties = _frameProperties[frameIndex].Value; // Increment frame index and loop count _currentFrameIndex++; @@ -295,7 +292,10 @@ namespace AnimatedGif } // Decode the frame - var frame = await _bitmapDecoder.GetFrameAsync((uint)frameIndex); + if (frame == null) + { + frame = await _bitmapDecoder.GetFrameAsync((uint)frameIndex); + } var pixelData = await frame.GetPixelDataAsync( BitmapPixelFormat.Bgra8, BitmapAlphaMode.Premultiplied, @@ -309,7 +309,7 @@ namespace AnimatedGif if (frameIndex > 0) { - var previousFrameProperties = _frameProperties[frameIndex - 1]; + var previousFrameProperties = _frameProperties[frameIndex - 1].GetValueOrDefault(); if (previousFrameProperties.ShouldDispose) { // Clear the pixels from the last frame @@ -567,3 +567,4 @@ namespace AnimatedGif } } } + diff --git a/Samples/XamlAutoSuggestBox/README.md b/Samples/XamlAutoSuggestBox/README.md index d8a5f172..4e67bb39 100644 --- a/Samples/XamlAutoSuggestBox/README.md +++ b/Samples/XamlAutoSuggestBox/README.md @@ -14,7 +14,7 @@ Specifically, this sample shows how to: **Note** The Windows universal samples require Visual Studio 2015 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 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) diff --git a/Samples/XamlBind/README.md b/Samples/XamlBind/README.md index a4cb8a16..05583ade 100644 --- a/Samples/XamlBind/README.md +++ b/Samples/XamlBind/README.md @@ -16,7 +16,7 @@ Specifically, this sample shows how to: **Note** The Windows universal samples require Visual Studio 2015 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 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) diff --git a/Samples/XamlCommanding/README.md b/Samples/XamlCommanding/README.md index 1a76cb0a..05581274 100644 --- a/Samples/XamlCommanding/README.md +++ b/Samples/XamlCommanding/README.md @@ -18,7 +18,7 @@ This sample shows: **Note** The Windows universal samples require Visual Studio 2015 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 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) diff --git a/Samples/XamlContextMenu/README.md b/Samples/XamlContextMenu/README.md index e3500c67..3dd75e12 100644 --- a/Samples/XamlContextMenu/README.md +++ b/Samples/XamlContextMenu/README.md @@ -16,7 +16,7 @@ Specifically, this sample shows how to: **Note** The Windows universal samples require Visual Studio 2015 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 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) diff --git a/Samples/XamlCustomMediaTransportControls/README.md b/Samples/XamlCustomMediaTransportControls/README.md index a52ac11e..6cc99a13 100644 --- a/Samples/XamlCustomMediaTransportControls/README.md +++ b/Samples/XamlCustomMediaTransportControls/README.md @@ -16,7 +16,7 @@ which show how to use the custom template in your app **Note** The Windows universal samples require Visual Studio 2015 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 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) diff --git a/Samples/XamlDeferLoadStrategy/README.md b/Samples/XamlDeferLoadStrategy/README.md index fb5424ab..32654e0a 100644 --- a/Samples/XamlDeferLoadStrategy/README.md +++ b/Samples/XamlDeferLoadStrategy/README.md @@ -15,7 +15,7 @@ Specifically, this sample shows how to: **Note** The Windows universal samples require Visual Studio 2015 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 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) diff --git a/Samples/XamlDragAndDrop/README.md b/Samples/XamlDragAndDrop/README.md index 14fe7be7..23bd869c 100644 --- a/Samples/XamlDragAndDrop/README.md +++ b/Samples/XamlDragAndDrop/README.md @@ -15,7 +15,7 @@ Specifically, this sample shows how to: **Note** The Windows universal samples require Visual Studio 2015 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 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) diff --git a/Samples/XamlFocusVisuals/README.md b/Samples/XamlFocusVisuals/README.md index 664e74b3..3ce5a06f 100644 --- a/Samples/XamlFocusVisuals/README.md +++ b/Samples/XamlFocusVisuals/README.md @@ -14,7 +14,7 @@ Specifically, this sample shows how to: **Note** The Windows universal samples require Visual Studio 2015 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 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) diff --git a/Samples/XamlListView/README.md b/Samples/XamlListView/README.md index 3b92d289..523aa47d 100644 --- a/Samples/XamlListView/README.md +++ b/Samples/XamlListView/README.md @@ -18,7 +18,7 @@ Specifically, this sample shows how to: **Note** The Windows universal samples require Visual Studio 2015 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 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) diff --git a/Samples/XamlListView/cs/Model/Contact.cs b/Samples/XamlListView/cs/Model/Contact.cs index be6b3052..15d0a702 100644 --- a/Samples/XamlListView/cs/Model/Contact.cs +++ b/Samples/XamlListView/cs/Model/Contact.cs @@ -123,6 +123,11 @@ namespace ListViewSample.Model return groups; } + + public override string ToString() + { + return Name; + } #endregion #region Helpers diff --git a/Samples/XamlMasterDetail/README.md b/Samples/XamlMasterDetail/README.md index 206917d8..c1e4c208 100644 --- a/Samples/XamlMasterDetail/README.md +++ b/Samples/XamlMasterDetail/README.md @@ -17,7 +17,7 @@ Specifically, this sample demonstrates: **Note** The Windows universal samples require Visual Studio 2015 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 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) diff --git a/Samples/XamlNavigation/README.md b/Samples/XamlNavigation/README.md index 58e9802b..aad2be5c 100644 --- a/Samples/XamlNavigation/README.md +++ b/Samples/XamlNavigation/README.md @@ -14,7 +14,7 @@ Specifically, this sample shows how to: **Note** The Windows universal samples require Visual Studio 2015 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 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) diff --git a/Samples/XamlPivot/README.md b/Samples/XamlPivot/README.md index cd38f90e..2ce38434 100644 --- a/Samples/XamlPivot/README.md +++ b/Samples/XamlPivot/README.md @@ -15,7 +15,7 @@ Specifically, this sample shows how to: **Note** The Windows universal samples require Visual Studio 2015 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 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) diff --git a/Samples/XamlPullToRefresh/README.md b/Samples/XamlPullToRefresh/README.md index e4366174..bda6ac49 100644 --- a/Samples/XamlPullToRefresh/README.md +++ b/Samples/XamlPullToRefresh/README.md @@ -9,7 +9,7 @@ This sample shows how to implement a "pull-to-refresh" feature for a scrollable **Note** The Windows universal samples require Visual Studio 2015 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 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) diff --git a/Samples/XamlResponsiveTechniques/README.md b/Samples/XamlResponsiveTechniques/README.md index 34ec31c2..fa8cbcdd 100644 --- a/Samples/XamlResponsiveTechniques/README.md +++ b/Samples/XamlResponsiveTechniques/README.md @@ -9,7 +9,7 @@ Showcases a UI scenario from Settings (Personalization UI) and highlights the si **Note** The Windows universal samples require Visual Studio 2015 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 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) diff --git a/Samples/XamlStateTriggers/README.md b/Samples/XamlStateTriggers/README.md index ae0f6a50..f839da95 100644 --- a/Samples/XamlStateTriggers/README.md +++ b/Samples/XamlStateTriggers/README.md @@ -9,7 +9,7 @@ Showcases extensible StateTriggers with a couple of different custom triggers bu **Note** The Windows universal samples require Visual Studio 2015 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 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) diff --git a/Samples/XamlTailoredMultipleViews/README.md b/Samples/XamlTailoredMultipleViews/README.md index ce346cb1..c9c43a5e 100644 --- a/Samples/XamlTailoredMultipleViews/README.md +++ b/Samples/XamlTailoredMultipleViews/README.md @@ -9,7 +9,7 @@ Showcases how to build tailored UI using multiple views that are optimized for o **Note** The Windows universal samples require Visual Studio 2015 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 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) diff --git a/Samples/XamlTransform3DAnimations/README.md b/Samples/XamlTransform3DAnimations/README.md index 9cf7b60e..41bfca03 100644 --- a/Samples/XamlTransform3DAnimations/README.md +++ b/Samples/XamlTransform3DAnimations/README.md @@ -14,7 +14,7 @@ Specifically, two effects are demonstrated in this sample: **Note** The Windows universal samples require Visual Studio 2015 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 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) diff --git a/Samples/XamlTransform3DParallax/README.md b/Samples/XamlTransform3DParallax/README.md index 153352df..a0a26ff3 100644 --- a/Samples/XamlTransform3DParallax/README.md +++ b/Samples/XamlTransform3DParallax/README.md @@ -14,7 +14,7 @@ Specifically, this sample shows how to: **Note** The Windows universal samples require Visual Studio 2015 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 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) diff --git a/Samples/XamlUIBasics/README.md b/Samples/XamlUIBasics/README.md index 5cf45218..cbc77877 100644 --- a/Samples/XamlUIBasics/README.md +++ b/Samples/XamlUIBasics/README.md @@ -15,7 +15,7 @@ Specifically, this sample shows how to: **Note** The Windows universal samples require Visual Studio 2015 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 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) diff --git a/Samples/XamlUIBasics/cs/AppUIBasics/ControlPages/HyperlinkButtonPage.xaml b/Samples/XamlUIBasics/cs/AppUIBasics/ControlPages/HyperlinkButtonPage.xaml index 6c77fb92..0a128a3e 100644 --- a/Samples/XamlUIBasics/cs/AppUIBasics/ControlPages/HyperlinkButtonPage.xaml +++ b/Samples/XamlUIBasics/cs/AppUIBasics/ControlPages/HyperlinkButtonPage.xaml @@ -23,12 +23,12 @@ - + - <HyperlinkButton Content="Windows Dev Center" NavigateUri="http://dev.windows.com"/> + <HyperlinkButton Content="Microsoft home page" NavigateUri="http://www.microsoft.com"/> diff --git a/Samples/XamlWebView/README.md b/Samples/XamlWebView/README.md index c694b260..6a8ac417 100644 --- a/Samples/XamlWebView/README.md +++ b/Samples/XamlWebView/README.md @@ -52,7 +52,7 @@ Specifically, this sample shows how to **Note** The Windows universal samples require Visual Studio 2015 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 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) diff --git a/Samples/XamlWebView/cs/Scenario1_NavToUrl.xaml b/Samples/XamlWebView/cs/Scenario1_NavToUrl.xaml index 78ec5755..0c271551 100644 --- a/Samples/XamlWebView/cs/Scenario1_NavToUrl.xaml +++ b/Samples/XamlWebView/cs/Scenario1_NavToUrl.xaml @@ -34,7 +34,7 @@ - +