IntegerTextBox.xaml 1.1 KB

1234567891011121314151617181920
  1. <UserControl x:Class="MECF.Framework.UI.Core.Control.IntegerTextBox"
  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:MECF.Framework.UI.Core.Control"
  7. mc:Ignorable="d" x:Name="self"
  8. d:DesignHeight="35" d:DesignWidth="200">
  9. <Grid>
  10. <Grid.RowDefinitions>
  11. <RowDefinition Height="*"></RowDefinition>
  12. </Grid.RowDefinitions>
  13. <Grid.ColumnDefinitions>
  14. <ColumnDefinition Width="*"></ColumnDefinition>
  15. </Grid.ColumnDefinitions>
  16. <TextBox Name="txtInput" VerticalContentAlignment="Center" Grid.Row="0" Grid.RowSpan="2" Text="{Binding ElementName=self,Path=Value}"
  17. PreviewTextInput="OnPreviewTextInput" InputMethod.IsInputMethodEnabled="False" KeyDown="txtInput_KeyDown"></TextBox>
  18. </Grid>
  19. </UserControl>