16 lines
437 B
C#
16 lines
437 B
C#
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
using System.Windows.Data;
|
|||
|
|
|
|||
|
|
namespace WPFluent.Converters;
|
|||
|
|
|
|||
|
|
internal class TextToAsteriskConverter : IValueConverter
|
|||
|
|
{
|
|||
|
|
public object Convert(object? value, Type targetType, object? parameter, CultureInfo culture)
|
|||
|
|
{ return new string('*', value?.ToString()?.Length ?? 0); }
|
|||
|
|
|
|||
|
|
public object ConvertBack(object? value, Type targetType, object? parameter, CultureInfo culture)
|
|||
|
|
{ throw new NotImplementedException(); }
|
|||
|
|
}
|