Vizual_Zurnal/Zurnal_Vizual/App.axaml

28 lines
1.1 KiB
Plaintext
Raw Permalink Normal View History

2024-12-06 07:26:58 +00:00
<Application xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
x:Class="Zurnal_Vizual.App"
xmlns:local="using:Zurnal_Vizual"
RequestedThemeVariant="Default">
<!-- "Default" ThemeVariant follows system theme variant. "Dark" or "Light" are other available options. -->
<Application.DataTemplates>
<local:ViewLocator/>
</Application.DataTemplates>
<ContextMenu x:Name="StudentContextMenu">
<MenuItem Header="Удалить выделенные записи"
Command="{Binding DeleteSelectedStudentsCommand}"
IsEnabled="{Binding IsMultipleSelection}"/>
<MenuItem Header="Изменить"
Command="{Binding EditSelectedStudentCommand}"
IsEnabled="{Binding IsSingleSelection}"/>
<MenuItem Header="Удалить"
Command="{Binding DeleteSelectedStudentCommand}"
IsEnabled="{Binding IsSingleSelection}"/>
</ContextMenu>
<Application.Styles>
<FluentTheme />
</Application.Styles>
</Application>