|
|
|
|
<kui:BaseWindow
|
|
|
|
|
xmlns:kui="clr-namespace:KGIS.Framework.Utils;assembly=KGIS.Framework.Utils"
|
|
|
|
|
x:Class="Kingo.Plugin.MapView.Views.MeasurementUi.MeasurementUi"
|
|
|
|
|
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:Kingo.Plugin.MapView.Views.MeasurementUi"
|
|
|
|
|
mc:Ignorable="d" ResizeMode="NoResize" Title="测量"
|
|
|
|
|
d:DesignHeight="200" d:DesignWidth="300" Width="300" Height="200" Closed="BaseWindow_Closed">
|
|
|
|
|
|
|
|
|
|
<kui:BaseWindow.Resources>
|
|
|
|
|
|
|
|
|
|
<Style x:Key="FlatToggleButton" TargetType="ToggleButton"
|
|
|
|
|
BasedOn="{StaticResource {x:Static ToolBar.ToggleButtonStyleKey}}">
|
|
|
|
|
<Setter Property="BorderThickness" Value="0"/>
|
|
|
|
|
</Style>
|
|
|
|
|
|
|
|
|
|
</kui:BaseWindow.Resources>
|
|
|
|
|
<Grid>
|
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
|
<RowDefinition Height="40"/>
|
|
|
|
|
<RowDefinition/>
|
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
|
<StackPanel Orientation="Horizontal" Grid.Row="0">
|
|
|
|
|
|
|
|
|
|
<ToggleButton Width="35" Height="35" Margin="2.5" Background="Gray" FontSize="20" x:Name="Btn_length" HorizontalAlignment="Center" Click="Btn_length_Click" Style="{StaticResource FlatToggleButton}">
|
|
|
|
|
~
|
|
|
|
|
</ToggleButton>
|
|
|
|
|
<ToggleButton Width="35" Height="35" Margin="2.5" FontSize="20" x:Name="Btn_Area" Click="Btn_Area_Click" HorizontalAlignment="Center" Style="{StaticResource FlatToggleButton}">
|
|
|
|
|
⊿
|
|
|
|
|
</ToggleButton>
|
|
|
|
|
<ToggleButton Width="35" Height="35" Margin="2.5" FontSize="20" x:Name="btn_ComputationalGeo" HorizontalAlignment="Center" Click="btn_ComputationalGeo_Click" Style="{StaticResource FlatToggleButton}">
|
|
|
|
|
+
|
|
|
|
|
</ToggleButton>
|
|
|
|
|
|
|
|
|
|
</StackPanel>
|
|
|
|
|
<Border Grid.Row="1" BorderThickness="1" BorderBrush="Gray"/>
|
|
|
|
|
<StackPanel Orientation="Horizontal" x:Name="Grid_Length" Grid.Row="1">
|
|
|
|
|
<TextBlock Text="当前距离:" Height="30" FontSize="12" Margin="10,12" VerticalAlignment="Top" />
|
|
|
|
|
<TextBlock x:Name="Txt_Length" Text="0" Grid.Row="1" Grid.Column="1" VerticalAlignment="Top" Height="30" Margin="10,12" />
|
|
|
|
|
</StackPanel>
|
|
|
|
|
<StackPanel Orientation="Horizontal" Grid.Row="1" x:Name="Grid_Area" Visibility="Collapsed">
|
|
|
|
|
<TextBlock Grid.Row="2" Text="当前面积:" FontSize="12" Height="30" VerticalAlignment="Top" Margin="10,12" />
|
|
|
|
|
<TextBlock x:Name="Txt_SumArea" Text="0" Grid.Row="1" Grid.Column="1" VerticalAlignment="Top" Height="30" Margin="10,12" />
|
|
|
|
|
</StackPanel>
|
|
|
|
|
</Grid>
|
|
|
|
|
</kui:BaseWindow>
|