Generate public readonly properties instead of private fields #2
Labels
area: code-generator
The issue is related to the code generator engine
enhancement
New feature or request
Projects
At this moment, Rosalina generates
private
fields for that represents the named UI components defined in the UXML template.But if we want to interect with properties within another document, a
public
field or property is required. Thus, I believe the use ofpublic
readonly property could be interesting.public
to grant access to the property."readonly" to prevent the user to reassign the inner UI field.
This would give us something like:
In the extension we will be able to use the
property
.When using a
MyDocument
instance, you'll be able to calls theMyButton
property.The text was updated successfully, but these errors were encountered: