|
- <UserControl
- x:Class="BPASmartClient.CustomResource.UserControls.NumberTextBox"
- 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:local="clr-namespace:BPASmartClient.CustomResource.UserControls"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- d:DesignHeight="35"
- d:DesignWidth="150"
- mc:Ignorable="d">
-
-
- <UserControl.Resources>
-
- <ResourceDictionary>
- <ResourceDictionary.MergedDictionaries>
- <ResourceDictionary Source="/BPASmartClient.CustomResource;component/RecDictionarys/RecButtonStyle.xaml" />
-
- <ResourceDictionary>
- <Style x:Key="TextBoxStyle" TargetType="TextBox">
- <Setter Property="FontFamily" Value="楷体" />
- <Setter Property="FontSize" Value="22" />
- <Setter Property="VerticalContentAlignment" Value="Center" />
- <Setter Property="Width" Value="188" />
- <Setter Property="Padding" Value="6,0,0,0" />
- <Setter Property="Height" Value="37" />
- <Setter Property="BorderThickness" Value="0" />
- <Setter Property="Foreground" Value="#009dff" />
- <Setter Property="BorderBrush" Value="#009dff" />
- <Setter Property="CaretBrush" Value="#009dff" />
- <Setter Property="VerticalAlignment" Value="Center" />
- <Setter Property="Background">
- <Setter.Value>
- <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/textBox.png" Stretch="Fill" />
- </Setter.Value>
- </Setter>
- </Style>
- </ResourceDictionary>
- </ResourceDictionary.MergedDictionaries>
- </ResourceDictionary>
-
-
- </UserControl.Resources>
-
- <Grid>
- <Viewbox>
- <Grid>
- <TextBox
- Name="outLoc"
- Width="180"
- Height="35"
- FontSize="20"
- GotFocus="outLoc_GotFocus"
- Style="{StaticResource TextBoxStyle}" />
-
- <Popup
- Name="pp"
- AllowsTransparency="True"
- Focusable="False"
- Placement="Bottom"
- PlacementTarget="{Binding ElementName=outLoc}"
- StaysOpen="True">
- <Border
- Width="260"
- Height="300"
- Background="#081424"
- ClipToBounds="True">
- <Grid Margin="0">
- <Grid.RowDefinitions>
- <RowDefinition Height="35" />
- <RowDefinition />
- </Grid.RowDefinitions>
-
- <TextBox
- Name="input"
- Width="267"
- Height="36"
- Margin="-4,0,0,0"
- VerticalContentAlignment="Center"
- FontSize="18"
- GotFocus="input_GotFocus"
- Style="{StaticResource TextBoxStyle}" />
-
- <Grid Grid.Row="1">
- <Grid.RowDefinitions>
- <RowDefinition />
- <RowDefinition />
- <RowDefinition />
- <RowDefinition />
- </Grid.RowDefinitions>
-
- <Grid.ColumnDefinitions>
- <ColumnDefinition />
- <ColumnDefinition />
- <ColumnDefinition />
- <ColumnDefinition />
- </Grid.ColumnDefinitions>
-
- <Button
- Grid.Row="0"
- Grid.Column="0"
- Margin="2"
- Click="Button_Click"
- Content="1"
- FontSize="20"
- Style="{StaticResource ImageButtonStyle}" />
- <Button
- Grid.Row="0"
- Grid.Column="1"
- Margin="2"
- Click="Button_Click"
- Content="2"
- FontSize="20"
- Style="{StaticResource ImageButtonStyle}" />
- <Button
- Grid.Row="0"
- Grid.Column="2"
- Margin="2"
- Click="Button_Click"
- Content="3"
- FontSize="20"
- Style="{StaticResource ImageButtonStyle}" />
- <Button
- Grid.Row="0"
- Grid.Column="3"
- Margin="2"
- Click="Button_Click"
- Content="ESC"
- FontSize="20"
- Style="{StaticResource ImageButtonStyle}" />
- <Button
- Grid.Row="1"
- Grid.Column="0"
- Margin="2"
- Click="Button_Click"
- Content="4"
- FontSize="20"
- Style="{StaticResource ImageButtonStyle}" />
- <Button
- Grid.Row="1"
- Grid.Column="1"
- Margin="2"
- Click="Button_Click"
- Content="5"
- FontSize="20"
- Style="{StaticResource ImageButtonStyle}" />
- <Button
- Grid.Row="1"
- Grid.Column="2"
- Margin="2"
- Click="Button_Click"
- Content="6"
- FontSize="20"
- Style="{StaticResource ImageButtonStyle}" />
- <Button
- Grid.Row="1"
- Grid.Column="3"
- Margin="2"
- Click="Button_Click"
- Content="BR"
- FontSize="20"
- Style="{StaticResource ImageButtonStyle}" />
- <Button
- Grid.Row="2"
- Grid.Column="0"
- Margin="2"
- Click="Button_Click"
- Content="7"
- FontSize="20"
- Style="{StaticResource ImageButtonStyle}" />
- <Button
- Grid.Row="2"
- Grid.Column="1"
- Margin="2"
- Click="Button_Click"
- Content="8"
- FontSize="20"
- Style="{StaticResource ImageButtonStyle}" />
- <Button
- Grid.Row="2"
- Grid.Column="2"
- Margin="2"
- Click="Button_Click"
- Content="9"
- FontSize="20"
- Style="{StaticResource ImageButtonStyle}" />
- <Button
- Grid.Row="2"
- Grid.Column="3"
- Margin="2"
- Click="Button_Click"
- Content="Clear"
- FontSize="20"
- Style="{StaticResource ImageButtonStyle}" />
- <Button
- Grid.Row="3"
- Grid.Column="0"
- Margin="2"
- Click="Button_Click"
- Content="0"
- FontSize="20"
- Style="{StaticResource ImageButtonStyle}" />
- <Button
- Grid.Row="3"
- Grid.Column="1"
- Margin="2"
- Click="Button_Click"
- Content="."
- FontSize="20"
- Style="{StaticResource ImageButtonStyle}" />
- <Button
- Grid.Row="3"
- Grid.Column="2"
- Grid.ColumnSpan="2"
- Margin="2"
- Click="Button_Click"
- Content="Deter"
- FontSize="20"
- Style="{StaticResource ImageButtonStyle}" />
- </Grid>
-
-
- </Grid>
- </Border>
- </Popup>
-
- </Grid>
- </Viewbox>
- </Grid>
- </UserControl>
|