PageResource.xaml 8.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. <local:MyScrollViewer x:Class="PageResource"
  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:PCL"
  7. mc:Ignorable="d"
  8. VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Disabled">
  9. <StackPanel Orientation="Vertical" Margin="25">
  10. <local:MyCard Title="搜索XXX" Margin="0,0,0,15" x:Name="PanAlways">
  11. <StackPanel Margin="25,40,25,15">
  12. <Grid Margin="0,0,0,11" HorizontalAlignment="Stretch">
  13. <Grid.ColumnDefinitions>
  14. <ColumnDefinition Width="Auto" />
  15. <ColumnDefinition Width="1.3*" />
  16. <ColumnDefinition Width="1.2*" />
  17. <ColumnDefinition Width="50" />
  18. <ColumnDefinition Width="Auto" />
  19. <ColumnDefinition Width="1*" />
  20. </Grid.ColumnDefinitions>
  21. <Grid.RowDefinitions>
  22. <RowDefinition Height="28" />
  23. <RowDefinition Height="9" />
  24. <RowDefinition Height="28" />
  25. </Grid.RowDefinitions>
  26. <TextBlock VerticalAlignment="Center" HorizontalAlignment="Left" Text="名称" Margin="0,0,18,0" />
  27. <local:MyTextBox x:Name="TextSearchName" Grid.Column="1" Grid.ColumnSpan="2" />
  28. <TextBlock VerticalAlignment="Center" Grid.Column="4" HorizontalAlignment="Left" Text="来源" Margin="0,0,18,0" />
  29. <local:MyComboBox x:Name="ComboSearchSource" Grid.Column="5">
  30. <local:MyComboBoxItem Content="全部" Tag="3" IsSelected="True" />
  31. <local:MyComboBoxItem Content="CurseForge" Tag="1" />
  32. <local:MyComboBoxItem Content="Modrinth" Tag="2" />
  33. </local:MyComboBox>
  34. <TextBlock VerticalAlignment="Center" Grid.Row="2" HorizontalAlignment="Left" Text="版本" Margin="0,0,18,0" />
  35. <local:MyComboBox x:Name="TextSearchVersion" Grid.Row="2" Grid.Column="1" Grid.ColumnSpan="2" IsEditable="True">
  36. <local:MyComboBoxItem Content="全部 (也可自行输入)" IsSelected="True" />
  37. <local:MyComboBoxItem Content="26.1" />
  38. <local:MyComboBoxItem Content="1.21.11" />
  39. <local:MyComboBoxItem Content="1.21.8" />
  40. <local:MyComboBoxItem Content="1.21.4" />
  41. <local:MyComboBoxItem Content="1.21.1" />
  42. <local:MyComboBoxItem Content="1.20.1" />
  43. <local:MyComboBoxItem Content="1.19.2" />
  44. <local:MyComboBoxItem Content="1.18.2" />
  45. <local:MyComboBoxItem Content="1.16.5" />
  46. <local:MyComboBoxItem Content="1.12.2" />
  47. <local:MyComboBoxItem Content="1.7.10" />
  48. </local:MyComboBox>
  49. <local:MyComboBox x:Name="ComboSearchLoader" Visibility="Collapsed" Grid.Row="2" Grid.Column="2" Margin="10,0,0,0">
  50. <local:MyComboBoxItem Content="任意 Mod 加载器" IsSelected="True" Tag="0" />
  51. <local:MyComboBoxItem Content="Forge" Tag="1" />
  52. <local:MyComboBoxItem Content="NeoForge" Tag="16" />
  53. <local:MyComboBoxItem Content="Fabric" Tag="4" />
  54. <local:MyComboBoxItem Content="Quilt" Tag="8" />
  55. <local:MyComboBoxItem Content="LiteLoader" Tag="2" />
  56. </local:MyComboBox>
  57. <TextBlock VerticalAlignment="Center" Grid.Column="4" Grid.Row="2" HorizontalAlignment="Left" Text="类型" Margin="0,0,18,0" />
  58. <local:MyComboBox x:Name="ComboSearchTag" Grid.Column="5" Grid.Row="2" />
  59. </Grid>
  60. <Grid Margin="0,4,0,6" Height="35">
  61. <Grid.ColumnDefinitions>
  62. <ColumnDefinition Width="Auto" SharedSizeGroup="Button" />
  63. <ColumnDefinition Width="Auto" SharedSizeGroup="Button" />
  64. <ColumnDefinition Width="Auto" SharedSizeGroup="Button" />
  65. </Grid.ColumnDefinitions>
  66. <local:MyButton x:Name="BtnSearchRun" Text="搜索" MinWidth="140" Padding="13,0" Margin="0,0,20,0" ColorType="Highlight" />
  67. <local:MyButton x:Name="BtnSearchReset" Text="重置条件" MinWidth="140" Padding="13,0" Margin="0,0,20,0" Grid.Column="1" />
  68. <local:MyButton x:Name="BtnSearchInstallModPack" Text="安装已有整合包" MinWidth="140" Padding="13,0" Margin="0,0,20,0" Grid.Column="2"
  69. ToolTip="在当前选择的 Minecraft 文件夹下安装整合包" ToolTipService.HorizontalOffset="-55" ToolTipService.VerticalOffset="5" />
  70. </Grid>
  71. </StackPanel>
  72. </local:MyCard>
  73. <StackPanel x:Name="PanContent">
  74. <local:MyHint x:Name="HintError" HasBorder="True" Text="无法连接到 Modrinth,所以目前仅显示了来自 CurseForge 的内容,搜索结果可能不全。&#xa;请稍后再试,或使用 VPN 改善网络环境。" Theme="Yellow" Margin="0,0,0,15" />
  75. <local:MyCard x:Name="CardProjects" UseAnimation="False">
  76. <StackPanel x:Name="PanProjects" Margin="12" />
  77. </local:MyCard>
  78. <local:MyCard Margin="0,15,0,0" x:Name="CardPages" HorizontalAlignment="Center">
  79. <StackPanel Orientation="Horizontal" Height="23" Margin="10,7">
  80. <local:MyIconButton x:Name="BtnPageFirst" IsEnabled="False" Opacity="0.2" Margin="0,0.5,5,0.5"
  81. Logo="M496.213333 329.856L315.306667 510.848l180.992 181.077333a42.666667 42.666667 0 1 1-60.330667 60.330667l-211.2-211.2a42.453333 42.453333 0 0 1-11.818667-22.613333l-0.597333-5.034667v-5.034667a42.496 42.496 0 0 1 12.373333-27.648l211.2-211.2a42.666667 42.666667 0 0 1 60.373334 60.330667z m298.666667 0l-180.949333 180.992 180.992 181.077333a42.666667 42.666667 0 1 1-60.330667 60.330667l-211.2-211.2a42.453333 42.453333 0 0 1-11.818667-22.613333l-0.597333-5.034667v-5.034667a42.496 42.496 0 0 1 12.373333-27.648l211.2-211.2a42.666667 42.666667 0 0 1 60.373334 60.330667z" />
  82. <local:MyIconButton x:Name="BtnPageLeft" IsEnabled="False" Opacity="0.2" Margin="0,0,5,0"
  83. Logo="M650.752 278.357333l-241.322667 241.365334 241.322667 241.365333a42.666667 42.666667 0 1 1-60.330667 60.330667l-271.530666-271.530667a42.453333 42.453333 0 0 1-11.818667-22.613333l-0.597333-5.034667v-5.034667a42.496 42.496 0 0 1 12.416-27.648l271.530666-271.530666a42.666667 42.666667 0 0 1 60.330667 60.330666z" />
  84. <TextBlock x:Name="LabPage" Text="1"
  85. Margin="8,0,13,0" FontSize="15" VerticalAlignment="Center" Foreground="{DynamicResource ColorBrush3}" />
  86. <local:MyIconButton x:Name="BtnPageRight" Margin="0,0,30,0"
  87. Logo="M404.309333 278.357333l241.322667 241.365334-241.322667 241.365333a42.666667 42.666667 0 1 0 60.330667 60.330667l271.530667-271.530667a42.453333 42.453333 0 0 0 11.818666-22.613333l0.597334-5.034667v-5.034667a42.496 42.496 0 0 0-12.416-27.648L464.64 218.026667a42.666667 42.666667 0 0 0-60.330667 60.330666z" />
  88. </StackPanel>
  89. </local:MyCard>
  90. </StackPanel>
  91. <local:MyCard HorizontalAlignment="Center" VerticalAlignment="Center" SnapsToDevicePixels="True" x:Name="PanLoad" UseAnimation="False" Margin="40,50">
  92. <local:MyLoading Text="正在获取XXX列表" Margin="20,20,20,17" x:Name="Load" HorizontalAlignment="Center" VerticalAlignment="Center" ShowProgress="True" />
  93. </local:MyCard>
  94. </StackPanel>
  95. </local:MyScrollViewer>