Line | |
---|
1 | using System;
|
---|
2 | using System.Collections.Generic;
|
---|
3 | using System.Linq;
|
---|
4 | using System.Text;
|
---|
5 | using Microsoft.Research.DynamicDataDisplay.Converters;
|
---|
6 | using System.Windows.Controls;
|
---|
7 | using System.Globalization;
|
---|
8 |
|
---|
9 | namespace 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.