Skip to content

Default behavior of binding-validation is wrong #965

@cdytoby

Description

@cdytoby

https://docs.avaloniaui.net/docs/data-binding/binding-validation#default-behavior

The description is wrong.

What I see in action by default:

  • It's a yellow border in dark mode
  • There is no tooltip
  • It's not a tooltip, it's a plain text displayed under the control, and I haven't find a way to remove the text and only show the border when error happens.

The Property code:

    [ObservableProperty]
    [NotifyDataErrorInfo]
    [Required]
    public partial CurrencyModel? RightCurrency { get; set; }

The Control code:

                            <ComboBox
                                ItemsSource="{Binding SomeValidSource}"
                                SelectedItem="{Binding RightCurrency}"
                                ItemTemplate="{StaticResource CurrencyComboBoxTemplate}" />
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions