-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed an issue with the EditableCollectionView property not firing Pr…
…opertyChanged event when it is changed
- Loading branch information
Showing
10 changed files
with
582 additions
and
10 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
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
43 changes: 43 additions & 0 deletions
43
...lesAndTests/EditableDataGridTest/Controls/DataGridAndListViewControlAlternateBinding.xaml
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,43 @@ | ||
<UserControl x:Class="EditableDataGridTest.Controls.DataGridAndListViewControlAlternateBinding" | ||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | ||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | ||
xmlns:local="clr-namespace:EditableDataGridTest.Controls" | ||
mc:Ignorable="d" | ||
d:DesignHeight="450" d:DesignWidth="800"> | ||
<Grid> | ||
<Grid.RowDefinitions> | ||
<RowDefinition Height="Auto"/> | ||
<RowDefinition /> | ||
<RowDefinition Height="Auto"/> | ||
<RowDefinition Height="Auto"/> | ||
</Grid.RowDefinitions> | ||
<Grid.ColumnDefinitions> | ||
<ColumnDefinition/> | ||
<ColumnDefinition/> | ||
</Grid.ColumnDefinitions> | ||
<TextBlock HorizontalAlignment="Center" Grid.Column="0">ListView Bound To TestCollectionView</TextBlock> | ||
|
||
<TextBlock HorizontalAlignment="Center" Grid.Column="1">DataGrid Bound To EditableTestCollectionView</TextBlock> | ||
|
||
<!-- ListView binds to TestCollection.CollectionView --> | ||
<ListView ItemsSource="{Binding TestCollectionView}" Grid.Row="1" Grid.Column="0" > | ||
<ListView.View> | ||
<GridView> | ||
<GridView.Columns> | ||
<GridViewColumn Header="Label" DisplayMemberBinding="{Binding Label}"/> | ||
<GridViewColumn Header="Value1" DisplayMemberBinding="{Binding Value1}"/> | ||
<GridViewColumn Header="Value2" DisplayMemberBinding="{Binding Value2}"/> | ||
</GridView.Columns> | ||
</GridView> | ||
</ListView.View> | ||
</ListView> | ||
|
||
<!-- DataGrid binds to TestCollection.EditableCollectionView --> | ||
<DataGrid ItemsSource="{Binding EditableTestCollectionView}" AutoGenerateColumns="True" Grid.Row="1" Grid.Column="1" /> | ||
|
||
<Button Command="{Binding AddRandomItemCommand}" Grid.Row="3">Add Random Item</Button> | ||
|
||
</Grid> | ||
</UserControl> |
29 changes: 29 additions & 0 deletions
29
...AndTests/EditableDataGridTest/Controls/DataGridAndListViewControlAlternateBinding.xaml.cs
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,29 @@ | ||
using EditableDataGridTest.ViewModels; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
using System.Windows; | ||
using System.Windows.Controls; | ||
using System.Windows.Data; | ||
using System.Windows.Documents; | ||
using System.Windows.Input; | ||
using System.Windows.Media; | ||
using System.Windows.Media.Imaging; | ||
using System.Windows.Navigation; | ||
using System.Windows.Shapes; | ||
|
||
namespace EditableDataGridTest.Controls | ||
{ | ||
/// <summary> | ||
/// Interaction logic for DataGridAndListViewControl.xaml | ||
/// </summary> | ||
public partial class DataGridAndListViewControlAlternateBinding : UserControl | ||
{ | ||
public DataGridAndListViewControlAlternateBinding() | ||
{ | ||
InitializeComponent(); | ||
} | ||
} | ||
} |
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
67 changes: 61 additions & 6 deletions
67
ExamplesAndTests/EditableDataGridTest/ViewModels/DataGridTestViewModel.cs
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
Oops, something went wrong.