PageDownloadPack.xaml 8.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. <local:MyPageRight
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:local="clr-namespace:PCL" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  5. mc:Ignorable="d" x:Class="PageDownloadPack"
  6. d:DesignWidth="778.571" d:DesignHeight="90.857">
  7. <local:MyScrollViewer VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Disabled" x:Name="PanBack">
  8. <StackPanel Orientation="Vertical" Margin="25">
  9. <local:MyCard Title="搜索整合包" Margin="0,0,0,15" x:Name="PanAlways">
  10. <StackPanel Margin="25,40,25,15">
  11. <Grid Margin="0,0,0,11" HorizontalAlignment="Stretch">
  12. <Grid.ColumnDefinitions>
  13. <ColumnDefinition Width="Auto" />
  14. <ColumnDefinition Width="1*" />
  15. <ColumnDefinition Width="70" />
  16. <ColumnDefinition Width="Auto" />
  17. <ColumnDefinition Width="2.5*" />
  18. </Grid.ColumnDefinitions>
  19. <Grid.RowDefinitions>
  20. <RowDefinition Height="28" />
  21. <RowDefinition Height="9" />
  22. <RowDefinition Height="28" />
  23. </Grid.RowDefinitions>
  24. <TextBlock VerticalAlignment="Center" HorizontalAlignment="Left" Text="名称" Margin="0,0,25,0" />
  25. <local:MyTextBox x:Name="TextSearchName" Grid.Column="1" Grid.ColumnSpan="10" HintText="仅支持使用英文搜索" />
  26. <TextBlock VerticalAlignment="Center" Grid.Row="2" HorizontalAlignment="Left" Text="类型" Margin="0,0,25,0" />
  27. <local:MyComboBox x:Name="ComboSearchTag" Grid.Column="1" Grid.Row="2" MaxDropDownHeight="320">
  28. <local:MyComboBoxItem Tag="" Content="全部" IsSelected="True" />
  29. <local:MyComboBoxItem Tag="4484/" Content="多人" />
  30. <local:MyComboBoxItem Tag="/optimization" Content="性能优化" />
  31. <local:MyComboBoxItem Tag="4479/challenging" Content="硬核" />
  32. <local:MyComboBoxItem Tag="4483/combat" Content="战斗" />
  33. <local:MyComboBoxItem Tag="4478/quests" Content="任务" />
  34. <local:MyComboBoxItem Tag="4472/technology" Content="科技" />
  35. <local:MyComboBoxItem Tag="4473/magic" Content="魔法" />
  36. <local:MyComboBoxItem Tag="4475/adventure" Content="冒险" />
  37. <local:MyComboBoxItem Tag="/kitchen-sink" Content="烹饪" />
  38. <local:MyComboBoxItem Tag="4476/" Content="探索" />
  39. <local:MyComboBoxItem Tag="4477/" Content="小游戏" />
  40. <local:MyComboBoxItem Tag="4471/" Content="科幻" />
  41. <local:MyComboBoxItem Tag="4736/" Content="空岛" />
  42. <local:MyComboBoxItem Tag="5128/" Content="原版改良" />
  43. <local:MyComboBoxItem Tag="4487/" Content="FTB" ToolTip="该整合包由 FTB 官方发布" />
  44. <local:MyComboBoxItem Tag="4480/" Content="基于地图" />
  45. <local:MyComboBoxItem Tag="4481/lightweight" Content="轻量整合" />
  46. <local:MyComboBoxItem Tag="4482/" Content="大型整合" />
  47. </local:MyComboBox>
  48. <TextBlock VerticalAlignment="Center" Grid.Row="2" Grid.Column="3" HorizontalAlignment="Left" Text="版本" Margin="0,0,25,0" />
  49. <local:MyComboBox x:Name="TextSearchVersion" Grid.Row="2" Grid.Column="4" IsEditable="True" MaxDropDownHeight="320" HintText="全部 (也可自行输入)">
  50. <local:MyComboBoxItem Content="" IsSelected="True" />
  51. <local:MyComboBoxItem Content="1.19.3" />
  52. <local:MyComboBoxItem Content="1.19.2" />
  53. <local:MyComboBoxItem Content="1.19.1" />
  54. <local:MyComboBoxItem Content="1.19" />
  55. <local:MyComboBoxItem Content="1.18.2" />
  56. <local:MyComboBoxItem Content="1.17.1" />
  57. <local:MyComboBoxItem Content="1.16.5" />
  58. <local:MyComboBoxItem Content="1.15.2" />
  59. <local:MyComboBoxItem Content="1.14.4" />
  60. <local:MyComboBoxItem Content="1.13.2" />
  61. <local:MyComboBoxItem Content="1.12.2" />
  62. <local:MyComboBoxItem Content="1.11.2" />
  63. <local:MyComboBoxItem Content="1.10.2" />
  64. <local:MyComboBoxItem Content="1.9.4" />
  65. <local:MyComboBoxItem Content="1.8.9" />
  66. <local:MyComboBoxItem Content="1.7.10" />
  67. <local:MyComboBoxItem Content="1.7.2" />
  68. <local:MyComboBoxItem Content="1.6.4" />
  69. <local:MyComboBoxItem Content="1.5.2" />
  70. </local:MyComboBox>
  71. </Grid>
  72. <Grid Margin="0,4,0,6" Height="35">
  73. <Grid.ColumnDefinitions>
  74. <ColumnDefinition Width="Auto" SharedSizeGroup="Button" />
  75. <ColumnDefinition Width="Auto" SharedSizeGroup="Button" />
  76. <ColumnDefinition Width="Auto" SharedSizeGroup="Button" />
  77. </Grid.ColumnDefinitions>
  78. <local:MyButton x:Name="BtnSearchRun" Text="搜索" MinWidth="140" Padding="13,0" Margin="0,0,20,0" ColorType="Highlight" />
  79. <local:MyButton x:Name="BtnSearchReset" Text="重置条件" MinWidth="140" Padding="13,0" Margin="0,0,20,0" Grid.Column="1" />
  80. <local:MyButton x:Name="BtnSearchInstall" Text="安装已有整合包" MinWidth="140" Padding="13,0" Margin="0,0,20,0" Grid.Column="2"
  81. ToolTip="在当前选择的 Minecraft 文件夹下安装整合包" />
  82. </Grid>
  83. </StackPanel>
  84. </local:MyCard>
  85. <StackPanel x:Name="PanContent">
  86. <local:MyCard x:Name="CardProjects" UseAnimation="False">
  87. <StackPanel x:Name="PanProjects" Margin="12" />
  88. </local:MyCard>
  89. <local:MyCard Margin="0,15,0,0" x:Name="CardPages" HorizontalAlignment="Center">
  90. <StackPanel Orientation="Horizontal" Height="23" Margin="10,7">
  91. <local:MyIconButton x:Name="BtnPageLeft" IsEnabled="False" Opacity="0.5"
  92. Logo="M671.968176 911.99957c-12.287381 0-24.576482-4.67206-33.951566-14.047144L286.048434 545.984249c-18.751888-18.719204-18.751888-49.12028 0-67.872168L638.016611 126.111222c18.751888-18.751888 49.12028-18.751888 67.872168 0 18.751888 18.719204 18.751888 49.12028 0 67.872168l-318.016611 318.047574L705.888778 830.047574c18.751888 18.751888 18.751888 49.12028 0 67.872168C696.544658 907.32751 684.255557 911.99957 671.968176 911.99957z" />
  93. <TextBlock x:Name="LabPage" Text="1"
  94. Margin="7,0" FontSize="15" VerticalAlignment="Center" Foreground="{DynamicResource ColorBrush3}" />
  95. <local:MyIconButton x:Name="BtnPageRight"
  96. Logo="M761.055557 532.128047c0.512619-0.992555 1.343475-1.823411 1.792447-2.848649 8.800538-18.304636 5.919204-40.703346-9.664077-55.424808L399.935923 139.743798c-19.264507-18.208305-49.631179-17.344765-67.872168 1.888778-18.208305 19.264507-17.375729 49.631179 1.888778 67.872168l316.960409 299.839269L335.199677 813.631716c-19.071845 18.399247-19.648112 48.767639-1.247144 67.872168 9.407768 9.791372 21.984142 14.688778 34.560516 14.688778 12.000108 0 24.000215-4.479398 33.311652-13.439914l350.048434-337.375729c0.672598-0.672598 0.927187-1.599785 1.599785-2.303346 0.512619-0.479935 1.056202-0.832576 1.567101-1.343475C757.759656 538.879828 759.199462 535.391265 761.055557 532.128047z" />
  97. </StackPanel>
  98. </local:MyCard>
  99. </StackPanel>
  100. <local:MyCard HorizontalAlignment="Center" VerticalAlignment="Center" SnapsToDevicePixels="True" x:Name="PanLoad" UseAnimation="False" Margin="40,50">
  101. <local:MyLoading Text="正在获取整合包列表" Margin="20,20,20,17" x:Name="Load" HorizontalAlignment="Center" VerticalAlignment="Center" />
  102. </local:MyCard>
  103. </StackPanel>
  104. </local:MyScrollViewer>
  105. </local:MyPageRight>