84 lines
2.8 KiB
XML
84 lines
2.8 KiB
XML
<UserControl
|
|
x:Class="CapMachine.Wpf.Views.DialogCanLinConfigImExportView"
|
|
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:CapMachine.Wpf.Views"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
Width="800"
|
|
Height="450">
|
|
<Grid Margin="15">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="*" />
|
|
<RowDefinition Height="Auto" />
|
|
</Grid.RowDefinitions>
|
|
|
|
<TextBlock
|
|
FontSize="18"
|
|
FontWeight="Bold"
|
|
Text="CAN/CANFD/LIN 配置导入导出" />
|
|
|
|
<Grid Grid.Row="1" Margin="0,12,0,0">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="*" />
|
|
<ColumnDefinition Width="Auto" />
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<TextBox
|
|
Margin="0,0,8,0"
|
|
IsReadOnly="True"
|
|
Text="{Binding ImportFilePath, UpdateSourceTrigger=PropertyChanged}" />
|
|
<Button
|
|
Grid.Column="1"
|
|
Padding="16,4"
|
|
Command="{Binding BrowseImportFileCmd}"
|
|
Content="选择导入文件" />
|
|
</Grid>
|
|
|
|
<StackPanel
|
|
Grid.Row="2"
|
|
Margin="0,12,0,0"
|
|
Orientation="Horizontal">
|
|
<TextBlock VerticalAlignment="Center" Text="导入模式:" />
|
|
<ComboBox
|
|
Width="320"
|
|
Margin="8,0,0,0"
|
|
DisplayMemberPath="Text"
|
|
ItemsSource="{Binding ImportModes}"
|
|
SelectedItem="{Binding SelectedImportMode}" />
|
|
</StackPanel>
|
|
|
|
<TextBox
|
|
Grid.Row="3"
|
|
Margin="0,12,0,0"
|
|
HorizontalScrollBarVisibility="Auto"
|
|
IsReadOnly="True"
|
|
Text="{Binding ResultMessage}"
|
|
VerticalScrollBarVisibility="Auto" />
|
|
|
|
<StackPanel
|
|
Grid.Row="4"
|
|
Margin="0,12,0,0"
|
|
HorizontalAlignment="Right"
|
|
Orientation="Horizontal">
|
|
<Button
|
|
Margin="0,0,8,0"
|
|
Padding="16,4"
|
|
Command="{Binding ExportCmd}"
|
|
Content="导出" />
|
|
<Button
|
|
Margin="0,0,8,0"
|
|
Padding="16,4"
|
|
Command="{Binding ImportCmd}"
|
|
Content="导入" />
|
|
<Button
|
|
Padding="16,4"
|
|
Command="{Binding CloseCmd}"
|
|
Content="关闭" />
|
|
</StackPanel>
|
|
</Grid>
|
|
</UserControl>
|