| 123456789101112131415161718192021 |
- using System;
- using System.Globalization;
- using System.Windows;
- using System.Windows.Data;
- namespace GeekDesk.Converts
- {
- class IntToCornerRadius : IValueConverter
- {
- public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
- {
- int val = int.Parse(value.ToString());
- return new CornerRadius(val);
- }
- public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
- {
- throw new NotImplementedException();
- }
- }
- }
|