Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some nested members are not properly retrieved #66

Open
Hellfim opened this issue Nov 18, 2023 · 0 comments · May be fixed by #67
Open

Some nested members are not properly retrieved #66

Hellfim opened this issue Nov 18, 2023 · 0 comments · May be fixed by #67
Assignees
Labels
bug Something isn't working

Comments

@Hellfim
Copy link
Contributor

Hellfim commented Nov 18, 2023

Private/protected members declared in inherited classes are not always properly retrieved.
Suppose we have following structure of ViewModels

public class BaseViewModel { }

public class MiddleViewModel : BaseViewModel
{
    [Observable("MyTestInt")]
    private IProperty<Int32> _myTestInt;

    public MiddleClass()
    {
        _myTestInt = new Property<Int32>(123);
    }
}

public class TopLevelViewModel : MiddleViewModel
{
}

If one were to try bind TopLevelViewModel's MyTestInt from it's parent class, then exception InvalidOperationException: Property 'MyTestInt' not found. would be raised.

@Hellfim Hellfim added the bug Something isn't working label Nov 18, 2023
@Hellfim Hellfim linked a pull request Nov 18, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants