-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WatchList.WPF - Add "CustomDataGrid" to select multiple lines and del…
…ete them.
- Loading branch information
1 parent
f1b2a73
commit d3c126a
Showing
8 changed files
with
95 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
using System.Collections; | ||
using System.Windows; | ||
using System.Windows.Controls; | ||
|
||
namespace WatchList.WPF.Component | ||
{ | ||
public class CustomDataGrid : DataGrid | ||
{ | ||
public CustomDataGrid() | ||
=> SelectionChanged += CustomDataGrid_SelectionChanged; | ||
|
||
void CustomDataGrid_SelectionChanged(object sender, SelectionChangedEventArgs e) | ||
=> SelectedItemsList = SelectedItems; | ||
|
||
public IList SelectedItemsList | ||
{ | ||
get => (IList)GetValue(SelectedItemsListProperty); | ||
set => SetValue(SelectedItemsListProperty, value); | ||
} | ||
|
||
public static readonly DependencyProperty SelectedItemsListProperty | ||
= DependencyProperty.Register("SelectedItemsList", typeof(IList), typeof(CustomDataGrid), new PropertyMetadata(null)); | ||
} | ||
} |
16 changes: 0 additions & 16 deletions
16
WatchList.WPF/Models/ModelDataLoad/DialogReplaceQuestionManager.cs
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters