DocumentWindow.axaml 834 B

12345678910111213141516
  1. <Window xmlns="https://github.com/avaloniaui"
  2. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  3. xmlns:vm="using:EdTestEmulator.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="1080" d:DesignHeight="1920" Width="1080" Height="1920"
  7. x:Class="EdTestEmulator.DocumentWindow"
  8. x:DataType="vm:DocumentWindowViewModel"
  9. Title="DocumentWindow">
  10. <Design.DataContext>
  11. <!-- This only sets the DataContext for the previewer in an IDE,
  12. to set the actual DataContext for runtime, set the DataContext property in code (look at App.axaml.cs) -->
  13. <vm:DocumentWindowViewModel/>
  14. </Design.DataContext>
  15. <WebView Url="{Binding Url}"></WebView>
  16. </Window>