Skip to content
This repository was archived by the owner on Feb 25, 2026. It is now read-only.
This repository was archived by the owner on Feb 25, 2026. It is now read-only.

[Feature] Add Size Extensions #3317

Closed

Description

@michael-hawker

Describe the problem this feature would solve

We have a lot of this pattern in the toolkit:

new Rect(0, 0, size.Width, size.Height)

Describe the solution

It'd be great to have some extensions for size:

size.ToRect() // Defaults to 0, 0
size.ToRect(point);
size.ToRect(x, y);

Thoughts?

Activity

  1. added this to the 7.0 milestone on Sep 14, 2020
  2. deleted a comment from on Sep 14, 2020
  3. deleted a comment from on Sep 14, 2020
  4. deleted a comment from on Sep 14, 2020
  5. deleted a comment from on Sep 14, 2020
  6. deleted a comment from on Sep 14, 2020
  7. deleted a comment from on Sep 14, 2020
  8. deleted a comment from on Sep 14, 2020
  9. ghost closed this as completedin #3489on Sep 24, 2020
  10. ghost added a commit that references this issue on Sep 24, 2020
    05d77c4
  11. ghost locked as resolved and limited conversation to collaborators on Nov 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Completed 🔥feature request 📬A request for new changes to improve functionalitygood first issueIssues identified as good for first-time contributorshelp wantedIssues identified as good community contribution opportunities

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions