Skip to content

[Housekeeping] Update BindableProperty SG to use partial Properties #2834

@pictos

Description

@pictos

Feature name

Update BindableProperty SG to use partial Properties

Link to discussion

#2687

Progress tracker

  • Android Implementation
  • iOS Implementation
  • MacCatalyst Implementation
  • Windows Implementation
  • Tizen Implementation
  • Unit Tests
  • Samples
  • Documentation

Summary

Update the Source Generator for Bindable properties to use the new partial Properties from C#, with that change now is possible to create inline docs and will be easier to create more features, like inspect if the user provided the implementation for get and/or set and generate code based on that information.

Motivation

Having the new and shy APIs.

Detailed Design

Just an update.

Usage Syntax

/// <summary>
/// Gets or sets the command to execute when the expander is expanded or collapsed.
/// </summary>
[BindableProperty<ICommand>()]
public partial ICommand Command { get; set; }

Drawbacks

No response

Alternatives

No response

Unresolved Questions

Since this is a housekeeping for an internal API, not sure if it should go trough all process of a champion. If that's the case you can use the existing PR and work from there.

Metadata

Metadata

Assignees

No one assigned

    Labels

    newproposalA fully fleshed out proposal describing a new feature in syntactic and semantic detail

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions