Код: Выделить всё
public partial class TestControl : UserControl
{
public TestClass TimeData{get;set;}
public TestControl ()
{
InitializeComponent();
}
}
public class TestClass
{
public int DelayTime { get; set; } = 80;
}
Код: Выделить всё
значение объекта[] равно 0,0;
Код: Выделить всё
Код: Выделить всё
public class MultiflyConverter : IMultiValueConverter
{
public object Convert(object[] values, Type targetType, object parameter, CultureInfo culture)
{
var a = System.Convert.ToInt32(values[0]);
var b = System.Convert.ToInt32(values[1]);
return a * b;
}
public object[] ConvertBack(object value, Type[] targetTypes, object parameter, CultureInfo culture)
{
throw new NotImplementedException();
}
}
Подробнее здесь: https://stackoverflow.com/questions/784 ... ltibinding
Мобильная версия