8 writes to ViewBackColor
System.Windows.Forms.Tests (7)
System\Windows\Forms\PropertyGridTests.cs (7)
3209ViewBackColor = value 3216control.ViewBackColor = value; 3234control.ViewBackColor = value; 3242control.ViewBackColor = value; 3257control.ViewBackColor = Color.Red; 3273control.ViewBackColor = Color.Red; 3286Assert.Throws<ArgumentException>(() => control.ViewBackColor = Color.FromArgb(254, 1, 2, 3));
System.Windows.Forms.UI.IntegrationTests (1)
PropertyGridTests.cs (1)
340_propertyGrid.ViewBackColor = Color.Red;
13 references to ViewBackColor
System.Windows.Forms.Tests (11)
System\Windows\Forms\PropertyGridTests.cs (11)
164Assert.Equal(SystemColors.Window, control.ViewBackColor); 3212Assert.Equal(expected, control.ViewBackColor); 3217Assert.Equal(expected, control.ViewBackColor); 3235Assert.Equal(expected, control.ViewBackColor); 3243Assert.Equal(expected, control.ViewBackColor); 3253PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.ViewBackColor)]; 3258Assert.Equal(Color.Red, control.ViewBackColor); 3262Assert.Equal(SystemColors.Window, control.ViewBackColor); 3269PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.ViewBackColor)]; 3274Assert.Equal(Color.Red, control.ViewBackColor); 3278Assert.Equal(SystemColors.Window, control.ViewBackColor);
System.Windows.Forms.UI.IntegrationTests (2)
PropertyGridTests.cs (2)
338_propertyGrid.ViewBackColor.Should().Be(SystemColors.Window); 341_propertyGrid.ViewBackColor.Should().Be(Color.Red);