Page2.axaml 698 B

1234567891011121314
  1. <UserControl xmlns="https://github.com/avaloniaui"
  2. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  3. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  4. xmlns:vm="using:AvaloniaApplication10.ViewModels"
  5. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  6. mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
  7. x:DataType="vm:MainWindowViewModel"
  8. x:Class="AvaloniaApplication10.Page2">
  9. <StackPanel>
  10. <TextBlock>Вы перешли на страницу 2</TextBlock>
  11. <Button Command="{Binding ToPage1}">Вернуться на страницу 1</Button>
  12. </StackPanel>
  13. </UserControl>