MainWindow.axaml 1.4 KB

123456789101112131415161718192021222324252627282930313233343536
  1. <Window xmlns="https://github.com/avaloniaui"
  2. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  3. xmlns:vm="using:kuzminIVProjectWorkOnDemo.ViewModels"
  4. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  5. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  6. mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
  7. x:Class="kuzminIVProjectWorkOnDemo.Views.MainWindow"
  8. x:DataType="vm:MainWindowViewModel"
  9. Icon="/Assets/school_logo.ico"
  10. Title="Школа языков Леарн">
  11. <Design.DataContext>
  12. <!-- This only sets the DataContext for the previewer in an IDE,
  13. to set the actual DataContext for runtime, set the DataContext property in code (look at App.axaml.cs) -->
  14. <vm:MainWindowViewModel/>
  15. </Design.DataContext>
  16. <Grid>
  17. <Grid.RowDefinitions>
  18. <RowDefinition Height="100"/>
  19. <RowDefinition Height="*"/>
  20. </Grid.RowDefinitions>
  21. <StackPanel Grid.Row="0" Margin="10">
  22. <Image Source="/Assets/school_logo.png" Width="50" />
  23. <TextBlock Text="Школа языков Леарн " Classes ="Header"/>
  24. </StackPanel>
  25. <StackPanel HorizontalAlignment="Right" Margin="10">
  26. <TextBlock Text="Режим администратора" Classes ="Default" />
  27. <TextBox Text="{Binding Adminkey}" />
  28. </StackPanel>
  29. <ContentControl Grid.Row="1" Content="{Binding UserControl}" />
  30. </Grid>
  31. </Window>