添加项目文件。
This commit is contained in:
75
RevitLess/MainWindow.xaml
Normal file
75
RevitLess/MainWindow.xaml
Normal file
@@ -0,0 +1,75 @@
|
||||
<ui:FluentWindow
|
||||
x:Class="RevitLess.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:local="clr-namespace:RevitLess"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:ui="http://schemas.lepo.co/wpfui/2022/xaml"
|
||||
Title="主窗口"
|
||||
Width="800"
|
||||
Height="450"
|
||||
d:DataContext="{d:DesignInstance Type=local:MainWindowViewModel}"
|
||||
ExtendsContentIntoTitleBar="True"
|
||||
WindowBackdropType="Mica"
|
||||
WindowCornerPreference="Default"
|
||||
mc:Ignorable="d">
|
||||
<DockPanel>
|
||||
<ui:TitleBar DockPanel.Dock="Top" />
|
||||
<Grid>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="*" />
|
||||
<ColumnDefinition Width="Auto" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto" />
|
||||
<RowDefinition Height="Auto" />
|
||||
<RowDefinition Height="Auto" />
|
||||
<RowDefinition Height="*" />
|
||||
</Grid.RowDefinitions>
|
||||
<ui:TextBox
|
||||
x:Name="TbSourcePath"
|
||||
Grid.Row="0"
|
||||
Grid.Column="0"
|
||||
Margin="5"
|
||||
IsReadOnly="True"
|
||||
PlaceholderText="源文件路径"
|
||||
Text="{Binding SourceFilePath, Mode=OneWay}" />
|
||||
<ui:TextBox
|
||||
x:Name="TbTargetPath"
|
||||
Grid.Row="1"
|
||||
Grid.Column="0"
|
||||
Margin="5"
|
||||
IsReadOnly="True"
|
||||
PlaceholderText="输出文件路径"
|
||||
Text="{Binding TargetFilePath, Mode=OneWay}" />
|
||||
<Button
|
||||
Grid.Row="0"
|
||||
Grid.Column="1"
|
||||
Margin="5"
|
||||
Command="{Binding SelectFileCommand}"
|
||||
Content="打开文件" />
|
||||
<Button
|
||||
Grid.Row="1"
|
||||
Grid.Column="1"
|
||||
Margin="5"
|
||||
Command="{Binding SaveFileCommand}"
|
||||
Content="保存文件" />
|
||||
<Button
|
||||
Grid.Row="2"
|
||||
Grid.Column="1"
|
||||
Margin="5"
|
||||
HorizontalAlignment="Center"
|
||||
Command="{Binding ExecuteCommand}"
|
||||
Content="执行" />
|
||||
<TextBox
|
||||
x:Name="RtbLog"
|
||||
Grid.Row="2"
|
||||
Grid.RowSpan="2"
|
||||
Grid.Column="0"
|
||||
IsReadOnly="True"
|
||||
Text="{Binding Log, Mode=TwoWay}" />
|
||||
<Image Grid.Row="3" Grid.Column="1" />
|
||||
</Grid>
|
||||
</DockPanel>
|
||||
</ui:FluentWindow>
|
||||
Reference in New Issue
Block a user