WIn_RustTools/RustTools/Styles/ItemView.xaml

60 lines
2.4 KiB
XML

<?xml version="1.0" encoding="utf-8" ?>
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<DataTemplate x:Key="MovingInfo">
<StackPanel
Margin="0,0,0,16"
Padding="16"
Background="{ThemeResource CardBackgroundFillColorDefaultBrush}"
BorderBrush="{ThemeResource CardStrokeColorDefaultBrush}"
BorderThickness="1"
CornerRadius="{StaticResource ControlCornerRadius}">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="*" />
<ColumnDefinition Width="Auto" />
</Grid.ColumnDefinitions>
<Ellipse
Grid.Column="0"
Width="56"
Height="56">
<Ellipse.Fill>
<ImageBrush ImageSource="/Assets/image/a.jpeg" Stretch="UniformToFill" />
</Ellipse.Fill>
</Ellipse>
<StackPanel Grid.Column="1" Margin="9,0,0,0">
<TextBlock Style="{StaticResource SubtitleTextBlockStyle}" Text="名称" />
<TextBlock
Margin="0,3,0,0"
Style="{StaticResource BodyTextBlockStyle}"
Text="信息 日期" />
</StackPanel>
<FontIcon
Grid.Column="2"
VerticalAlignment="Top"
Glyph="&#xE712;" />
</Grid>
<TextBlock
Margin="16"
Style="{StaticResource BodyTextBlockStyle}"
Text="内容是大概就是这个东西了" />
<StackPanel
Margin="16,0,16,0"
HorizontalAlignment="Right"
FlowDirection="RightToLeft"
Orientation="Horizontal">
<StackPanel.Resources>
<Style TargetType="FontIcon">
<Setter Property="Margin" Value="0,0,26,0" />
</Style>
</StackPanel.Resources>
<FontIcon Glyph="&#xE8E1;" />
<FontIcon Glyph="&#xE72D;" />
</StackPanel>
</StackPanel>
</DataTemplate>
</ResourceDictionary>