Exemplo n.º 1
0
        private MarkerStyle ConvertPointStyle(ScatterPlotDataRowVisualProperties.ScatterPlotDataRowPointStyle pointStyle)
        {
            switch (pointStyle)
            {
            case ScatterPlotDataRowVisualProperties.ScatterPlotDataRowPointStyle.Circle:
                return(MarkerStyle.Circle);

            case ScatterPlotDataRowVisualProperties.ScatterPlotDataRowPointStyle.Cross:
                return(MarkerStyle.Cross);

            case ScatterPlotDataRowVisualProperties.ScatterPlotDataRowPointStyle.Diamond:
                return(MarkerStyle.Diamond);

            case ScatterPlotDataRowVisualProperties.ScatterPlotDataRowPointStyle.Square:
                return(MarkerStyle.Square);

            case ScatterPlotDataRowVisualProperties.ScatterPlotDataRowPointStyle.Star4:
                return(MarkerStyle.Star4);

            case ScatterPlotDataRowVisualProperties.ScatterPlotDataRowPointStyle.Star5:
                return(MarkerStyle.Star5);

            case ScatterPlotDataRowVisualProperties.ScatterPlotDataRowPointStyle.Star6:
                return(MarkerStyle.Star6);

            case ScatterPlotDataRowVisualProperties.ScatterPlotDataRowPointStyle.Star10:
                return(MarkerStyle.Star10);

            case ScatterPlotDataRowVisualProperties.ScatterPlotDataRowPointStyle.Triangle:
                return(MarkerStyle.Triangle);

            default:
                return(MarkerStyle.None);
            }
        }
 private void pointStyleComboBox_SelectedValueChanged(object sender, EventArgs e)
 {
     if (!SuppressEvents && Content != null)
     {
         ScatterPlotDataRowVisualProperties.ScatterPlotDataRowPointStyle selected = (ScatterPlotDataRowVisualProperties.ScatterPlotDataRowPointStyle)pointStyleComboBox.SelectedValue;
         Content.PointStyle = selected;
     }
 }