MainView.axaml 887 B

12345678910111213141516
  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. xmlns:vm="clr-namespace:qmonlib.ui.ViewModels"
  6. mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
  7. x:Class="qmonlib.ui.Views.MainView"
  8. x:DataType="vm:MainViewModel">
  9. <Design.DataContext>
  10. <!-- This only sets the DataContext for the previewer in an IDE,
  11. to set the actual DataContext for runtime, set the DataContext property in code (look at App.axaml.cs) -->
  12. <vm:MainViewModel />
  13. </Design.DataContext>
  14. <TextBlock Text="{Binding Greeting}" HorizontalAlignment="Center" VerticalAlignment="Center"/>
  15. </UserControl>