MonacoEditor.xaml 1.0 KB

12345678910111213141516171819202122232425
  1. <Window x:Class="InABox.Wpf.DynamicGrid.Controls.MonacoEditor"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:local="clr-namespace:InABox.Wpf.DynamicGrid.Controls"
  7. xmlns:wpf="clr-namespace:Microsoft.Web.WebView2.Wpf;assembly=Microsoft.Web.WebView2.Wpf"
  8. mc:Ignorable="d"
  9. Title="MonacoEditor" Height="450" Width="800">
  10. <Grid x:Name="_grid">
  11. <Grid.RowDefinitions>
  12. <RowDefinition Height="Auto" />
  13. <RowDefinition Height="*"/>
  14. </Grid.RowDefinitions>
  15. <Grid.ColumnDefinitions>
  16. <ColumnDefinition Width="*" />
  17. </Grid.ColumnDefinitions>
  18. <Button
  19. Click="Button_Click"
  20. Content="Get Text"/>
  21. <wpf:WebView2
  22. x:Name="webView21"
  23. Grid.Row="1"/>
  24. </Grid>
  25. </Window>