1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- <Window x:Class="AIRS.FeildParam"
- 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:AIRS"
- mc:Ignorable="d"
- Title="FeildParam" Height="280" Width="460" WindowStyle="None" Background="#FF18253C" WindowStartupLocation="CenterScreen" ResizeMode="NoResize" Loaded="Window_Loaded">
- <Grid>
- <Label Content="视场参数设置" HorizontalAlignment="Left" Margin="0,0,0,0" VerticalAlignment="Top" Foreground="White" FontSize="20" FontWeight="Bold"/>
- <Canvas Margin="0,38,-0.4,56.6" Background="#FFD7D7D7" >
- <RadioButton x:Name="rdb_circle" Content="圆形视场" IsChecked="True" Canvas.Left="100" Canvas.Top="25" FontSize="20" VerticalContentAlignment="Center" FontWeight="Bold" Checked="rdb_circle_Checked" ></RadioButton>
- <RadioButton x:Name="rdb_rect" Content="矩形视场" Canvas.Left="250" Canvas.Top="25" FontSize="20" VerticalContentAlignment="Center" FontWeight="Bold" Checked="rdb_rect_Checked" ></RadioButton>
- <Label Content="视场直径:" Canvas.Left="54" Canvas.Top="70" FontSize="20" FontWeight="Bold"/>
- <Label Content="放大倍数:" Canvas.Left="54" Canvas.Top="123" FontSize="20" FontWeight="Bold"/>
- <Label Content="mm" Canvas.Left="340" Canvas.Top="70" FontSize="20" FontWeight="Bold"/>
- <Label Content="X" Canvas.Left="340" Canvas.Top="123" FontSize="20" FontWeight="Bold"/>
- <ComboBox x:Name="cbbdiameter" HorizontalContentAlignment="Center" Canvas.Left="160" Canvas.Top="73" Width="180" Background="White" FontSize="20" BorderBrush="White" IsEditable="True">
- <!--<ComboBoxItem Content="70"></ComboBoxItem>
- <ComboBoxItem Content="80"></ComboBoxItem>-->
- </ComboBox>
- <ComboBox x:Name="cbbmultiple" HorizontalContentAlignment="Center" Canvas.Left="160" Canvas.Top="123" Width="180" Background="White" FontSize="20" BorderBrush="White" IsEditable="True">
- <!--<ComboBoxItem Content="100"></ComboBoxItem>
- <ComboBoxItem Content="500"></ComboBoxItem>-->
- </ComboBox>
- </Canvas>
- <Button x:Name="BtnExit" Content="取消" HorizontalAlignment="Left" Margin="301,234,0,0" VerticalAlignment="Top" Width="138" Height="37" FontSize="20" Foreground="White" Background="#FF169BD5" Click="BtnExit_Click">
- <Button.Template >
- <ControlTemplate TargetType="{x:Type Button}" >
- <Border BorderBrush="{TemplateBinding Control.BorderBrush}" BorderThickness="1" CornerRadius="7,7,7,7">
- <Border.Background>#FF169BD5</Border.Background>
- <ContentPresenter Content="{TemplateBinding ContentControl.Content}" HorizontalAlignment="Center" VerticalAlignment="Center" ></ContentPresenter>
- </Border>
- </ControlTemplate>
- </Button.Template>
- </Button>
- <Button x:Name="BtnLogin" Content="确认" HorizontalAlignment="Left" Margin="150,234,0,0" VerticalAlignment="Top" Width="138" Height="37" FontSize="20" Foreground="White" Background="#FF169BD5" Click="BtnLogin_Click" >
- <Button.Template >
- <ControlTemplate TargetType="{x:Type Button}" >
- <Border BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="1" CornerRadius="7,7,7,7">
- <Border.Background>
- <Brush>#FF169BD5</Brush>
- </Border.Background>
- <ContentPresenter Content="{TemplateBinding Content}" HorizontalAlignment="Center" VerticalAlignment="Center" />
- </Border>
- </ControlTemplate>
- </Button.Template>
- </Button>
- </Grid>
- </Window>
|