Skip to content

Commit

Permalink
Update ListViewItem when selecting/deselecting all
Browse files Browse the repository at this point in the history
  • Loading branch information
LaughingLeader committed Mar 3, 2020
1 parent 92d71e5 commit ab63e6e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions DivinityModManagerGUI_WPF/Views/HorizontalModLayout.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ namespace DivinityModManager.Views
{
public interface ModViewLayout
{
void UpdateViewSelection(IEnumerable<DivinityModData> dataList, ListView listView = null);
void UpdateViewSelection(IEnumerable<ISelectable> dataList, ListView listView = null);
void FixActiveModsScrollbar();
}
/// <summary>
Expand Down Expand Up @@ -62,6 +62,7 @@ private void SetupListView(ListView listView)
{
mod.IsSelected = true;
}
UpdateViewSelection(mods, listView);
}
}));

Expand All @@ -74,7 +75,9 @@ private void SetupListView(ListView listView)
{
mod.IsSelected = false;
}
UpdateViewSelection(mods, listView);
}

}), new KeyGesture(Key.D, ModifierKeys.Control)));

listView.ItemContainerStyle = this.FindResource("ListViewItemMouseEvents") as Style;
Expand All @@ -89,7 +92,7 @@ public void FixActiveModsScrollbar()
}
}

public void UpdateViewSelection(IEnumerable<DivinityModData> dataList, ListView listView = null)
public void UpdateViewSelection(IEnumerable<ISelectable> dataList, ListView listView = null)
{
if(dataList != null)
{
Expand Down

0 comments on commit ab63e6e

Please sign in to comment.