DownloadSupportAppWindow.xaml 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <Window x:Class="PRSDesktop.DownloadSupportAppWindow"
  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:PRSDesktop"
  7. xmlns:wpf="clr-namespace:Microsoft.Web.WebView2.Wpf;assembly=Microsoft.Web.WebView2.Wpf"
  8. mc:Ignorable="d"
  9. Title="DownloadSupportAppWindow" Height="450" Width="800">
  10. <Grid
  11. Margin="5">
  12. <Grid.ColumnDefinitions>
  13. <ColumnDefinition Width="Auto"/>
  14. <ColumnDefinition Width="*" />
  15. <ColumnDefinition Width="Auto"/>
  16. </Grid.ColumnDefinitions>
  17. <Grid.RowDefinitions>
  18. <RowDefinition Height="Auto" />
  19. <RowDefinition Height="*" />
  20. </Grid.RowDefinitions>
  21. <Label
  22. Content="Paste URL:"
  23. Grid.Row="0"
  24. Grid.Column="0"
  25. Margin="0,0,5,0"
  26. HorizontalContentAlignment="Center"
  27. VerticalContentAlignment="Center"/>
  28. <TextBox
  29. x:Name="URL"
  30. Grid.Row="0"
  31. Grid.Column="1"
  32. VerticalContentAlignment="Center"/>
  33. <Button
  34. Content=".."
  35. Grid.Row="0"
  36. Grid.Column="2"
  37. Padding="10,0"
  38. Margin="5,0,0,0"
  39. Click="Download_Click"/>
  40. <wpf:WebView2
  41. x:Name="Browser"
  42. Grid.Row="1"
  43. Grid.Column="0"
  44. Grid.ColumnSpan="3"
  45. Margin="0,5,0,0"
  46. NavigationStarting="Browser_OnNavigationStarting" />
  47. </Grid>
  48. </Window>