Skip to content
Permalink
Browse files

Windows 10 Version 1903 - July 2019 Update

  • Loading branch information...
oldnewthing committed Jul 25, 2019
1 parent cdfd8ef commit 81f5916b445ef42eaa5d30b7476ce26359abc6fc
Showing with 5,082 additions and 1,823 deletions.
  1. +1 −0 Samples/AppWindow/cppwinrt/AppWindow.vcxproj
  2. +23 −23 Samples/AppWindow/cppwinrt/Project.idl
  3. +7 −7 Samples/AppWindow/cppwinrt/SampleConfiguration.cpp
  4. +15 −15 Samples/AppWindow/cppwinrt/SampleConfiguration.h
  5. +1 −0 Samples/AppWindow/cppwinrt/Scenario1_SecondaryWindow.cpp
  6. +1 −1 Samples/AppWindow/cppwinrt/Scenario1_SecondaryWindow.h
  7. +92 −91 Samples/AppWindow/cppwinrt/Scenario2_DisplayRegion.cpp
  8. +16 −16 Samples/AppWindow/cppwinrt/Scenario2_DisplayRegion.h
  9. +67 −66 Samples/AppWindow/cppwinrt/Scenario3_Size.cpp
  10. +13 −13 Samples/AppWindow/cppwinrt/Scenario3_Size.h
  11. +60 −59 Samples/AppWindow/cppwinrt/Scenario4_CompactOverlay.cpp
  12. +6 −6 Samples/AppWindow/cppwinrt/Scenario4_CompactOverlay.h
  13. +60 −59 Samples/AppWindow/cppwinrt/Scenario5_RelativePositioning.cpp
  14. +7 −7 Samples/AppWindow/cppwinrt/Scenario5_RelativePositioning.h
  15. +2 −1 Samples/AppWindow/cppwinrt/SecondaryAppWindowPage.cpp
  16. +1 −1 Samples/AppWindow/cppwinrt/SecondaryAppWindowPage.h
  17. +1 −1 Samples/AppWindow/cppwinrt/pch.h
  18. +3 −0 Samples/BackgroundActivation/cs/BackgroundActivation.csproj
  19. +1 −1 Samples/BackgroundActivation/cs/Package.appxmanifest
  20. +8 −5 Samples/BluetoothLE/cppwinrt/BluetoothLE.vcxproj
  21. +2 −3 Samples/BluetoothLE/cppwinrt/BluetoothLE.vcxproj.filters
  22. +9 −32 Samples/BluetoothLE/cppwinrt/BluetoothLEAttributeDisplay.cpp
  23. +3 −71 Samples/BluetoothLE/cppwinrt/BluetoothLEAttributeDisplay.h
  24. +1 −0 Samples/BluetoothLE/cppwinrt/BluetoothLEDeviceDisplay.cpp
  25. +0 −7 Samples/BluetoothLE/cppwinrt/BluetoothLEDeviceDisplay.h
  26. +0 −26 Samples/BluetoothLE/cppwinrt/Project.idl
  27. +1 −0 Samples/BluetoothLE/cppwinrt/Scenario1_Discovery.cpp
  28. +1 −1 Samples/BluetoothLE/cppwinrt/Scenario1_Discovery.h
  29. +18 −15 Samples/BluetoothLE/cppwinrt/Scenario2_Client.cpp
  30. +1 −13 Samples/BluetoothLE/cppwinrt/Scenario2_Client.h
  31. +1 −0 Samples/BluetoothLE/cppwinrt/Scenario3_ServerForeground.cpp
  32. +1 −1 Samples/BluetoothLE/cppwinrt/Scenario3_ServerForeground.h
  33. +1 −1 Samples/BluetoothLE/cppwinrt/packages.config
  34. +5 −1 Samples/BluetoothLE/cppwinrt/pch.h
  35. +0 −3 Samples/BluetoothLE/cs/BluetoothLE.csproj
  36. +28 −69 Samples/BluetoothLE/cs/DisplayHelpers.cs
  37. +8 −21 Samples/BluetoothLE/cs/Scenario2_Client.xaml.cs
  38. +0 −22 Samples/BluetoothLE/shared/Scenario2_Client.xaml
  39. +0 −20 Samples/BluetoothLE/shared/Scenario3_ServerForeground.xaml
  40. +9 −4 Samples/DeviceEnumerationAndPairing/cpp/DisplayHelpers.cpp
  41. +5 −0 Samples/DeviceEnumerationAndPairing/cpp/DisplayHelpers.h
  42. +9 −9 Samples/DeviceEnumerationAndPairing/cpp/SampleConfiguration.cpp
  43. +5 −5 Samples/DeviceEnumerationAndPairing/cpp/Scenario1_DevicePicker.xaml.cpp
  44. +2 −6 Samples/DeviceEnumerationAndPairing/cpp/Scenario1_DevicePicker.xaml.h
  45. +7 −7 Samples/DeviceEnumerationAndPairing/cpp/Scenario2_DeviceWatcher.xaml.cpp
  46. +2 −3 Samples/DeviceEnumerationAndPairing/cpp/Scenario2_DeviceWatcher.xaml.h
  47. +9 −9 Samples/DeviceEnumerationAndPairing/cpp/Scenario3_BackgroundDeviceWatcher.xaml.cpp
  48. +2 −5 Samples/DeviceEnumerationAndPairing/cpp/Scenario3_BackgroundDeviceWatcher.xaml.h
  49. +3 −3 Samples/DeviceEnumerationAndPairing/cpp/Scenario4_Snapshot.xaml.cpp
  50. +2 −3 Samples/DeviceEnumerationAndPairing/cpp/Scenario4_Snapshot.xaml.h
  51. +33 −25 Samples/DeviceEnumerationAndPairing/cpp/Scenario5_GetSingleDevice.xaml.cpp
  52. +3 −3 Samples/DeviceEnumerationAndPairing/cpp/Scenario5_GetSingleDevice.xaml.h
  53. +7 −7 Samples/DeviceEnumerationAndPairing/cpp/Scenario6_CustomFilterAddedProps.xaml.cpp
  54. +2 −6 Samples/DeviceEnumerationAndPairing/cpp/Scenario6_CustomFilterAddedProps.xaml.h
  55. +9 −9 Samples/DeviceEnumerationAndPairing/cpp/Scenario7_DeviceInformationKind.xaml.cpp
  56. +2 −6 Samples/DeviceEnumerationAndPairing/cpp/Scenario7_DeviceInformationKind.xaml.h
  57. +13 −13 Samples/DeviceEnumerationAndPairing/cpp/Scenario8_PairDevice.xaml.cpp
  58. +2 −2 Samples/DeviceEnumerationAndPairing/cpp/Scenario8_PairDevice.xaml.h
  59. +39 −32 Samples/DeviceEnumerationAndPairing/cpp/Scenario9_CustomPairDevice.xaml.cpp
  60. +2 −6 Samples/DeviceEnumerationAndPairing/cpp/Scenario9_CustomPairDevice.xaml.h
  61. +57 −0 Samples/DeviceEnumerationAndPairing/cppwinrt/DeviceEnumeration.sln
  62. +244 −0 Samples/DeviceEnumerationAndPairing/cppwinrt/DeviceEnumeration.vcxproj
  63. +93 −0 Samples/DeviceEnumerationAndPairing/cppwinrt/DeviceEnumeration.vcxproj.filters
  64. +304 −0 Samples/DeviceEnumerationAndPairing/cppwinrt/DeviceHelpers.cpp
  65. +203 −0 Samples/DeviceEnumerationAndPairing/cppwinrt/DeviceHelpers.h
  66. +197 −0 Samples/DeviceEnumerationAndPairing/cppwinrt/DeviceWatcherHelper.cpp
  67. +58 −0 Samples/DeviceEnumerationAndPairing/cppwinrt/DeviceWatcherHelper.h
  68. +46 −0 Samples/DeviceEnumerationAndPairing/cppwinrt/Package.appxmanifest
  69. +98 −0 Samples/DeviceEnumerationAndPairing/cppwinrt/Project.idl
  70. +102 −0 Samples/DeviceEnumerationAndPairing/cppwinrt/SampleConfiguration.cpp
  71. +89 −0 Samples/DeviceEnumerationAndPairing/cppwinrt/SampleConfiguration.h
  72. +133 −0 Samples/DeviceEnumerationAndPairing/cppwinrt/Scenario1_DevicePicker.cpp
  73. +46 −0 Samples/DeviceEnumerationAndPairing/cppwinrt/Scenario1_DevicePicker.h
  74. +99 −0 Samples/DeviceEnumerationAndPairing/cppwinrt/Scenario2_DeviceWatcher.cpp
  75. +45 −0 Samples/DeviceEnumerationAndPairing/cppwinrt/Scenario2_DeviceWatcher.h
  76. +164 −0 Samples/DeviceEnumerationAndPairing/cppwinrt/Scenario3_BackgroundDeviceWatcher.cpp
  77. +48 −0 Samples/DeviceEnumerationAndPairing/cppwinrt/Scenario3_BackgroundDeviceWatcher.h
  78. +88 −0 Samples/DeviceEnumerationAndPairing/cppwinrt/Scenario4_Snapshot.cpp
  79. +39 −0 Samples/DeviceEnumerationAndPairing/cppwinrt/Scenario4_Snapshot.h
  80. +89 −0 Samples/DeviceEnumerationAndPairing/cppwinrt/Scenario5_GetSingleDevice.cpp
  81. +40 −0 Samples/DeviceEnumerationAndPairing/cppwinrt/Scenario5_GetSingleDevice.h
  82. +87 −0 Samples/DeviceEnumerationAndPairing/cppwinrt/Scenario6_CustomFilterAddedProps.cpp
  83. +45 −0 Samples/DeviceEnumerationAndPairing/cppwinrt/Scenario6_CustomFilterAddedProps.h
  84. +121 −0 Samples/DeviceEnumerationAndPairing/cppwinrt/Scenario7_DeviceInformationKind.cpp
  85. +46 −0 Samples/DeviceEnumerationAndPairing/cppwinrt/Scenario7_DeviceInformationKind.h
  86. +184 −0 Samples/DeviceEnumerationAndPairing/cppwinrt/Scenario8_PairDevice.cpp
  87. +50 −0 Samples/DeviceEnumerationAndPairing/cppwinrt/Scenario8_PairDevice.h
  88. +440 −0 Samples/DeviceEnumerationAndPairing/cppwinrt/Scenario9_CustomPairDevice.cpp
  89. +68 −0 Samples/DeviceEnumerationAndPairing/cppwinrt/Scenario9_CustomPairDevice.h
  90. +55 −0 Samples/DeviceEnumerationAndPairing/cppwinrt/Tasks/BackgroundDeviceWatcher.cpp
  91. +20 −0 Samples/DeviceEnumerationAndPairing/cppwinrt/Tasks/BackgroundDeviceWatcher.h
  92. +8 −0 Samples/DeviceEnumerationAndPairing/cppwinrt/Tasks/BackgroundDeviceWatcher.idl
  93. +17 −0 Samples/DeviceEnumerationAndPairing/cppwinrt/Tasks/PropertySheet.props
  94. +3 −0 Samples/DeviceEnumerationAndPairing/cppwinrt/Tasks/Tasks.def
  95. +140 −0 Samples/DeviceEnumerationAndPairing/cppwinrt/Tasks/Tasks.vcxproj
  96. +29 −0 Samples/DeviceEnumerationAndPairing/cppwinrt/Tasks/Tasks.vcxproj.filters
  97. +4 −0 Samples/DeviceEnumerationAndPairing/cppwinrt/Tasks/packages.config
  98. +1 −0 Samples/DeviceEnumerationAndPairing/cppwinrt/Tasks/pch.cpp
  99. +7 −0 Samples/DeviceEnumerationAndPairing/cppwinrt/Tasks/pch.h
  100. +4 −0 Samples/DeviceEnumerationAndPairing/cppwinrt/packages.config
  101. +6 −0 Samples/DeviceEnumerationAndPairing/cppwinrt/pch.cpp
  102. +22 −0 Samples/DeviceEnumerationAndPairing/cppwinrt/pch.h
  103. +100 −323 Samples/DeviceEnumerationAndPairing/cs/DisplayHelpers.cs
  104. +9 −9 Samples/DeviceEnumerationAndPairing/cs/SampleConfiguration.cs
  105. +2 −2 Samples/DeviceEnumerationAndPairing/cs/Scenario1_DevicePicker.xaml.cs
  106. +2 −2 Samples/DeviceEnumerationAndPairing/cs/Scenario2_DeviceWatcher.xaml.cs
  107. +2 −2 Samples/DeviceEnumerationAndPairing/cs/Scenario3_BackgroundDeviceWatcher.xaml.cs
  108. +2 −2 Samples/DeviceEnumerationAndPairing/cs/Scenario4_Snapshot.xaml.cs
  109. +7 −7 Samples/DeviceEnumerationAndPairing/cs/Scenario5_GetSingleDevice.xaml.cs
  110. +2 −2 Samples/DeviceEnumerationAndPairing/cs/Scenario6_CustomFilterAddedProps.xaml.cs
  111. +2 −2 Samples/DeviceEnumerationAndPairing/cs/Scenario7_DeviceInformationKind.xaml.cs
  112. +11 −11 Samples/DeviceEnumerationAndPairing/cs/Scenario8_PairDevice.xaml.cs
  113. +21 −15 Samples/DeviceEnumerationAndPairing/cs/Scenario9_CustomPairDevice.xaml.cs
  114. +8 −3 Samples/DeviceEnumerationAndPairing/js/html/scenario5_getsingledevice.html
  115. +29 −25 Samples/DeviceEnumerationAndPairing/js/js/displayhelpers.js
  116. +1 −1 Samples/DeviceEnumerationAndPairing/js/js/sample-configuration.js
  117. +27 −19 Samples/DeviceEnumerationAndPairing/js/js/scenario5_getsingledevice.js
  118. +8 −4 Samples/DeviceEnumerationAndPairing/js/js/scenario9_custompairdevice.js
  119. +37 −43 Samples/DeviceEnumerationAndPairing/shared/Scenario1_DevicePicker.xaml
  120. +35 −48 Samples/DeviceEnumerationAndPairing/shared/Scenario2_DeviceWatcher.xaml
  121. +7 −9 Samples/DeviceEnumerationAndPairing/shared/Scenario3_BackgroundDeviceWatcher.xaml
  122. +22 −28 Samples/DeviceEnumerationAndPairing/shared/Scenario4_Snapshot.xaml
  123. +34 −34 Samples/DeviceEnumerationAndPairing/shared/Scenario5_GetSingleDevice.xaml
  124. +9 −13 Samples/DeviceEnumerationAndPairing/shared/Scenario6_CustomFilterAddedProps.xaml
  125. +41 −50 Samples/DeviceEnumerationAndPairing/shared/Scenario7_DeviceInformationKind.xaml
  126. +70 −76 Samples/DeviceEnumerationAndPairing/shared/Scenario8_PairDevice.xaml
  127. +95 −105 Samples/DeviceEnumerationAndPairing/shared/Scenario9_CustomPairDevice.xaml
  128. +8 −5 Samples/FileAccess/cppwinrt/FileAccess.vcxproj
  129. +2 −3 Samples/FileAccess/cppwinrt/FileAccess.vcxproj.filters
  130. +1 −1 Samples/FileAccess/cppwinrt/SampleConfiguration.cpp
  131. +1 −0 Samples/FileAccess/cppwinrt/Scenario1.cpp
  132. +1 −1 Samples/FileAccess/cppwinrt/Scenario1.h
  133. +1 −0 Samples/FileAccess/cppwinrt/Scenario10.cpp
  134. +1 −1 Samples/FileAccess/cppwinrt/Scenario10.h
  135. +1 −0 Samples/FileAccess/cppwinrt/Scenario11.cpp
  136. +1 −1 Samples/FileAccess/cppwinrt/Scenario11.h
  137. +1 −0 Samples/FileAccess/cppwinrt/Scenario2.cpp
  138. +1 −1 Samples/FileAccess/cppwinrt/Scenario2.h
  139. +1 −0 Samples/FileAccess/cppwinrt/Scenario3.cpp
  140. +1 −1 Samples/FileAccess/cppwinrt/Scenario3.h
  141. +1 −0 Samples/FileAccess/cppwinrt/Scenario4.cpp
  142. +1 −1 Samples/FileAccess/cppwinrt/Scenario4.h
  143. +1 −0 Samples/FileAccess/cppwinrt/Scenario5.cpp
  144. +1 −1 Samples/FileAccess/cppwinrt/Scenario5.h
  145. +1 −0 Samples/FileAccess/cppwinrt/Scenario6.cpp
  146. +1 −1 Samples/FileAccess/cppwinrt/Scenario6.h
  147. +1 −0 Samples/FileAccess/cppwinrt/Scenario7.cpp
  148. +1 −1 Samples/FileAccess/cppwinrt/Scenario7.h
  149. +1 −0 Samples/FileAccess/cppwinrt/Scenario8.cpp
  150. +1 −1 Samples/FileAccess/cppwinrt/Scenario8.h
  151. +1 −0 Samples/FileAccess/cppwinrt/Scenario9.cpp
  152. +1 −1 Samples/FileAccess/cppwinrt/Scenario9.h
  153. +1 −1 Samples/FileAccess/cppwinrt/packages.config
  154. +8 −5 Samples/FilePicker/cppwinrt/FilePicker.vcxproj
  155. +2 −2 Samples/FilePicker/cppwinrt/FilePicker.vcxproj.filters
  156. +1 −0 Samples/FilePicker/cppwinrt/Scenario1.cpp
  157. +1 −1 Samples/FilePicker/cppwinrt/Scenario1.h
  158. +1 −0 Samples/FilePicker/cppwinrt/Scenario2.cpp
  159. +1 −1 Samples/FilePicker/cppwinrt/Scenario2.h
  160. +1 −0 Samples/FilePicker/cppwinrt/Scenario3.cpp
  161. +1 −1 Samples/FilePicker/cppwinrt/Scenario3.h
  162. +1 −0 Samples/FilePicker/cppwinrt/Scenario4.cpp
  163. +1 −1 Samples/FilePicker/cppwinrt/Scenario4.h
  164. +1 −0 Samples/FilePicker/cppwinrt/Scenario5.cpp
  165. +1 −1 Samples/FilePicker/cppwinrt/Scenario5.h
  166. +1 −1 Samples/FilePicker/cppwinrt/packages.config
  167. +8 −5 Samples/FileSearch/cppwinrt/FileSearch.vcxproj
  168. +2 −2 Samples/FileSearch/cppwinrt/FileSearch.vcxproj.filters
  169. +1 −0 Samples/FileSearch/cppwinrt/Scenario1.cpp
  170. +1 −1 Samples/FileSearch/cppwinrt/Scenario1.h
  171. +1 −1 Samples/FileSearch/cppwinrt/packages.config
  172. +8 −5 Samples/FileThumbnails/cppwinrt/FileThumbnails.vcxproj
  173. +2 −2 Samples/FileThumbnails/cppwinrt/FileThumbnails.vcxproj.filters
  174. +1 −0 Samples/FileThumbnails/cppwinrt/Scenario1.cpp
  175. +1 −1 Samples/FileThumbnails/cppwinrt/Scenario1.h
  176. +1 −0 Samples/FileThumbnails/cppwinrt/Scenario2.cpp
  177. +1 −1 Samples/FileThumbnails/cppwinrt/Scenario2.h
  178. +1 −0 Samples/FileThumbnails/cppwinrt/Scenario3.cpp
  179. +1 −1 Samples/FileThumbnails/cppwinrt/Scenario3.h
  180. +1 −0 Samples/FileThumbnails/cppwinrt/Scenario4.cpp
  181. +1 −1 Samples/FileThumbnails/cppwinrt/Scenario4.h
  182. +1 −0 Samples/FileThumbnails/cppwinrt/Scenario5.cpp
  183. +1 −1 Samples/FileThumbnails/cppwinrt/Scenario5.h
  184. +1 −0 Samples/FileThumbnails/cppwinrt/Scenario6.cpp
  185. +1 −1 Samples/FileThumbnails/cppwinrt/Scenario6.h
  186. +1 −1 Samples/FileThumbnails/cppwinrt/packages.config
  187. +8 −5 Samples/FolderEnumeration/cppwinrt/FolderEnumeration.vcxproj
  188. +2 −2 Samples/FolderEnumeration/cppwinrt/FolderEnumeration.vcxproj.filters
  189. +1 −0 Samples/FolderEnumeration/cppwinrt/Scenario1.cpp
  190. +1 −0 Samples/FolderEnumeration/cppwinrt/Scenario2.cpp
  191. +1 −0 Samples/FolderEnumeration/cppwinrt/Scenario3.cpp
  192. +1 −0 Samples/FolderEnumeration/cppwinrt/Scenario4.cpp
  193. +1 −1 Samples/FolderEnumeration/cppwinrt/Scenario4.h
  194. +1 −1 Samples/FolderEnumeration/cppwinrt/packages.config
  195. +8 −5 Samples/FullScreenMode/cppwinrt/FullScreenMode.vcxproj
  196. +2 −3 Samples/FullScreenMode/cppwinrt/FullScreenMode.vcxproj.filters
  197. +1 −0 Samples/FullScreenMode/cppwinrt/Scenario1_Basic.cpp
  198. +1 −1 Samples/FullScreenMode/cppwinrt/Scenario1_Basic.h
  199. +1 −0 Samples/FullScreenMode/cppwinrt/Scenario2_Launch.cpp
  200. +1 −1 Samples/FullScreenMode/cppwinrt/packages.config
  201. +8 −5 Samples/JumpList/cppwinrt/JumpList.vcxproj
  202. +2 −3 Samples/JumpList/cppwinrt/JumpList.vcxproj.filters
  203. +1 −0 Samples/JumpList/cppwinrt/Scenario1_Launched.cpp
  204. +1 −0 Samples/JumpList/cppwinrt/Scenario2_Remove.cpp
  205. +1 −0 Samples/JumpList/cppwinrt/Scenario3_CustomItems.cpp
  206. +1 −0 Samples/JumpList/cppwinrt/Scenario4_ChangeSystemGroup.cpp
  207. +1 −0 Samples/JumpList/cppwinrt/Scenario5_IsSupported.cpp
  208. +1 −1 Samples/JumpList/cppwinrt/packages.config
  209. +2 −1 Samples/JumpList/cppwinrt/pch.h
  210. +5 −3 Samples/Logging/cpp/FileLoggingSessionScenario.cpp
  211. +5 −6 Samples/Logging/cs/FileLoggingSessionScenario.cs
  212. +5 −3 Samples/Logging/js/js/fileLoggingSessionScenario.js
  213. +8 −5 Samples/MultipleViews/cppwinrt/MultipleViews.vcxproj
  214. +2 −3 Samples/MultipleViews/cppwinrt/MultipleViews.vcxproj.filters
  215. +2 −2 Samples/MultipleViews/cppwinrt/SampleConfiguration.cpp
  216. +1 −0 Samples/MultipleViews/cppwinrt/Scenario1.cpp
  217. +1 −1 Samples/MultipleViews/cppwinrt/Scenario1.h
  218. +1 −0 Samples/MultipleViews/cppwinrt/Scenario3.cpp
  219. +1 −1 Samples/MultipleViews/cppwinrt/Scenario3.h
  220. +1 −0 Samples/MultipleViews/cppwinrt/SecondaryViewPage.cpp
  221. +1 −0 Samples/MultipleViews/cppwinrt/ViewLifetimeControl.cpp
  222. +1 −1 Samples/MultipleViews/cppwinrt/packages.config
  223. +1 −0 Samples/MultipleViews/cppwinrt/pch.h
  224. +5 −0 Samples/RadialController/README.md
  225. +8 −5 Samples/ResizeAppView/cppwinrt/ResizeAppView.vcxproj
  226. +3 −4 Samples/ResizeAppView/cppwinrt/ResizeAppView.vcxproj.filters
  227. +1 −1 Samples/ResizeAppView/cppwinrt/Scenario1_Basic.cpp
  228. +1 −1 Samples/ResizeAppView/cppwinrt/Scenario1_Basic.h
  229. +1 −0 Samples/ResizeAppView/cppwinrt/Scenario2_Launch.cpp
  230. +1 −1 Samples/ResizeAppView/cppwinrt/packages.config
  231. +2 −0 Samples/SmartCard/README.md
  232. +1 −0 Samples/TitleBar/cppwinrt/CustomTitleBar.cpp
  233. +2 −2 Samples/TitleBar/cppwinrt/SampleConfiguration.cpp
  234. +1 −0 Samples/TitleBar/cppwinrt/Scenario1_Colors.cpp
  235. +1 −0 Samples/TitleBar/cppwinrt/Scenario2_Extend.cpp
  236. +1 −1 Samples/TitleBar/cppwinrt/Scenario2_Extend.h
  237. +8 −5 Samples/TitleBar/cppwinrt/TitleBar.vcxproj
  238. +6 −5 Samples/TitleBar/cppwinrt/TitleBar.vcxproj.filters
  239. +1 −1 Samples/TitleBar/cppwinrt/packages.config
  240. +1 −1 Samples/WiFiDirect/cpp/Package.appxmanifest
  241. +1 −1 Samples/WiFiDirect/cs/Package.appxmanifest
  242. +1 −1 Samples/WiFiDirect/js/package.appxmanifest
  243. +8 −7 SharedContent/cppwinrt/MainPage.cpp
@@ -62,6 +62,7 @@
<PropertyGroup Label="UserMacros" />
<PropertyGroup>
<IncludePath>$(VC_IncludePath);$(UniversalCRT_IncludePath);$(WindowsSDK_IncludePath);..\..\..\SharedContent\cppwinrt</IncludePath>
<CppWinRTOptimized>true</CppWinRTOptimized>
</PropertyGroup>
<ItemDefinitionGroup>
<ClCompile>
@@ -14,36 +14,36 @@ namespace SDKTemplate
[default_interface]
runtimeclass Scenario1_SecondaryWindow : Windows.UI.Xaml.Controls.Page
{
Scenario1_SecondaryWindow();
Scenario1_SecondaryWindow();
}

[default_interface]
runtimeclass Scenario2_DisplayRegion : Windows.UI.Xaml.Controls.Page
{
Scenario2_DisplayRegion();
}
[default_interface]
runtimeclass Scenario2_DisplayRegion : Windows.UI.Xaml.Controls.Page
{
Scenario2_DisplayRegion();
}

[default_interface]
runtimeclass Scenario3_Size : Windows.UI.Xaml.Controls.Page
{
Scenario3_Size();
}
[default_interface]
runtimeclass Scenario3_Size : Windows.UI.Xaml.Controls.Page
{
Scenario3_Size();
}

[default_interface]
runtimeclass Scenario4_CompactOverlay : Windows.UI.Xaml.Controls.Page
{
Scenario4_CompactOverlay();
}
[default_interface]
runtimeclass Scenario4_CompactOverlay : Windows.UI.Xaml.Controls.Page
{
Scenario4_CompactOverlay();
}

[default_interface]
runtimeclass Scenario5_RelativePositioning : Windows.UI.Xaml.Controls.Page
{
Scenario5_RelativePositioning();
}
[default_interface]
runtimeclass Scenario5_RelativePositioning : Windows.UI.Xaml.Controls.Page
{
Scenario5_RelativePositioning();
}

[default_interface]
runtimeclass SecondaryAppWindowPage : Windows.UI.Xaml.Controls.Page
{
SecondaryAppWindowPage();
}
SecondaryAppWindowPage();
}
}
@@ -27,15 +27,15 @@ IVector<Scenario> implementation::MainPage::scenariosInner = winrt::single_threa
{
Scenario{ L"Create and show secondary window", xaml_typename<SDKTemplate::Scenario1_SecondaryWindow>() },
Scenario{ L"Show window on another display", xaml_typename<SDKTemplate::Scenario2_DisplayRegion>() },
Scenario{ L"Specific size for secondary window", xaml_typename<SDKTemplate::Scenario3_Size>() },
Scenario{ L"CompactOverlay secondary window", xaml_typename < SDKTemplate::Scenario4_CompactOverlay>() },
Scenario{ L"Position secondary window", xaml_typename < SDKTemplate::Scenario5_RelativePositioning>() },
Scenario{ L"Specific size for secondary window", xaml_typename<SDKTemplate::Scenario3_Size>() },
Scenario{ L"CompactOverlay secondary window", xaml_typename < SDKTemplate::Scenario4_CompactOverlay>() },
Scenario{ L"Position secondary window", xaml_typename < SDKTemplate::Scenario5_RelativePositioning>() },
});

bool winrt::SDKTemplate::TryParseFloat(hstring const& str, float& result)
{
errno = 0;
wchar_t* endptr;
result = wcstof(str.c_str(), &endptr);
return errno == 0 && std::isfinite(result);
errno = 0;
wchar_t* endptr;
result = wcstof(str.c_str(), &endptr);
return errno == 0 && std::isfinite(result);
}
@@ -14,22 +14,22 @@

namespace winrt::SDKTemplate
{
struct unique_disabled_control
{
unique_disabled_control(Windows::UI::Xaml::Controls::Control const& control) : c{ control }
{
c.IsEnabled(false);
}
struct unique_disabled_control
{
unique_disabled_control(Windows::UI::Xaml::Controls::Control const& control) : c{ control }
{
c.IsEnabled(false);
}

unique_disabled_control(const unique_disabled_control&) = delete;
void operator=(unique_disabled_control const&) = delete;
unique_disabled_control(const unique_disabled_control&) = delete;
void operator=(unique_disabled_control const&) = delete;

~unique_disabled_control()
{
c.IsEnabled(true);
}
Windows::UI::Xaml::Controls::Control c;
};
~unique_disabled_control()
{
c.IsEnabled(true);
}
Windows::UI::Xaml::Controls::Control c;
};

bool TryParseFloat(hstring const& str, float& result);
bool TryParseFloat(hstring const& str, float& result);
}
@@ -11,6 +11,7 @@

#include "pch.h"
#include "Scenario1_SecondaryWindow.h"
#include "Scenario1_SecondaryWindow.g.cpp"

using namespace winrt;
using namespace Windows::Foundation;
@@ -25,7 +25,7 @@ namespace winrt::SDKTemplate::implementation

private:
Windows::UI::WindowManagement::AppWindow appWindow{ nullptr };
Windows::UI::Xaml::Controls::Frame appWindowFrame{};
Windows::UI::Xaml::Controls::Frame appWindowFrame{};

void OnWindowClosed(Windows::UI::WindowManagement::AppWindow const& sender, IInspectable const&);
};
@@ -11,6 +11,7 @@

#include "pch.h"
#include "Scenario2_DisplayRegion.h"
#include "Scenario2_DisplayRegion.g.cpp"
#include "SampleConfiguration.h"

using namespace winrt;
@@ -24,96 +25,96 @@ using namespace Windows::UI::Xaml::Navigation;

namespace winrt::SDKTemplate::implementation
{
Scenario2_DisplayRegion::Scenario2_DisplayRegion()
{
InitializeComponent();
}

void Scenario2_DisplayRegion::OnNavigatedTo(NavigationEventArgs const&)
{
// Check to see if we have more than one DisplayRegion, if not we disable the button since the scenario will not work

showWindowBtn().IsEnabled(NumberOfAvailableDisplayRegions() > 1);
}

fire_and_forget Scenario2_DisplayRegion::OnNavigatedFrom(NavigationEventArgs const&)
{
if (appWindow != nullptr)
{
co_await appWindow.CloseAsync();
}
}

int Scenario2_DisplayRegion::NumberOfAvailableDisplayRegions()
{
// Get the list of all DisplayRegions defined for the WindowingEnvironment that our application is currently in
IVectorView<DisplayRegion> displayRegions = ApplicationView::GetForCurrentView().WindowingEnvironment().GetDisplayRegions();

int availableDisplayRegions = 0;
// count all the DisplayRegions that are marked as available to the app for use.
for (DisplayRegion const& displayregion : displayRegions)
{
if (displayregion.IsVisible())
{
availableDisplayRegions++;
}
}
return availableDisplayRegions;
}

DisplayRegion Scenario2_DisplayRegion::GetOtherDisplayRegion(DisplayRegion currentAppDisplayRegion)
{
// Get the list of all DisplayRegions defined for the WindowingEnvironment that our application is currently in
IVectorView<DisplayRegion> displayRegions = ApplicationView::GetForCurrentView().WindowingEnvironment().GetDisplayRegions();
for (DisplayRegion const& displayRegion : displayRegions)
{
if (displayRegion != currentAppDisplayRegion && displayRegion.IsVisible())
{
return displayRegion;
}
}

return nullptr;
}

fire_and_forget Scenario2_DisplayRegion::Button_Click(IInspectable const&, RoutedEventArgs const&)
{
auto lifetime = get_strong();

unique_disabled_control re_enabled{ showWindowBtn() };

// Only ever create one window. If the AppWindow already exists call TryShow on it to bring it to foreground.
if (appWindow == nullptr)
{
// Create a new window
appWindow = co_await AppWindow::TryCreateAsync();
// Clean up when the window is closed
appWindow.Closed({ get_weak(), &Scenario2_DisplayRegion::OnWindowClosed });
// Navigate the frame to the page we want to show in the new window
appWindowFrame.Navigate(xaml_typename<SDKTemplate::SecondaryAppWindowPage>());
// Attach the XAML content to our window
ElementCompositionPreview::SetAppWindowContent(appWindow, appWindowFrame);
}

// Get DisplayRegion to position our window on
DisplayRegion secondaryDisplayRegion = GetOtherDisplayRegion(ApplicationView::GetForCurrentView().GetDisplayRegions().GetAt(0));
if (secondaryDisplayRegion != nullptr)
{
appWindow.RequestMoveToDisplayRegion(secondaryDisplayRegion);
}

// If the window is not visible, show it and/or bring it to foreground
if (!appWindow.IsVisible())
{
co_await appWindow.TryShowAsync();
}
}

void Scenario2_DisplayRegion::OnWindowClosed(AppWindow const&, IInspectable const&)
{
// Make sure we release the reference to this window, and release XAML resources.
appWindow = nullptr;
appWindowFrame.Content(nullptr);
}
Scenario2_DisplayRegion::Scenario2_DisplayRegion()
{
InitializeComponent();
}

void Scenario2_DisplayRegion::OnNavigatedTo(NavigationEventArgs const&)
{
// Check to see if we have more than one DisplayRegion, if not we disable the button since the scenario will not work

showWindowBtn().IsEnabled(NumberOfAvailableDisplayRegions() > 1);
}

fire_and_forget Scenario2_DisplayRegion::OnNavigatedFrom(NavigationEventArgs const&)
{
if (appWindow != nullptr)
{
co_await appWindow.CloseAsync();
}
}

int Scenario2_DisplayRegion::NumberOfAvailableDisplayRegions()
{
// Get the list of all DisplayRegions defined for the WindowingEnvironment that our application is currently in
IVectorView<DisplayRegion> displayRegions = ApplicationView::GetForCurrentView().WindowingEnvironment().GetDisplayRegions();

int availableDisplayRegions = 0;
// count all the DisplayRegions that are marked as available to the app for use.
for (DisplayRegion const& displayregion : displayRegions)
{
if (displayregion.IsVisible())
{
availableDisplayRegions++;
}
}
return availableDisplayRegions;
}

DisplayRegion Scenario2_DisplayRegion::GetOtherDisplayRegion(DisplayRegion currentAppDisplayRegion)
{
// Get the list of all DisplayRegions defined for the WindowingEnvironment that our application is currently in
IVectorView<DisplayRegion> displayRegions = ApplicationView::GetForCurrentView().WindowingEnvironment().GetDisplayRegions();
for (DisplayRegion const& displayRegion : displayRegions)
{
if (displayRegion != currentAppDisplayRegion && displayRegion.IsVisible())
{
return displayRegion;
}
}

return nullptr;
}

fire_and_forget Scenario2_DisplayRegion::Button_Click(IInspectable const&, RoutedEventArgs const&)
{
auto lifetime = get_strong();

unique_disabled_control re_enabled{ showWindowBtn() };

// Only ever create one window. If the AppWindow already exists call TryShow on it to bring it to foreground.
if (appWindow == nullptr)
{
// Create a new window
appWindow = co_await AppWindow::TryCreateAsync();
// Clean up when the window is closed
appWindow.Closed({ get_weak(), &Scenario2_DisplayRegion::OnWindowClosed });
// Navigate the frame to the page we want to show in the new window
appWindowFrame.Navigate(xaml_typename<SDKTemplate::SecondaryAppWindowPage>());
// Attach the XAML content to our window
ElementCompositionPreview::SetAppWindowContent(appWindow, appWindowFrame);
}

// Get DisplayRegion to position our window on
DisplayRegion secondaryDisplayRegion = GetOtherDisplayRegion(ApplicationView::GetForCurrentView().GetDisplayRegions().GetAt(0));
if (secondaryDisplayRegion != nullptr)
{
appWindow.RequestMoveToDisplayRegion(secondaryDisplayRegion);
}

// If the window is not visible, show it and/or bring it to foreground
if (!appWindow.IsVisible())
{
co_await appWindow.TryShowAsync();
}
}

void Scenario2_DisplayRegion::OnWindowClosed(AppWindow const&, IInspectable const&)
{
// Make sure we release the reference to this window, and release XAML resources.
appWindow = nullptr;
appWindowFrame.Content(nullptr);
}

}
@@ -15,28 +15,28 @@

namespace winrt::SDKTemplate::implementation
{
struct Scenario2_DisplayRegion : Scenario2_DisplayRegionT<Scenario2_DisplayRegion>
{
Scenario2_DisplayRegion();
struct Scenario2_DisplayRegion : Scenario2_DisplayRegionT<Scenario2_DisplayRegion>
{
Scenario2_DisplayRegion();

void OnNavigatedTo(Windows::UI::Xaml::Navigation::NavigationEventArgs const&);
fire_and_forget OnNavigatedFrom(Windows::UI::Xaml::Navigation::NavigationEventArgs const&);
void OnNavigatedTo(Windows::UI::Xaml::Navigation::NavigationEventArgs const&);
fire_and_forget OnNavigatedFrom(Windows::UI::Xaml::Navigation::NavigationEventArgs const&);

fire_and_forget Button_Click(IInspectable const&, Windows::UI::Xaml::RoutedEventArgs const&);
fire_and_forget Button_Click(IInspectable const&, Windows::UI::Xaml::RoutedEventArgs const&);

private:
Windows::UI::WindowManagement::AppWindow appWindow{ nullptr };
Windows::UI::Xaml::Controls::Frame appWindowFrame{};
private:
Windows::UI::WindowManagement::AppWindow appWindow{ nullptr };
Windows::UI::Xaml::Controls::Frame appWindowFrame{};

int NumberOfAvailableDisplayRegions();
Windows::UI::WindowManagement::DisplayRegion GetOtherDisplayRegion(Windows::UI::WindowManagement::DisplayRegion currentAppDisplayRegion);
void OnWindowClosed(Windows::UI::WindowManagement::AppWindow const& sender, IInspectable const&);
};
int NumberOfAvailableDisplayRegions();
Windows::UI::WindowManagement::DisplayRegion GetOtherDisplayRegion(Windows::UI::WindowManagement::DisplayRegion currentAppDisplayRegion);
void OnWindowClosed(Windows::UI::WindowManagement::AppWindow const& sender, IInspectable const&);
};
}

namespace winrt::SDKTemplate::factory_implementation
{
struct Scenario2_DisplayRegion : Scenario2_DisplayRegionT<Scenario2_DisplayRegion, implementation::Scenario2_DisplayRegion>
{
};
struct Scenario2_DisplayRegion : Scenario2_DisplayRegionT<Scenario2_DisplayRegion, implementation::Scenario2_DisplayRegion>
{
};
}

0 comments on commit 81f5916

Please sign in to comment.
You can’t perform that action at this time.