CommonWritableComboBox.xaml 1.9 KB

1234567891011121314151617181920212223242526272829303132
  1. <UserControl x:Class="PDF_Office.CustomControl.CommonWritableComboBox"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:local="clr-namespace:PDF_Office.CustomControl"
  7. mc:Ignorable="d"
  8. d:DesignHeight="32" d:DesignWidth="66">
  9. <Grid>
  10. <Grid.ColumnDefinitions>
  11. <ColumnDefinition Width="*"></ColumnDefinition>
  12. <ColumnDefinition Width="16"></ColumnDefinition>
  13. </Grid.ColumnDefinitions>
  14. <TextBox Name="TextBox_Num"
  15. MinHeight="32"
  16. Grid.Column="0"
  17. Padding="16,0,0,0"
  18. VerticalContentAlignment="Center"
  19. Background="Transparent"
  20. BorderThickness="0"
  21. FontFamily="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=local:NumericUpDown}, Path=FontFamily}"
  22. FontSize="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=local:NumericUpDown}, Path=FontSize}"
  23. Foreground="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=local:NumericUpDown}, Path=Foreground}"
  24. InputMethod.IsInputMethodEnabled="False"
  25. PreviewTextInput="CountTextBox_PreviewTextInput"
  26. Text="1"
  27. TextAlignment="Left"
  28. KeyDown="CurrentPage_KeyDown"
  29. TextChanged="TextBox_Num_TextChanged" />
  30. <ComboBox Name="ComboBox_Type" MinHeight="32" Width="16" HorizontalAlignment="Right" BorderBrush="Transparent" BorderThickness="00" Grid.Column="1" SelectionChanged="ComboBox_SelectionChanged"></ComboBox>
  31. </Grid>
  32. </UserControl>