123456789101112131415161718192021222324252627282930313233343536 |
- 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 MouseWheelZoomXConverter : IMultiValueConverter
- {
- public object Convert(object[] values, Type targetType, object parameter, System.Globalization.CultureInfo culture)
- {
- try
- {
- var dir = (Abt.Controls.SciChart.XyDirection)values[0];
- var isEnable = (bool)values[1];
- return isEnable && (dir == Abt.Controls.SciChart.XyDirection.XYDirection || dir == Abt.Controls.SciChart.XyDirection.XDirection);
- }
- catch (Exception ex)
- {
- CONTEXT.WriteLog(ex);
- }
- return false;
- }
- public object[] ConvertBack(object value, Type[] targetTypes, object parameter, System.Globalization.CultureInfo culture)
- {
- return null;
- }
- }
- }
|