96 lines
4.5 KiB
XML
96 lines
4.5 KiB
XML
<c:MetroWindow x:Class="Plane.FormationCreator.Views.ConnectWindow"
|
||
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:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||
xmlns:local="clr-namespace:Plane.FormationCreator.Views"
|
||
xmlns:c="http://metro.mahapps.com/winfx/xaml/controls"
|
||
xmlns:ec="clr-namespace:Plane.Windows.Controls;assembly=Plane.Windows"
|
||
mc:Ignorable="d"
|
||
Title=""
|
||
Width="500"
|
||
Height="325.107"
|
||
|
||
WindowStartupLocation="CenterScreen"
|
||
FontFamily="Microsoft YaHei"
|
||
ResizeMode="NoResize" >
|
||
|
||
<Grid HorizontalAlignment="Center" VerticalAlignment="Center" Height="Auto" Width="Auto" >
|
||
|
||
|
||
|
||
<Grid.RowDefinitions>
|
||
<RowDefinition Height="40" />
|
||
<RowDefinition Height="40" />
|
||
<RowDefinition Height="40" />
|
||
<RowDefinition Height="40" />
|
||
|
||
|
||
<RowDefinition Height="50" />
|
||
<RowDefinition Height="30" />
|
||
<RowDefinition Height="30" />
|
||
</Grid.RowDefinitions>
|
||
|
||
<Grid.ColumnDefinitions>
|
||
|
||
<ColumnDefinition></ColumnDefinition>
|
||
|
||
</Grid.ColumnDefinitions>
|
||
|
||
<StackPanel Orientation="Horizontal"
|
||
HorizontalAlignment="Left"
|
||
Grid.Row="0" >
|
||
<TextBlock Margin="5" VerticalAlignment="Center" Text="ID:" />
|
||
<TextBox Width="30" VerticalContentAlignment="Center" Text="{Binding CopterNum}" Margin="5,5,5,5" />
|
||
<TextBlock Margin="5" VerticalAlignment="Center" Text="参数:" />
|
||
<TextBox Width="56" VerticalContentAlignment="Center" Text="{Binding CopterColor}" Margin="5,5,5,5"/>
|
||
<Button Content="对频" Width="67" Margin="5,5,5,5" Command="{Binding Path=WriteIdCommand}" />
|
||
<Button Content="闪灯 " Width="67" Margin="5,5,5,5" Command="{Binding CommDataAsync}"/>
|
||
<Button Content="拉烟" Width="67" Margin="5,5,5,5" Command="{Binding TestFireCommandAsync}"/>
|
||
|
||
</StackPanel>
|
||
|
||
<StackPanel Orientation="Horizontal"
|
||
HorizontalAlignment="Left"
|
||
Grid.Row="1"
|
||
Name="panel4" >
|
||
<Button Content="立体缩放" Width="90" Margin="5,5,5,5" Command="{Binding UpdateAllCopterCommand}"></Button>
|
||
<TextBlock Margin="5" VerticalAlignment="Center" Text="比例:" />
|
||
<TextBox Width="30" VerticalContentAlignment="Center" Text="{Binding scale3d}" Margin="5,5,5,5" />
|
||
<Button Content="更改密码" Width="90" Margin="5,5,5,5" Command="{Binding ChangepasswordCommand}"></Button>
|
||
|
||
|
||
</StackPanel>
|
||
<StackPanel Orientation="Horizontal"
|
||
HorizontalAlignment="Left"
|
||
Grid.Row="2"
|
||
Name="panel2" >
|
||
<TextBlock Margin="5" VerticalAlignment="Center" Text="总数:" />
|
||
<TextBox Width="45" VerticalContentAlignment="Center" Text="{Binding CopterSum}" Margin="5,5,5,5" />
|
||
<Button Content="设置总数" Width="90" Margin="5,5,5,5" Command="{Binding Path=SendCommand}" />
|
||
<Button Content="切换写航点" Width="90" Margin="5,5,5,5" Command="{Binding Path=ChangeWriteMissionCommand}" />
|
||
<Button Content="通信状态" Width="90" Margin="5,5,5,5" Command="{Binding StateInquireCommand}"/>
|
||
|
||
</StackPanel>
|
||
<StackPanel Orientation="Horizontal"
|
||
HorizontalAlignment="Left"
|
||
Grid.Row="3"
|
||
Name="panel3" >
|
||
<Button Content="空中升级" Width="90" Margin="5,5,5,5" Command="{Binding UpdateAllCopterCommand}"></Button>
|
||
<Button Content="搜索飞机" Width="90" Margin="5,5,5,5" Command="{Binding QueryAllCopterCommand}"/>
|
||
</StackPanel>
|
||
|
||
|
||
|
||
|
||
|
||
<Image Margin="0,0,0,0" x:Name="image1" Grid.RowSpan="2" Grid.Row="4" Source="/Resources/Logo_small.png" HorizontalAlignment="Left" />
|
||
<TextBlock Margin="5" Grid.Row="5" x:Name="about_ver" HorizontalAlignment="Right" VerticalAlignment="Bottom" Text="版本:V2.0.1213" />
|
||
<TextBlock Margin="5" Grid.Row="6" HorizontalAlignment="Right" x:Name="about_buildtm" VerticalAlignment="Bottom" Text="编译日期:2020.12.12" />
|
||
|
||
|
||
|
||
|
||
</Grid>
|
||
</c:MetroWindow>
|