feat: mark converters as deprecated and update references to new classes.
This commit is contained in:
@@ -4,6 +4,7 @@ using Avalonia.Data.Converters;
|
||||
|
||||
namespace Ursa.Converters;
|
||||
|
||||
[Obsolete("This converter is deprecated. Use CornerRadiusMixerConverter instead.")]
|
||||
[Flags]
|
||||
public enum CornerRadiusPosition
|
||||
{
|
||||
@@ -17,6 +18,7 @@ public enum CornerRadiusPosition
|
||||
Bottom = 12,
|
||||
}
|
||||
|
||||
[Obsolete("This converter is deprecated. Use CornerRadiusMixerConverter instead.")]
|
||||
public class CornerRadiusIncludeConverter(CornerRadiusPosition position) : IValueConverter
|
||||
{
|
||||
public static CornerRadiusIncludeConverter TopLeft { get; } = new( CornerRadiusPosition.TopLeft );
|
||||
@@ -47,6 +49,7 @@ public class CornerRadiusIncludeConverter(CornerRadiusPosition position) : IValu
|
||||
}
|
||||
}
|
||||
|
||||
[Obsolete("This converter is deprecated. Use CornerRadiusMixerConverter instead.")]
|
||||
public class CornerRadiusExcludeConverter : IValueConverter
|
||||
{
|
||||
public static CornerRadiusExcludeConverter TopLeft { get; } = new( CornerRadiusPosition.TopLeft );
|
||||
|
||||
@@ -4,6 +4,7 @@ using Avalonia.Data.Converters;
|
||||
|
||||
namespace Ursa.Converters;
|
||||
|
||||
[Obsolete("This converter is deprecated. Use ThicknessMixerConverter instead.")]
|
||||
[Flags]
|
||||
public enum ThicknessPosition
|
||||
{
|
||||
@@ -17,6 +18,7 @@ public enum ThicknessPosition
|
||||
BottomRight = 12,
|
||||
}
|
||||
|
||||
[Obsolete("This converter is deprecated. Use ThicknessMixerConverter instead.")]
|
||||
public class ThicknessExcludeConverter(ThicknessPosition position) : IValueConverter
|
||||
{
|
||||
public static ThicknessExcludeConverter Left { get; } = new( ThicknessPosition.Left );
|
||||
@@ -48,6 +50,7 @@ public class ThicknessExcludeConverter(ThicknessPosition position) : IValueConve
|
||||
}
|
||||
}
|
||||
|
||||
[Obsolete("This converter is deprecated. Use ThicknessMixerConverter instead.")]
|
||||
public class ThicknessIncludeConverter(ThicknessPosition position) : IValueConverter
|
||||
{
|
||||
public static ThicknessIncludeConverter Left { get; } = new( ThicknessPosition.Left );
|
||||
|
||||
Reference in New Issue
Block a user