Skip to content

Commit 5fe63f4

Browse files
author
msftbot[bot]
authored
Uno Platform Compatibility updates (#3651)
## PR Type What kind of change does this PR introduce? - Refactoring (no functional changes, no api changes) ## What is the new behavior? This PR adds a set of forward compatibilty changes to ease the cross-compilation of the community toolkit to Uno Platform targets. - Partials are needed for code generation - Use `TargetFrameworks` instead of `TargetFramework` to allow for late modification of the platform list ## PR Checklist Please check if your PR fulfills the following requirements: - [ ] Tested code with current [supported SDKs](../readme.md#supported) - [ ] Pull Request has been submitted to the documentation repository [instructions](..\contributing.md#docs). Link: <!-- docs PR link --> - [ ] Sample in sample app has been added / updated (for bug fixes / features) - [ ] Icon has been created (if new sample) following the [Thumbnail Style Guide and templates](https://github.com/windows-toolkit/WindowsCommunityToolkit-design-assets) - [ ] New major technical changes in the toolkit have or will be added to the [Wiki](https://github.com/windows-toolkit/WindowsCommunityToolkit/wiki) e.g. build changes, source generators, testing infrastructure, sample creation changes, etc... - [ ] Tests for the changes have been added (for bug fixes / features) (if applicable) - [ ] Header has been added to all new source files (run *build/UpdateHeaders.bat*) - [x] Contains **NO** breaking changes <!-- If this PR contains a breaking change, please describe the impact and migration path for existing applications below. Please note that breaking changes are likely to be rejected within minor release cycles or held until major versions. --> ## Other information
2 parents 05a42e3 + f3c17bf commit 5fe63f4

File tree

43 files changed

+47
-43
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+47
-43
lines changed

Microsoft.Toolkit.Uwp.Connectivity/Microsoft.Toolkit.Uwp.Connectivity.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="MSBuild.Sdk.Extras">
22

33
<PropertyGroup>
4-
<TargetFramework>uap10.0.17763</TargetFramework>
4+
<TargetFrameworks>uap10.0.17763</TargetFrameworks>
55
<Title>Windows Community Toolkit Devices</Title>
66
<Description>This library enables easier consumption of connectivity Devices/Peripherals and handle its connection to Windows devices. It contains BluetoothLE and Network connectivity helpers.</Description>
77
<PackageTags>UWP Toolkit Windows Devices Bluetooth BluetoothLE BLE Networking</PackageTags>

Microsoft.Toolkit.Uwp.DeveloperTools/AlignmentGrid/AlignmentGrid.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ namespace Microsoft.Toolkit.Uwp.DeveloperTools
1212
/// <summary>
1313
/// AlignmentGrid is used to display a grid to help aligning controls
1414
/// </summary>
15-
public class AlignmentGrid : ContentControl
15+
public partial class AlignmentGrid : ContentControl
1616
{
1717
/// <summary>
1818
/// Identifies the <see cref="LineBrush"/> dependency property.

Microsoft.Toolkit.Uwp.DeveloperTools/FocusTracker/FocusTracker.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ namespace Microsoft.Toolkit.Uwp.DeveloperTools
2424
[TemplatePart(Name = "ControlType", Type = typeof(TextBlock))]
2525
[TemplatePart(Name = "ControlAutomationName", Type = typeof(TextBlock))]
2626
[TemplatePart(Name = "ControlFirstParentWithName", Type = typeof(TextBlock))]
27-
public class FocusTracker : Control
27+
public partial class FocusTracker : Control
2828
{
2929
/// <summary>
3030
/// Defines the <see cref="IsActive"/> dependency property.

Microsoft.Toolkit.Uwp.DeveloperTools/Microsoft.Toolkit.Uwp.DeveloperTools.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="MSBuild.Sdk.Extras">
22

33
<PropertyGroup>
4-
<TargetFramework>uap10.0.17763</TargetFramework>
4+
<TargetFrameworks>uap10.0.17763</TargetFrameworks>
55
<Title>Windows Community Toolkit Developer Tools</Title>
66
<Description>This library provides XAML user controls and services to help developers build their app. It is part of the Windows Community Toolkit.
77

Microsoft.Toolkit.Uwp.UI.Animations/CompositionAnimations/Animations/AnimationBase.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ namespace Microsoft.Toolkit.Uwp.UI.Animations
1414
/// Abstract class providing common dependency properties for composition animations
1515
/// </summary>
1616
[ContentProperty(Name = nameof(KeyFrames))]
17-
public abstract class AnimationBase : DependencyObject
17+
public abstract partial class AnimationBase : DependencyObject
1818
{
1919
/// <summary>
2020
/// Identifies the <see cref="Target"/> property

Microsoft.Toolkit.Uwp.UI.Animations/CompositionAnimations/KeyFrames/KeyFrame.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ namespace Microsoft.Toolkit.Uwp.UI.Animations
99
/// <summary>
1010
/// Provides common Dependency properties for KeyFrames
1111
/// </summary>
12-
public abstract class KeyFrame : DependencyObject
12+
public abstract partial class KeyFrame : DependencyObject
1313
{
1414
/// <summary>
1515
/// Identifies the <see cref="Key"/> dependency property

Microsoft.Toolkit.Uwp.UI.Animations/Extensions/AnimationTools.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ namespace Microsoft.Toolkit.Uwp.UI.Animations
99
/// <summary>
1010
/// Internal tool to link composite transforms to elements
1111
/// </summary>
12-
internal class AnimationTools : DependencyObject
12+
internal partial class AnimationTools : DependencyObject
1313
{
1414
/// <summary>
1515
/// Attached property used to link composite transform with UIElement

Microsoft.Toolkit.Uwp.UI.Animations/Microsoft.Toolkit.Uwp.UI.Animations.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="MSBuild.Sdk.Extras">
22

33
<PropertyGroup>
4-
<TargetFramework>uap10.0.17763</TargetFramework>
4+
<TargetFrameworks>uap10.0.17763</TargetFrameworks>
55
<Title>Windows Community Toolkit Animations</Title>
66
<Description>
77
This library provides helpers and extensions on top of Windows Composition and XAML storyboards. It is part of the Windows Community Toolkit.

Microsoft.Toolkit.Uwp.UI.Controls.DataGrid/Microsoft.Toolkit.Uwp.UI.Controls.DataGrid.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project Sdk="MSBuild.Sdk.Extras">
22
<PropertyGroup>
3-
<TargetFramework>uap10.0.17763</TargetFramework>
3+
<TargetFrameworks>uap10.0.17763</TargetFrameworks>
44
<Title>Windows Community Toolkit Controls DataGrid</Title>
55
<Description>
66
This library provides a XAML DataGrid control. It is part of the Windows Community Toolkit.

Microsoft.Toolkit.Uwp.UI.Controls.Layout/Microsoft.Toolkit.Uwp.UI.Controls.Layout.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="MSBuild.Sdk.Extras">
22

33
<PropertyGroup>
4-
<TargetFramework>uap10.0.17763</TargetFramework>
4+
<TargetFrameworks>uap10.0.17763</TargetFrameworks>
55
<TargetPlatformVersion Condition="'$(TargetPlatformVersion)' == '' ">10.0.19041.0</TargetPlatformVersion>
66
<Title>Windows Community Toolkit Layout</Title>
77
<Description>

0 commit comments

Comments
 (0)