MainWindow.axaml 648 B

12345678910111213141516171819202122
  1. <Window
  2. xmlns="https://github.com/avaloniaui"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  5. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  6. mc:Ignorable="d"
  7. d:DesignWidth="800"
  8. d:DesignHeight="450"
  9. x:Class="AvaloniaApplication1.MainWindow"
  10. Title="AvaloniaApplication1"
  11. xmlns:local="clr-namespace:AvaloniaApplication1"
  12. >
  13. <Button
  14. x:Name="phoneButton"
  15. Width="250"
  16. Height="40"
  17. >
  18. <local:Phone
  19. Name="Lumia 950"
  20. Price="700" />
  21. </Button>
  22. </Window>