1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- <UserControl x:Class="Aitex.Core.UI.Control.SusceptorNotchControl"
- 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"
- mc:Ignorable="d"
- d:DesignHeight="50" d:DesignWidth="50" Name="containerControl">
- <Viewbox>
- <Viewbox.Resources>
- <Style TargetType="{x:Type TextBox}">
- <Setter Property="VerticalContentAlignment" Value="Center"/>
- <Setter Property="HorizontalContentAlignment" Value="Center"/>
- <Setter Property="Width" Value="50"/>
- <Setter Property="Height" Value="50"/>
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type TextBox}">
- <Grid x:Name="grid">
- <Rectangle x:Name="rectangle1" RadiusX="25" RadiusY="25" Fill="{TemplateBinding Background}" StrokeThickness="1" Stroke="Black"/>
- <ScrollViewer x:Name="PART_ContentHost"
- HorizontalScrollBarVisibility="Hidden"
- VerticalScrollBarVisibility="Hidden"
- Padding="{TemplateBinding Padding}"
- Focusable="false">
- </ScrollViewer>
- </Grid>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- </Viewbox.Resources>
- <TextBox Name="textBoxWafer" FontSize="28" Margin="0" Padding="0"
- HorizontalContentAlignment="Center" VerticalContentAlignment="Center"
- MouseEnter="Label_MouseEnter" MouseLeave="Label_MouseLeave" PreviewMouseDown="Label_MouseDown"
- Background="#FF2B2B2B" MaxLength="2" BorderBrush="Transparent"
- IsReadOnly="{Binding ElementName=containerControl,Path=IsReadonly}"
- Text="{Binding ElementName=containerControl,Path=DisplayIndex}" MaxLines="1" TextChanged="textBoxWafer_TextChanged" />
- </Viewbox>
- </UserControl>
|