mirror of
https://github.com/azaion/annotations.git
synced 2026-04-22 22:26:31 +00:00
fde9a9f418
also restrict detections to be no bigger than in classes.json
48 lines
1.9 KiB
XML
48 lines
1.9 KiB
XML
<UserControl x:Class="Azaion.Common.Controls.NumericUpDown"
|
|
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:Azaion.Common.Controls"
|
|
mc:Ignorable="d"
|
|
d:DesignHeight="300" d:DesignWidth="300">
|
|
<Grid Background="DimGray">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="*" />
|
|
<ColumnDefinition Width="24" />
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="12" />
|
|
<RowDefinition Height="12" />
|
|
</Grid.RowDefinitions>
|
|
<TextBox Name="NudTextBox"
|
|
Background="DimGray"
|
|
Grid.Column="0"
|
|
Grid.Row="0"
|
|
Grid.RowSpan="2"
|
|
TextAlignment="Right"
|
|
VerticalAlignment="Center"
|
|
VerticalContentAlignment="Center"
|
|
Text="{Binding Value, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, RelativeSource={RelativeSource AncestorType={x:Type local:NumericUpDown}}}"
|
|
TextChanged="NUDTextBox_OnTextChanged"/>
|
|
<RepeatButton
|
|
Name="NudButtonUp"
|
|
Grid.Column="1"
|
|
Grid.Row="0"
|
|
FontSize="10"
|
|
VerticalAlignment="Center"
|
|
HorizontalContentAlignment="Center"
|
|
Click="NudButtonUp_OnClick"
|
|
>^</RepeatButton>
|
|
<RepeatButton
|
|
Name="NudButtonDown"
|
|
Grid.Column="1"
|
|
Grid.Row="1"
|
|
FontSize="10"
|
|
VerticalAlignment="Center"
|
|
HorizontalContentAlignment="Center"
|
|
Click="NudButtonDown_OnClick"
|
|
>˅</RepeatButton>
|
|
</Grid>
|
|
</UserControl>
|