mirror of
http://git.xinwangdao.com/cnnc-embedded-parts-detect/detect.git
synced 2025-06-25 05:54:14 +08:00
19 lines
486 B
C#
19 lines
486 B
C#
![]() |
using System;
|
|||
|
using System.Globalization;
|
|||
|
using Avalonia.Data.Converters;
|
|||
|
|
|||
|
namespace detect.gui.Converters;
|
|||
|
|
|||
|
public class VideoTimeSliderConverter : IValueConverter
|
|||
|
{
|
|||
|
public object? Convert(object? value, Type targetType, object? parameter, CultureInfo culture)
|
|||
|
{
|
|||
|
var width = value as double?;
|
|||
|
return width * 0.5;
|
|||
|
}
|
|||
|
|
|||
|
public object? ConvertBack(object? value, Type targetType, object? parameter, CultureInfo culture)
|
|||
|
{
|
|||
|
return value;
|
|||
|
}
|
|||
|
}
|