DownloadDialog.xaml 1.5 KB

1234567891011121314151617181920212223242526272829
  1. <ContentDialog
  2. x:Uid="Downloading"
  3. x:Class="SDLPal.DownloadDialog"
  4. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  5. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  6. xmlns:local="using:SDLPal"
  7. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  8. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  9. mc:Ignorable="d"
  10. Title="正在下载……"
  11. PrimaryButtonText="停止"
  12. PrimaryButtonClick="OnPrimaryButtonClick"
  13. MinHeight="0" MinWidth="0"
  14. Closing="OnClosing" Opened="OnOpened" SizeChanged="OnSizeChanged">
  15. <StackPanel Orientation="Vertical">
  16. <WebView x:Name="DownloadPage" NavigationStarting="OnNavigateStart" DOMContentLoaded="OnDOMContentLoaded" ScrollViewer.HorizontalScrollMode="Auto" ScrollViewer.VerticalScrollMode="Auto" />
  17. <Grid x:Name="gridURL" HorizontalAlignment="Stretch">
  18. <Grid.ColumnDefinitions>
  19. <ColumnDefinition />
  20. <ColumnDefinition Width="Auto" />
  21. </Grid.ColumnDefinitions>
  22. <TextBox x:Name="tbURL" Grid.Column="0" HorizontalAlignment="Stretch" />
  23. <Button x:Name="btnGoTo" Grid.Column="1" Content="->" Click="OnClick" />
  24. </Grid>
  25. <ProgressBar x:Name="pbDownload" HorizontalAlignment="Stretch" Height="12" Margin="0,8,0,4" />
  26. <TextBlock x:Name="tbProgress" HorizontalAlignment="Right" Height="20" Margin="0,4,0,0" Text="0 / 0" />
  27. </StackPanel>
  28. </ContentDialog>