|
14 | 14 | TextOptions.TextRenderingMode="ClearType"> |
15 | 15 |
|
16 | 16 | <Grid> |
17 | | - <ScrollViewer VerticalScrollBarVisibility="Auto"> |
| 17 | + <ScrollViewer VerticalScrollBarVisibility="Disabled"> |
18 | 18 | <Grid Margin="24"> |
19 | 19 | <Grid.RowDefinitions> |
20 | 20 | <RowDefinition Height="Auto"/> |
|
108 | 108 | </Border> |
109 | 109 |
|
110 | 110 | <!-- 主页卡片区域 --> |
111 | | - <ItemsControl x:Name="HomeCardsContainer" |
112 | | - Grid.Row="1" |
113 | | - Margin="0,0,0,16"> |
114 | | - <ItemsControl.ItemsPanel> |
115 | | - <ItemsPanelTemplate> |
116 | | - <UniformGrid Columns="2" |
117 | | - HorizontalAlignment="Stretch" |
118 | | - Margin="0,0,0,0"/> |
119 | | - </ItemsPanelTemplate> |
120 | | - </ItemsControl.ItemsPanel> |
121 | | - <ItemsControl.ItemTemplate> |
122 | | - <DataTemplate> |
123 | | - <Border Background="{DynamicResource SurfaceBrush}" |
124 | | - CornerRadius="12" |
125 | | - Padding="20" |
126 | | - Margin="0,0,12,12" |
127 | | - BorderThickness="1" |
128 | | - BorderBrush="{DynamicResource BorderBrush}"> |
129 | | - <Border.Effect> |
130 | | - <DropShadowEffect Color="Black" |
131 | | - BlurRadius="10" |
132 | | - ShadowDepth="2" |
133 | | - Opacity="0.1"/> |
134 | | - </Border.Effect> |
135 | | - <Border.Style> |
136 | | - <Style TargetType="Border"> |
137 | | - <Style.Triggers> |
138 | | - <Trigger Property="IsMouseOver" Value="True"> |
139 | | - <Trigger.EnterActions> |
140 | | - <BeginStoryboard> |
141 | | - <Storyboard> |
142 | | - <DoubleAnimation Storyboard.TargetProperty="(UIElement.RenderTransform).(ScaleTransform.ScaleX)" |
143 | | - To="1.02" Duration="0:0:0.2"> |
144 | | - <DoubleAnimation.EasingFunction> |
145 | | - <CubicEase EasingMode="EaseOut"/> |
146 | | - </DoubleAnimation.EasingFunction> |
147 | | - </DoubleAnimation> |
148 | | - <DoubleAnimation Storyboard.TargetProperty="(UIElement.RenderTransform).(ScaleTransform.ScaleY)" |
149 | | - To="1.02" Duration="0:0:0.2"> |
150 | | - <DoubleAnimation.EasingFunction> |
151 | | - <CubicEase EasingMode="EaseOut"/> |
152 | | - </DoubleAnimation.EasingFunction> |
153 | | - </DoubleAnimation> |
154 | | - </Storyboard> |
155 | | - </BeginStoryboard> |
156 | | - </Trigger.EnterActions> |
157 | | - <Trigger.ExitActions> |
158 | | - <BeginStoryboard> |
159 | | - <Storyboard> |
160 | | - <DoubleAnimation Storyboard.TargetProperty="(UIElement.RenderTransform).(ScaleTransform.ScaleX)" |
161 | | - To="1.0" Duration="0:0:0.2"> |
162 | | - <DoubleAnimation.EasingFunction> |
163 | | - <CubicEase EasingMode="EaseOut"/> |
164 | | - </DoubleAnimation.EasingFunction> |
165 | | - </DoubleAnimation> |
166 | | - <DoubleAnimation Storyboard.TargetProperty="(UIElement.RenderTransform).(ScaleTransform.ScaleY)" |
167 | | - To="1.0" Duration="0:0:0.2"> |
168 | | - <DoubleAnimation.EasingFunction> |
169 | | - <CubicEase EasingMode="EaseOut"/> |
170 | | - </DoubleAnimation.EasingFunction> |
171 | | - </DoubleAnimation> |
172 | | - </Storyboard> |
173 | | - </BeginStoryboard> |
174 | | - </Trigger.ExitActions> |
175 | | - </Trigger> |
176 | | - </Style.Triggers> |
177 | | - <Setter Property="RenderTransform"> |
178 | | - <Setter.Value> |
179 | | - <ScaleTransform ScaleX="1.0" ScaleY="1.0"/> |
180 | | - </Setter.Value> |
181 | | - </Setter> |
182 | | - <Setter Property="RenderTransformOrigin" Value="0.5,0.5"/> |
183 | | - <Setter Property="Cursor" Value="Hand"/> |
184 | | - </Style> |
185 | | - </Border.Style> |
186 | | - <ContentControl Content="{Binding Content}"/> |
187 | | - </Border> |
188 | | - </DataTemplate> |
189 | | - </ItemsControl.ItemTemplate> |
190 | | - </ItemsControl> |
| 111 | + <Grid Grid.Row="1" Margin="0,0,0,16"> |
| 112 | + <Grid.RowDefinitions> |
| 113 | + <RowDefinition Height="*"/> |
| 114 | + <RowDefinition Height="Auto"/> |
| 115 | + </Grid.RowDefinitions> |
| 116 | + |
| 117 | + <ItemsControl x:Name="HomeCardsContainer" |
| 118 | + Grid.Row="0"> |
| 119 | + <ItemsControl.ItemsPanel> |
| 120 | + <ItemsPanelTemplate> |
| 121 | + <UniformGrid Columns="2" |
| 122 | + HorizontalAlignment="Stretch" |
| 123 | + Margin="0,0,0,0"/> |
| 124 | + </ItemsPanelTemplate> |
| 125 | + </ItemsControl.ItemsPanel> |
| 126 | + <ItemsControl.ItemTemplate> |
| 127 | + <DataTemplate> |
| 128 | + <Border Background="{DynamicResource SurfaceBrush}" |
| 129 | + CornerRadius="12" |
| 130 | + Padding="20" |
| 131 | + Margin="0,0,12,12" |
| 132 | + BorderThickness="1" |
| 133 | + BorderBrush="{DynamicResource BorderBrush}"> |
| 134 | + <Border.Effect> |
| 135 | + <DropShadowEffect Color="Black" |
| 136 | + BlurRadius="10" |
| 137 | + ShadowDepth="2" |
| 138 | + Opacity="0.1"/> |
| 139 | + </Border.Effect> |
| 140 | + <Border.Style> |
| 141 | + <Style TargetType="Border"> |
| 142 | + <Style.Triggers> |
| 143 | + <Trigger Property="IsMouseOver" Value="True"> |
| 144 | + <Trigger.EnterActions> |
| 145 | + <BeginStoryboard> |
| 146 | + <Storyboard> |
| 147 | + <DoubleAnimation Storyboard.TargetProperty="(UIElement.RenderTransform).(ScaleTransform.ScaleX)" |
| 148 | + To="1.02" Duration="0:0:0.2"> |
| 149 | + <DoubleAnimation.EasingFunction> |
| 150 | + <CubicEase EasingMode="EaseOut"/> |
| 151 | + </DoubleAnimation.EasingFunction> |
| 152 | + </DoubleAnimation> |
| 153 | + <DoubleAnimation Storyboard.TargetProperty="(UIElement.RenderTransform).(ScaleTransform.ScaleY)" |
| 154 | + To="1.02" Duration="0:0:0.2"> |
| 155 | + <DoubleAnimation.EasingFunction> |
| 156 | + <CubicEase EasingMode="EaseOut"/> |
| 157 | + </DoubleAnimation.EasingFunction> |
| 158 | + </DoubleAnimation> |
| 159 | + </Storyboard> |
| 160 | + </BeginStoryboard> |
| 161 | + </Trigger.EnterActions> |
| 162 | + <Trigger.ExitActions> |
| 163 | + <BeginStoryboard> |
| 164 | + <Storyboard> |
| 165 | + <DoubleAnimation Storyboard.TargetProperty="(UIElement.RenderTransform).(ScaleTransform.ScaleX)" |
| 166 | + To="1.0" Duration="0:0:0.2"> |
| 167 | + <DoubleAnimation.EasingFunction> |
| 168 | + <CubicEase EasingMode="EaseOut"/> |
| 169 | + </DoubleAnimation.EasingFunction> |
| 170 | + </DoubleAnimation> |
| 171 | + <DoubleAnimation Storyboard.TargetProperty="(UIElement.RenderTransform).(ScaleTransform.ScaleY)" |
| 172 | + To="1.0" Duration="0:0:0.2"> |
| 173 | + <DoubleAnimation.EasingFunction> |
| 174 | + <CubicEase EasingMode="EaseOut"/> |
| 175 | + </DoubleAnimation.EasingFunction> |
| 176 | + </DoubleAnimation> |
| 177 | + </Storyboard> |
| 178 | + </BeginStoryboard> |
| 179 | + </Trigger.ExitActions> |
| 180 | + </Trigger> |
| 181 | + </Style.Triggers> |
| 182 | + <Setter Property="RenderTransform"> |
| 183 | + <Setter.Value> |
| 184 | + <ScaleTransform ScaleX="1.0" ScaleY="1.0"/> |
| 185 | + </Setter.Value> |
| 186 | + </Setter> |
| 187 | + <Setter Property="RenderTransformOrigin" Value="0.5,0.5"/> |
| 188 | + <Setter Property="Cursor" Value="Hand"/> |
| 189 | + </Style> |
| 190 | + </Border.Style> |
| 191 | + <ContentControl Content="{Binding Content}"/> |
| 192 | + </Border> |
| 193 | + </DataTemplate> |
| 194 | + </ItemsControl.ItemTemplate> |
| 195 | + </ItemsControl> |
| 196 | + |
| 197 | + <StackPanel x:Name="HomeCardsPaginationPanel" |
| 198 | + Grid.Row="1" |
| 199 | + Orientation="Horizontal" |
| 200 | + HorizontalAlignment="Center" |
| 201 | + Margin="0,4,0,0" |
| 202 | + Visibility="Collapsed"> |
| 203 | + <Button x:Name="HomeCardsPrevButton" |
| 204 | + Content="上一页" |
| 205 | + Height="34" |
| 206 | + Padding="14,0,14,0" |
| 207 | + Margin="0,0,8,0" |
| 208 | + Style="{StaticResource MaterialDesignOutlinedButton}"/> |
| 209 | + |
| 210 | + <TextBlock x:Name="HomeCardsPageText" |
| 211 | + VerticalAlignment="Center" |
| 212 | + Margin="0,0,8,0" |
| 213 | + FontSize="13" |
| 214 | + Foreground="{DynamicResource TextSecondaryBrush}"/> |
| 215 | + |
| 216 | + <Button x:Name="HomeCardsNextButton" |
| 217 | + Content="下一页" |
| 218 | + Height="34" |
| 219 | + Padding="14,0,14,0" |
| 220 | + Style="{StaticResource MaterialDesignOutlinedButton}"/> |
| 221 | + </StackPanel> |
| 222 | + </Grid> |
191 | 223 |
|
192 | 224 | <!-- 快速启动区域 --> |
193 | 225 | <Border Grid.Row="2" |
|
0 commit comments