last-commit
This commit is contained in:
parent
8648e3efaf
commit
3ca477dd51
@ -6,5 +6,6 @@
|
||||
|
||||
<Application.Styles>
|
||||
<FluentTheme />
|
||||
<StyleInclude Source="avares://Avalonia.Controls.DataGrid/Themes/Fluent.xaml"/>
|
||||
</Application.Styles>
|
||||
</Application>
|
@ -14,6 +14,7 @@
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Avalonia" Version="11.2.1" />
|
||||
<PackageReference Include="Avalonia.Controls.DataGrid" Version="11.2.1" />
|
||||
<PackageReference Include="Avalonia.Desktop" Version="11.2.1" />
|
||||
<PackageReference Include="Avalonia.Themes.Fluent" Version="11.2.1" />
|
||||
<PackageReference Include="Avalonia.Fonts.Inter" Version="11.2.1" />
|
||||
|
@ -116,6 +116,7 @@ public class PresenceViewModel : ViewModelBase
|
||||
{
|
||||
if (string.IsNullOrEmpty(SelectedAttendanceType)) return;
|
||||
|
||||
UpdatePresences();
|
||||
var filteredPresences = _presences.Where(a => a.PresenceType == SelectedAttendanceType).ToList();
|
||||
_presences.Clear();
|
||||
foreach (var attendance in filteredPresences)
|
||||
|
@ -30,8 +30,8 @@
|
||||
<TextBlock Text="PRivatik"/>
|
||||
<Border BorderThickness="2" Background="Aqua">
|
||||
<DataGrid Margin="20" ItemsSource="{Binding Presences}"
|
||||
AutoGenerateColumns="True" IsReadOnly="True"
|
||||
GridLinesVisibility="All" Height="300"
|
||||
AutoGenerateColumns="False" IsReadOnly="True"
|
||||
GridLinesVisibility="All" Height="300" CanUserSortColumns="True"
|
||||
BorderThickness="1" BorderBrush="Gray">
|
||||
<DataGrid.Columns>
|
||||
<DataGridTextColumn Header="Ф.И.О." Binding="{Binding StudentFullName}" />
|
||||
|
Loading…
Reference in New Issue
Block a user