Skip to content

Commit 9599d35

Browse files
committed
Remove unused using directive and clean up code
1 parent b570da5 commit 9599d35

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

src/Columns/TableViewComboBoxColumn.cs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
using Microsoft.UI.Xaml.Controls.Primitives;
44
using Microsoft.UI.Xaml.Data;
55
using System;
6-
using WinUI.TableView.Extensions;
76

87
namespace WinUI.TableView;
98

@@ -16,8 +15,7 @@ public class TableViewComboBoxColumn : TableViewBoundColumn
1615
{
1716
private Binding? _textBinding;
1817
private Binding? _selectedValueBinding;
19-
private Func<object, object?>? _funcCompiledDisplayMemberPath;
20-
18+
2119
/// <summary>
2220
/// Generates a TextBlock element for the cell.
2321
/// </summary>
@@ -69,8 +67,6 @@ public override FrameworkElement GenerateEditingElement(TableViewCell cell, obje
6967
comboBox.SetBinding(Selector.SelectedValueProperty, SelectedValueBinding);
7068
}
7169

72-
comboBox.GetBindingExpression(Selector.SelectedItemProperty)?.UpdateSource();
73-
7470
return comboBox;
7571
}
7672

@@ -161,4 +157,4 @@ public virtual Binding SelectedValueBinding
161157
/// Identifies the IsEditable dependency property.
162158
/// </summary>
163159
public static readonly DependencyProperty IsEditableProperty = DependencyProperty.Register(nameof(IsEditable), typeof(bool), typeof(TableViewComboBoxColumn), new PropertyMetadata(false));
164-
}
160+
}

0 commit comments

Comments
 (0)