예제 #1
0
        private void OnVerticalChanged(object obj)
        {
            SfHeatMapLegend Legend = obj as SfHeatMapLegend;

            Legend.Orientation = Orientation.Vertical;
            Legend.Width       = double.NaN;
            Legend.Height      = 250;
            Grid.SetRow(Legend, 1);
            Grid.SetColumn(Legend, 1);
            Legend.Margin = new Thickness(30, 10, 10, 10);
        }
예제 #2
0
        private void OnHorizontalChanged(object obj)
        {
            SfHeatMapLegend Legend = obj as SfHeatMapLegend;

            Legend.Orientation = Orientation.Horizontal;
            Legend.Width       = 400;
            Legend.Height      = double.NaN;
            Grid.SetRow(Legend, 2);
            Grid.SetColumn(Legend, 0);
            Legend.Margin = new Thickness(10, 30, 10, 10);
        }
예제 #3
0
        private void OnListChanged(object obj)
        {
            SfHeatMapLegend Legend = obj as SfHeatMapLegend;

            Legend.LegendMode = LegendMode.List;
            if (Legend.Orientation == Orientation.Horizontal)
            {
                Grid.SetRow(Legend, 2);
                Grid.SetColumn(Legend, 0);
            }
            else
            {
                Grid.SetColumn(Legend, 1);
                Grid.SetRow(Legend, 1);
            }
        }
예제 #4
0
        private void OnGradientchanged(object obj)
        {
            SfHeatMapLegend Legend = obj as SfHeatMapLegend;

            Legend.LegendMode = LegendMode.Gradient;
            if (Legend.Orientation == Orientation.Horizontal)
            {
                Legend.Width  = 400;
                Legend.Height = double.NaN;
                Grid.SetRow(Legend, 2);
            }
            else
            {
                Legend.Width  = double.NaN;
                Legend.Height = 250;
                Grid.SetRow(Legend, 1);
            }
        }