添加 MX-PD-盘古 项目文件
将 MX-PD-盘古 - new 目录下的所有文件添加到主仓库
This commit is contained in:
@@ -0,0 +1,58 @@
|
||||
<UserControl x:Class="MainShell.Resources.CustomControl.AxisMoveControl"
|
||||
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:MainShell.Resources.CustomControl"
|
||||
xmlns:mw="http://www.maxwell-gp.com/"
|
||||
mc:Ignorable="d" >
|
||||
|
||||
<Grid>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="Auto"/>
|
||||
<ColumnDefinition Width="Auto"/>
|
||||
<ColumnDefinition Width="Auto"/>
|
||||
<ColumnDefinition Width="Auto"/>
|
||||
<ColumnDefinition Width="Auto"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<Label Content="{Binding LableContent1, RelativeSource={RelativeSource AncestorType=UserControl}}"
|
||||
Width="{Binding LableWidth, RelativeSource={RelativeSource AncestorType=UserControl}}"
|
||||
Grid.Column="0" HorizontalAlignment="Right" VerticalAlignment="Center"/>
|
||||
<mw:NumberBox Value="{Binding Value1, RelativeSource={RelativeSource AncestorType=UserControl}, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
|
||||
Minimum="{Binding Min1, RelativeSource={RelativeSource AncestorType=UserControl}}"
|
||||
Maximum="{Binding Max1, RelativeSource={RelativeSource AncestorType=UserControl}}"
|
||||
Width="{Binding NumberBoxWidth, RelativeSource={RelativeSource AncestorType=UserControl}}"
|
||||
IsReadOnly="{Binding IsReadOnly, RelativeSource={RelativeSource AncestorType=UserControl}}"
|
||||
mw:NumericKeypadAttach.IsEnabled="True"
|
||||
Grid.Column="1" HorizontalAlignment="Left"
|
||||
Margin="2" Height="35" />
|
||||
<Label Visibility="{Binding IsAllShow,Converter={StaticResource BoolToVisibleConverter},
|
||||
RelativeSource={RelativeSource AncestorType=UserControl}}"
|
||||
Content="{Binding LableContent2,RelativeSource={RelativeSource AncestorType=UserControl}}"
|
||||
Width="{Binding LableWidth, RelativeSource={RelativeSource AncestorType=UserControl}}"
|
||||
Grid.Column="2"
|
||||
HorizontalAlignment="Right" VerticalAlignment="Center"/>
|
||||
<mw:NumberBox Visibility="{Binding IsAllShow,
|
||||
Converter={StaticResource BoolToVisibleConverter},RelativeSource={RelativeSource AncestorType=UserControl}}" Value="{Binding Value2,RelativeSource={RelativeSource AncestorType=UserControl}, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
|
||||
Minimum="{Binding Min2, RelativeSource={RelativeSource AncestorType=UserControl}}"
|
||||
Maximum="{Binding Max2, RelativeSource={RelativeSource AncestorType=UserControl}}"
|
||||
Width="{Binding NumberBoxWidth, RelativeSource={RelativeSource AncestorType=UserControl}}"
|
||||
IsReadOnly="{Binding IsReadOnly, RelativeSource={RelativeSource AncestorType=UserControl}}"
|
||||
mw:NumericKeypadAttach.IsEnabled="True"
|
||||
Grid.Column="3" HorizontalAlignment="Left"
|
||||
Margin="2" Height="35" />
|
||||
|
||||
<UniformGrid Columns="2" Grid.Column="4">
|
||||
<Button Grid.Column="1"
|
||||
Style="{StaticResource TeachButtonStyle}"
|
||||
Content="{DynamicResource PositionTeach}"
|
||||
Command="{Binding ReadCommand,RelativeSource={RelativeSource AncestorType=UserControl}}"
|
||||
Width="90" Height="35" HorizontalAlignment="Left" Margin="2" />
|
||||
<Button Grid.Column="2"
|
||||
Style="{StaticResource AxisMoveButtonStyle}"
|
||||
Content="{DynamicResource MoveToPosition}"
|
||||
Command="{Binding MoveCommand,RelativeSource={RelativeSource AncestorType=UserControl}}"
|
||||
Width="90" Height="35" HorizontalAlignment="Left" Margin="2" />
|
||||
</UniformGrid>
|
||||
</Grid>
|
||||
</UserControl>
|
||||
Reference in New Issue
Block a user