1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- <Window x:Class="MeterVision.Stand.AddStandDialog"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- Background="WhiteSmoke"
- ResizeMode="NoResize"
- ShowInTaskbar="False"
- WindowStartupLocation="CenterOwner"
- Title="新建模板" Height="280" Width="320">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="*" />
- <RowDefinition Height="40" />
- </Grid.RowDefinitions>
- <!-- 输入模板名称的区域 -->
- <Border Grid.Row="0" BorderBrush="#D3D3D3" BorderThickness="1" Margin="10 10 10 0" Background="White">
- <StackPanel Orientation="Vertical" VerticalAlignment="Center">
- <!-- 单选框区域 -->
- <StackPanel Grid.Row="0" Orientation="Vertical" Margin="20,0,20,0" VerticalAlignment="Top">
- <RadioButton Name="rbCustomTemplate" FontSize="14px" Foreground="#000000"
- Content="自定义模板" IsChecked="False" Margin="0,5" IsEnabled="True"
- Checked="rbCustomTemplate_Checked"/>
- <RadioButton Name="rbImportExcel" FontSize="14px" Foreground="#000000"
- Content="导入Excel模板" IsChecked="True" Margin="0,5"
- Checked="rbImportExcel_Checked"/>
- </StackPanel>
-
- <StackPanel Orientation="Vertical" Margin="20 10 20 0" VerticalAlignment="Center">
- <TextBlock Text="请输入模板名称:" HorizontalAlignment="Left" VerticalAlignment="Center"
- FontSize="14px" Foreground="#333333" Margin="0 0 0 5" />
- <TextBox Name="txtStandName" FontSize="14px" Foreground="#000000" VerticalAlignment="Center" Padding="2"/>
- </StackPanel>
- <!-- Excel文件选择区域,初始时隐藏 -->
- <StackPanel Grid.Row="0" Orientation="Vertical" Margin="20,10,20,0" Visibility="Visible" x:Name="ExcelImportPanel">
- <TextBlock Text="请选择Excel:" HorizontalAlignment="Left" VerticalAlignment="Center"
- FontSize="14px" Foreground="#333333" Margin="0 0 0 5" />
- <!--<StackPanel Orientation="Horizontal" >-->
- <Grid>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="*"/>
- <ColumnDefinition Width="Auto"/>
- </Grid.ColumnDefinitions>
- <TextBox Name="txtExcelFile" Grid.Column="0" HorizontalAlignment="Stretch" VerticalAlignment="Center"
- IsReadOnly="True"
- Foreground="#000000" Padding="2" FontSize="14px" Margin="0,0,2,0"/>
- <Button Name="btnImportExcel" Grid.Column="1" Content="..." Width="28" Height="26" VerticalAlignment="Center" Click="BtnImportExcel_Click" />
- </Grid>
- <!--</StackPanel>-->
- </StackPanel>
- </StackPanel>
- </Border>
- <!-- 按钮区域 -->
- <StackPanel Grid.Row="1" Orientation="Horizontal" HorizontalAlignment="Center">
- <Button Name="btnOK" Content="确定" HorizontalAlignment="Center" Margin="0 0 20 0"
- VerticalAlignment="Center" Width="80" Height="26" Click="BtnOK_Click" />
- <Button Name="btnClose" Content="取消" HorizontalAlignment="Center"
- VerticalAlignment="Center" Width="80" Height="26" Click="BtnClose_Click" />
- </StackPanel>
- </Grid>
- </Window>
|