Browse Source
Merge pull request #3846 from sdoroff/fix-datagrid-stringformat-3792
Properly applies Binding.StringFormat in DataGrid
pull/3857/head
Steven Kirk
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
src/Avalonia.Controls.DataGrid/DataGridBoundColumn.cs
|
|
@ -55,7 +55,7 @@ namespace Avalonia.Controls |
|
|
binding.Mode = BindingMode.TwoWay; |
|
|
binding.Mode = BindingMode.TwoWay; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
if (binding.Converter == null) |
|
|
if (binding.Converter == null && string.IsNullOrEmpty(binding.StringFormat)) |
|
|
{ |
|
|
{ |
|
|
binding.Converter = DataGridValueConverter.Instance; |
|
|
binding.Converter = DataGridValueConverter.Instance; |
|
|
} |
|
|
} |
|
|
|