using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Data;
using System.Windows.Media;
using System.Windows;
using DataAnalysisControl.Core;
namespace Aitex.UI.Charting.Converter
{
public class PanEnableConverter : IMultiValueConverter
{
public object Convert(object[] values, Type targetType, object parameter, System.Globalization.CultureInfo culture)
{
try
{
/*
*/
var isZoomPanModifierEnable = (bool)values[0];
var isXAutoRangeEnable = (bool)values[1];
var isYAutoRangeEnable = (bool)values[2];
var isRolloverModifierEnable = (bool)values[3];
return isZoomPanModifierEnable && !isXAutoRangeEnable && !isYAutoRangeEnable && !isRolloverModifierEnable;
}
catch (Exception ex)
{
CONTEXT.WriteLog(ex);
}
return false;
}
public object[] ConvertBack(object value, Type[] targetTypes, object parameter, System.Globalization.CultureInfo culture)
{
return null;
}
}
}