Browse Source
Add InheritDataTypeFromItems for AutoCompleteBox.ValueMemberBinding (#14162)
pull/14190/head
Ge
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
0 deletions
-
src/Avalonia.Controls/AutoCompleteBox/AutoCompleteBox.Properties.cs
|
|
|
@ -10,6 +10,7 @@ using System.Threading; |
|
|
|
using System.Threading.Tasks; |
|
|
|
using Avalonia.Controls.Templates; |
|
|
|
using Avalonia.Data; |
|
|
|
using Avalonia.Metadata; |
|
|
|
|
|
|
|
namespace Avalonia.Controls |
|
|
|
{ |
|
|
|
@ -286,6 +287,7 @@ namespace Avalonia.Controls |
|
|
|
/// <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; |
|
|
|
|