Skip to content

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

Closed

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

Activity

  1. added
    breaking-change
    on Jan 10, 2023
  2. added
    🏁 Release: .NET 8
    and removed
    ⌚ Not Triaged
    on Jan 10, 2023
  3. ghost added
    in-pr
    on Feb 1, 2023
  4. moved this from 🔖 Ready to 🏗 In progress in dotnet/docs February 2023 sprinton Feb 1, 2023
  5. added
    🗺️ reQUEST
    on Feb 3, 2023
  6. added
    📌 seQUESTered
    and removed
    🗺️ reQUEST
    on Feb 3, 2023
  7. moved this from 🏗 In progress to ✅ Done in dotnet/docs February 2023 sprinton Feb 14, 2023
  8. ghost removed
    in-pr
    on Feb 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

🏁 Release: .NET 8📌 seQUESTeredbreaking-change

Type

No type

Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions