Skip to content

Commit

Permalink
Add InheritDataTypeFromItems for AutoCompleteBox.ValueMemberBinding (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
gehongyan authored and maxkatz6 committed Jan 17, 2024
1 parent 6e6b7b0 commit d0267c8
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
using System.Threading.Tasks;
using Avalonia.Controls.Templates;
using Avalonia.Data;
using Avalonia.Metadata;

namespace Avalonia.Controls
{
Expand Down Expand Up @@ -268,6 +269,7 @@ public bool IsDropDownOpen
/// <value>The <see cref="T:Avalonia.Data.IBinding" /> object used
/// when binding to a collection property.</value>
[AssignBinding]
[InheritDataTypeFromItems(nameof(ItemsSource))]
public IBinding? ValueMemberBinding
{
get => _valueBindingEvaluator?.ValueBinding;
Expand Down

0 comments on commit d0267c8

Please # to comment.