4 writes to ActiveDesigner
System.Windows.Forms (4)
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (4)
1157ActiveDesigner = value?.GetService<IDesignerHost>(); 1814ActiveDesigner = null; 2340ActiveDesigner = null; 2345ActiveDesigner = e.NewDesigner;
14 references to ActiveDesigner
System.Windows.Forms (8)
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (5)
1093object? designerKey = ActiveDesigner; 3580_designerSelections.Remove(ActiveDesigner.GetHashCode()); 3674[MemberNotNullWhen(true, nameof(ActiveDesigner))] 3678if (_designerSelections is null || ActiveDesigner is null) 3683int hashCode = ActiveDesigner.GetHashCode();
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.PropertyGridServiceProvider.cs (2)
11/// Service provider that searches the <see cref="ActiveDesigner"/>, then the <see cref="PropertyGridView"/>, 25object? service = _ownerPropertyGrid.ActiveDesigner?.GetService(serviceType);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridEntry.cs (1)
240/// <see cref="PropertyGrid"/> will update this when <see cref="PropertyGrid.ActiveDesigner"/> is set.
System.Windows.Forms.Tests (6)
System\Windows\Forms\PropertyGridTests.cs (6)
2747Assert.NotNull(propertyGrid.ActiveDesigner); 2752Assert.True(_designerSelections.ContainsKey(propertyGrid.ActiveDesigner.GetHashCode())); 2754int savedTabIndex = _designerSelections[propertyGrid.ActiveDesigner.GetHashCode()]; 2769var previousActiveDesigner = propertyGrid.ActiveDesigner; 2774Assert.NotNull(propertyGrid.ActiveDesigner); 2775Assert.NotEqual(previousActiveDesigner, propertyGrid.ActiveDesigner);