Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Window_and_Application_API_Spec.md #72

Merged
merged 2 commits into from
Aug 3, 2020

Conversation

thomasclaudiushuber
Copy link

I don't know what the property should be called there, but definitely not Visible. :-)

I don't know what the property should be called there, but definitely not Visible. :-)
@thomasclaudiushuber thomasclaudiushuber requested a review from a team as a code owner March 16, 2020 19:55
```CS
public Size Visible { get; }
public Size WindowSize { get; }

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd prefer just Size

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I thought about that too. But maybe when you have an event handler and the parameter is just called "e", e.WindowSize looks better than e.Size. But I'm not an API design expert. :-)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Then the other size changed event should be called ControlSize. It's more consistent just calling it Size.
Also don't see why we can't reuse the existing SizeChangedEventArgs class here?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, changed to just Size.

Yes, the question with SizeChangedEventArgs is good. @marb2000 might know. :)

Change WindowSize to just Size
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants