去掉地图上方的蓝色小条
This commit is contained in:
parent
fc3b2cae02
commit
694472c9b7
@ -18,7 +18,7 @@
|
|||||||
PreviewKeyUp="MetroWindow_PreviewKeyUp"
|
PreviewKeyUp="MetroWindow_PreviewKeyUp"
|
||||||
Style="{StaticResource VSWindowStyleKey}"
|
Style="{StaticResource VSWindowStyleKey}"
|
||||||
Width="1920"
|
Width="1920"
|
||||||
Height="1080">
|
Height="1080" >
|
||||||
|
|
||||||
<c:MetroWindow.Resources>
|
<c:MetroWindow.Resources>
|
||||||
<Style TargetType="Separator"
|
<Style TargetType="Separator"
|
||||||
@ -149,14 +149,9 @@
|
|||||||
<RowDefinition Height="Auto" />
|
<RowDefinition Height="Auto" />
|
||||||
</Grid.RowDefinitions>
|
</Grid.RowDefinitions>
|
||||||
|
|
||||||
<TabControl SelectedIndex="{Binding MapMode,UpdateSourceTrigger=PropertyChanged}" Grid.RowSpan="3" Margin="0">
|
<v:MapView x:Name="map" Grid.RowSpan="3" Margin="0,0,0,0" />
|
||||||
<TabItem Visibility="Collapsed">
|
<v:View3D x:Name="map3D" Visibility="Collapsed" Grid.RowSpan="3" Margin="0,0,0,0"/>
|
||||||
<v:MapView x:Name="map"/>
|
|
||||||
</TabItem >
|
|
||||||
<TabItem Visibility="Collapsed">
|
|
||||||
<v:View3D/>
|
|
||||||
</TabItem>
|
|
||||||
</TabControl>
|
|
||||||
|
|
||||||
<Grid Grid.Row="1" HorizontalAlignment="Right">
|
<Grid Grid.Row="1" HorizontalAlignment="Right">
|
||||||
<WrapPanel Orientation="Vertical">
|
<WrapPanel Orientation="Vertical">
|
||||||
|
@ -175,8 +175,11 @@ namespace Plane.FormationCreator.ViewModels
|
|||||||
{
|
{
|
||||||
return _ChangeMapModeCommand ?? (_ChangeMapModeCommand = new RelayCommand(() =>
|
return _ChangeMapModeCommand ?? (_ChangeMapModeCommand = new RelayCommand(() =>
|
||||||
{
|
{
|
||||||
|
MainWindow mainw =(MainWindow) App.Current.MainWindow;
|
||||||
if (MapMode == 0)
|
if (MapMode == 0)
|
||||||
{
|
{
|
||||||
|
mainw.map.Visibility = System.Windows.Visibility.Collapsed;
|
||||||
|
mainw.map3D.Visibility = System.Windows.Visibility.Visible;
|
||||||
MapMode = 1;
|
MapMode = 1;
|
||||||
b2DMapMode = false;
|
b2DMapMode = false;
|
||||||
_flightTaskManager.TaskRun_2D = b2DMapMode; //3D模式模拟显示
|
_flightTaskManager.TaskRun_2D = b2DMapMode; //3D模式模拟显示
|
||||||
@ -184,6 +187,8 @@ namespace Plane.FormationCreator.ViewModels
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
mainw.map.Visibility = System.Windows.Visibility.Visible;
|
||||||
|
mainw.map3D.Visibility = System.Windows.Visibility.Collapsed;
|
||||||
MapMode = 0;
|
MapMode = 0;
|
||||||
b2DMapMode = true;
|
b2DMapMode = true;
|
||||||
_flightTaskManager.TaskRun_2D = b2DMapMode; //2D模式模拟显示
|
_flightTaskManager.TaskRun_2D = b2DMapMode; //2D模式模拟显示
|
||||||
|
Binary file not shown.
Before Width: | Height: | Size: 52 KiB After Width: | Height: | Size: 49 KiB |
Loading…
Reference in New Issue
Block a user