|
|
|
@ -1,6 +1,5 @@ |
|
|
|
using System; |
|
|
|
using System.Globalization; |
|
|
|
|
|
|
|
using Avalonia.Data.Converters; |
|
|
|
|
|
|
|
namespace Avalonia.Controls.Converters |
|
|
|
@ -22,7 +21,12 @@ namespace Avalonia.Controls.Converters |
|
|
|
/// </summary>
|
|
|
|
public double Scale { get; set; } = 1; |
|
|
|
|
|
|
|
public object? Convert(object? value, Type targetType, object? parameter, CultureInfo culture) |
|
|
|
/// <inheritdoc/>
|
|
|
|
public object? Convert( |
|
|
|
object? value, |
|
|
|
Type targetType, |
|
|
|
object? parameter, |
|
|
|
CultureInfo culture) |
|
|
|
{ |
|
|
|
if (!(value is CornerRadius radius)) |
|
|
|
{ |
|
|
|
@ -36,7 +40,12 @@ namespace Avalonia.Controls.Converters |
|
|
|
Filter.HasAllFlags(Corners.BottomLeft) ? radius.BottomLeft * Scale : 0); |
|
|
|
} |
|
|
|
|
|
|
|
public object? ConvertBack(object? value, Type targetType, object? parameter, CultureInfo culture) |
|
|
|
/// <inheritdoc/>
|
|
|
|
public object? ConvertBack( |
|
|
|
object? value, |
|
|
|
Type targetType, |
|
|
|
object? parameter, |
|
|
|
CultureInfo culture) |
|
|
|
{ |
|
|
|
throw new NotImplementedException(); |
|
|
|
} |
|
|
|
|