Skip to content

Add ReadOnlyProperty support for BindableTextField #50

Closed
@ChebanovDD

Description

@ChebanovDD

Feature request

Now the following code throws an exception. Even if the BindableTextField is marked as read-only.

public class NameViewModel : IBindingContext
{
    [Observable]
    private readonly IReadOnlyProperty<string> _name = new ReadOnlyProperty<string>(nameof(NameViewModel));
}
<ui:UXML xmlns:uitk="UnityMvvmToolkit.UITK.BindableUIElements" ...>
    <uitk:BindableTextField binding-value-path="Name" />
</ui:UXML>

I'd like to allow this type of binding if a BindableTextField is read-only.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions