Page1.axaml 1.1 KB

1234567891011121314151617181920212223
  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:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  5. mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
  6. x:Class="help.Views.Page1"
  7. xmlns:vm="using:help.ViewModels"
  8. x:DataType="vm:MainWindowViewModel">
  9. <StackPanel>
  10. <!--<TextBlock Text="{Binding Page1VM.Message}"></TextBlock>
  11. <Button Command="{Binding Page1VM.showMessage}">Показать сообщение</Button>
  12. <Button Command="{Binding toPage2}">Перейти на страницу 2</Button>-->
  13. <StackPanel Orientation="Horizontal">
  14. <TextBlock Classes="TextToTextBox">Наименование:</TextBlock>
  15. <TextBox Text="{Binding Page1VM.CurrentTrade.Title}" Watermark="Наименование торговой сети" Width="360"></TextBox>
  16. </StackPanel>
  17. <Button Classes="BtSave" Command="{Binding SaveNetwork}">
  18. <TextBlock Classes="TextBtSave">Добавить</TextBlock>
  19. </Button>
  20. </StackPanel>
  21. </UserControl>