2024-10-14 08:41:15 +08:00
|
|
|
<Window
|
|
|
|
x:Class="ExcelHelper.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:hc="https://handyorg.github.io/handycontrol"
|
|
|
|
xmlns:local="clr-namespace:ExcelHelper"
|
|
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
|
|
xmlns:viewmodels="clr-namespace:ExcelHelper.Views.ViewModels"
|
2025-02-13 16:49:24 +08:00
|
|
|
Title="Excel助手"
|
2024-10-14 08:41:15 +08:00
|
|
|
Width="800"
|
|
|
|
Height="450"
|
|
|
|
d:DataContext="{d:DesignInstance Type=viewmodels:MainViewModel}"
|
|
|
|
WindowState="Maximized"
|
|
|
|
mc:Ignorable="d">
|
|
|
|
<Grid>
|
|
|
|
<Grid.ColumnDefinitions>
|
2025-02-13 16:49:24 +08:00
|
|
|
<ColumnDefinition Width="Auto" MinWidth="100" />
|
2024-10-14 08:41:15 +08:00
|
|
|
<ColumnDefinition Width="*" />
|
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<hc:SideMenu Grid.Column="0" AutoSelect="True">
|
|
|
|
<hc:SideMenuItem
|
|
|
|
Command="{Binding SideMenuSelectCommand}"
|
|
|
|
CommandParameter="ImportExcelPage"
|
|
|
|
Header="导入"
|
|
|
|
IsSelected="True" />
|
|
|
|
</hc:SideMenu>
|
|
|
|
<Frame
|
|
|
|
x:Name="MainFrame"
|
|
|
|
Grid.Column="1"
|
|
|
|
NavigationUIVisibility="Hidden" />
|
2025-01-06 12:19:00 +08:00
|
|
|
<hc:Dialog
|
|
|
|
x:Name="MessageDialog"
|
|
|
|
Grid.Column="0"
|
|
|
|
Grid.ColumnSpan="2"
|
|
|
|
Background="Transparent"
|
|
|
|
FontSize="16"
|
|
|
|
Visibility="Collapsed">
|
|
|
|
<Border
|
2025-02-13 16:49:24 +08:00
|
|
|
Padding="10"
|
2025-01-06 12:19:00 +08:00
|
|
|
Background="White"
|
|
|
|
BorderBrush="Gray"
|
|
|
|
BorderThickness="1"
|
|
|
|
CornerRadius="5">
|
|
|
|
<hc:SimpleStackPanel
|
2025-02-13 16:49:24 +08:00
|
|
|
Width="Auto"
|
2025-01-06 12:19:00 +08:00
|
|
|
ClipToBounds="True"
|
|
|
|
Orientation="Vertical">
|
|
|
|
<Grid>
|
2024-10-14 08:41:15 +08:00
|
|
|
<Grid.RowDefinitions>
|
2025-01-06 12:19:00 +08:00
|
|
|
<RowDefinition Height="50" />
|
|
|
|
<RowDefinition Height="*" MinHeight="100" />
|
|
|
|
<RowDefinition Height="50" />
|
2024-10-14 08:41:15 +08:00
|
|
|
</Grid.RowDefinitions>
|
2025-01-06 12:19:00 +08:00
|
|
|
<Border
|
|
|
|
Grid.Row="0"
|
2025-02-13 19:46:58 +08:00
|
|
|
MinWidth="300"
|
2025-01-06 12:19:00 +08:00
|
|
|
Margin="0,0,0,10"
|
2025-02-13 16:49:24 +08:00
|
|
|
Padding="2"
|
|
|
|
Background="#fff"
|
|
|
|
BorderBrush="#d8d8d8"
|
|
|
|
BorderThickness="2"
|
2025-01-06 12:19:00 +08:00
|
|
|
CornerRadius="5">
|
2025-02-13 16:49:24 +08:00
|
|
|
<DockPanel Grid.Row="0" HorizontalAlignment="Stretch">
|
2025-01-06 12:19:00 +08:00
|
|
|
<TextBlock
|
|
|
|
Margin="5,0"
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
DockPanel.Dock="Left"
|
|
|
|
Text="提示" />
|
|
|
|
<Button
|
|
|
|
Margin="5,0"
|
|
|
|
HorizontalAlignment="Right"
|
|
|
|
Click="DialogCloseBtn_Click"
|
|
|
|
Content="X"
|
|
|
|
DockPanel.Dock="Right" />
|
2024-10-29 16:57:50 +08:00
|
|
|
</DockPanel>
|
|
|
|
</Border>
|
2025-02-13 16:49:24 +08:00
|
|
|
<hc:TextBox
|
2025-01-06 12:19:00 +08:00
|
|
|
Grid.Row="1"
|
|
|
|
HorizontalAlignment="Center"
|
|
|
|
VerticalAlignment="Center"
|
2025-02-13 16:49:24 +08:00
|
|
|
BorderBrush="Transparent"
|
|
|
|
BorderThickness="0"
|
|
|
|
IsReadOnly="True"
|
2025-01-06 12:19:00 +08:00
|
|
|
Text="{Binding ErrorMessage}"
|
|
|
|
TextWrapping="Wrap" />
|
|
|
|
<Border
|
|
|
|
Grid.Row="2"
|
|
|
|
Margin="0,10,0,0"
|
2025-02-13 16:49:24 +08:00
|
|
|
Background="#fff"
|
|
|
|
BorderBrush="#b2b2b2"
|
|
|
|
BorderThickness="1"
|
2025-01-06 12:19:00 +08:00
|
|
|
CornerRadius="5">
|
2024-10-29 16:57:50 +08:00
|
|
|
<Grid>
|
2025-01-06 12:19:00 +08:00
|
|
|
<StackPanel
|
|
|
|
Margin="5"
|
|
|
|
HorizontalAlignment="Right"
|
|
|
|
VerticalAlignment="Center">
|
|
|
|
<Button
|
|
|
|
x:Name="DialogCloseBtn"
|
|
|
|
Click="DialogCloseBtn_Click"
|
|
|
|
Content="确定" />
|
2024-10-29 16:57:50 +08:00
|
|
|
</StackPanel>
|
|
|
|
</Grid>
|
|
|
|
</Border>
|
2024-10-14 08:41:15 +08:00
|
|
|
</Grid>
|
|
|
|
</hc:SimpleStackPanel>
|
|
|
|
</Border>
|
|
|
|
</hc:Dialog>
|
|
|
|
</Grid>
|
|
|
|
</Window>
|