Skip to content

Commit 25a2631

Browse files
Merge branch 'master' into patch-1
2 parents 384ac1f + af530a1 commit 25a2631

File tree

8 files changed

+24
-15
lines changed

8 files changed

+24
-15
lines changed

Directory.Build.props

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,6 @@
1919
<PackageOutputPath>$(MSBuildThisFileDirectory)bin\nupkg</PackageOutputPath>
2020
</PropertyGroup>
2121

22-
<PropertyGroup>
23-
<SignAssembly Condition="'$(SignAssembly)' == '' and '$(IsUwpProject)' != 'true' and '$(IsTestSampleProject)' != 'true'" >true</SignAssembly>
24-
<AssemblyOriginatorKeyFile>$(MSBuildThisFileDirectory)toolkit.snk</AssemblyOriginatorKeyFile>
25-
</PropertyGroup>
26-
2722
<PropertyGroup Condition="'$(TF_BUILD)' == 'true'">
2823
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
2924
</PropertyGroup>

Directory.Build.targets

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,15 @@
2121
</ItemGroup>
2222
</When>
2323
</Choose>
24+
25+
<Choose>
26+
<When Condition="$(TargetFramework.Contains('uap10.0')) == false and '$(TargetFramework)' != 'native' and '$(IsTestSampleProject)' != 'true'">
27+
<PropertyGroup>
28+
<SignAssembly>true</SignAssembly>
29+
<AssemblyOriginatorKeyFile>$(MSBuildThisFileDirectory)toolkit.snk</AssemblyOriginatorKeyFile>
30+
</PropertyGroup>
31+
</When>
32+
</Choose>
2433

2534
<Target Name="AddCommitHashToAssemblyAttributes" BeforeTargets="GetAssemblyAttributes">
2635
<ItemGroup>

Microsoft.Toolkit.Uwp.SampleApp/SamplePages/samples.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
"Name": "TabView",
1919
"Type": "TabViewPage",
2020
"Subcategory": "Layout",
21+
"BadgeUpdateVersionRequired": "DEPRECATED",
22+
"DeprecatedWarning": "Please migrate to the TabView control from WinUI, this control will be removed in a future release. https://aka.ms/winui",
2123
"About": "A control for displaying multiple items in the same space and allows a user to easily switch between them.",
2224
"CodeUrl": "https://github.com/windows-toolkit/WindowsCommunityToolkit/tree/master/Microsoft.Toolkit.Uwp.UI.Controls/TabView",
2325
"XamlCodeFile": "TabViewXaml.bind",
@@ -663,7 +665,7 @@
663665
"CodeFile": "FacebookCode.bind",
664666
"Icon": "/SamplePages/Facebook Service/FacebookLogo.png",
665667
"BadgeUpdateVersionRequired": "DEPRECATED",
666-
"DeprecatedWarning": "These helpers will be removed in the next release.",
668+
"DeprecatedWarning": "The underlying library, winsdkfb, which the FacebookService relies on is not currently maintained.",
667669
"DocumentationUrl": "https://raw.githubusercontent.com/MicrosoftDocs/WindowsCommunityToolkitDocs/master/docs/services/Facebook.md"
668670
},
669671
{
@@ -1095,6 +1097,8 @@
10951097
{
10961098
"Name": "RadialGradientBrush",
10971099
"Type": "RadialGradientBrushPage",
1100+
"BadgeUpdateVersionRequired": "DEPRECATED",
1101+
"DeprecatedWarning": "Please migrate to the RadialGradientBrush control from WinUI, this control will be removed in a future release. https://aka.ms/winui",
10981102
"About": "A composition brush which creates a radial gradient effect.",
10991103
"CodeUrl": "https://github.com/windows-toolkit/WindowsCommunityToolkit/tree/master/Microsoft.Toolkit.Uwp.UI.Media/Brushes/RadialGradientBrush.cs",
11001104
"XamlCodeFile": "RadialGradientBrushXaml.bind",

Microsoft.Toolkit.Uwp.Services/Services/Facebook/FacebookService.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ namespace Microsoft.Toolkit.Uwp.Services.Facebook
2121
/// <summary>
2222
/// Class for connecting to Facebook.
2323
/// </summary>
24+
[Obsolete("The underlying library, winsdkfb, which the FacebookService relies on is not currently maintained.")]
2425
public class FacebookService
2526
{
2627
/// <summary>

Microsoft.Toolkit.Uwp.UI.Controls/TabView/TabView.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ namespace Microsoft.Toolkit.Uwp.UI.Controls
1717
/// <summary>
1818
/// TabView is a control for displaying a set of tabs and their content.
1919
/// </summary>
20+
[Obsolete("Please migrate to the TabView control from WinUI, this control will be removed in a future release. https://aka.ms/winui")]
2021
[TemplatePart(Name = TabContentPresenterName, Type = typeof(ContentPresenter))]
2122
[TemplatePart(Name = TabViewContainerName, Type = typeof(Grid))]
2223
[TemplatePart(Name = TabsItemsPresenterName, Type = typeof(ItemsPresenter))]

Microsoft.Toolkit.Uwp.UI.Media/Brushes/RadialGradientBrush.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
//// UWP Replacement for WPF RadialGradientBrush: https://msdn.microsoft.com/en-us/library/system.windows.media.radialgradientbrush(v=vs.110).aspx.
66

7+
using System;
78
using System.Numerics;
89
using Microsoft.Graphics.Canvas;
910
using Microsoft.Graphics.Canvas.Brushes;
@@ -18,6 +19,7 @@ namespace Microsoft.Toolkit.Uwp.UI.Media
1819
/// RadialGradientBrush - This GradientBrush defines its Gradient as an interpolation
1920
/// within an Ellipse.
2021
/// </summary>
22+
[Obsolete("Please migrate to the RadialGradientBrush control from WinUI, this control will be removed in a future release. https://aka.ms/winui")]
2123
[ContentProperty(Name = nameof(GradientStops))]
2224
public partial class RadialGradientBrush : CanvasBrushBase
2325
{

Microsoft.Toolkit/Helpers/Singleton.cs

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,23 +8,20 @@
88
namespace Microsoft.Toolkit.Helpers
99
{
1010
/// <summary>
11-
/// Provides an easy-to-use thread-safe Singleton Pattern via <see cref="System.Collections.Concurrent.ConcurrentDictionary{TKey, TValue}">ConcurrentDictionary</see>.
11+
/// Obsolete see https://github.com/windows-toolkit/WindowsCommunityToolkit/issues/3134.
1212
/// </summary>
1313
/// <typeparam name="T">The type to be used for creating the Singleton instance.</typeparam>
1414
/// <example>
15-
/// Use by adding a static property to your class for a traditional access pattern:
15+
/// Instead of this helper, migrate your code to this pattern instead:
1616
/// <code>
1717
/// // Setup Singleton
18-
/// public static class MyClass {
19-
/// public static MyClass Instance => Singleton&lt;MyClass&gt;.Instance;
20-
///
21-
/// public void MyMethod() { }
18+
/// public class MyClass
19+
/// {
20+
/// public static MyClass Instance { get; } = new MyClass();
2221
/// }
23-
///
24-
/// // Use Singleton Instance
25-
/// MyClass.Instance.MyMethod();
2622
/// </code>
2723
/// </example>
24+
[Obsolete("This helper will be removed in a future release, see example tag for code replacement. https://github.com/windows-toolkit/WindowsCommunityToolkit/issues/3134")]
2825
public static class Singleton<T>
2926
where T : new()
3027
{

toolkit.public.snk

-160 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)