MainWindow.xaml 1.2 KB

123456789101112131415161718192021222324252627282930
  1. <Window x:Class="Xilium.CefGlue.Samples.WpfOsr.MainWindow"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:wpf="clr-namespace:Xilium.CefGlue.WPF;assembly=Xilium.CefGlue.WPF"
  5. Title="MainWindow"
  6. Width="700"
  7. Height="500">
  8. <Grid>
  9. <Grid.RowDefinitions>
  10. <RowDefinition Height="25" />
  11. <RowDefinition Height="*" />
  12. </Grid.RowDefinitions>
  13. <TextBox Name="addressTextBox"
  14. Grid.Row="0"
  15. KeyDown="addressTextBox_KeyDown_1"
  16. Text="" />
  17. <wpf:WpfCefBrowser x:Name="browser"
  18. Grid.Row="1"
  19. StartUrl="http://www.google.com">
  20. <!--
  21. <xi:WpfCefBrowser.RenderTransform>
  22. <TransformGroup>
  23. <ScaleTransform ScaleX="0.8" ScaleY="0.8" CenterX="400" CenterY="300" />
  24. <RotateTransform Angle="-10" CenterX="400" CenterY="300" />
  25. </TransformGroup>
  26. </xi:WpfCefBrowser.RenderTransform>
  27. -->
  28. </wpf:WpfCefBrowser>
  29. </Grid>
  30. </Window>