WpfCefJSPrompt.xaml 1.3 KB

123456789101112131415161718192021
  1. <Window x:Class="Xilium.CefGlue.WPF.WpfCefJSPrompt"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. Title="JavaScript Prompt" SizeToContent="WidthAndHeight" WindowStyle="ToolWindow" Topmost="True" WindowStartupLocation="CenterScreen" ShowInTaskbar="False">
  5. <Grid>
  6. <DockPanel>
  7. <Grid DockPanel.Dock="Bottom" Background="WhiteSmoke">
  8. <StackPanel Orientation="Horizontal" HorizontalAlignment="Right">
  9. <Button DockPanel.Dock="Bottom" Content="Ok" Margin="10" Height="23" HorizontalAlignment="Right" Width="80" Click="OkButton_Click" />
  10. <Button DockPanel.Dock="Bottom" Content="Cancel" Margin="0,10,10,10" Height="23" HorizontalAlignment="Right" Width="80" Click="CancelButton_Click" />
  11. </StackPanel>
  12. </Grid>
  13. <Grid DockPanel.Dock="Top" MinHeight="90" MinWidth="220">
  14. <StackPanel VerticalAlignment="Center">
  15. <TextBlock Name="messageTextBlock" Margin="12" VerticalAlignment="Center" Text="Message" />
  16. <TextBox Name="inputTextBox" Margin="12,0,12,12" VerticalAlignment="Stretch" />
  17. </StackPanel>
  18. </Grid>
  19. </DockPanel>
  20. </Grid>
  21. </Window>