Skip to content

Commit

Permalink
修复预览图居中显示
Browse files Browse the repository at this point in the history
  • Loading branch information
ProJend committed Jan 4, 2025
1 parent 512aebd commit 63a9a3c
Show file tree
Hide file tree
Showing 9 changed files with 27 additions and 1 deletion.
5 changes: 5 additions & 0 deletions src/BiliLite.UWP/Pages/Home/AnimePage.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
<Grid>
<toolkit:ImageEx
MaxHeight="240"
VerticalAlignment="Center"
PlaceholderSource="ms-appx:///Assets/Thumbnails/Placeholde.png"
Source="{x:Bind Path=Cover, Converter={StaticResource imageConvert}, ConverterParameter='300w'}"
Stretch="UniformToFill" />
Expand Down Expand Up @@ -98,6 +99,7 @@
Click="BannerItem_Click"
CornerRadius="{ThemeResource OverlayCornerRadius}">
<toolkit:ImageEx
VerticalAlignment="Center"
CornerRadius="{ThemeResource OverlayCornerRadius}"
PlaceholderSource="ms-appx:///Assets/Thumbnails/Placeholde.png"
Source="{Binding Path=Img, Converter={StaticResource imageConvert}, ConverterParameter='240h'}"
Expand Down Expand Up @@ -170,6 +172,7 @@
<Grid>
<toolkit:ImageEx
MinHeight="132"
VerticalAlignment="Center"
PlaceholderSource="ms-appx:///Assets/Thumbnails/Placeholde.png"
Source="{x:Bind Path=NewEp.cover, Converter={StaticResource imageConvert}, ConverterParameter='320w_200h_1c'}"
Stretch="UniformToFill" />
Expand Down Expand Up @@ -260,6 +263,7 @@
</Grid.RowDefinitions>
<Grid>
<toolkit:ImageEx
VerticalAlignment="Center"
PlaceholderSource="ms-appx:///Assets/Thumbnails/Placeholde.png"
Source="{Binding Path=Cover, Converter={StaticResource imageConvert}, ConverterParameter='300w'}"
Stretch="UniformToFill" />
Expand Down Expand Up @@ -408,6 +412,7 @@
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<toolkit:ImageEx
VerticalAlignment="Center"
PlaceholderSource="ms-appx:///Assets/Thumbnails/Placeholde.png"
Source="{x:Bind Path=Cover, Converter={StaticResource imageConvert}, ConverterParameter='180h'}"
Stretch="UniformToFill" />
Expand Down
3 changes: 3 additions & 0 deletions src/BiliLite.UWP/Pages/Home/DynamicPage.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
</Grid.ColumnDefinitions>
<Grid>
<toolkit:ImageEx
VerticalAlignment="Center"
PlaceholderSource="ms-appx:///Assets/Thumbnails/Placeholde.png"
Source="{x:Bind Path=Video.Pic, Converter={StaticResource imageConvert}, ConverterParameter='120h'}"
Stretch="UniformToFill" />
Expand Down Expand Up @@ -112,6 +113,7 @@
</Grid.ColumnDefinitions>
<Grid>
<toolkit:ImageEx
VerticalAlignment="Center"
PlaceholderSource="ms-appx:///Assets/Thumbnails/Placeholde.png"
Source="{x:Bind Path=UgcSeason.Pic, Converter={StaticResource imageConvert}, ConverterParameter='120h'}"
Stretch="UniformToFill" />
Expand Down Expand Up @@ -162,6 +164,7 @@
</Grid.ColumnDefinitions>
<Grid>
<toolkit:ImageEx
VerticalAlignment="Center"
PlaceholderSource="ms-appx:///Assets/Thumbnails/Placeholde.png"
Source="{x:Bind Path=Season.Cover, Converter={StaticResource imageConvert}, ConverterParameter='120h'}"
Stretch="UniformToFill" />
Expand Down
4 changes: 3 additions & 1 deletion src/BiliLite.UWP/Pages/Home/HotPage.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
x:Name="HotGridView"
Padding="10,0"
CanLoadMore="True"
DesiredWidth="400"
DesiredWidth="550"
IsItemClickEnabled="True"
ItemClick="gridHot_ItemClick"
ItemContainerStyle="{StaticResource DefaultGridViewItem}"
Expand Down Expand Up @@ -51,6 +51,8 @@
</Grid.ColumnDefinitions>
<Grid>
<toolkit:ImageEx
Height="100"
VerticalAlignment="Center"
PlaceholderSource="ms-appx:///Assets/Thumbnails/Placeholde.png"
Source="{x:Bind Path=Cover, Converter={StaticResource imageConvert}, ConverterParameter='120h'}"
Stretch="UniformToFill" />
Expand Down
4 changes: 4 additions & 0 deletions src/BiliLite.UWP/Pages/Home/LivePage.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
Click="BannerItem_Click"
CornerRadius="{ThemeResource OverlayCornerRadius}">
<toolkit:ImageEx
VerticalAlignment="Center"
CornerRadius="{ThemeResource OverlayCornerRadius}"
PlaceholderSource="ms-appx:///Assets/Thumbnails/Placeholde.png"
Source="{Binding Path=Pic, Converter={StaticResource imageConvert}, ConverterParameter='240h'}"
Expand All @@ -58,6 +59,7 @@
<toolkit:ImageEx
Width="48"
Height="48"
VerticalAlignment="Center"
CornerRadius="{StaticResource ImageCornerRadius}"
PlaceholderSource="/assets/Thumbnails/Placeholde1x1.png"
PlaceholderStretch="UniformToFill"
Expand Down Expand Up @@ -103,6 +105,7 @@
<toolkit:ImageEx
Width="260"
Height="160"
VerticalAlignment="Center"
PlaceholderSource="ms-appx:///Assets/Thumbnails/Placeholde.png"
Source="{x:Bind Path=cover, Converter={StaticResource imageConvert}, ConverterParameter='460w_260h_1c'}"
Stretch="UniformToFill" />
Expand Down Expand Up @@ -213,6 +216,7 @@
<toolkit:ImageEx
Width="260"
Height="160"
VerticalAlignment="Center"
PlaceholderSource="ms-appx:///Assets/Thumbnails/Placeholde.png"
Source="{x:Bind Path=Cover, Converter={StaticResource imageConvert}, ConverterParameter='460w_260h_1c'}"
Stretch="UniformToFill" />
Expand Down
6 changes: 6 additions & 0 deletions src/BiliLite.UWP/Pages/Home/MoviePage.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
<Grid>
<toolkit:ImageEx
MaxHeight="240"
VerticalAlignment="Center"
PlaceholderSource="ms-appx:///Assets/Thumbnails/Placeholde.png"
Source="{x:Bind Path=Cover, Converter={StaticResource imageConvert}, ConverterParameter='200w'}"
Stretch="UniformToFill" />
Expand Down Expand Up @@ -87,6 +88,7 @@
<toolkit:ImageEx
Width="200"
MinHeight="132"
VerticalAlignment="Center"
PlaceholderSource="ms-appx:///Assets/Thumbnails/Placeholde.png"
Source="{x:Bind Path=Cover, Converter={StaticResource imageConvert}, ConverterParameter='200w'}"
Stretch="UniformToFill" />
Expand Down Expand Up @@ -160,6 +162,7 @@
Click="BannerItem_Click"
CornerRadius="{ThemeResource OverlayCornerRadius}">
<toolkit:ImageEx
VerticalAlignment="Center"
CornerRadius="{ThemeResource OverlayCornerRadius}"
PlaceholderSource="ms-appx:///Assets/Thumbnails/Placeholde.png"
Source="{Binding Path=Img, Converter={StaticResource imageConvert}, ConverterParameter='240h'}"
Expand Down Expand Up @@ -231,6 +234,7 @@
<toolkit:ImageEx
Width="200"
MinHeight="132"
VerticalAlignment="Center"
PlaceholderSource="ms-appx:///Assets/Thumbnails/Placeholde.png"
Source="{x:Bind Path=NewEp.cover, Converter={StaticResource imageConvert}, ConverterParameter='320w_200h_1c'}"
Stretch="UniformToFill" />
Expand Down Expand Up @@ -309,6 +313,7 @@
<Grid>
<toolkit:ImageEx
MaxHeight="240"
VerticalAlignment="Center"
PlaceholderSource="ms-appx:///Assets/Thumbnails/Placeholde.png"
Source="{x:Bind Path=Cover, Converter={StaticResource imageConvert}, ConverterParameter='200w'}"
Stretch="UniformToFill" />
Expand Down Expand Up @@ -520,6 +525,7 @@
<!--<RowDefinition Height="48"/>-->
</Grid.RowDefinitions>
<toolkit:ImageEx
VerticalAlignment="Center"
PlaceholderSource="ms-appx:///Assets/Thumbnails/Placeholde.png"
Source="{x:Bind Path=Cover, Converter={StaticResource imageConvert}, ConverterParameter='180h'}"
Stretch="UniformToFill" />
Expand Down
3 changes: 3 additions & 0 deletions src/BiliLite.UWP/Pages/Home/RecommendPage.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@
</Grid.RowDefinitions>
<Grid>
<toolkit:ImageEx
VerticalAlignment="Center"
PlaceholderSource="ms-appx:///Assets/Thumbnails/Placeholde.png"
Source="{x:Bind Path=Cover, Converter={StaticResource imageConvert}, ConverterParameter='200h'}"
Stretch="UniformToFill" />
Expand Down Expand Up @@ -157,6 +158,7 @@
</Grid.ColumnDefinitions>
<Grid Width="160">
<toolkit:ImageEx
VerticalAlignment="Center"
PlaceholderSource="ms-appx:///Assets/Thumbnails/Placeholde.png"
Source="{x:Bind Path=Cover, Converter={StaticResource imageConvert}, ConverterParameter='200h'}"
Stretch="UniformToFill" />
Expand Down Expand Up @@ -280,6 +282,7 @@
Click="BannerItem_Click"
CornerRadius="{ThemeResource OverlayCornerRadius}">
<toolkit:ImageEx
VerticalAlignment="Center"
CornerRadius="{ThemeResource OverlayCornerRadius}"
PlaceholderSource="ms-appx:///Assets/Thumbnails/Placeholde.png"
Source="{x:Bind Path=Image, Converter={StaticResource imageConvert}, ConverterParameter='240h'}"
Expand Down
1 change: 1 addition & 0 deletions src/BiliLite.UWP/Pages/RankPage.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@
</Grid.ColumnDefinitions>
<Grid>
<toolkit:ImageEx
VerticalAlignment="Center"
PlaceholderSource="ms-appx:///Assets/Thumbnails/Placeholde.png"
Source="{x:Bind Path=Pic, Converter={StaticResource imageConvert}, ConverterParameter='120h'}"
Stretch="UniformToFill" />
Expand Down
1 change: 1 addition & 0 deletions src/BiliLite.UWP/Pages/User/HistoryPage.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
</MenuFlyout>
</Grid.ContextFlyout>
<toolkit:ImageEx
VerticalAlignment="Center"
PlaceholderSource="/Assets/Thumbnails/Placeholde.png"
Source="{x:Bind Path=Cover, Converter={StaticResource imageConvert}, ConverterParameter='180w_100h_1c'}"
Stretch="UniformToFill" />
Expand Down
1 change: 1 addition & 0 deletions src/BiliLite.UWP/Pages/User/WatchlaterPage.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
</MenuFlyout>
</Grid.ContextFlyout>
<toolkit:ImageEx
VerticalAlignment="Center"
PlaceholderSource="ms-appx:///Assets/Thumbnails/Placeholde.png"
Source="{x:Bind Path=pic, Converter={StaticResource imageConvert}, ConverterParameter='160w'}"
Stretch="UniformToFill" />
Expand Down

0 comments on commit 63a9a3c

Please sign in to comment.