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

Property with PossibleValues attribute which does not have any possible value is not visible on ui #463

Open
dbeuchler opened this issue Sep 17, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@dbeuchler
Copy link
Member

dbeuchler commented Sep 17, 2024

Describe the bug
The property is not visible on UI if the PossibleValues attribute does not return any possible value. In the WPF UIs it was then displayed as normal property with a text-field.

public class PossibleCamerasAttribute : PossibleValuesAttribute
{
    public override IEnumerable<string> GetValues(IContainer container)
    {
        return Array.Empty<string>();
    }

    public override bool OverridesConversion => false;

    public override bool UpdateFromPredecessor => true;
}

[DataMember, EntrySerialize]
[PossibleCameras]
public string CameraInterface { get; set; }

I already debugged EntryConvert seems fine there. It must be an UI issue.

@dbeuchler dbeuchler added the bug Something isn't working label Sep 17, 2024
@Toxantron
Copy link
Member

@MathoMathiasCamara can you check this in the entry editor ng project?

@MathoMathiasCamara
Copy link
Contributor

@MathoMathiasCamara can you check this in the entry editor ng project?

Sure, i will check that.

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

No branches or pull requests

3 participants