|
4 | 4 | xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
5 | 5 | xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
6 | 6 | xmlns:local="clr-namespace:软件系统客户端Wpf.Views" |
| 7 | + xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes" |
7 | 8 | mc:Ignorable="d" |
8 | 9 | d:DesignHeight="100" d:DesignWidth="400" BorderThickness="1" BorderBrush="{DynamicResource PrimaryHueMidBrush}" |
9 | 10 | Margin="0,0,0,3" MinWidth="400"> |
10 | | - <Grid Margin="3"> |
11 | | - <Grid.RowDefinitions> |
12 | | - <RowDefinition Height="auto"></RowDefinition> |
13 | | - <RowDefinition Height="auto"></RowDefinition> |
14 | | - </Grid.RowDefinitions> |
15 | | - <Grid.ColumnDefinitions> |
16 | | - <ColumnDefinition Width="30"></ColumnDefinition> |
17 | | - <ColumnDefinition></ColumnDefinition> |
18 | | - <ColumnDefinition Width="120"></ColumnDefinition> |
19 | | - <ColumnDefinition Width="130"></ColumnDefinition> |
20 | | - <ColumnDefinition Width="60"></ColumnDefinition> |
21 | | - </Grid.ColumnDefinitions> |
22 | | - <Image x:Name="FileIcon" Grid.RowSpan="2" Width="18" Height="18" VerticalAlignment="Top" Margin="3,6,3,3"></Image> |
| 11 | + <StackPanel> |
| 12 | + <Grid Margin="3"> |
| 13 | + <Grid.RowDefinitions> |
| 14 | + <RowDefinition Height="auto"></RowDefinition> |
| 15 | + <RowDefinition Height="auto"></RowDefinition> |
| 16 | + </Grid.RowDefinitions> |
| 17 | + <Grid.ColumnDefinitions> |
| 18 | + <ColumnDefinition Width="30"></ColumnDefinition> |
| 19 | + <ColumnDefinition></ColumnDefinition> |
| 20 | + <ColumnDefinition Width="120"></ColumnDefinition> |
| 21 | + <ColumnDefinition Width="130"></ColumnDefinition> |
| 22 | + <ColumnDefinition Width="60"></ColumnDefinition> |
| 23 | + </Grid.ColumnDefinitions> |
| 24 | + <Image x:Name="FileIcon" Grid.RowSpan="2" Width="16" Height="16" VerticalAlignment="Top" Margin="3,6,3,3"></Image> |
23 | 25 |
|
24 | | - <TextBlock x:Name="FileName" Grid.Column="1" VerticalAlignment="Center">文件名称:</TextBlock> |
25 | | - <TextBlock x:Name="FileSize" Grid.Column="2" VerticalAlignment="Center">大小:</TextBlock> |
26 | | - <TextBlock x:Name="FileDate" Grid.Column="3" VerticalAlignment="Center">日期:</TextBlock> |
| 26 | + <TextBlock x:Name="FileName" Grid.Column="1" VerticalAlignment="Center">文件名称:</TextBlock> |
| 27 | + <TextBlock x:Name="FileSize" Grid.Column="2" VerticalAlignment="Center">大小:</TextBlock> |
| 28 | + <TextBlock x:Name="FileDate" Grid.Column="3" VerticalAlignment="Center">日期:</TextBlock> |
27 | 29 |
|
28 | | - <TextBlock x:Name="FileDeleteButton" Grid.Column="4" HorizontalAlignment="Center" VerticalAlignment="Center" Cursor="Hand" |
29 | | - Background="{DynamicResource PrimaryHueLightBrush}" Padding="6,3,6,3">删除</TextBlock> |
| 30 | + <TextBlock x:Name="FileDeleteButton" Grid.Column="4" HorizontalAlignment="Center" VerticalAlignment="Center" Cursor="Hand" |
| 31 | + Background="{DynamicResource PrimaryHueLightBrush}" Padding="12,3,12,3" MouseLeftButtonDown="FileDeleteButton_MouseLeftButtonDown" |
| 32 | + Foreground="{DynamicResource PrimaryHueMidForegroundBrush}">删除</TextBlock> |
30 | 33 |
|
31 | | - <TextBlock x:Name="FileDescription" Grid.Row="1" Grid.Column="1" VerticalAlignment="Center">文件备注:</TextBlock> |
32 | | - <TextBlock x:Name="FilePeople" Grid.Row="1" Grid.Column="2" VerticalAlignment="Center">上传人:</TextBlock> |
33 | | - <TextBlock x:Name="FileDownloadTimes" Grid.Row="1" Grid.Column="3" VerticalAlignment="Center">下载次数:</TextBlock> |
34 | | - <TextBlock x:Name="FileDownloadButton" Grid.Row="1" Grid.Column="4" HorizontalAlignment="Center" VerticalAlignment="Center" Cursor="Hand" |
35 | | - Background="{DynamicResource PrimaryHueLightBrush}" Padding="6,3,6,3">下载</TextBlock> |
36 | | - </Grid> |
| 34 | + <TextBlock x:Name="FileDescription" Grid.Row="1" Grid.Column="1" VerticalAlignment="Center">文件备注:</TextBlock> |
| 35 | + <TextBlock x:Name="FilePeople" Grid.Row="1" Grid.Column="2" VerticalAlignment="Center">上传人:</TextBlock> |
| 36 | + <TextBlock x:Name="FileDownloadTimes" Grid.Row="1" Grid.Column="3" VerticalAlignment="Center">下载次数:</TextBlock> |
| 37 | + <TextBlock x:Name="FileDownloadButton" Grid.Row="1" Grid.Column="4" HorizontalAlignment="Center" VerticalAlignment="Center" Cursor="Hand" |
| 38 | + Background="{DynamicResource PrimaryHueLightBrush}" Padding="12,3,12,3" MouseLeftButtonDown="FileDownloadButton_MouseLeftButtonDown" |
| 39 | + Foreground="{DynamicResource PrimaryHueMidForegroundBrush}">下载</TextBlock> |
| 40 | + </Grid> |
| 41 | + <ProgressBar x:Name="FileDownloadProgress" Grid.Row="2" Grid.ColumnSpan="4" Margin="30,-5,63,0" Height="4"></ProgressBar> |
| 42 | + </StackPanel> |
37 | 43 | </UserControl> |
0 commit comments