GridLayout.TopAlighment: Is This A Typo/Misspelling?

Nathan Sokalski 4,111 Reputation points
2021-11-11T03:54:25.863+00:00

This isn't exactly a question, more like just information. While using GridLayout.InvokeSpec, I noticed that one of the possible values looked almost definitely misspelled. Here is a screenshot:

148395-screenshot-2021-11-10-224156.png

Notice that the spelling is GridLayout.TopAlighment rather than GridLayout.TopAlignment. I also noticed that several related properties, such as GridLayout.BottomAlighment, GridLayout.LeftAlighment, and GridLayout.RightAlighment have the same misspelling. Yet the parameter type & name are GridLayout.Alignment? & alignment. Not that the code won't work with misspelled properties, but I would expect that most people prefer correctly spelled code when possible. I wasn't sure where to report this, but maybe you know.

Developer technologies | .NET | Xamarin
0 comments No comments
{count} votes

Accepted answer
  1. Anonymous
    2021-11-12T06:13:09.807+00:00

    Hello,​

    Welcome to our Microsoft Q&A platform!

    Thanks for your sharing.

    Yes, you are right, the correct value is Alignment, please see this InvokeSpec(Int32, Int32, GridLayout+Alignment) And the Google Native API.

    You can report it in the Xamarin.Android Github with this thread:https://github.com/xamarin/xamarin-android/issues/new/choose , choose the third one: Android API
    Issues with the Android API exposed in Mono.Android.

    And I will report this issue as well.

    Best Regards,

    Leon Lu


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.