Skip to content

Commit e997fdb

Browse files
committed
Mark FrameExtension methods as obsolete in .NET 9, recommending Border instead
1 parent 54bf393 commit e997fdb

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/FmgLib.MauiMarkup/Extensions/FrameExtension.cs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
namespace FmgLib.MauiMarkup;
22

3+
[Obsolete("Frame is obsolete as of .NET 9. Please use Border instead.")]
34
public static partial class FrameExtension
45
{
6+
[Obsolete("Frame is obsolete as of .NET 9. Please use Border instead.")]
57
public static T HasShadow<T>(this T self,
68
bool hasShadow)
79
where T : Frame
@@ -10,6 +12,7 @@ public static T HasShadow<T>(this T self,
1012
return self;
1113
}
1214

15+
[Obsolete("Frame is obsolete as of .NET 9. Please use Border instead.")]
1316
public static T HasShadow<T>(this T self, Func<PropertyContext<bool>, IPropertyBuilder<bool>> configure)
1417
where T : Frame
1518
{
@@ -18,6 +21,7 @@ public static T HasShadow<T>(this T self, Func<PropertyContext<bool>, IPropertyB
1821
return self;
1922
}
2023

24+
[Obsolete("Frame is obsolete as of .NET 9. Please use Border instead.")]
2125
public static SettersContext<T> HasShadow<T>(this SettersContext<T> self,
2226
bool hasShadow)
2327
where T : Frame
@@ -26,6 +30,7 @@ public static SettersContext<T> HasShadow<T>(this SettersContext<T> self,
2630
return self;
2731
}
2832

33+
[Obsolete("Frame is obsolete as of .NET 9. Please use Border instead.")]
2934
public static SettersContext<T> HasShadow<T>(this SettersContext<T> self, Func<PropertySettersContext<bool>, IPropertySettersBuilder<bool>> configure)
3035
where T : Frame
3136
{
@@ -34,6 +39,7 @@ public static SettersContext<T> HasShadow<T>(this SettersContext<T> self, Func<P
3439
return self;
3540
}
3641

42+
[Obsolete("Frame is obsolete as of .NET 9. Please use Border instead.")]
3743
public static T BorderColor<T>(this T self,
3844
Color borderColor)
3945
where T : Frame
@@ -42,6 +48,7 @@ public static T BorderColor<T>(this T self,
4248
return self;
4349
}
4450

51+
[Obsolete("Frame is obsolete as of .NET 9. Please use Border instead.")]
4552
public static T BorderColor<T>(this T self, Func<PropertyContext<Color>, IPropertyBuilder<Color>> configure)
4653
where T : Frame
4754
{
@@ -50,6 +57,7 @@ public static T BorderColor<T>(this T self, Func<PropertyContext<Color>, IProper
5057
return self;
5158
}
5259

60+
[Obsolete("Frame is obsolete as of .NET 9. Please use Border instead.")]
5361
public static SettersContext<T> BorderColor<T>(this SettersContext<T> self,
5462
Color borderColor)
5563
where T : Frame
@@ -58,6 +66,7 @@ public static SettersContext<T> BorderColor<T>(this SettersContext<T> self,
5866
return self;
5967
}
6068

69+
[Obsolete("Frame is obsolete as of .NET 9. Please use Border instead.")]
6170
public static SettersContext<T> BorderColor<T>(this SettersContext<T> self, Func<PropertySettersContext<Color>, IPropertySettersBuilder<Color>> configure)
6271
where T : Frame
6372
{
@@ -66,6 +75,7 @@ public static SettersContext<T> BorderColor<T>(this SettersContext<T> self, Func
6675
return self;
6776
}
6877

78+
[Obsolete("Frame is obsolete as of .NET 9. Please use Border instead.")]
6979
public static Task<bool> AnimateBorderColorTo<T>(this T self, Color value, uint length = 250, Easing? easing = null)
7080
where T : Frame
7181
{
@@ -75,6 +85,7 @@ public static Task<bool> AnimateBorderColorTo<T>(this T self, Color value, uint
7585
return Transformations.AnimateAsync<Color>(self, "AnimateBorderColorTo", transform, callback, length, easing);
7686
}
7787

88+
[Obsolete("Frame is obsolete as of .NET 9. Please use Border instead.")]
7889
public static T CornerRadius<T>(this T self,
7990
float cornerRadius)
8091
where T : Frame
@@ -83,6 +94,7 @@ public static T CornerRadius<T>(this T self,
8394
return self;
8495
}
8596

97+
[Obsolete("Frame is obsolete as of .NET 9. Please use Border instead.")]
8698
public static T CornerRadius<T>(this T self, Func<PropertyContext<float>, IPropertyBuilder<float>> configure)
8799
where T : Frame
88100
{
@@ -91,6 +103,7 @@ public static T CornerRadius<T>(this T self, Func<PropertyContext<float>, IPrope
91103
return self;
92104
}
93105

106+
[Obsolete("Frame is obsolete as of .NET 9. Please use Border instead.")]
94107
public static SettersContext<T> CornerRadius<T>(this SettersContext<T> self,
95108
float cornerRadius)
96109
where T : Frame
@@ -99,6 +112,7 @@ public static SettersContext<T> CornerRadius<T>(this SettersContext<T> self,
99112
return self;
100113
}
101114

115+
[Obsolete("Frame is obsolete as of .NET 9. Please use Border instead.")]
102116
public static SettersContext<T> CornerRadius<T>(this SettersContext<T> self, Func<PropertySettersContext<float>, IPropertySettersBuilder<float>> configure)
103117
where T : Frame
104118
{

0 commit comments

Comments
 (0)