1234567891011121314151617181920212223242526 |
- using System;
- using System.Globalization;
- using System.Windows.Data;
- namespace ComPDFKit.Controls.Common
- {
- public class CaptionHeightConverter : IMultiValueConverter
- {
- public object Convert(object[] values, Type targetType, object parameter, CultureInfo culture)
- {
- try
- {
- return (double)values[0] + (double)values[1];
- }
- catch
- {
- return 6.0;
- }
- }
- public object[] ConvertBack(object value, Type[] targetTypes, object parameter, CultureInfo culture)
- {
- return null;
- }
- }
- }
|