Free cookie consent management tool by TermsFeed Policy Generator

source: branches/HeuristicLab.Problems.GrammaticalOptimization/DynamicDataDisplay/Charts/Legend items/LegendBottomButtonIsEnabledConverter.cs @ 13376

Last change on this file since 13376 was 12503, checked in by aballeit, 9 years ago

#2283 added GUI and charts; fixed MCTS

File size: 701 bytes
Line 
1using System;
2using System.Collections.Generic;
3using System.Linq;
4using System.Text;
5using Microsoft.Research.DynamicDataDisplay.Converters;
6using System.Windows.Controls;
7using System.Globalization;
8
9namespace Microsoft.Research.DynamicDataDisplay.Charts
10{
11  internal sealed class LegendBottomButtonIsEnabledConverter : ThreeValuesMultiConverter<double, double, double>
12  {
13    protected override object ConvertCore(double value1, double value2, double value3, Type targetType, object parameter, CultureInfo culture)
14    {
15      double extentHeight = value1;
16      double viewportHeight = value2;
17      double offset = value3;
18
19      return viewportHeight < (extentHeight - offset);
20    }
21  }
22}
Note: See TracBrowser for help on using the repository browser.