FieldWorkClient/MainWindow.xaml

83 lines
4.0 KiB
XML

<Window x:Class="Hopetry.MainWindow"
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:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:Hopytry"
mc:Ignorable="d"
Title="云端文件管理器" Height="680" Width="1000">
<Window.Resources>
<Style x:Key="ModernButton" TargetType="Button">
<Setter Property="Background" Value="#1976D2"/>
<Setter Property="Foreground" Value="White"/>
<Setter Property="Padding" Value="12,6"/>
<Setter Property="BorderThickness" Value="0"/>
<Setter Property="FontSize" Value="14"/>
<Setter Property="Margin" Value="0,0,10,0"/>
</Style>
<Style TargetType="ComboBox" BasedOn="{StaticResource {x:Type ComboBox}}">
<Setter Property="BorderThickness" Value="0"/>
<Setter Property="Height" Value="32"/>
<Setter Property="Padding" Value="8,2"/>
<Setter Property="Background" Value="#FFFFFF"/>
</Style>
</Window.Resources>
<Grid Margin="16" x:Name="ContentGrid">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<Frame x:Name="MainFrame" NavigationUIVisibility="Hidden" />
<!-- 原有操作工具栏和文件网格视图 -->
<!-- 右侧详情面板 -->
<Border Grid.Column="1" Margin="16,0,0,0" Background="White"
CornerRadius="8">
<Border.Effect>
<DropShadowEffect BlurRadius="12" ShadowDepth="4" Color="#10000000"/>
</Border.Effect>
<StackPanel Margin="16">
<TextBlock Text="文件详情" FontSize="16" FontWeight="SemiBold" Margin="0,0,0,12"/>
<TextBlock Text="文件名:" FontWeight="Medium"/>
<TextBlock Text="{Binding SelectedFile.FileName}" Margin="0,0,0,8"/>
<TextBlock Text="大小:" FontWeight="Medium"/>
<TextBlock Text="{Binding SelectedFile.Size}" Margin="0,0,0,8"/>
<TextBlock Text="修改时间:" FontWeight="Medium"/>
<TextBlock Text="{Binding SelectedFile.ModifiedTime}"/>
</StackPanel>
</Border>
<!-- 悬浮操作按钮 -->
<StackPanel Grid.Column="0" HorizontalAlignment="Right" VerticalAlignment="Bottom"
Margin="0,0,32,32" Orientation="Horizontal">
<Button Style="{StaticResource ModernButton}" Content="新建"
Padding="16,8" Background="#1976D2"
Margin="0,0,12,0">
<Button.ContentTemplate>
<DataTemplate>
<StackPanel Orientation="Horizontal">
<Path Data="M19,13H13V19H11V13H5V11H11V5H13V11H19V13Z"
Fill="White" Stretch="Uniform" Width="16" Height="16"/>
<TextBlock Text="新建" Margin="8,0,0,0" VerticalAlignment="Center"/>
</StackPanel>
</DataTemplate>
</Button.ContentTemplate>
</Button>
<Button Style="{StaticResource ModernButton}" Content="上传"
Padding="16,8" Background="#1976D2">
<Button.ContentTemplate>
<DataTemplate>
<StackPanel Orientation="Horizontal">
<Path Data="M9,16V10H5L12,3L19,10H15V16H9Z"
Fill="White" Stretch="Uniform" Width="16" Height="16"/>
<TextBlock Text="上传" Margin="8,0,0,0" VerticalAlignment="Center"/>
</StackPanel>
</DataTemplate>
</Button.ContentTemplate>
</Button>
</StackPanel>
</Grid>
</Window>