1234567891011121314151617181920212223242526272829303132 |
- <UserControl x:Class="PDF_Office.CustomControl.CommonWritableComboBox"
- 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="66">
- <Grid>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="*"></ColumnDefinition>
- <ColumnDefinition Width="16"></ColumnDefinition>
- </Grid.ColumnDefinitions>
- <TextBox Name="TextBox_Num"
- MinHeight="32"
- Grid.Column="0"
- Padding="16,0,0,0"
- VerticalContentAlignment="Center"
- Background="Transparent"
- BorderThickness="0"
- FontFamily="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=local:NumericUpDown}, Path=FontFamily}"
- FontSize="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=local:NumericUpDown}, Path=FontSize}"
- Foreground="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=local:NumericUpDown}, Path=Foreground}"
- InputMethod.IsInputMethodEnabled="False"
- PreviewTextInput="CountTextBox_PreviewTextInput"
- Text="1"
- TextAlignment="Left"
- KeyDown="CurrentPage_KeyDown"
- TextChanged="TextBox_Num_TextChanged" />
- <ComboBox Name="ComboBox_Type" MinHeight="32" Width="16" HorizontalAlignment="Right" BorderBrush="Transparent" BorderThickness="00" Grid.Column="1" SelectionChanged="ComboBox_SelectionChanged"></ComboBox>
- </Grid>
- </UserControl>
|