diff --git a/README.md b/README.md index ee266f8f02..8951b375ff 100644 --- a/README.md +++ b/README.md @@ -14,9 +14,9 @@ This repo contains the samples that demonstrate the API usage patterns for the U ## Universal Windows Platform development -These samples require Visual Studio 2017 Update 4 or higher and the Windows Software Development Kit (SDK) version 17134 for Windows 10. +These samples require Visual Studio and the Windows Software Development Kit (SDK) for Windows 10. - [Get a free copy of Visual Studio 2017 Community Edition with support for building Universal Windows Platform apps](http://go.microsoft.com/fwlink/p/?LinkID=280676) + [Get a free copy of Visual Studio Community Edition with support for building Universal Windows Platform apps](http://go.microsoft.com/fwlink/p/?LinkID=280676) Additionally, to stay on top of the latest updates to Windows and the development tools, become a Windows Insider by joining the Windows Insider Program. @@ -24,14 +24,14 @@ Additionally, to stay on top of the latest updates to Windows and the developmen ## Using the samples -The easiest way to use these samples without using Git is to download the zip file containing the current version (using the following link or by clicking the "Download ZIP" button on the repo page). You can then unzip the entire archive and use the samples in Visual Studio 2017. +The easiest way to use these samples without using Git is to download the zip file containing the current version (using the following link or by clicking the "Download ZIP" button on the repo page). You can then unzip the entire archive and use the samples in Visual Studio. [Download the samples ZIP](../../archive/master.zip) **Notes:** * Before you unzip the archive, right-click it, select **Properties**, and then select **Unblock**. * Be sure to unzip the entire archive, and not just individual samples. The samples all depend on the SharedContent folder in the archive. - * In Visual Studio 2017, the platform target defaults to ARM, so be sure to change that to x64 or x86 if you want to test on a non-ARM device. + * In Visual Studio, the platform target defaults to ARM, so be sure to change that to x64 or x86 if you want to test on a non-ARM device. The samples use Linked files in Visual Studio to reduce duplication of common files, including sample template files and image assets. These common files are stored in the SharedContent folder at the root of the repository, and are referred to in the project files using links. diff --git a/Samples/360VideoPlayback/README.md b/Samples/360VideoPlayback/README.md index 9db642d83f..2a38449e65 100644 --- a/Samples/360VideoPlayback/README.md +++ b/Samples/360VideoPlayback/README.md @@ -1,5 +1,5 @@ --- -topic: sample +page_type: sample languages: - csharp - cpp @@ -7,6 +7,13 @@ languages: products: - windows - windows-uwp +urlFragment: 360VideoPlayback +extendedZipContent: +- path: SharedContent + target: SharedContent +- path: LICENSE + target: LICENSE +description: "Shows how to play 360-degree video." --- - + Properties\Default.rd.xml - + Assets\smalltile-sdk.png - + Assets\splash-sdk.png - + Assets\squaretile-sdk.png - + Assets\storelogo-sdk.png - + Assets\tile-sdk.png @@ -115,7 +118,7 @@ MainPage.xaml - + Properties\AssemblyInfo.cs diff --git a/Samples/CameraAdvancedCapture/vb/CameraAdvancedCapture.vbproj b/Samples/CameraAdvancedCapture/vb/CameraAdvancedCapture.vbproj index 10d685f2c7..f6b2780a7f 100644 --- a/Samples/CameraAdvancedCapture/vb/CameraAdvancedCapture.vbproj +++ b/Samples/CameraAdvancedCapture/vb/CameraAdvancedCapture.vbproj @@ -1,6 +1,9 @@  + + $([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), LICENSE))\SharedContent + Debug x86 @@ -93,22 +96,22 @@ - + Properties\Default.rd.xml - + Assets\smalltile-sdk.png - + Assets\splash-sdk.png - + Assets\squaretile-sdk.png - + Assets\storelogo-sdk.png - + Assets\tile-sdk.png @@ -119,7 +122,7 @@ MainPage.xaml - + Properties\AssemblyInfo.vb diff --git a/Samples/CameraFaceDetection/README.md b/Samples/CameraFaceDetection/README.md index 5789ad16a7..94118a77fa 100644 --- a/Samples/CameraFaceDetection/README.md +++ b/Samples/CameraFaceDetection/README.md @@ -1,5 +1,5 @@ --- -topic: sample +page_type: sample languages: - csharp - cpp @@ -8,6 +8,13 @@ languages: products: - windows - windows-uwp +urlFragment: CameraFaceDetection +extendedZipContent: +- path: SharedContent + target: SharedContent +- path: LICENSE + target: LICENSE +description: "An end-to-end sample camera application that incorporates face detection." --- - + Properties\Default.rd.xml - + Assets\smalltile-sdk.png - + Assets\splash-sdk.png - + Assets\squaretile-sdk.png - + Assets\storelogo-sdk.png - + Assets\tile-sdk.png @@ -136,7 +139,7 @@ MainPage.xaml - + Properties\AssemblyInfo.cs diff --git a/Samples/CameraOpenCV/README.md b/Samples/CameraOpenCV/README.md index 8116053a2e..cb29dcb1c4 100644 --- a/Samples/CameraOpenCV/README.md +++ b/Samples/CameraOpenCV/README.md @@ -1,10 +1,17 @@ --- -topic: sample +page_type: sample languages: - csharp products: - windows - windows-uwp +urlFragment: CameraOpenCV +extendedZipContent: +- path: SharedContent + target: SharedContent +- path: LICENSE + target: LICENSE +description: "Shows how to operate on individual frames with OpenCV." --- - + Properties\Default.rd.xml - + Assets\smalltile-sdk.png - + Assets\splash-sdk.png - + Assets\squaretile-sdk.png - + Assets\storelogo-sdk.png - + Assets\tile-sdk.png @@ -116,7 +119,7 @@ MainPage.xaml - + Properties\AssemblyInfo.cs diff --git a/Samples/CameraStarterKit/vb/CameraStarterKit.vbproj b/Samples/CameraStarterKit/vb/CameraStarterKit.vbproj index 1bfbcebe9e..39ba0b050c 100644 --- a/Samples/CameraStarterKit/vb/CameraStarterKit.vbproj +++ b/Samples/CameraStarterKit/vb/CameraStarterKit.vbproj @@ -1,6 +1,9 @@  + + $([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), LICENSE))\SharedContent + Debug x86 @@ -93,22 +96,22 @@ - + Properties\Default.rd.xml - + Assets\smalltile-sdk.png - + Assets\splash-sdk.png - + Assets\squaretile-sdk.png - + Assets\storelogo-sdk.png - + Assets\tile-sdk.png @@ -120,7 +123,7 @@ MainPage.xaml - + Properties\AssemblyInfo.vb diff --git a/Samples/CameraStreamCoordinateMapper/README.md b/Samples/CameraStreamCoordinateMapper/README.md index c6decdf315..67de4d71ff 100644 --- a/Samples/CameraStreamCoordinateMapper/README.md +++ b/Samples/CameraStreamCoordinateMapper/README.md @@ -1,11 +1,18 @@ --- -topic: sample +page_type: sample languages: - cpp - cppcx products: - windows - windows-uwp +urlFragment: CameraStreamCoordinateMapper +extendedZipContent: +- path: SharedContent + target: SharedContent +- path: LICENSE + target: LICENSE +description: "Uses spatially correlated color and depth cameras and the depth frames to map image pixels from one camera to another in real time." --- - + Properties\Default.rd.xml - + Assets\smalltile-sdk.png - + Assets\splash-sdk.png - + Assets\squaretile-sdk.png - + Assets\storelogo-sdk.png - + Assets\tile-sdk.png @@ -115,7 +118,7 @@ MainPage.xaml - + Properties\AssemblyInfo.cs diff --git a/Samples/CameraVideoStabilization/vb/CameraVideoStabilization.vbproj b/Samples/CameraVideoStabilization/vb/CameraVideoStabilization.vbproj index fab281250d..7a647fa346 100644 --- a/Samples/CameraVideoStabilization/vb/CameraVideoStabilization.vbproj +++ b/Samples/CameraVideoStabilization/vb/CameraVideoStabilization.vbproj @@ -1,6 +1,9 @@  + + $([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), LICENSE))\SharedContent + Debug x86 @@ -93,22 +96,22 @@ - + Properties\Default.rd.xml - + Assets\smalltile-sdk.png - + Assets\splash-sdk.png - + Assets\squaretile-sdk.png - + Assets\storelogo-sdk.png - + Assets\tile-sdk.png @@ -119,7 +122,7 @@ MainPage.xaml - + Properties\AssemblyInfo.vb diff --git a/Samples/CashDrawer/README.md b/Samples/CashDrawer/README.md index dd3699c226..1519aaf28e 100644 --- a/Samples/CashDrawer/README.md +++ b/Samples/CashDrawer/README.md @@ -1,5 +1,5 @@ --- -topic: sample +page_type: sample languages: - csharp - cpp @@ -8,6 +8,13 @@ languages: products: - windows - windows-uwp +urlFragment: CashDrawer +extendedZipContent: +- path: SharedContent + target: SharedContent +- path: LICENSE + target: LICENSE +description: "Shows how to use the Windows.Devices.PointOfService.CashDrawer class." --- + + $([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), LICENSE))\SharedContent + {21396723-BF10-57B7-A5F9-8441F83035E7} AppContainerExe @@ -87,15 +90,15 @@ PackageReference - + App.xaml.cs App.xaml - + MainPage.xaml.cs MainPage.xaml - + Properties\AssemblyInfo.cs @@ -133,12 +136,12 @@ - + App.xaml MSBuild:Compile Designer - + MainPage.xaml MSBuild:Compile Designer @@ -148,7 +151,7 @@ Designer MSBuild:Compile - + Styles\Styles.xaml MSBuild:Compile Designer @@ -185,28 +188,28 @@ - + Properties\Default.rd.xml - + Assets\microsoft-sdk.png - + Assets\smallTile-sdk.png - + Assets\splash-sdk.png - + Assets\squareTile-sdk.png - + Assets\storeLogo-sdk.png - + Assets\tile-sdk.png - + Assets\windows-sdk.png diff --git a/Samples/CustomEditControl/README.md b/Samples/CustomEditControl/README.md index 9209200a28..2749d9bf4d 100644 --- a/Samples/CustomEditControl/README.md +++ b/Samples/CustomEditControl/README.md @@ -1,10 +1,17 @@ --- -topic: sample +page_type: sample languages: - csharp products: - windows - windows-uwp +urlFragment: CustomEditControl +extendedZipContent: +- path: SharedContent + target: SharedContent +- path: LICENSE + target: LICENSE +description: "Shows how to use the CoreTextEditContext class to create a rudimentary text control." --- # Transcoding media sample - + Shows how to use the [Windows.Media.Transcoding](http://msdn.microsoft.com/library/windows/apps/br207105) API to transcode a video file. Transcoding is the conversion of a digital media file, such as a video or audio file, from one format to another. For example, you might convert a Windows Media file to MP4 so that it can be played on a portable device that supports MP4 format. Or, you might convert a high-definition video file to a lower resolution. In that case, the re-encoded file might use the same codec as the original file, but it would have a different encoding profile. > **Note:** This sample is part of a large collection of UWP feature samples. -> If you are unfamiliar with Git and GitHub, you can download the entire collection as a +> You can download this sample as a standalone ZIP file +> [from docs.microsoft.com](https://docs.microsoft.com/samples/microsoft/windows-universal-samples/mediatranscoding/), +> or you can download the entire collection as a single > [ZIP file](https://github.com/Microsoft/Windows-universal-samples/archive/master.zip), but be > sure to unzip everything to access shared dependencies. For more info on working with the ZIP file, > the samples collection, and GitHub, see [Get the UWP samples from GitHub](https://aka.ms/ovu2uq). @@ -79,7 +88,7 @@ For more info about transcoding video files, see [Transcode media files](https:/ ## Build the sample 1. If you download the samples ZIP, be sure to unzip the entire archive, not just the folder with the sample you want to build. -2. Start Microsoft Visual Studio 2017 and select **File** \> **Open** \> **Project/Solution**. +2. Start Microsoft Visual Studio and select **File** \> **Open** \> **Project/Solution**. 3. Starting in the folder where you unzipped the samples, go to the Samples subfolder, then the subfolder for this specific sample, then the subfolder for your preferred language (C++, C#, or JavaScript). Double-click the Visual Studio Solution (.sln) file. 4. Press Ctrl+Shift+B, or select **Build** \> **Build Solution**. @@ -91,4 +100,4 @@ The next steps depend on whether you just want to deploy the sample or you want 1. Select **Build** \> **Deploy Solution**. **Deploying and running the sample** -1. To debug the sample and then run it, press F5 or select **Debug** \> **Start Debugging**. To run the sample without debugging, press Ctrl+F5 or select**Debug** \> **Start Without Debugging**. \ No newline at end of file +1. To debug the sample and then run it, press F5 or select **Debug** \> **Start Debugging**. To run the sample without debugging, press Ctrl+F5 or select**Debug** \> **Start Without Debugging**. diff --git a/Samples/MediaTranscoding/cpp/MediaTranscoding.vcxproj b/Samples/MediaTranscoding/cpp/MediaTranscoding.vcxproj index c07bc43112..9f53c28a48 100644 --- a/Samples/MediaTranscoding/cpp/MediaTranscoding.vcxproj +++ b/Samples/MediaTranscoding/cpp/MediaTranscoding.vcxproj @@ -1,5 +1,8 @@  + + $([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), LICENSE))\SharedContent + {804c7f16-66fe-5aac-a3d1-24237ae091cb} SDKTemplate @@ -98,7 +101,7 @@ - $(VC_IncludePath);$(UniversalCRT_IncludePath);$(WindowsSDK_IncludePath);..\..\..\SharedContent\cpp + $(VC_IncludePath);$(UniversalCRT_IncludePath);$(WindowsSDK_IncludePath);$(SharedContentDir)\cpp @@ -137,11 +140,11 @@ - - ..\..\..\SharedContent\xaml\App.xaml + + $(SharedContentDir)\xaml\App.xaml - - ..\..\..\SharedContent\cpp\MainPage.xaml + + $(SharedContentDir)\cpp\MainPage.xaml @@ -156,13 +159,13 @@ - + Designer - + Designer - + Styles\Styles.xaml @@ -175,11 +178,11 @@ - - ..\..\..\SharedContent\xaml\App.xaml + + $(SharedContentDir)\xaml\App.xaml - - ..\..\..\SharedContent\cpp\MainPage.xaml + + $(SharedContentDir)\cpp\MainPage.xaml Create @@ -201,25 +204,25 @@ - + Assets\smalltile-sdk.png - + Assets\splash-sdk.png - + Assets\squaretile-sdk.png - + Assets\storelogo-sdk.png - + Assets\tile-sdk.png - + Assets\microsoft-sdk.png - + Assets\windows-sdk.png diff --git a/Samples/MediaTranscoding/cpp/MediaTranscoding.vcxproj.filters b/Samples/MediaTranscoding/cpp/MediaTranscoding.vcxproj.filters index 97add14e60..66bab65ed6 100644 --- a/Samples/MediaTranscoding/cpp/MediaTranscoding.vcxproj.filters +++ b/Samples/MediaTranscoding/cpp/MediaTranscoding.vcxproj.filters @@ -1,11 +1,11 @@  - + - - + + @@ -13,8 +13,8 @@ - - + + @@ -22,25 +22,25 @@ - + Assets - + Assets - + Assets - + Assets - + Assets - + Assets - + Assets @@ -48,11 +48,11 @@ - + - + Styles diff --git a/Samples/MediaTranscoding/cs/MediaTranscoding.csproj b/Samples/MediaTranscoding/cs/MediaTranscoding.csproj index 321e28c56c..8901d7e92f 100644 --- a/Samples/MediaTranscoding/cs/MediaTranscoding.csproj +++ b/Samples/MediaTranscoding/cs/MediaTranscoding.csproj @@ -1,6 +1,9 @@  + + $([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), LICENSE))\SharedContent + Debug x86 @@ -90,15 +93,15 @@ true - + App.xaml.cs App.xaml - + MainPage.xaml.cs MainPage.xaml - + Properties\AssemblyInfo.cs @@ -118,12 +121,12 @@ - + App.xaml MSBuild:Compile Designer - + MainPage.xaml MSBuild:Compile Designer @@ -143,35 +146,35 @@ MSBuild:Compile Designer - + Styles\Styles.xaml MSBuild:Compile Designer - + Properties\Default.rd.xml - + Assets\microsoft-sdk.png - + Assets\smallTile-sdk.png - + Assets\splash-sdk.png - + Assets\squareTile-sdk.png - + Assets\storeLogo-sdk.png - + Assets\tile-sdk.png - + Assets\windows-sdk.png diff --git a/Samples/MessageDialog/README.md b/Samples/MessageDialog/README.md index 63083eb2ea..77f38c7031 100644 --- a/Samples/MessageDialog/README.md +++ b/Samples/MessageDialog/README.md @@ -1,5 +1,5 @@ --- -topic: sample +page_type: sample languages: - csharp - cpp @@ -7,6 +7,13 @@ languages: products: - windows - windows-uwp +urlFragment: MessageDialog +extendedZipContent: +- path: SharedContent + target: SharedContent +- path: LICENSE + target: LICENSE +description: "Uses a MessageDialog for displaying dialogs, customizing commands, and changing the default button." --- - + Assets\microsoft-sdk.png - + Assets\Small.png - + Assets\Logo.png - + Assets\SmallLogo.png - + Assets\LargeLogo.png - + Assets\SplashScreen.png - + Assets\StoreLogo.png - + Assets\WideLogo.png - + Assets\windows-sdk.png - + Assets\DefaultSecondaryTileAssests\Small.png - + Assets\DefaultSecondaryTileAssests\Medium.png - + Assets\DefaultSecondaryTileAssests\Wide.png - + Assets\DefaultSecondaryTileAssests\Large.png @@ -388,46 +391,46 @@ PreserveNewest - + Assets\microsoft-sdk.png - + Assets\Photos\1.jpg - + Assets\Photos\2.jpg - + Assets\Photos\3.jpg - + Assets\Photos\4.jpg - + Assets\Photos\5.jpg - + Assets\Photos\6.jpg - + Assets\Photos\7.jpg - + Assets\Photos\8.jpg - + Assets\Photos\9.jpg - + Assets\Photos\10.jpg - + Properties\Default.rd.xml - + ScenarioPages\Toasts\AdaptiveTemplates\Image\Src\FromAppData\Image.jpg - + ScenarioPages\Toasts\AdaptiveTemplates\Image\Src\FromAppPackage\Image.jpg diff --git a/Samples/NumberFormatting/README.md b/Samples/NumberFormatting/README.md index e0c3c75fec..4cb5be1bfd 100644 --- a/Samples/NumberFormatting/README.md +++ b/Samples/NumberFormatting/README.md @@ -1,5 +1,5 @@ --- -topic: sample +page_type: sample languages: - csharp - cpp @@ -7,6 +7,13 @@ languages: products: - windows - windows-uwp +urlFragment: NumberFormatting +extendedZipContent: +- path: SharedContent + target: SharedContent +- path: LICENSE + target: LICENSE +description: "Shows how to use the globalization formatter classes to display and parse numbers, currencies, and percent values." --- -# In-process component authoring sample +# In-process C++/CX component authoring sample Shows how to create proxies and stubs for a Windows Runtime in-process component that is consumed in C++, JS, and C#. > **Note:** This sample is part of a large collection of UWP feature samples. -> If you are unfamiliar with Git and GitHub, you can download the entire collection as a +> You can download this sample as a standalone ZIP file +> [from docs.microsoft.com](https://docs.microsoft.com/samples/microsoft/windows-universal-samples/proxystubsforwinrtcomponents/), +> or you can download the entire collection as a single > [ZIP file](https://github.com/Microsoft/Windows-universal-samples/archive/master.zip), but be > sure to unzip everything to access shared dependencies. For more info on working with the ZIP file, > the samples collection, and GitHub, see [Get the UWP samples from GitHub](https://aka.ms/ovu2uq). > For more samples, see the [Samples portal](https://aka.ms/winsamples) on the Windows Dev Center. -**Note** The Windows universal samples require Visual Studio 2017 to build and Windows 10 to execute. +**Note** The Windows universal samples require Visual Studio to build and Windows 10 to execute. To obtain information about Windows 10 development, go to the [Windows Dev Center](http://go.microsoft.com/fwlink/?LinkID=532421) @@ -42,7 +51,7 @@ To obtain information about Microsoft Visual Studio and the tools for developing ## Build the sample 1. If you download the samples ZIP, be sure to unzip the entire archive, not just the folder with the sample you want to build. -2. Start Microsoft Visual Studio 2017 and select **File** \> **Open** \> **Project/Solution**. +2. Start Microsoft Visual Studio and select **File** \> **Open** \> **Project/Solution**. 3. Starting in the folder where you unzipped the samples, go to the Samples subfolder, then the subfolder for this specific sample, then the subfolder for your preferred language (C++, C#, or JavaScript). Double-click the Visual Studio Solution (.sln) file. 4. Press Ctrl+Shift+B, or select **Build** \> **Build Solution**. diff --git a/Samples/ProxyStubsForWinRTComponents/cpp/Server/ProxyStubsForWinRTComponentsPS.vcxproj b/Samples/ProxyStubsForWinRTComponents/cpp/Server/ProxyStubsForWinRTComponentsPS.vcxproj index d7b6cc3717..a110ddb804 100644 --- a/Samples/ProxyStubsForWinRTComponents/cpp/Server/ProxyStubsForWinRTComponentsPS.vcxproj +++ b/Samples/ProxyStubsForWinRTComponents/cpp/Server/ProxyStubsForWinRTComponentsPS.vcxproj @@ -26,6 +26,9 @@ ARM + + $([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), LICENSE))\SharedContent + {F05F0BF8-B7A5-5049-9A54-348DEF64FC74} ProxyStubsForWinRTComponents diff --git a/Samples/ProxyStubsForWinRTComponents/cpp/Server/ProxyStubsForWinRTComponents_server.vcxproj b/Samples/ProxyStubsForWinRTComponents/cpp/Server/ProxyStubsForWinRTComponents_server.vcxproj index 85c8269b1c..7b3d589407 100644 --- a/Samples/ProxyStubsForWinRTComponents/cpp/Server/ProxyStubsForWinRTComponents_server.vcxproj +++ b/Samples/ProxyStubsForWinRTComponents/cpp/Server/ProxyStubsForWinRTComponents_server.vcxproj @@ -26,6 +26,9 @@ x64 + + $([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), LICENSE))\SharedContent + {f3b18974-dbd8-5afb-99c4-7a06bcb3b7a0} WindowsRuntimeComponent diff --git a/Samples/ProxyStubsForWinRTComponents/cpp/cpp/ProxyStubsForWinRTComponents_client_cpp.vcxproj b/Samples/ProxyStubsForWinRTComponents/cpp/cpp/ProxyStubsForWinRTComponents_client_cpp.vcxproj index f6784ee547..5d79dd46b3 100644 --- a/Samples/ProxyStubsForWinRTComponents/cpp/cpp/ProxyStubsForWinRTComponents_client_cpp.vcxproj +++ b/Samples/ProxyStubsForWinRTComponents/cpp/cpp/ProxyStubsForWinRTComponents_client_cpp.vcxproj @@ -1,5 +1,8 @@  + + $([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), LICENSE))\SharedContent + {a9bb7894-4a82-5af0-abb0-0a7d0a89e076} SDKSample @@ -98,7 +101,7 @@ - $(VC_IncludePath);$(UniversalCRT_IncludePath);$(WindowsSDK_IncludePath);..\..\..\..\SharedContent\cpp + $(VC_IncludePath);$(UniversalCRT_IncludePath);$(WindowsSDK_IncludePath);$(SharedContentDir)\cpp @@ -139,11 +142,11 @@ - - ..\..\..\..\SharedContent\xaml\App.xaml + + $(SharedContentDir)\xaml\App.xaml - - ..\..\..\..\SharedContent\cpp\MainPage.xaml + + $(SharedContentDir)\cpp\MainPage.xaml @@ -160,10 +163,10 @@ - + Designer - + Designer @@ -172,7 +175,7 @@ Designer - + Styles\Styles.xaml @@ -182,11 +185,11 @@ - - ..\..\..\..\SharedContent\xaml\App.xaml + + $(SharedContentDir)\xaml\App.xaml - - ..\..\..\..\SharedContent\cpp\MainPage.xaml + + $(SharedContentDir)\cpp\MainPage.xaml Create @@ -211,25 +214,25 @@ - + Assets\microsoft-sdk.png - + Assets\smalltile-sdk.png - + Assets\splash-sdk.png - + Assets\squaretile-sdk.png - + Assets\storelogo-sdk.png - + Assets\tile-sdk.png - + Assets\windows-sdk.png diff --git a/Samples/ProxyStubsForWinRTComponents/cpp/cpp/ProxyStubsForWinRTComponents_client_cpp.vcxproj.filters b/Samples/ProxyStubsForWinRTComponents/cpp/cpp/ProxyStubsForWinRTComponents_client_cpp.vcxproj.filters index fe1fa13c07..9967b44ae9 100644 --- a/Samples/ProxyStubsForWinRTComponents/cpp/cpp/ProxyStubsForWinRTComponents_client_cpp.vcxproj.filters +++ b/Samples/ProxyStubsForWinRTComponents/cpp/cpp/ProxyStubsForWinRTComponents_client_cpp.vcxproj.filters @@ -10,11 +10,11 @@ - + - - + + @@ -24,8 +24,8 @@ - - + + @@ -36,8 +36,8 @@ - - + + Styles @@ -46,25 +46,25 @@ - + Assets - + Assets - + Assets - + Assets - + Assets - + Assets - + Assets diff --git a/Samples/ProxyStubsForWinRTComponents/cpp/cs/ProxyStubsForWinRTComponents_client_cs.csproj b/Samples/ProxyStubsForWinRTComponents/cpp/cs/ProxyStubsForWinRTComponents_client_cs.csproj index 73d6af3f2b..88eef9a24a 100644 --- a/Samples/ProxyStubsForWinRTComponents/cpp/cs/ProxyStubsForWinRTComponents_client_cs.csproj +++ b/Samples/ProxyStubsForWinRTComponents/cpp/cs/ProxyStubsForWinRTComponents_client_cs.csproj @@ -1,6 +1,9 @@  + + $([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), LICENSE))\SharedContent + Debug x86 @@ -89,15 +92,15 @@ true - + App.xaml.cs App.xaml - + MainPage.xaml.cs MainPage.xaml - + Properties\AssemblyInfo.cs @@ -114,12 +117,12 @@ - + App.xaml MSBuild:Compile Designer - + MainPage.xaml MSBuild:Compile Designer @@ -132,35 +135,35 @@ Designer MSBuild:Compile - + Styles\Styles.xaml MSBuild:Compile Designer - + Properties\Default.rd.xml - + Assets\microsoft-sdk.png - + Assets\smallTile-sdk.png - + Assets\splash-sdk.png - + Assets\squareTile-sdk.png - + Assets\storeLogo-sdk.png - + Assets\tile-sdk.png - + Assets\windows-sdk.png diff --git a/Samples/ProxyStubsForWinRTComponents/cpp/js/ProxyStubsForWinRTComponents_client_js.jsproj b/Samples/ProxyStubsForWinRTComponents/cpp/js/ProxyStubsForWinRTComponents_client_js.jsproj index fd3f11c1c8..a3ffecf02c 100644 --- a/Samples/ProxyStubsForWinRTComponents/cpp/js/ProxyStubsForWinRTComponents_client_js.jsproj +++ b/Samples/ProxyStubsForWinRTComponents/cpp/js/ProxyStubsForWinRTComponents_client_js.jsproj @@ -26,6 +26,9 @@ x86 + + $([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), LICENSE))\SharedContent + e03ec209-b0d0-5820-84df-cfa6e569169b @@ -46,75 +49,75 @@ Designer - + default.html - + images\microsoft-sdk.png - + images\smallTile-sdk.png - + images\splash-sdk.png - + images\storeLogo-sdk.png - + images\tile-sdk.png - + images\windows-sdk.png - + js\default.js - + css\default.css - + Microsoft.WinJS.4.0\css\ui-dark.css - + Microsoft.WinJS.4.0\css\ui-light.css - + Microsoft.WinJS.4.0\js\en-US\ui.strings.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense-setup.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense.js - + Microsoft.WinJS.4.0\fonts\Symbols.ttf - + Microsoft.WinJS.4.0\js\base.js - + Microsoft.WinJS.4.0\js\ui.js - + sample-utils\footer.html - + sample-utils\header.html - + sample-utils\sample-utils.js - + sample-utils\scenario-select.css - + sample-utils\scenario-select.html diff --git a/Samples/ProxyStubsForWinRTComponents/cs/Server/ProxyStubsForWinRTComponentsPS.vcxproj b/Samples/ProxyStubsForWinRTComponents/cs/Server/ProxyStubsForWinRTComponentsPS.vcxproj index 0f68d59838..35be12e875 100644 --- a/Samples/ProxyStubsForWinRTComponents/cs/Server/ProxyStubsForWinRTComponentsPS.vcxproj +++ b/Samples/ProxyStubsForWinRTComponents/cs/Server/ProxyStubsForWinRTComponentsPS.vcxproj @@ -26,6 +26,9 @@ ARM + + $([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), LICENSE))\SharedContent + {3A5B33E2-EAAA-56FD-9F50-F72693E83761} ProxyStubsForWinRTComponents diff --git a/Samples/ProxyStubsForWinRTComponents/cs/Server/ProxyStubsForWinRTComponents_server.csproj b/Samples/ProxyStubsForWinRTComponents/cs/Server/ProxyStubsForWinRTComponents_server.csproj index 0d8401f6a5..e0d70bbb07 100644 --- a/Samples/ProxyStubsForWinRTComponents/cs/Server/ProxyStubsForWinRTComponents_server.csproj +++ b/Samples/ProxyStubsForWinRTComponents/cs/Server/ProxyStubsForWinRTComponents_server.csproj @@ -1,6 +1,9 @@  + + $([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), LICENSE))\SharedContent + Debug x86 diff --git a/Samples/ProxyStubsForWinRTComponents/cs/cpp/ProxyStubsForWinRTComponents_client_cpp.vcxproj b/Samples/ProxyStubsForWinRTComponents/cs/cpp/ProxyStubsForWinRTComponents_client_cpp.vcxproj index 0d2db97296..0b79f4dbb3 100644 --- a/Samples/ProxyStubsForWinRTComponents/cs/cpp/ProxyStubsForWinRTComponents_client_cpp.vcxproj +++ b/Samples/ProxyStubsForWinRTComponents/cs/cpp/ProxyStubsForWinRTComponents_client_cpp.vcxproj @@ -1,5 +1,8 @@  + + $([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), LICENSE))\SharedContent + {8c899410-54b2-58f8-85ba-0dc9313689e1} SDKSample @@ -98,7 +101,7 @@ - $(VC_IncludePath);$(UniversalCRT_IncludePath);$(WindowsSDK_IncludePath);..\..\..\..\SharedContent\cpp + $(VC_IncludePath);$(UniversalCRT_IncludePath);$(WindowsSDK_IncludePath);$(SharedContentDir)\cpp @@ -139,11 +142,11 @@ - - ..\..\..\..\SharedContent\xaml\App.xaml + + $(SharedContentDir)\xaml\App.xaml - - ..\..\..\..\SharedContent\cpp\MainPage.xaml + + $(SharedContentDir)\cpp\MainPage.xaml @@ -160,10 +163,10 @@ - + Designer - + Designer @@ -172,7 +175,7 @@ Designer - + Styles\Styles.xaml @@ -182,11 +185,11 @@ - - ..\..\..\..\SharedContent\xaml\App.xaml + + $(SharedContentDir)\xaml\App.xaml - - ..\..\..\..\SharedContent\cpp\MainPage.xaml + + $(SharedContentDir)\cpp\MainPage.xaml Create @@ -211,25 +214,25 @@ - + Assets\microsoft-sdk.png - + Assets\smalltile-sdk.png - + Assets\splash-sdk.png - + Assets\squaretile-sdk.png - + Assets\storelogo-sdk.png - + Assets\tile-sdk.png - + Assets\windows-sdk.png diff --git a/Samples/ProxyStubsForWinRTComponents/cs/cpp/ProxyStubsForWinRTComponents_client_cpp.vcxproj.filters b/Samples/ProxyStubsForWinRTComponents/cs/cpp/ProxyStubsForWinRTComponents_client_cpp.vcxproj.filters index fe1fa13c07..9967b44ae9 100644 --- a/Samples/ProxyStubsForWinRTComponents/cs/cpp/ProxyStubsForWinRTComponents_client_cpp.vcxproj.filters +++ b/Samples/ProxyStubsForWinRTComponents/cs/cpp/ProxyStubsForWinRTComponents_client_cpp.vcxproj.filters @@ -10,11 +10,11 @@ - + - - + + @@ -24,8 +24,8 @@ - - + + @@ -36,8 +36,8 @@ - - + + Styles @@ -46,25 +46,25 @@ - + Assets - + Assets - + Assets - + Assets - + Assets - + Assets - + Assets diff --git a/Samples/ProxyStubsForWinRTComponents/cs/cs/ProxyStubsForWinRTComponents_client_cs.csproj b/Samples/ProxyStubsForWinRTComponents/cs/cs/ProxyStubsForWinRTComponents_client_cs.csproj index 586fe2a589..5639862031 100644 --- a/Samples/ProxyStubsForWinRTComponents/cs/cs/ProxyStubsForWinRTComponents_client_cs.csproj +++ b/Samples/ProxyStubsForWinRTComponents/cs/cs/ProxyStubsForWinRTComponents_client_cs.csproj @@ -1,6 +1,9 @@  + + $([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), LICENSE))\SharedContent + Debug x86 @@ -89,15 +92,15 @@ true - + App.xaml.cs App.xaml - + MainPage.xaml.cs MainPage.xaml - + Properties\AssemblyInfo.cs @@ -114,12 +117,12 @@ - + App.xaml MSBuild:Compile Designer - + MainPage.xaml MSBuild:Compile Designer @@ -132,35 +135,35 @@ Designer MSBuild:Compile - + Styles\Styles.xaml MSBuild:Compile Designer - + Properties\Default.rd.xml - + Assets\microsoft-sdk.png - + Assets\smallTile-sdk.png - + Assets\splash-sdk.png - + Assets\squareTile-sdk.png - + Assets\storeLogo-sdk.png - + Assets\tile-sdk.png - + Assets\windows-sdk.png diff --git a/Samples/ProxyStubsForWinRTComponents/cs/js/ProxyStubsForWinRTComponents_client_js.jsproj b/Samples/ProxyStubsForWinRTComponents/cs/js/ProxyStubsForWinRTComponents_client_js.jsproj index 477a69bbae..621f619ebe 100644 --- a/Samples/ProxyStubsForWinRTComponents/cs/js/ProxyStubsForWinRTComponents_client_js.jsproj +++ b/Samples/ProxyStubsForWinRTComponents/cs/js/ProxyStubsForWinRTComponents_client_js.jsproj @@ -26,6 +26,9 @@ x86 + + $([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), LICENSE))\SharedContent + f14d57ba-9824-5115-9904-1e7ee2b1e0d1 @@ -46,75 +49,75 @@ Designer - + default.html - + images\microsoft-sdk.png - + images\smallTile-sdk.png - + images\splash-sdk.png - + images\storeLogo-sdk.png - + images\tile-sdk.png - + images\windows-sdk.png - + js\default.js - + css\default.css - + Microsoft.WinJS.4.0\css\ui-dark.css - + Microsoft.WinJS.4.0\css\ui-light.css - + Microsoft.WinJS.4.0\js\en-US\ui.strings.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense-setup.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense.js - + Microsoft.WinJS.4.0\fonts\Symbols.ttf - + Microsoft.WinJS.4.0\js\base.js - + Microsoft.WinJS.4.0\js\ui.js - + sample-utils\footer.html - + sample-utils\header.html - + sample-utils\sample-utils.js - + sample-utils\scenario-select.css - + sample-utils\scenario-select.html diff --git a/Samples/RadialController/README.md b/Samples/RadialController/README.md index 609b92727e..5a94b48ded 100644 --- a/Samples/RadialController/README.md +++ b/Samples/RadialController/README.md @@ -1,5 +1,5 @@ --- -topic: sample +page_type: sample languages: - csharp - cpp @@ -7,6 +7,13 @@ languages: products: - windows - windows-uwp +urlFragment: RadialController +extendedZipContent: +- path: SharedContent + target: SharedContent +- path: LICENSE + target: LICENSE +description: "Creates custom menu items for a Surface Dial device, controls the haptic feedback, and configures the default system items." --- - -# Surface Dial C++ API sample - -Shows how to use the Surface Dial API to create custom menu items and control haptic feedback. - -> **Note:** This sample is part of a large collection of UWP feature samples. -> If you are unfamiliar with Git and GitHub, you can download the entire collection as a -> [ZIP file](https://github.com/Microsoft/Windows-universal-samples/archive/master.zip), but be -> sure to unzip everything to access shared dependencies. For more info on working with the ZIP file, -> the samples collection, and GitHub, see [Get the UWP samples from GitHub](https://aka.ms/ovu2uq). -> For more samples, see the [Samples portal](https://aka.ms/winsamples) on the Windows Dev Center. - -Specifically, this sample shows how to: - -- **Add, remove, and select custom items:** This sample demonstrates how to add, remove, and select custom items dynamically using provided or custom icons. -- **Control haptic feedback:** This sample demonstrates how to enable and disable the haptic feedback for custom items. - -**Note** The Windows universal samples require Visual Studio 2017 to build and Windows 10 to execute. - -To obtain information about Windows 10 development, go to the [Windows Dev Center](http://go.microsoft.com/fwlink/?LinkID=532421) - -To obtain information about Microsoft Visual Studio and the tools for developing Windows apps, go to [Visual Studio](http://go.microsoft.com/fwlink/?LinkID=532422) - -## Related topics - -### Samples - -[C# Sample](../cs) - -### Reference - -[Radial Controller](https://msdn.microsoft.com/library/windows/apps/Windows.UI.Input.RadialController.aspx) -[Radial Controller Menu](https://msdn.microsoft.com/library/windows/apps/windows.ui.input.radialcontrollermenu.aspx) -[Radial Controller Menu Item](https://msdn.microsoft.com/library/windows/apps/Windows.UI.Input.RadialControllerMenuItem.aspx) -[Radial Controller Configuration](https://msdn.microsoft.com/library/windows/apps/windows.ui.input.radialcontrollerconfiguration.aspx) - -## System requirements - -**Client:** Windows 10 - -## Build the sample - -1. If you download the samples ZIP, be sure to unzip the entire archive, not just the folder with the sample you want to build. -2. Start Microsoft Visual Studio 2017 and select **File** \> **Open** \> **Samples/RadialController/cpp/RadialControllerCXX.sln**. -3. Starting in the folder where you unzipped the samples, go to the Samples subfolder, then the subfolder for this specific sample, then the subfolder for your preferred language (C++ or C#). Double-click the Visual Studio Solution (.sln) file. -4. Press Ctrl+Shift+B, or select **Build** \> **Build Solution**. - -## Run the sample - -The next steps depend on whether you just want to deploy the sample or you want to both deploy and run it. - -### Deploying the sample - -- Select Build > Deploy Solution. - -### Deploying and running the sample - -- To debug the sample and then run it, press F5 or select Debug > Start Debugging. To run the sample without debugging, press Ctrl+F5 or selectDebug > Start Without Debugging. diff --git a/Samples/RadialController/cpp/RadialController.vcxproj b/Samples/RadialController/cpp/RadialController.vcxproj index d4859c4247..60e9b06c5d 100644 --- a/Samples/RadialController/cpp/RadialController.vcxproj +++ b/Samples/RadialController/cpp/RadialController.vcxproj @@ -1,5 +1,8 @@  + + $([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), LICENSE))\SharedContent + {a776cb1a-5b94-57c5-9c12-483435450638} SDKTemplate @@ -94,7 +97,7 @@ - $(VC_IncludePath);$(UniversalCRT_IncludePath);$(WindowsSDK_IncludePath);..\..\..\SharedContent\cpp + $(VC_IncludePath);$(UniversalCRT_IncludePath);$(WindowsSDK_IncludePath);$(SharedContentDir)\cpp @@ -134,11 +137,11 @@ - - ..\..\..\SharedContent\xaml\App.xaml + + $(SharedContentDir)\xaml\App.xaml - - ..\..\..\SharedContent\cpp\MainPage.xaml + + $(SharedContentDir)\cpp\MainPage.xaml @@ -146,13 +149,13 @@ - + Designer - + Designer - + Styles\Styles.xaml @@ -165,11 +168,11 @@ - - ..\..\..\SharedContent\xaml\App.xaml + + $(SharedContentDir)\xaml\App.xaml - - ..\..\..\SharedContent\cpp\MainPage.xaml + + $(SharedContentDir)\cpp\MainPage.xaml Create @@ -185,25 +188,25 @@ - + Assets\microsoft-sdk.png - + Assets\smalltile-sdk.png - + Assets\splash-sdk.png - + Assets\squaretile-sdk.png - + Assets\storelogo-sdk.png - + Assets\tile-sdk.png - + Assets\windows-sdk.png @@ -220,7 +223,7 @@ - + Assets\Symbols.ttf diff --git a/Samples/RadialController/cpp/RadialController.vcxproj.filters b/Samples/RadialController/cpp/RadialController.vcxproj.filters index 4523fd5262..889eee0958 100644 --- a/Samples/RadialController/cpp/RadialController.vcxproj.filters +++ b/Samples/RadialController/cpp/RadialController.vcxproj.filters @@ -10,19 +10,19 @@ - + - - + + - - + + @@ -30,32 +30,32 @@ - - + + Styles - + Assets - + Assets - + Assets - + Assets - + Assets - + Assets - + Assets @@ -72,7 +72,7 @@ - + Assets diff --git a/Samples/RadialController/cs/RadialController.csproj b/Samples/RadialController/cs/RadialController.csproj index 235cb09cf5..1b0c44a815 100644 --- a/Samples/RadialController/cs/RadialController.csproj +++ b/Samples/RadialController/cs/RadialController.csproj @@ -1,6 +1,9 @@  + + $([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), LICENSE))\SharedContent + Debug x86 @@ -88,15 +91,15 @@ true - + App.xaml.cs App.xaml - + MainPage.xaml.cs MainPage.xaml - + Properties\AssemblyInfo.cs @@ -113,12 +116,12 @@ - + App.xaml MSBuild:Compile Designer - + MainPage.xaml MSBuild:Compile Designer @@ -128,7 +131,7 @@ MSBuild:Compile Designer - + Styles\Styles.xaml MSBuild:Compile Designer @@ -140,28 +143,28 @@ - + Properties\Default.rd.xml - + Assets\microsoft-sdk.png - + Assets\smallTile-sdk.png - + Assets\splash-sdk.png - + Assets\squareTile-sdk.png - + Assets\storeLogo-sdk.png - + Assets\tile-sdk.png - + Assets\windows-sdk.png @@ -176,7 +179,7 @@ Assets\Item3.png - + Assets\Symbols.ttf diff --git a/Samples/RadioManager/README.md b/Samples/RadioManager/README.md index e83f67da3a..eac0296d82 100644 --- a/Samples/RadioManager/README.md +++ b/Samples/RadioManager/README.md @@ -1,5 +1,5 @@ --- -topic: sample +page_type: sample languages: - csharp - cpp @@ -7,6 +7,13 @@ languages: products: - windows - windows-uwp +urlFragment: RadioManager +extendedZipContent: +- path: SharedContent + target: SharedContent +- path: LICENSE + target: LICENSE +description: "Shows how to enumerate radios on a device, toggle radio state changes, and register for state changes on individual radios." --- - + PreserveNewest Assets\sqaretile-sdk.png - + PreserveNewest Assets\smalltile-sdk.png - + PreserveNewest Assets\splash-sdk.png - + PreserveNewest Assets\storelogo-sdk.png - + PreserveNewest Assets\tile-sdk.png diff --git a/Samples/VoIP/cs/VoipBackEnd/VoipBackEnd.vcxproj b/Samples/VoIP/cs/VoipBackEnd/VoipBackEnd.vcxproj index b721619ad4..713a0418d7 100644 --- a/Samples/VoIP/cs/VoipBackEnd/VoipBackEnd.vcxproj +++ b/Samples/VoIP/cs/VoipBackEnd/VoipBackEnd.vcxproj @@ -26,6 +26,9 @@ x64 + + $([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), LICENSE))\SharedContent + {35b4a898-d88d-5fca-937e-8e709ac15a37} WindowsRuntimeComponent diff --git a/Samples/VoIP/cs/VoipHost/VoipHost.vcxproj b/Samples/VoIP/cs/VoipHost/VoipHost.vcxproj index dda9b7e139..3a1e6d1735 100644 --- a/Samples/VoIP/cs/VoipHost/VoipHost.vcxproj +++ b/Samples/VoIP/cs/VoipHost/VoipHost.vcxproj @@ -32,6 +32,9 @@ + + $([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), LICENSE))\SharedContent + {c9cfe4f3-a04b-5d8d-a3ae-b3025c9f2ecd} WindowsRuntimeComponent diff --git a/Samples/VoIP/cs/VoipTasks/VoipTasks.csproj b/Samples/VoIP/cs/VoipTasks/VoipTasks.csproj index 6d3056b06c..3f18743571 100644 --- a/Samples/VoIP/cs/VoipTasks/VoipTasks.csproj +++ b/Samples/VoIP/cs/VoipTasks/VoipTasks.csproj @@ -1,6 +1,9 @@  + + $([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), LICENSE))\SharedContent + Debug AnyCPU diff --git a/Samples/WRLInProcessWinRTComponent/README.md b/Samples/WRLInProcessWinRTComponent/README.md index 243723e29b..1a60a829ff 100644 --- a/Samples/WRLInProcessWinRTComponent/README.md +++ b/Samples/WRLInProcessWinRTComponent/README.md @@ -1,11 +1,18 @@ --- -topic: sample +page_type: sample languages: - cpp - cppcx products: - windows - windows-uwp +urlFragment: WRLInProcessWinRTComponent +extendedZipContent: +- path: SharedContent + target: SharedContent +- path: LICENSE + target: LICENSE +description: "Shows how to create an in-process component in C++ using WRL that is consumed in C++, JS, and C#." --- -# In-process component authoring sample +# In-process WRL component authoring sample Shows how to create an in-process component in C++ using WRL that is consumed in C++, JS, and C#. > **Note:** This sample is part of a large collection of UWP feature samples. -> If you are unfamiliar with Git and GitHub, you can download the entire collection as a +> You can download this sample as a standalone ZIP file +> [from docs.microsoft.com](https://docs.microsoft.com/samples/microsoft/windows-universal-samples/wrlinprocesswinrtcomponent/), +> or you can download the entire collection as a single > [ZIP file](https://github.com/Microsoft/Windows-universal-samples/archive/master.zip), but be > sure to unzip everything to access shared dependencies. For more info on working with the ZIP file, > the samples collection, and GitHub, see [Get the UWP samples from GitHub](https://aka.ms/ovu2uq). > For more samples, see the [Samples portal](https://aka.ms/winsamples) on the Windows Dev Center. -**Note** The Windows universal samples require Visual Studio 2017 to build and Windows 10 to execute. +**Note** The Windows universal samples require Visual Studio to build and Windows 10 to execute. To obtain information about Windows 10 development, go to the [Windows Dev Center](http://go.microsoft.com/fwlink/?LinkID=532421) @@ -41,7 +50,7 @@ To obtain information about Microsoft Visual Studio and the tools for developing ## Build the sample 1. If you download the samples ZIP, be sure to unzip the entire archive, not just the folder with the sample you want to build. -2. Start Microsoft Visual Studio 2017 and select **File** \> **Open** \> **Project/Solution**. +2. Start Microsoft Visual Studio and select **File** \> **Open** \> **Project/Solution**. 3. Starting in the folder where you unzipped the samples, go to the Samples subfolder, then the subfolder for this specific sample, then the subfolder for your preferred language (C++, C#, or JavaScript). Double-click the Visual Studio Solution (.sln) file. 4. Press Ctrl+Shift+B, or select **Build** \> **Build Solution**. diff --git a/Samples/WRLInProcessWinRTComponent/cpp/Server/WRLInProcessWinRTComponentPS.vcxproj b/Samples/WRLInProcessWinRTComponent/cpp/Server/WRLInProcessWinRTComponentPS.vcxproj index 5db5306d25..d34a10b128 100644 --- a/Samples/WRLInProcessWinRTComponent/cpp/Server/WRLInProcessWinRTComponentPS.vcxproj +++ b/Samples/WRLInProcessWinRTComponent/cpp/Server/WRLInProcessWinRTComponentPS.vcxproj @@ -26,6 +26,9 @@ ARM + + $([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), LICENSE))\SharedContent + {7E3A93B6-4769-559E-988F-261D7EA01D7B} WRLInProcessWinRTComponent diff --git a/Samples/WRLInProcessWinRTComponent/cpp/Server/WRLInProcessWinRTComponent_server.vcxproj b/Samples/WRLInProcessWinRTComponent/cpp/Server/WRLInProcessWinRTComponent_server.vcxproj index 8591448f56..e1c1502984 100644 --- a/Samples/WRLInProcessWinRTComponent/cpp/Server/WRLInProcessWinRTComponent_server.vcxproj +++ b/Samples/WRLInProcessWinRTComponent/cpp/Server/WRLInProcessWinRTComponent_server.vcxproj @@ -26,6 +26,9 @@ ARM + + $([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), LICENSE))\SharedContent + {72ACE233-0D32-5A05-B998-6EAEE50A82FF} Microsoft.SDKSamples.Kitchen diff --git a/Samples/WRLInProcessWinRTComponent/cpp/cpp/WRLInProcessWinRTComponent_client_cpp.vcxproj b/Samples/WRLInProcessWinRTComponent/cpp/cpp/WRLInProcessWinRTComponent_client_cpp.vcxproj index 2c013e30b4..c528b75a97 100644 --- a/Samples/WRLInProcessWinRTComponent/cpp/cpp/WRLInProcessWinRTComponent_client_cpp.vcxproj +++ b/Samples/WRLInProcessWinRTComponent/cpp/cpp/WRLInProcessWinRTComponent_client_cpp.vcxproj @@ -1,5 +1,8 @@  + + $([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), LICENSE))\SharedContent + {855eb942-d5d4-514e-a00d-32c55dcee951} SDKTemplate @@ -98,7 +101,7 @@ - $(VC_IncludePath);$(UniversalCRT_IncludePath);$(WindowsSDK_IncludePath);..\..\..\..\SharedContent\cpp + $(VC_IncludePath);$(UniversalCRT_IncludePath);$(WindowsSDK_IncludePath);$(SharedContentDir)\cpp @@ -139,11 +142,11 @@ - - ..\..\..\..\SharedContent\xaml\App.xaml + + $(SharedContentDir)\xaml\App.xaml - - ..\..\..\..\SharedContent\cpp\MainPage.xaml + + $(SharedContentDir)\cpp\MainPage.xaml @@ -160,10 +163,10 @@ - + Designer - + Designer @@ -172,7 +175,7 @@ Designer - + Styles\Styles.xaml @@ -182,11 +185,11 @@ - - ..\..\..\..\SharedContent\xaml\App.xaml + + $(SharedContentDir)\xaml\App.xaml - - ..\..\..\..\SharedContent\cpp\MainPage.xaml + + $(SharedContentDir)\cpp\MainPage.xaml Create @@ -211,25 +214,25 @@ - + Assets\microsoft-sdk.png - + Assets\smalltile-sdk.png - + Assets\splash-sdk.png - + Assets\squaretile-sdk.png - + Assets\storelogo-sdk.png - + Assets\tile-sdk.png - + Assets\windows-sdk.png diff --git a/Samples/WRLInProcessWinRTComponent/cpp/cpp/WRLInProcessWinRTComponent_client_cpp.vcxproj.filters b/Samples/WRLInProcessWinRTComponent/cpp/cpp/WRLInProcessWinRTComponent_client_cpp.vcxproj.filters index fe1fa13c07..9967b44ae9 100644 --- a/Samples/WRLInProcessWinRTComponent/cpp/cpp/WRLInProcessWinRTComponent_client_cpp.vcxproj.filters +++ b/Samples/WRLInProcessWinRTComponent/cpp/cpp/WRLInProcessWinRTComponent_client_cpp.vcxproj.filters @@ -10,11 +10,11 @@ - + - - + + @@ -24,8 +24,8 @@ - - + + @@ -36,8 +36,8 @@ - - + + Styles @@ -46,25 +46,25 @@ - + Assets - + Assets - + Assets - + Assets - + Assets - + Assets - + Assets diff --git a/Samples/WRLInProcessWinRTComponent/cpp/cs/WRLInProcessWinRTComponent_client_cs.csproj b/Samples/WRLInProcessWinRTComponent/cpp/cs/WRLInProcessWinRTComponent_client_cs.csproj index b3b3a97f0a..c5f57cb3f1 100644 --- a/Samples/WRLInProcessWinRTComponent/cpp/cs/WRLInProcessWinRTComponent_client_cs.csproj +++ b/Samples/WRLInProcessWinRTComponent/cpp/cs/WRLInProcessWinRTComponent_client_cs.csproj @@ -1,6 +1,9 @@  + + $([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), LICENSE))\SharedContent + Debug x86 @@ -89,15 +92,15 @@ true - + App.xaml.cs App.xaml - + MainPage.xaml.cs MainPage.xaml - + Properties\AssemblyInfo.cs @@ -114,12 +117,12 @@ - + App.xaml MSBuild:Compile Designer - + MainPage.xaml MSBuild:Compile Designer @@ -132,35 +135,35 @@ Designer MSBuild:Compile - + Styles\Styles.xaml MSBuild:Compile Designer - + Properties\Default.rd.xml - + Assets\microsoft-sdk.png - + Assets\smallTile-sdk.png - + Assets\splash-sdk.png - + Assets\squareTile-sdk.png - + Assets\storeLogo-sdk.png - + Assets\tile-sdk.png - + Assets\windows-sdk.png diff --git a/Samples/WRLInProcessWinRTComponent/cpp/js/WRLInProcessWinRTComponent_client_js.jsproj b/Samples/WRLInProcessWinRTComponent/cpp/js/WRLInProcessWinRTComponent_client_js.jsproj index 1bc548066d..154a89a217 100644 --- a/Samples/WRLInProcessWinRTComponent/cpp/js/WRLInProcessWinRTComponent_client_js.jsproj +++ b/Samples/WRLInProcessWinRTComponent/cpp/js/WRLInProcessWinRTComponent_client_js.jsproj @@ -26,6 +26,9 @@ x86 + + $([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), LICENSE))\SharedContent + 7cfe3cd8-1d02-5f9a-a38d-689ccdf092b4 @@ -46,75 +49,75 @@ Designer - + default.html - + images\microsoft-sdk.png - + images\smallTile-sdk.png - + images\splash-sdk.png - + images\storeLogo-sdk.png - + images\tile-sdk.png - + images\windows-sdk.png - + js\default.js - + css\default.css - + Microsoft.WinJS.4.0\css\ui-dark.css - + Microsoft.WinJS.4.0\css\ui-light.css - + Microsoft.WinJS.4.0\js\en-US\ui.strings.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense-setup.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense.js - + Microsoft.WinJS.4.0\fonts\Symbols.ttf - + Microsoft.WinJS.4.0\js\base.js - + Microsoft.WinJS.4.0\js\ui.js - + sample-utils\footer.html - + sample-utils\header.html - + sample-utils\sample-utils.js - + sample-utils\scenario-select.css - + sample-utils\scenario-select.html diff --git a/Samples/WRLOutOfProcessWinRTComponent/README.md b/Samples/WRLOutOfProcessWinRTComponent/README.md index 77a1f66d89..1fc86f70fa 100644 --- a/Samples/WRLOutOfProcessWinRTComponent/README.md +++ b/Samples/WRLOutOfProcessWinRTComponent/README.md @@ -1,11 +1,18 @@ --- -topic: sample +page_type: sample languages: - cpp - cppcx products: - windows - windows-uwp +urlFragment: WRLOutOfProcessWinRTComponent +extendedZipContent: +- path: SharedContent + target: SharedContent +- path: LICENSE + target: LICENSE +description: "Shows how to create an out-of-process component in C++ using WRL that is consumed in C++, JS, and C#." --- -# Out-of-process component authoring +# Out-of-process WRL component authoring Shows how to create an out-of-process component in C++ using WRL that is consumed in C++, JS, and C#. > **Note:** This sample is part of a large collection of UWP feature samples. -> If you are unfamiliar with Git and GitHub, you can download the entire collection as a +> You can download this sample as a standalone ZIP file +> [from docs.microsoft.com](https://docs.microsoft.com/samples/microsoft/windows-universal-samples/wrloutofprocesswinrtcomponent/), +> or you can download the entire collection as a single > [ZIP file](https://github.com/Microsoft/Windows-universal-samples/archive/master.zip), but be > sure to unzip everything to access shared dependencies. For more info on working with the ZIP file, > the samples collection, and GitHub, see [Get the UWP samples from GitHub](https://aka.ms/ovu2uq). @@ -27,7 +36,7 @@ Shows how to create an out-of-process component in C++ using WRL that is consume See [this discussion](https://github.com/Microsoft/Windows-universal-samples/issues/526#issuecomment-346468732) for information on hosting out-of-process components in other languages. -**Note** The Windows universal samples require Visual Studio 2017 to build and Windows 10 to execute. +**Note** The Windows universal samples require Visual Studio to build and Windows 10 to execute. To obtain information about Windows 10 development, go to the [Windows Dev Center](http://go.microsoft.com/fwlink/?LinkID=532421) @@ -44,7 +53,7 @@ To obtain information about Microsoft Visual Studio and the tools for developing ## Build the sample 1. If you download the samples ZIP, be sure to unzip the entire archive, not just the folder with the sample you want to build. -2. Start Microsoft Visual Studio 2017 and select **File** \> **Open** \> **Project/Solution**. +2. Start Microsoft Visual Studio and select **File** \> **Open** \> **Project/Solution**. 3. Starting in the folder where you unzipped the samples, go to the Samples subfolder, then the subfolder for this specific sample, then the subfolder for your preferred language (C++, C#, or JavaScript). Double-click the Visual Studio Solution (.sln) file. 4. Press Ctrl+Shift+B, or select **Build** \> **Build Solution**. diff --git a/Samples/WRLOutOfProcessWinRTComponent/cpp/Server/WRLOutOfProcessWinRTComponentPS.vcxproj b/Samples/WRLOutOfProcessWinRTComponent/cpp/Server/WRLOutOfProcessWinRTComponentPS.vcxproj index b0358da9cf..4d5183b8e7 100644 --- a/Samples/WRLOutOfProcessWinRTComponent/cpp/Server/WRLOutOfProcessWinRTComponentPS.vcxproj +++ b/Samples/WRLOutOfProcessWinRTComponent/cpp/Server/WRLOutOfProcessWinRTComponentPS.vcxproj @@ -26,6 +26,9 @@ ARM + + $([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), LICENSE))\SharedContent + {F15BFD86-12E2-5559-BD28-0063A225A55F} WRLOutOfProcessWinRTComponent diff --git a/Samples/WRLOutOfProcessWinRTComponent/cpp/Server/WRLOutOfProcessWinRTComponent_server.vcxproj b/Samples/WRLOutOfProcessWinRTComponent/cpp/Server/WRLOutOfProcessWinRTComponent_server.vcxproj index e3d80f29f0..8c2b5c9c37 100644 --- a/Samples/WRLOutOfProcessWinRTComponent/cpp/Server/WRLOutOfProcessWinRTComponent_server.vcxproj +++ b/Samples/WRLOutOfProcessWinRTComponent/cpp/Server/WRLOutOfProcessWinRTComponent_server.vcxproj @@ -26,6 +26,9 @@ ARM + + $([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), LICENSE))\SharedContent + {90863f14-2e68-5464-bfe6-72ed72d369f8} Win32Proj diff --git a/Samples/WRLOutOfProcessWinRTComponent/cpp/cpp/WRLOutOfProcessWinRTComponent_client_cpp.vcxproj b/Samples/WRLOutOfProcessWinRTComponent/cpp/cpp/WRLOutOfProcessWinRTComponent_client_cpp.vcxproj index 90e4b008fb..da90c74d3b 100644 --- a/Samples/WRLOutOfProcessWinRTComponent/cpp/cpp/WRLOutOfProcessWinRTComponent_client_cpp.vcxproj +++ b/Samples/WRLOutOfProcessWinRTComponent/cpp/cpp/WRLOutOfProcessWinRTComponent_client_cpp.vcxproj @@ -1,5 +1,8 @@  + + $([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), LICENSE))\SharedContent + {912023e0-8c2a-5eac-9020-f301f43ebe42} SDKTemplate @@ -98,7 +101,7 @@ - $(VC_IncludePath);$(UniversalCRT_IncludePath);$(WindowsSDK_IncludePath);..\..\..\..\SharedContent\cpp + $(VC_IncludePath);$(UniversalCRT_IncludePath);$(WindowsSDK_IncludePath);$(SharedContentDir)\cpp @@ -139,11 +142,11 @@ - - ..\..\..\..\SharedContent\xaml\App.xaml + + $(SharedContentDir)\xaml\App.xaml - - ..\..\..\..\SharedContent\cpp\MainPage.xaml + + $(SharedContentDir)\cpp\MainPage.xaml @@ -160,10 +163,10 @@ - + Designer - + Designer @@ -172,7 +175,7 @@ Designer - + Styles\Styles.xaml @@ -182,11 +185,11 @@ - - ..\..\..\..\SharedContent\xaml\App.xaml + + $(SharedContentDir)\xaml\App.xaml - - ..\..\..\..\SharedContent\cpp\MainPage.xaml + + $(SharedContentDir)\cpp\MainPage.xaml Create @@ -211,25 +214,25 @@ - + Assets\microsoft-sdk.png - + Assets\smalltile-sdk.png - + Assets\splash-sdk.png - + Assets\squaretile-sdk.png - + Assets\storelogo-sdk.png - + Assets\tile-sdk.png - + Assets\windows-sdk.png diff --git a/Samples/WRLOutOfProcessWinRTComponent/cpp/cpp/WRLOutOfProcessWinRTComponent_client_cpp.vcxproj.filters b/Samples/WRLOutOfProcessWinRTComponent/cpp/cpp/WRLOutOfProcessWinRTComponent_client_cpp.vcxproj.filters index fe1fa13c07..9967b44ae9 100644 --- a/Samples/WRLOutOfProcessWinRTComponent/cpp/cpp/WRLOutOfProcessWinRTComponent_client_cpp.vcxproj.filters +++ b/Samples/WRLOutOfProcessWinRTComponent/cpp/cpp/WRLOutOfProcessWinRTComponent_client_cpp.vcxproj.filters @@ -10,11 +10,11 @@ - + - - + + @@ -24,8 +24,8 @@ - - + + @@ -36,8 +36,8 @@ - - + + Styles @@ -46,25 +46,25 @@ - + Assets - + Assets - + Assets - + Assets - + Assets - + Assets - + Assets diff --git a/Samples/WRLOutOfProcessWinRTComponent/cpp/cs/WRLOutOfProcessWinRTComponent_client_cs.csproj b/Samples/WRLOutOfProcessWinRTComponent/cpp/cs/WRLOutOfProcessWinRTComponent_client_cs.csproj index 6d6e1874df..a0f407ffad 100644 --- a/Samples/WRLOutOfProcessWinRTComponent/cpp/cs/WRLOutOfProcessWinRTComponent_client_cs.csproj +++ b/Samples/WRLOutOfProcessWinRTComponent/cpp/cs/WRLOutOfProcessWinRTComponent_client_cs.csproj @@ -1,6 +1,9 @@  + + $([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), LICENSE))\SharedContent + Debug x86 @@ -89,15 +92,15 @@ true - + App.xaml.cs App.xaml - + MainPage.xaml.cs MainPage.xaml - + Properties\AssemblyInfo.cs @@ -114,12 +117,12 @@ - + App.xaml MSBuild:Compile Designer - + MainPage.xaml MSBuild:Compile Designer @@ -132,35 +135,35 @@ Designer MSBuild:Compile - + Styles\Styles.xaml MSBuild:Compile Designer - + Properties\Default.rd.xml - + Assets\microsoft-sdk.png - + Assets\smallTile-sdk.png - + Assets\splash-sdk.png - + Assets\squareTile-sdk.png - + Assets\storeLogo-sdk.png - + Assets\tile-sdk.png - + Assets\windows-sdk.png diff --git a/Samples/WRLOutOfProcessWinRTComponent/cpp/js/WRLOutOfProcessWinRTComponent_client_js.jsproj b/Samples/WRLOutOfProcessWinRTComponent/cpp/js/WRLOutOfProcessWinRTComponent_client_js.jsproj index a69be6d2fc..592e734df8 100644 --- a/Samples/WRLOutOfProcessWinRTComponent/cpp/js/WRLOutOfProcessWinRTComponent_client_js.jsproj +++ b/Samples/WRLOutOfProcessWinRTComponent/cpp/js/WRLOutOfProcessWinRTComponent_client_js.jsproj @@ -26,6 +26,9 @@ x86 + + $([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), LICENSE))\SharedContent + c0e09eef-28ad-5f5f-ae11-59cb55456b8c @@ -46,75 +49,75 @@ Designer - + default.html - + images\microsoft-sdk.png - + images\smallTile-sdk.png - + images\splash-sdk.png - + images\storeLogo-sdk.png - + images\tile-sdk.png - + images\windows-sdk.png - + js\default.js - + css\default.css - + Microsoft.WinJS.4.0\css\ui-dark.css - + Microsoft.WinJS.4.0\css\ui-light.css - + Microsoft.WinJS.4.0\js\en-US\ui.strings.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense-setup.js - + Microsoft.WinJS.4.0\js\WinJS.intellisense.js - + Microsoft.WinJS.4.0\fonts\Symbols.ttf - + Microsoft.WinJS.4.0\js\base.js - + Microsoft.WinJS.4.0\js\ui.js - + sample-utils\footer.html - + sample-utils\header.html - + sample-utils\sample-utils.js - + sample-utils\scenario-select.css - + sample-utils\scenario-select.html diff --git a/Samples/WebAccountManagement/README.md b/Samples/WebAccountManagement/README.md index eee9179910..d324219194 100644 --- a/Samples/WebAccountManagement/README.md +++ b/Samples/WebAccountManagement/README.md @@ -1,5 +1,5 @@ --- -topic: sample +page_type: sample languages: - csharp - cpp @@ -7,6 +7,13 @@ languages: products: - windows - windows-uwp +urlFragment: WebAccountManagement +extendedZipContent: +- path: SharedContent + target: SharedContent +- path: LICENSE + target: LICENSE +description: "Shows how to get tokens to access different accounts." --- - + Properties\Default.rd.xml diff --git a/Samples/XamlBind/cs/xBindSampleCS.csproj b/Samples/XamlBind/cs/xBindSampleCS.csproj index 9f783d1d3c..fa299c7aa4 100644 --- a/Samples/XamlBind/cs/xBindSampleCS.csproj +++ b/Samples/XamlBind/cs/xBindSampleCS.csproj @@ -1,6 +1,9 @@  + + $([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), LICENSE))\SharedContent + Debug {3E913099-D4BC-523C-984F-133CED8E54E0} @@ -88,7 +91,7 @@ true - + App.xaml.cs App.xaml @@ -117,7 +120,7 @@ PhasingTests.xaml - + Properties\AssemblyInfo.cs @@ -177,28 +180,28 @@ - + Properties\Default.rd.xml - + Assets\microsoft-sdk.png - + Assets\smallTile-sdk.png - + Assets\splash-sdk.png - + Assets\squareTile-sdk.png - + Assets\storeLogo-sdk.png - + Assets\tile-sdk.png - + Assets\windows-sdk.png diff --git a/Samples/XamlBind/cs/xBindSampleModel/xBindSampleModel.csproj b/Samples/XamlBind/cs/xBindSampleModel/xBindSampleModel.csproj index 5300af4139..8ce83e6efd 100644 --- a/Samples/XamlBind/cs/xBindSampleModel/xBindSampleModel.csproj +++ b/Samples/XamlBind/cs/xBindSampleModel/xBindSampleModel.csproj @@ -1,6 +1,9 @@  + + $([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), LICENSE))\SharedContent + Debug 8.0.30703 diff --git a/Samples/XamlBottomUpList/README.md b/Samples/XamlBottomUpList/README.md index a138b2e51a..4e7e87cfcc 100644 --- a/Samples/XamlBottomUpList/README.md +++ b/Samples/XamlBottomUpList/README.md @@ -1,5 +1,5 @@ --- -topic: sample +page_type: sample languages: - csharp - cpp @@ -7,6 +7,13 @@ languages: products: - windows - windows-uwp +urlFragment: XamlBottomUpList +extendedZipContent: +- path: SharedContent + target: SharedContent +- path: LICENSE + target: LICENSE +description: "Shows a ListView that is tailored for scenarios in which the last item is the most interesting." ---