8 writes to ViewBackColor
System.Windows.Forms.Tests (7)
System\Windows\Forms\PropertyGridTests.cs (7)
3244ViewBackColor = value 3251control.ViewBackColor = value; 3269control.ViewBackColor = value; 3277control.ViewBackColor = value; 3292control.ViewBackColor = Color.Red; 3308control.ViewBackColor = Color.Red; 3321Assert.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); 3247Assert.Equal(expected, control.ViewBackColor); 3252Assert.Equal(expected, control.ViewBackColor); 3270Assert.Equal(expected, control.ViewBackColor); 3278Assert.Equal(expected, control.ViewBackColor); 3288PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.ViewBackColor)]; 3293Assert.Equal(Color.Red, control.ViewBackColor); 3297Assert.Equal(SystemColors.Window, control.ViewBackColor); 3304PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.ViewBackColor)]; 3309Assert.Equal(Color.Red, control.ViewBackColor); 3313Assert.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);