Did sb know a simple way to update the Viewport

Mar 14, 2013 at 11:34 AM
I implement:
private void slider1_ValueChanged(object sender, RoutedPropertyChangedEventArgs<double> e)
{
    if (plotter == null) return;
    //change point thickness
    Slider thickness = sender as Slider;
    for (int child = 14; child < plotter.Children.Count; child++)
    {
        MarkerPointsGraph cur = plotter.Children.ElementAt(child) as MarkerPointsGraph;
        if (cur != null)
        {
            ShapePointMarker curpoint = cur.Marker as ShapePointMarker;
            curpoint.Size = thickness.Value + 3;
        }
    }
    //update chart
    DataRect visible = plotter.Viewport.Visible;
    plotter.Viewport.Visible = new DataRect(0, 0, 0, 0);
    plotter.Viewport.Visible = visible;
}
it works but it seems not efficiently