Index: Core/Components/src/Core.Components.OxyPlot.Forms/ChartControl.cs =================================================================== diff -u -rf04895089d34bddb618db8c7001c574428be10c6 -r8a9cbc6a12cd4c87aa79f76fe0a8d04439b63f24 --- Core/Components/src/Core.Components.OxyPlot.Forms/ChartControl.cs (.../ChartControl.cs) (revision f04895089d34bddb618db8c7001c574428be10c6) +++ Core/Components/src/Core.Components.OxyPlot.Forms/ChartControl.cs (.../ChartControl.cs) (revision 8a9cbc6a12cd4c87aa79f76fe0a8d04439b63f24) @@ -60,7 +60,11 @@ /// private void InitializePlotView() { - view = new LinearPlotView(); + view = new LinearPlotView + { + BackColor = Color.White + }; + controller = new DynamicPlotController(); view.Controller = controller; Controls.Add(view); Index: Core/Components/test/Core.Components.OxyPlot.Forms.Test/ChartControlTest.cs =================================================================== diff -u -r516f10118109eb4056794904fa280b9df0c7ca1f -r8a9cbc6a12cd4c87aa79f76fe0a8d04439b63f24 --- Core/Components/test/Core.Components.OxyPlot.Forms.Test/ChartControlTest.cs (.../ChartControlTest.cs) (revision 516f10118109eb4056794904fa280b9df0c7ca1f) +++ Core/Components/test/Core.Components.OxyPlot.Forms.Test/ChartControlTest.cs (.../ChartControlTest.cs) (revision 8a9cbc6a12cd4c87aa79f76fe0a8d04439b63f24) @@ -19,6 +19,7 @@ // Stichting Deltares and remain full property of Stichting Deltares at all times. // All rights reserved. +using System.Drawing; using System.Linq; using System.Windows.Forms; using Core.Common.Base.Geometry; @@ -46,6 +47,9 @@ CollectionAssert.IsEmpty(chart.Data.List); Assert.IsTrue(chart.IsPanningEnabled); Assert.IsFalse(chart.IsRectangleZoomingEnabled); + + var view = TypeUtils.GetField(chart, "view"); + Assert.AreEqual(Color.White, view.BackColor); } }