<UserControl x:Class="PDF_Office.CustomControl.WritableComboBox"
                   xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:local="clr-namespace:PDF_Office.CustomControl"
             mc:Ignorable="d" 
             d:DesignHeight="32" d:DesignWidth="200">
    <Grid>


        <ComboBox x:Name="writableComboBox" Grid.Column="1"  Visibility="Visible" MinHeight="32"  MinWidth="58"
                                      SelectionChanged="writableComboBox_SelectionChanged" SelectedIndex="0">
            <ComboBoxItem >全部页面</ComboBoxItem>
            <ComboBoxItem >奇数页</ComboBoxItem>
            <ComboBoxItem >偶数页</ComboBoxItem>
            <ComboBoxItem >自定义页面</ComboBoxItem>
        </ComboBox>
        <TextBox  x:Name="writableTextBox" VerticalContentAlignment="Center"  Visibility="Hidden" MinHeight="{Binding ElementName=EnterableComboBox, Path=MinHeight}" Grid.Column="0" HorizontalAlignment="Left" TextChanged="writableTextBox_TextChange">
        </TextBox>
    </Grid>
</UserControl>
