Skip to content

Commit

Permalink
Merge pull request #5 from microsoft/master-update-to-winui2.4
Browse files Browse the repository at this point in the history
Master update to winui2.4
  • Loading branch information
Karl-Bridge-Microsoft authored Jun 25, 2020
2 parents 9af47bc + 624b6db commit 88a5246
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 7 deletions.
5 changes: 4 additions & 1 deletion HueApp/App.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,7 @@ THE SOFTWARE.
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:HueApp"
RequestedTheme="Light">
</Application>
<Application.Resources>
<XamlControlsResources xmlns="using:Microsoft.UI.Xaml.Controls" />
</Application.Resources>
</Application>
7 changes: 5 additions & 2 deletions HueApp/HueApp.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
<AssemblyName>HueApp</AssemblyName>
<DefaultLanguage>en-US</DefaultLanguage>
<TargetPlatformIdentifier>UAP</TargetPlatformIdentifier>
<TargetPlatformVersion>10.0.19569.0</TargetPlatformVersion>
<TargetPlatformMinVersion>10.0.17763.0</TargetPlatformMinVersion>
<TargetPlatformVersion>10.0.19041.0</TargetPlatformVersion>
<TargetPlatformMinVersion>10.0.18362.0</TargetPlatformMinVersion>
<MinimumVisualStudioVersion>14</MinimumVisualStudioVersion>
<EnableDotNetNativeCompatibleProfile>true</EnableDotNetNativeCompatibleProfile>
<FileAlignment>512</FileAlignment>
Expand Down Expand Up @@ -151,6 +151,9 @@
<PackageReference Include="Microsoft.NETCore.UniversalWindowsPlatform">
<Version>5.0.0</Version>
</PackageReference>
<PackageReference Include="Microsoft.UI.Xaml">
<Version>2.4.2</Version>
</PackageReference>
</ItemGroup>
<PropertyGroup Condition=" '$(VisualStudioVersion)' == '' or '$(VisualStudioVersion)' &lt; '14.0' ">
<VisualStudioVersion>14.0</VisualStudioVersion>
Expand Down
6 changes: 4 additions & 2 deletions HueApp/Initializer.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ THE SOFTWARE.
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006">
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:MUXC="using:Microsoft.UI.Xaml.Controls"
>

<Grid.RowDefinitions>
<RowDefinition/>
Expand All @@ -34,7 +36,7 @@ THE SOFTWARE.
<Image x:Name="extendedSplashImage" Source="Assets/splash.png"/>
</Canvas>

<ProgressRing Grid.Row="1" Name="SplashProgressRing" IsActive="True" Width="20" Height="20" Foreground="Black"></ProgressRing>
<MUXC:ProgressRing Grid.Row="1" Name="SplashProgressRing" IsActive="True" Width="20" Height="20" Foreground="Black"></MUXC:ProgressRing>

<ContentDialog x:Name="BridgeEntryPopup"
VerticalAlignment="Stretch"
Expand Down
2 changes: 1 addition & 1 deletion HueBackground/HueBackground.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<AssemblyName>BackgroundTasks</AssemblyName>
<DefaultLanguage>en-US</DefaultLanguage>
<TargetPlatformIdentifier>UAP</TargetPlatformIdentifier>
<TargetPlatformVersion>10.0.18362.0</TargetPlatformVersion>
<TargetPlatformVersion>10.0.19041.0</TargetPlatformVersion>
<TargetPlatformMinVersion>10.0.18362.0</TargetPlatformMinVersion>
<MinimumVisualStudioVersion>14</MinimumVisualStudioVersion>
<FileAlignment>512</FileAlignment>
Expand Down
2 changes: 1 addition & 1 deletion HueLibrary/HueLibrary.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<AssemblyName>HueLibrary</AssemblyName>
<DefaultLanguage>en-US</DefaultLanguage>
<TargetPlatformIdentifier>UAP</TargetPlatformIdentifier>
<TargetPlatformVersion>10.0.18362.0</TargetPlatformVersion>
<TargetPlatformVersion>10.0.19041.0</TargetPlatformVersion>
<TargetPlatformMinVersion>10.0.18362.0</TargetPlatformMinVersion>
<MinimumVisualStudioVersion>14</MinimumVisualStudioVersion>
<FileAlignment>512</FileAlignment>
Expand Down
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,16 @@ Additionally, through Bluetooth LE, the app supports a proximity scenario where
![HueApp connect screen](Screenshots/Connecting.png)
![HueApp light screen](Screenshots/HueApp.png)

### June 2020 update

This update includes:

* Update to WinUI 2.4
* Add Microsoft.UI.Xaml NuGet package reference
* Update <Application.Resources> in App.xaml
* Refactoring for the following WinUI 2.4 controls:
* [ProgressRing](https://docs.microsoft.com/windows/uwp/design/controls-and-patterns/progress-controls)

## Features

The HueLightController app demonstrates:
Expand Down

0 comments on commit 88a5246

Please sign in to comment.