Skip to content

[Breaking change]: ImageList.ColorDepth default changed to 32bit. #33402

@dreddy-work

Description

@dreddy-work

Description

The default value for ImageList.ColorDepth has been changed over time, starting with Depth4Bit, then moving to Depth8bit, and now in .NET 8.0, the default is being set to Depth32bit. This change affects both existing and new applications that target .NET 8.0. Existing applications may need to update their designer generated source code to reflect this change and replace ImageList.ColorDepth with the new default value (WinForms designer will do this automatically if opened in Visual Studio). We need to update out existing documentation on this property to reflect this change.

Version

.NET 8 Preview 1

Previous behavior

Default value was Depth8bit

New behavior

Default is Depth32bit

Type of breaking change

  • Binary incompatible: Existing binaries may encounter a breaking change in behavior, such as failure to load or execute, and if so, require recompilation.
  • Source incompatible: When recompiled using the new SDK or component or to target the new runtime, existing source code may require source changes to compile successfully.
  • Behavioral change: Existing binaries may behave differently at run time.

Reason for change

NA

Recommended action

NA

Feature area

Windows Forms

Affected APIs

No response


Associated WorkItem - 62390

Metadata

Metadata

Assignees

Labels

🏁 Release: .NET 8Work items for the .NET 8 release📌 seQUESTeredIdentifies that an issue has been imported into Quest.breaking-changeIndicates a .NET Core breaking change

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions