PartitionItem.xaml 1.7 KB
Newer Older
A
Anran Zhang 已提交
1 2 3 4 5 6 7 8 9 10 11
<UserControl
    x:Class="Richasy.Bili.App.Controls.PartitionItem"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:local="using:Richasy.Bili.App.Controls"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    d:DesignHeight="300"
    d:DesignWidth="400"
    mc:Ignorable="d">

R
Richasy 已提交
12
    <local:CardPanel Click="OnItemClick">
A
Anran Zhang 已提交
13
        <Grid HorizontalAlignment="Center" VerticalAlignment="Center">
R
Richasy 已提交
14
            <Grid x:Name="ContentContainer" RowSpacing="8">
A
Anran Zhang 已提交
15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                </Grid.RowDefinitions>
                <Grid
                    Width="60"
                    Height="60"
                    Background="{ThemeResource CardBackgroundFillColorSecondaryBrush}"
                    CornerRadius="{StaticResource ControlCornerRadius}">
                    <Image
                        x:Name="PartitionLogo"
                        Width="40"
                        Height="40"
                        HorizontalAlignment="Center"
                        VerticalAlignment="Center"
                        Stretch="Uniform" />
                </Grid>
                <TextBlock
                    x:Name="PartitionName"
                    Style="{StaticResource BodyTextBlockStyle}"
                    Grid.Row="1"
                    HorizontalAlignment="Center"
                    TextAlignment="Center" />
            </Grid>
        </Grid>
R
Richasy 已提交
40
    </local:CardPanel>
A
Anran Zhang 已提交
41
</UserControl>