-
Notifications
You must be signed in to change notification settings - Fork 984
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
Rename HotCommands and DocComment #5524
Conversation
Names were difficult to follow. Rename and match with existing public API documentation. Clean up IComPropertyBrowser (related).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some methods names still pointing to old names.
src/System.Windows.Forms/src/System/Windows/Forms/PropertyGridInternal/HelpPane.cs
Outdated
Show resolved
Hide resolved
...nitTests/System/Windows/Forms/PropertyGridInternal/HelpPane.HelpPaneAccessibleObjectTests.cs
Outdated
Show resolved
Hide resolved
src/System.Windows.Forms/src/System/Windows/Forms/PropertyGrid.cs
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 modulo @dreddy-work's comments
src/System.Windows.Forms.Primitives/src/Interop/UiaCore/Interop.IRawElementProviderFragment.cs
Outdated
Show resolved
Hide resolved
...tem.Windows.Forms/src/System/Windows/Forms/ComponentModel/COM2Interop/IComPropertyBrowser.cs
Outdated
Show resolved
Hide resolved
...nitTests/System/Windows/Forms/PropertyGridInternal/HelpPane.HelpPaneAccessibleObjectTests.cs
Outdated
Show resolved
Hide resolved
x86 debug failed with #4736 |
This time |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good.
I had some discussions with myself though (😄) if I liked DescriptionPane
or HelpPane
better. Since this is more from the internal Developer point of view and not an external API, I'm leaning to DescriptionPane
to be honest.
/// Returns the value of the specified <paramref name="propertyID"/> from the element. | ||
/// </summary> | ||
/// <param name="propertyID">Identifier indicating the property to return</param> | ||
/// <returns>Returns the requested value if supported or null if it is not.</returns> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we omit 'Returns'?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, missed a few.
/// Returns the element in the specified <paramref name="direction"/>. | ||
/// </summary> | ||
/// <param name="direction">Indicates the direction in which to navigate.</param> | ||
/// <returns>Returns the element in the specified direction if it exists.</returns> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we omit 'Returns'?
@@ -6,30 +6,26 @@ | |||
|
|||
namespace System.Windows.Forms.PropertyGridInternal | |||
{ | |||
internal partial class DocComment | |||
internal partial class HelpPane |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So...this is the pane that shows the text which is defined by the DescriptionAttribute
of a Property. Wouldn't therefore DescriptionPane
a more intuitive name? (Not really sure myself, just thinking out loud.)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I waffled. The other comments on the public API refer to this as "help" so I settled on that. PropertyGrid.HelpVisible
.
@@ -8,10 +8,18 @@ | |||
|
|||
namespace System.Windows.Forms.PropertyGridInternal | |||
{ | |||
internal partial class DocComment : PropertyGrid.SnappableControl | |||
/// <summary> | |||
/// The help (description) pane optionally shown at the bottom of the <see cref="PropertyGrid"/>. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See... 😄
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I put the parenthesis around it as we call it "description" in the UI. It felt better than description (help)
given that we call this "help" in the public API. :)
I'll catch my missed comments in the next PR (up shortly). |
Names were difficult to follow. Rename and match with existing public API documentation. Clean up IComPropertyBrowser (related).
Microsoft Reviewers: Open in CodeFlow