Skip to content

Commit 3355c4b

Browse files
committed
code cleanup
1 parent 48f5d03 commit 3355c4b

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

src/TableViewColumnHeader.OptionsFlyoutViewModel.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@ public partial class TableViewColumnHeader
1515
private partial class OptionsFlyoutViewModel : INotifyPropertyChanged
1616
{
1717
public event PropertyChangedEventHandler? PropertyChanged;
18-
private string? _filterText;
19-
private bool _canFilter = true;
2018
private IList<TableViewFilterItem> _filterItems = [];
2119
private bool _canSetState = true;
2220

src/TableViewHeaderRow.OptionsFlyoutViewModel.cs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,7 @@ private void CanExecuteDeselectAllCommand(XamlUICommand sender, CanExecuteReques
6767

6868
private void ExecuteCopyCommand(XamlUICommand sender, ExecuteRequestedEventArgs e)
6969
{
70-
#if WINDOWS
71-
var focusedElement = FocusManager.GetFocusedElement(TableView.XamlRoot);
72-
#else
73-
var focusedElement = FocusManager.GetFocusedElement();
74-
#endif
70+
var focusedElement = FocusManager.GetFocusedElement(TableView.XamlRoot!);
7571
if (focusedElement is FrameworkElement { Parent: TableViewCell })
7672
{
7773
return;

0 commit comments

Comments
 (0)