Skip to content

Commit

Permalink
Windows 10 Version 1703 - October 2017 Update
Browse files Browse the repository at this point in the history
  • Loading branch information
oldnewthing committed Oct 5, 2017
2 parents 5f0d091 + 50c35a5 commit 9a6af21
Show file tree
Hide file tree
Showing 9 changed files with 58 additions and 56 deletions.
2 changes: 1 addition & 1 deletion Samples/BarcodeScanner/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ This sample shows how to:

The app package manifest shows how to specify the device capability name for the Point of Service (POS) devices. All POS apps are required declare [DeviceCapability](http://msdn.microsoft.com/library/windows/apps/br211430) in the app package manifest, either by using "PointofService" as shown in this sample or by using a device specific GUID, such as "C243FFBD-3AFC-45E9-B3D3-2BA18BC7EBC5" for a barcode scanner.

For a list of compatible barcode scanners, see [Barcode Scanner Compatible Hardware](https://docs.microsoft.com/windows/uwp/devices-sensors/barcode-scanner#compatible-hardware).
For a list of compatible barcode scanners, see [Supported Point of Service Peripherals](https://docs.microsoft.com/windows/uwp/devices-sensors/pos-device-support).

**Note** The Universal Windows app samples require Visual Studio 2017 to build and Windows 10 to execute.

Expand Down
14 changes: 12 additions & 2 deletions Samples/BluetoothLE/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ This sample can be used to advertise support for CalcService - a custom service
and an operator and read the result.

This samples shows how to:
- Initialize and publish a custom service/characteristic heirarchy
- Initialize and publish a custom service/characteristic hierarchy
- Implement event handlers to handle incoming read/write requests
- Notify connected clients of a characteristic value change

Expand Down Expand Up @@ -69,7 +69,17 @@ To obtain information about Microsoft Visual Studio and the tools for developing

### Conceptual

[Bluetooth GATT Scenarios](https://msdn.microsoft.com/windows/uwp/devices-sensors/gatt-scenarios)
* Documentation
* [Bluetooth GATT Client](https://msdn.microsoft.com/windows/uwp/devices-sensors/gatt-client)
* [Bluetooth GATT Server](https://msdn.microsoft.com/windows/uwp/devices-sensors/gatt-server)
* [Bluetooth LE Advertisements](https://docs.microsoft.com/windows/uwp/devices-sensors/ble-beacon)
* [Windows Bluetooth Core Team Blog](https://blogs.msdn.microsoft.com/btblog/)
* Videos from Build 2017
* [Introduction to the Bluetooth LE Explorer app](https://channel9.msdn.com/Events/Build/2017/P4177)
* [Source code](https://github.com/Microsoft/BluetoothLEExplorer)
* [Install it from the Store](https://www.microsoft.com/store/apps/9n0ztkf1qd98)
* [Unpaired Bluetooth LE Device Connectivity](https://channel9.msdn.com/Events/Build/2017/P4178)
* [Bluetooth GATT Server](https://channel9.msdn.com/Events/Build/2017/P4179)

## System requirements

Expand Down
6 changes: 0 additions & 6 deletions Samples/BluetoothLE/cs/BluetoothLE.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -179,12 +179,6 @@
<Link>Assets\windows-sdk.png</Link>
</Content>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Shared\Shared.csproj">
<Project>{9860d297-fb11-48e5-8fee-26727c4d8db4}</Project>
<Name>Shared</Name>
</ProjectReference>
</ItemGroup>
<PropertyGroup Condition=" '$(VisualStudioVersion)' == '' or '$(VisualStudioVersion)' &lt; '14.0' ">
<VisualStudioVersion>14.0</VisualStudioVersion>
</PropertyGroup>
Expand Down
50 changes: 26 additions & 24 deletions Samples/BluetoothLE/cs/Scenario3_ServerForeground.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,36 +43,38 @@
<TextBlock Text="Description:" Style="{StaticResource SampleHeaderTextStyle}"/>
<TextBlock Style="{StaticResource ScenarioDescriptionTextStyle}" Text="Publish the calculator service"/>
<TextBlock TextWrapping="Wrap" Margin="0,10,0,0">
This scenario allows the local device to publish a calculator service.
This scenario allows the system to publish a calculator service.
Remote clients (including this sample on another machine) can supply 2 operands and an operator and get a result.
</TextBlock>
<TextBlock TextWrapping="Wrap" Margin="0,20,0,0">
Valid range for Operand is integer values. Valid range for Operator is 1-4 corresponding to +,-,*,/ respectively.
Valid range for Operand is integer values. Valid range for Operator is 1-4 corresponding to +,-,*,/ respectively.
</TextBlock>
<TextBlock x:Name="PeripheralWarning" TextWrapping="Wrap" Margin="0,10,0,0" Style="{StaticResource BaseTextBlockStyle}" Visibility="Collapsed">
Peripheral Role not supported - local device will not be connectable.
There is no Bluetooth device, or the default Bluetooth device cannot act as a Bluetooth server.
</TextBlock>
<Button x:Name="PublishButton" Content="Start Service" Click="{x:Bind PublishButton_ClickAsync}" Margin="0,5,5,10"/>
<StackPanel Orientation="Vertical">
<StackPanel Orientation="Horizontal">
<TextBox x:Name="Operand1Text" Text="0"/>
<TextBlock Text="Operand 1" Margin="10,5,5,5"/>
</StackPanel>
<StackPanel Orientation="Horizontal">
<TextBox x:Name="OperationText" Text="+"/>
<TextBlock x:Name="OperationLabel" Text="Operator" Margin="10,5,5,5"/>
</StackPanel>
<StackPanel Orientation="Horizontal">
<TextBox x:Name="Operand2Text" Text="0"/>
<TextBlock Text="Operand 2" Margin="10,5,5,5"/>
</StackPanel>
<StackPanel>
<Line Margin="0,5,5,0" StrokeThickness="1" Fill="AntiqueWhite" Height="5" RenderTransformOrigin="0.5,0.5">
</Line>
</StackPanel>
<StackPanel Orientation="Horizontal">
<TextBox x:Name="ResultText" Text="0"/>
<TextBlock Text="Result" Margin="10,5,5,5"/>
<StackPanel x:Name="ServerPanel" Visibility="Collapsed">
<Button x:Name="PublishButton" Content="Start Service" Click="{x:Bind PublishButton_ClickAsync}" Margin="0,5,5,10"/>
<StackPanel Orientation="Vertical">
<StackPanel Orientation="Horizontal">
<TextBox x:Name="Operand1Text" Text="0"/>
<TextBlock Text="Operand 1" Margin="10,5,5,5"/>
</StackPanel>
<StackPanel Orientation="Horizontal">
<TextBox x:Name="OperationText" Text="+"/>
<TextBlock x:Name="OperationLabel" Text="Operator" Margin="10,5,5,5"/>
</StackPanel>
<StackPanel Orientation="Horizontal">
<TextBox x:Name="Operand2Text" Text="0"/>
<TextBlock Text="Operand 2" Margin="10,5,5,5"/>
</StackPanel>
<StackPanel>
<Line Margin="0,5,5,0" StrokeThickness="1" Fill="AntiqueWhite" Height="5" RenderTransformOrigin="0.5,0.5">
</Line>
</StackPanel>
<StackPanel Orientation="Horizontal">
<TextBox x:Name="ResultText" Text="0"/>
<TextBlock Text="Result" Margin="10,5,5,5"/>
</StackPanel>
</StackPanel>
</StackPanel>
</StackPanel>
Expand Down
6 changes: 5 additions & 1 deletion Samples/BluetoothLE/cs/Scenario3_ServerForeground.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,11 @@ public Scenario3_ServerForeground()
protected override async void OnNavigatedTo(NavigationEventArgs e)
{
peripheralSupported = await CheckPeripheralRoleSupportAsync();
if (!peripheralSupported)
if (peripheralSupported)
{
ServerPanel.Visibility = Visibility.Visible;
}
else
{
PeripheralWarning.Visibility = Visibility.Visible;
}
Expand Down
2 changes: 2 additions & 0 deletions Samples/BluetoothRfcommChat/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ To obtain information about Microsoft Visual Studio and the tools for developing
[DataReaderWriter sample](../DataReaderWriter)
[DeviceEnumeration sample](../DeviceEnumerationAndPairing)
[StreamSocket sample](../StreamSocket)
[Hue Lights sample](https://github.com/Microsoft/Windows-appsample-huelightcontroller)
show, among other things, turning on the lights when the mobile phone enters Bluetooth range.

### Reference

Expand Down
12 changes: 6 additions & 6 deletions Samples/CameraStarterKit/js/js/cameraRotationHelper.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,26 +79,26 @@
result = CameraRotationHelper.subtractOrientations(result, this.getCameraOrientationRelativeToNativeOrientation());
// If the preview is being mirrored for a front-facing camera, then the rotation should be inverted
if (this.shouldMirrorPreview()) {
result = this.mirrorOrientation(result);
result = CameraRotationHelper.mirrorOrientation(result);
}
return result;
},
convertDisplayOrientationToSimpleOrientation: function (orientation) {
var result;
switch (orientation) {
case DisplayOrientations.landscape:
result = SimpleOrientation.notRotated;
break;
case DisplayOrientations.portraitFlipped:
result = SimpleOrientation.rotated90DegreesCounterclockwise;
break;
case DisplayOrientations.landscapeFlipped:
result = SimpleOrientation.rotated180DegreesCounterclockwise;
break;
case DisplayOrientations.portrait:
default:
result = SimpleOrientation.rotated270DegreesCounterclockwise;
break;
case DisplayOrientations.landscape:
default:
result = SimpleOrientation.notRotated;
break;
}

// Above assumes landscape; offset is needed if native orientation is portrait
Expand Down Expand Up @@ -128,7 +128,7 @@
},
getCameraOrientationRelativeToNativeOrientation: function () {
// Get the rotation angle of the camera enclosure as it is mounted in the device hardware
var enclosureAngle = this.convertDisplayOrientationToSimpleOrientation(this._cameraEnclosureLocation.RotationAngleInDegreesClockwise);
var enclosureAngle = CameraRotationHelper.convertClockwiseDegreesToSimpleOrientation(this._cameraEnclosureLocation.rotationAngleInDegreesClockwise);

// Account for the fact that, on portrait-first devices, the built in camera sensor is read at a 90 degree offset to the native orientation
if (this._displayInformation.nativeOrientation === DisplayOrientations.portrait && !CameraRotationHelper.isEnclosureLocationExternal(this._cameraEnclosureLocation)) {
Expand Down
6 changes: 6 additions & 0 deletions Samples/DeviceEnumerationAndPairing/cpp/DeviceEnumeration.sln
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ Microsoft Visual Studio Solution File, Format Version 12.00
VisualStudioVersion = 15.0.26228.4
MinimumVisualStudioVersion = 10.0.40219.1
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "DeviceEnumeration", "DeviceEnumeration.vcxproj", "{F23BD31A-138D-5C35-B1FC-52B6D76BB4F2}"
ProjectSection(ProjectDependencies) = postProject
{32FE3132-9E5A-55F3-A70A-B33BCDC6D455} = {32FE3132-9E5A-55F3-A70A-B33BCDC6D455}
EndProjectSection
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Tasks", "Tasks\Tasks.vcxproj", "{32FE3132-9E5A-55F3-A70A-B33BCDC6D455}"
EndProject
Expand Down Expand Up @@ -51,4 +54,7 @@ Global
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {0802DBBC-07A9-40F3-B544-9FFA0BC4DC15}
EndGlobalSection
EndGlobal
16 changes: 0 additions & 16 deletions Samples/WebView/js/WebView.sln
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,14 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "WinRTComponent", "WinRTComp
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Debug|ARM = Debug|ARM
Debug|x64 = Debug|x64
Debug|x86 = Debug|x86
Release|Any CPU = Release|Any CPU
Release|ARM = Release|ARM
Release|x64 = Release|x64
Release|x86 = Release|x86
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{530055C1-E7F6-55D9-9E54-02639BF31F38}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{530055C1-E7F6-55D9-9E54-02639BF31F38}.Debug|Any CPU.Build.0 = Debug|Any CPU
{530055C1-E7F6-55D9-9E54-02639BF31F38}.Debug|Any CPU.Deploy.0 = Debug|Any CPU
{530055C1-E7F6-55D9-9E54-02639BF31F38}.Debug|ARM.ActiveCfg = Debug|ARM
{530055C1-E7F6-55D9-9E54-02639BF31F38}.Debug|ARM.Build.0 = Debug|ARM
{530055C1-E7F6-55D9-9E54-02639BF31F38}.Debug|ARM.Deploy.0 = Debug|ARM
Expand All @@ -35,9 +30,6 @@ Global
{530055C1-E7F6-55D9-9E54-02639BF31F38}.Debug|x86.ActiveCfg = Debug|x86
{530055C1-E7F6-55D9-9E54-02639BF31F38}.Debug|x86.Build.0 = Debug|x86
{530055C1-E7F6-55D9-9E54-02639BF31F38}.Debug|x86.Deploy.0 = Debug|x86
{530055C1-E7F6-55D9-9E54-02639BF31F38}.Release|Any CPU.ActiveCfg = Release|Any CPU
{530055C1-E7F6-55D9-9E54-02639BF31F38}.Release|Any CPU.Build.0 = Release|Any CPU
{530055C1-E7F6-55D9-9E54-02639BF31F38}.Release|Any CPU.Deploy.0 = Release|Any CPU
{530055C1-E7F6-55D9-9E54-02639BF31F38}.Release|ARM.ActiveCfg = Release|ARM
{530055C1-E7F6-55D9-9E54-02639BF31F38}.Release|ARM.Build.0 = Release|ARM
{530055C1-E7F6-55D9-9E54-02639BF31F38}.Release|ARM.Deploy.0 = Release|ARM
Expand All @@ -47,44 +39,36 @@ Global
{530055C1-E7F6-55D9-9E54-02639BF31F38}.Release|x86.ActiveCfg = Release|x86
{530055C1-E7F6-55D9-9E54-02639BF31F38}.Release|x86.Build.0 = Release|x86
{530055C1-E7F6-55D9-9E54-02639BF31F38}.Release|x86.Deploy.0 = Release|x86
{ED3B5AC5-D47A-5174-AAD4-93EDB0A509FC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{ED3B5AC5-D47A-5174-AAD4-93EDB0A509FC}.Debug|Any CPU.Build.0 = Debug|Any CPU
{ED3B5AC5-D47A-5174-AAD4-93EDB0A509FC}.Debug|ARM.ActiveCfg = Debug|ARM
{ED3B5AC5-D47A-5174-AAD4-93EDB0A509FC}.Debug|ARM.Build.0 = Debug|ARM
{ED3B5AC5-D47A-5174-AAD4-93EDB0A509FC}.Debug|x64.ActiveCfg = Debug|x64
{ED3B5AC5-D47A-5174-AAD4-93EDB0A509FC}.Debug|x64.Build.0 = Debug|x64
{ED3B5AC5-D47A-5174-AAD4-93EDB0A509FC}.Debug|x86.ActiveCfg = Debug|x86
{ED3B5AC5-D47A-5174-AAD4-93EDB0A509FC}.Debug|x86.Build.0 = Debug|x86
{ED3B5AC5-D47A-5174-AAD4-93EDB0A509FC}.Release|Any CPU.ActiveCfg = Release|Any CPU
{ED3B5AC5-D47A-5174-AAD4-93EDB0A509FC}.Release|Any CPU.Build.0 = Release|Any CPU
{ED3B5AC5-D47A-5174-AAD4-93EDB0A509FC}.Release|ARM.ActiveCfg = Release|ARM
{ED3B5AC5-D47A-5174-AAD4-93EDB0A509FC}.Release|ARM.Build.0 = Release|ARM
{ED3B5AC5-D47A-5174-AAD4-93EDB0A509FC}.Release|x64.ActiveCfg = Release|x64
{ED3B5AC5-D47A-5174-AAD4-93EDB0A509FC}.Release|x64.Build.0 = Release|x64
{ED3B5AC5-D47A-5174-AAD4-93EDB0A509FC}.Release|x86.ActiveCfg = Release|x86
{ED3B5AC5-D47A-5174-AAD4-93EDB0A509FC}.Release|x86.Build.0 = Release|x86
{858DAEE5-79A1-58E2-A481-7557FC6DDFD1}.Debug|Any CPU.ActiveCfg = Debug|Win32
{858DAEE5-79A1-58E2-A481-7557FC6DDFD1}.Debug|ARM.ActiveCfg = Debug|ARM
{858DAEE5-79A1-58E2-A481-7557FC6DDFD1}.Debug|ARM.Build.0 = Debug|ARM
{858DAEE5-79A1-58E2-A481-7557FC6DDFD1}.Debug|x64.ActiveCfg = Debug|x64
{858DAEE5-79A1-58E2-A481-7557FC6DDFD1}.Debug|x64.Build.0 = Debug|x64
{858DAEE5-79A1-58E2-A481-7557FC6DDFD1}.Debug|x86.ActiveCfg = Debug|Win32
{858DAEE5-79A1-58E2-A481-7557FC6DDFD1}.Debug|x86.Build.0 = Debug|Win32
{858DAEE5-79A1-58E2-A481-7557FC6DDFD1}.Release|Any CPU.ActiveCfg = Release|Win32
{858DAEE5-79A1-58E2-A481-7557FC6DDFD1}.Release|ARM.ActiveCfg = Release|ARM
{858DAEE5-79A1-58E2-A481-7557FC6DDFD1}.Release|ARM.Build.0 = Release|ARM
{858DAEE5-79A1-58E2-A481-7557FC6DDFD1}.Release|x64.ActiveCfg = Release|x64
{858DAEE5-79A1-58E2-A481-7557FC6DDFD1}.Release|x64.Build.0 = Release|x64
{858DAEE5-79A1-58E2-A481-7557FC6DDFD1}.Release|x86.ActiveCfg = Release|Win32
{858DAEE5-79A1-58E2-A481-7557FC6DDFD1}.Release|x86.Build.0 = Release|Win32
{A4BBB6C0-4B27-563D-9FA4-F9BB92435B6A}.Debug|Any CPU.ActiveCfg = Debug|Win32
{A4BBB6C0-4B27-563D-9FA4-F9BB92435B6A}.Debug|ARM.ActiveCfg = Debug|ARM
{A4BBB6C0-4B27-563D-9FA4-F9BB92435B6A}.Debug|ARM.Build.0 = Debug|ARM
{A4BBB6C0-4B27-563D-9FA4-F9BB92435B6A}.Debug|x64.ActiveCfg = Debug|x64
{A4BBB6C0-4B27-563D-9FA4-F9BB92435B6A}.Debug|x64.Build.0 = Debug|x64
{A4BBB6C0-4B27-563D-9FA4-F9BB92435B6A}.Debug|x86.ActiveCfg = Debug|Win32
{A4BBB6C0-4B27-563D-9FA4-F9BB92435B6A}.Debug|x86.Build.0 = Debug|Win32
{A4BBB6C0-4B27-563D-9FA4-F9BB92435B6A}.Release|Any CPU.ActiveCfg = Release|Win32
{A4BBB6C0-4B27-563D-9FA4-F9BB92435B6A}.Release|ARM.ActiveCfg = Release|ARM
{A4BBB6C0-4B27-563D-9FA4-F9BB92435B6A}.Release|ARM.Build.0 = Release|ARM
{A4BBB6C0-4B27-563D-9FA4-F9BB92435B6A}.Release|x64.ActiveCfg = Release|x64
Expand Down

0 comments on commit 9a6af21

Please sign in to comment.