Forum Xamarin Xamarin.Forms

Xamarin Forms documentation: Include default value for properties

AndrewMobileAndrewMobile USMember ✭✭✭✭
edited July 2017 in Xamarin.Forms


The generated documentation at should have default value for properties.

For example, I had to dig into the Xamarin Forms source code to find what is the default value of the Aspect property of the Image control.
The documentation for the property does not include it:

Microsoft does it since like forever:

Property Value
Type: System.Windows.Media.Stretch
One of the Stretch values. The default is Uniform.

@MigueldeIcaza @NatFriedman.5738 @DavidOrtinau Can we please have this? Thank you.

API Changes


Intended Use Case

Help everyone write better code.


Open · Last Updated


  • N_BauaN_Baua INMember ✭✭✭✭✭

    Hi @AndrewMobile,

    Really nice point here, There are other members, who also are pointing similar requirements, can you please pour your suggestions there as well. Thanks.

    Here is the thread: >
    Hope this helps XF community to address something more out of Forums OR apart from forums.

    N Baua

  • AndrewMobileAndrewMobile USMember ✭✭✭✭
    edited July 2017

    @N_Baua Just to be sure we're on the same page, examples are great and Xamarin has examples in the documentation already. Some of the documentation is very good.

    I was not referring to examples. I was referring to include the default value of properties in the API documentation which is generated automatically based on the source code. Exactly how Microsoft does it in the link I posted in my previous message.

    Let's not mix it up, I was referring to a very precise thing.


  • N_BauaN_Baua INMember ✭✭✭✭✭

    @AndrewMobile ,

    Yeah I can understand that,
    I am not mixing the two concepts, The question here is Does in all scenarios the auto-generated API is sufficient?

    Also that I agree to the statement 'Exactly how Microsoft does it', and that's the whole point, when Xamarin is now in Microsoft bucket why not for Xamarin?

    If you see there are numerous blogs and sites which you will find for other technologies, (say for example : C# - ) My motive is to start a user-driven portal/blog which focuses on the Xamarin Forms, and that's the reason, I am asking views of the like-minded forum users. Now it is up to you, how you wish to suggest something.

    Thanks anyways.

    N Baua

  • ChaseFlorellChaseFlorell CAInsider, University mod

    Since the +1 still isn't implemented in this forum, I'd like to add my vote to this as well. There are many situations where I'd like to see the default value. I'd like to see it in the Intellisense comments.


    /// <summary>
    /// Gets or sets the [blank] for the [blank]. This is a bindable property.
    /// </summary>


    /// <summary>
    /// Gets or sets the [blank] for the [blank]. This is a bindable property. The default is [blank]
    /// </summary>
  • Rafael.SantosRafael.Santos PTUniversity ✭✭

    Agree 100%

  • VelocityVelocity NZMember ✭✭✭

    +1 This would certainly be valuable.

Sign In or Register to comment.