You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The issue cannot be reproduced when a new ColorDialog is created inside the method each time. In this case, the Custom Colors reset correctly after reopening the dialog in both .NET Core and .NET Framework.
private void button1_Click(object sender, EventArgs e)
{
using (ColorDialog colorDialog = new ColorDialog())
{
colorDialog.ShowDialog();
}
}
The text was updated successfully, but these errors were encountered:
This regressed when moving to CsWin32. We need to use a copy of custom colors when calling ChooseColor so that we can skip updating colors when the dialog is cancelled.
Fixesdotnet#13067
This regressed when moving to CsWin32. We need to use a copy of custom
colors when calling ChooseColor so that we can skip updating colors when
the dialog is cancelled.
Fixes#13067
.NET version
.NET 10.0 SDK build: 10.0.100-preview.3.25153.9
Did it work in .NET Framework?
Yes
Did it work in any of the earlier releases of .NET Core or .NET 5+?
No, still repro in .NET 8.0/9.0
Issue description
Current Behavior (.NET Core):
The Custom Colors collection is not cleared after clicking Cancel.
ColorDialogCore.mp4
Expected Behavior (.NET Framework):
The Custom Colors collection reset after clicking Cancel.
ColorDialogFx.mp4
Steps to reproduce
Button
andColorDialog
added.ColorDialog
.ColorDialog
.or using following sample app
ColorDialogCC.zip
More Info
The text was updated successfully, but these errors were encountered: