You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
74 lines
4.8 KiB
74 lines
4.8 KiB
<Window x:Class="SchedulingSystem.XZYSVIPWindow" |
|
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:SchedulingSystem" |
|
mc:Ignorable="d" |
|
Title="新增医生VIP" Height="400" Width="800" WindowStartupLocation="CenterScreen" |
|
Loaded="Window_Loaded"> |
|
<Window.Resources> |
|
<!--下拉框--> |
|
<ControlTemplate x:Key="CusComboBox" TargetType="{x:Type ComboBox}" > |
|
<Border BorderThickness="2" BorderBrush="#E4E4E4"> |
|
<Grid> |
|
<Grid.ColumnDefinitions> |
|
<ColumnDefinition Width="9*"></ColumnDefinition> |
|
<ColumnDefinition Width="1*"></ColumnDefinition> |
|
</Grid.ColumnDefinitions> |
|
<!--文本框--> |
|
<TextBox x:Name="myTxt" Grid.Column="0" |
|
Text="{TemplateBinding Text}" |
|
Background="White" |
|
BorderThickness="0" |
|
VerticalContentAlignment="Center" |
|
HorizontalContentAlignment="Center" |
|
FontSize="18" |
|
Foreground="Black"/> |
|
<!--下拉按钮--> |
|
<ToggleButton Grid.Column="1" Content="∨" IsChecked="{Binding Path=IsDropDownOpen, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" |
|
ClickMode="Press" Background="White" BorderThickness="0" IsEnabled="{Binding ElementName= myTxt,Path=IsEnabled}"/> |
|
<Popup Name="MyPopup" |
|
IsOpen="{TemplateBinding IsDropDownOpen}" |
|
Placement="Bottom"> |
|
<Border MinWidth="{TemplateBinding ActualWidth}" |
|
MaxHeight="{TemplateBinding MaxDropDownHeight}"> |
|
<ScrollViewer MaxHeight="{TemplateBinding MaxDropDownHeight}" |
|
HorizontalScrollBarVisibility="Auto" |
|
VerticalScrollBarVisibility="Auto"> |
|
<StackPanel Background="White" |
|
IsItemsHost="True"/> |
|
</ScrollViewer> |
|
</Border> |
|
</Popup> |
|
</Grid> |
|
</Border> |
|
</ControlTemplate> |
|
</Window.Resources> |
|
<Grid> |
|
<Grid> |
|
<Grid.RowDefinitions> |
|
<RowDefinition Height="0.5*"></RowDefinition> |
|
<RowDefinition Height="1*"></RowDefinition> |
|
<RowDefinition Height="1*"></RowDefinition> |
|
<RowDefinition Height="1*"></RowDefinition> |
|
<RowDefinition Height="0.5*"></RowDefinition> |
|
</Grid.RowDefinitions> |
|
<Grid.ColumnDefinitions> |
|
<ColumnDefinition Width="0.5*"></ColumnDefinition> |
|
<ColumnDefinition Width="1*"></ColumnDefinition> |
|
<ColumnDefinition Width="1.5*"></ColumnDefinition> |
|
<ColumnDefinition Width="0.5*"></ColumnDefinition> |
|
</Grid.ColumnDefinitions> |
|
<Label Grid.Row="1" Grid.Column="1" HorizontalAlignment="Right" VerticalAlignment="Center" FontSize="20">医生姓名:</Label> |
|
<Label Grid.Row="2" Grid.Column="1" HorizontalAlignment="Right" VerticalAlignment="Center" FontSize="20">医生编码:</Label> |
|
<!--<TextBox x:Name="ysxm" Grid.Row="1" Grid.Column="2" Height="40" Width="300" HorizontalAlignment="Left" VerticalAlignment="Center" FontSize="20"></TextBox> |
|
<TextBox x:Name="ysbm" Grid.Row="2" Grid.Column="2" Height="40" Width="300" HorizontalAlignment="Left" VerticalAlignment="Center" FontSize="20"></TextBox>--> |
|
<ComboBox x:Name="ysxm" Grid.Row="1" Grid.Column="2" Height="40" Width="300" HorizontalAlignment="Left" VerticalAlignment="Center" FontSize="18" Background="White" Template="{StaticResource CusComboBox}"> |
|
</ComboBox> |
|
<ComboBox x:Name="ysbm" Grid.Row="2" Grid.Column="2" Height="40" Width="300" HorizontalAlignment="Left" VerticalAlignment="Center" FontSize="18" Background="White" Template="{StaticResource CusComboBox}"> |
|
</ComboBox> |
|
<Button x:Name="btn_bc" Grid.Row="3" Grid.Column="1" Grid.ColumnSpan="2" HorizontalAlignment="Center" VerticalAlignment="Center" Width="100" Height="45" FontSize="20" Click="btn_bc_Click">保 存</Button> |
|
</Grid> |
|
</Grid> |
|
</Window>
|
|
|