fix: add button, upgrade version individually.
This commit is contained in:
parent
98785417b2
commit
8ff8057f07
@ -167,6 +167,7 @@
|
|||||||
Grid.Row="2"
|
Grid.Row="2"
|
||||||
Margin="12,0,12,12"
|
Margin="12,0,12,12"
|
||||||
HorizontalAlignment="Right"
|
HorizontalAlignment="Right"
|
||||||
|
Command="{Binding AddCommand}"
|
||||||
Content="Add" />
|
Content="Add" />
|
||||||
</Grid>
|
</Grid>
|
||||||
</TabItem>
|
</TabItem>
|
||||||
|
@ -4,6 +4,7 @@ using System.Collections.ObjectModel;
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
using Avalonia.Collections;
|
using Avalonia.Collections;
|
||||||
using CommunityToolkit.Mvvm.ComponentModel;
|
using CommunityToolkit.Mvvm.ComponentModel;
|
||||||
|
using CommunityToolkit.Mvvm.Input;
|
||||||
|
|
||||||
namespace Semi.Avalonia.Demo.ViewModels;
|
namespace Semi.Avalonia.Demo.ViewModels;
|
||||||
|
|
||||||
@ -14,6 +15,8 @@ public class DataGridDemoViewModel: ObservableObject
|
|||||||
public DataGridCollectionView GridData2 { get; set; }
|
public DataGridCollectionView GridData2 { get; set; }
|
||||||
|
|
||||||
public ObservableCollection<SongViewModel> GridData3 { get; set; }
|
public ObservableCollection<SongViewModel> GridData3 { get; set; }
|
||||||
|
|
||||||
|
public RelayCommand AddCommand { get; set; }
|
||||||
|
|
||||||
public DataGridDemoViewModel()
|
public DataGridDemoViewModel()
|
||||||
{
|
{
|
||||||
@ -28,6 +31,12 @@ public class DataGridDemoViewModel: ObservableObject
|
|||||||
CountOfComment = a.CountOfComment,
|
CountOfComment = a.CountOfComment,
|
||||||
IsSelected = false
|
IsSelected = false
|
||||||
}));
|
}));
|
||||||
|
AddCommand = new RelayCommand(Add);
|
||||||
|
}
|
||||||
|
|
||||||
|
private void Add()
|
||||||
|
{
|
||||||
|
GridData3.Add(new SongViewModel());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,10 +1,11 @@
|
|||||||
<Project Sdk="Microsoft.NET.Sdk">
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
|
||||||
<Import Project="../Package.props"/>
|
<Import Project="../Package.props"/>
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<Title>Semi.Avalonia.DataGrid</Title>
|
<Title>Semi.Avalonia.DataGrid</Title>
|
||||||
<PackageReleaseNotes>Update to 11.0.1</PackageReleaseNotes>
|
<PackageReleaseNotes>Update to 11.0.1</PackageReleaseNotes>
|
||||||
|
<Version>11.0.1.1</Version>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user