4 writes to ActiveDesigner
System.Windows.Forms (4)
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (4)
1157
ActiveDesigner
= value?.GetService<IDesignerHost>();
1814
ActiveDesigner
= null;
2340
ActiveDesigner
= null;
2345
ActiveDesigner
= e.NewDesigner;
14 references to ActiveDesigner
System.Windows.Forms (8)
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (5)
1093
object? designerKey =
ActiveDesigner
;
3580
_designerSelections.Remove(
ActiveDesigner
.GetHashCode());
3674
[MemberNotNullWhen(true, nameof(
ActiveDesigner
))]
3678
if (_designerSelections is null ||
ActiveDesigner
is null)
3683
int 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"/>,
25
object? 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)
2747
Assert.NotNull(propertyGrid.
ActiveDesigner
);
2752
Assert.True(_designerSelections.ContainsKey(propertyGrid.
ActiveDesigner
.GetHashCode()));
2754
int savedTabIndex = _designerSelections[propertyGrid.
ActiveDesigner
.GetHashCode()];
2769
var previousActiveDesigner = propertyGrid.
ActiveDesigner
;
2774
Assert.NotNull(propertyGrid.
ActiveDesigner
);
2775
Assert.NotEqual(previousActiveDesigner, propertyGrid.
ActiveDesigner
);