XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet

XFEEDToolBox

【WinUI】XFE精英危险工具箱

公开
关注 0 Fork 0 Star 0
UTF-8
<Page x:Class="XFEEDToolBox.Views.GalaxyMapPage" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:controls="using:XFEEDToolBox.Controls">
 <Grid RowSpacing="14" Padding="0,8,0,16"><Grid.RowDefinitions><RowDefinition Height="Auto"/><RowDefinition Height="Auto"/><RowDefinition Height="*"/><RowDefinition Height="Auto"/></Grid.RowDefinitions>
  <StackPanel Spacing="6"><TextBlock Text="GALAXY MAP" Style="{StaticResource Eyebrow}"/><TextBlock Text="银河星图" Style="{StaticResource PageTitle}"/><TextBlock Text="{x:Bind ViewModel.GalaxyCoverage,Mode=OneWay}" Style="{StaticResource MutedText}"/></StackPanel>
  <Grid Grid.Row="1" ColumnSpacing="12"><Grid.ColumnDefinitions><ColumnDefinition Width="*"/><ColumnDefinition Width="Auto"/></Grid.ColumnDefinitions><AutoSuggestBox PlaceholderText="完整星系原名,例如 Sol" Text="{x:Bind ViewModel.GalaxySearch,Mode=TwoWay}" QueryIcon="Find" QuerySubmitted="SearchSubmitted"/><Button Grid.Column="1" Content="定位星系" controls:AsyncAction.Command="{x:Bind ViewModel.SearchGalaxyCommand}"/></Grid>
  <Grid Grid.Row="2"><Border BorderBrush="{StaticResource PanelStrokeBrush}" BorderThickness="1" CornerRadius="12"><controls:GalaxyMapView x:Name="Map" ReverseMouseCrane="{x:Bind ViewModel.GalaxyFilter.ReverseMouseCrane,Mode=OneWay}" CurrentTradeFlows="{x:Bind ViewModel.GalaxyCurrentTradeFlows,Mode=OneWay}" HistoricalTradeFlows="{x:Bind ViewModel.GalaxyHistoricalTradeFlows,Mode=OneWay}" Systems="{x:Bind ViewModel.GalaxySystems,Mode=OneWay}" CatalogueSelection="{x:Bind ViewModel.GalaxyCatalogueSelection,Mode=OneWay}" Filter="{x:Bind ViewModel.GalaxyFilter,Mode=OneWay}" Route="{x:Bind ViewModel.GalaxyRoute,Mode=OneWay}" Centre="{x:Bind ViewModel.GalaxyCentre,Mode=OneWay}" Selection="{x:Bind ViewModel.GalaxySelection,Mode=TwoWay}" CurrentSystem="{x:Bind ViewModel.SystemName,Mode=OneWay}"/></Border><controls:HorizontalPanel Header="视图与筛选" IsExpanded="False" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="12"><controls:HorizontalPanel.PanelContent><Border Background="#FF0B1017" Padding="12" CornerRadius="8"><ScrollViewer MaxHeight="520" VerticalScrollBarVisibility="Auto"><controls:GalaxyFilterPanel Filter="{x:Bind ViewModel.GalaxyFilter,Mode=TwoWay}" Systems="{x:Bind ViewModel.GalaxySystems,Mode=OneWay}" ShipJumpRange="{x:Bind ViewModel.GalaxyShipJumpRange,Mode=OneWay}" InformationStatus="{x:Bind ViewModel.GalaxyFilterInformationStatus,Mode=OneWay}" ImportSettingsCommand="{x:Bind ViewModel.ImportOriginalGalaxySettingsCommand}" OriginalSettingsStatus="{x:Bind ViewModel.GalaxyOriginalSettingsStatus,Mode=OneWay}" OriginalSettingsDetails="{x:Bind ViewModel.GalaxyOriginalSettingsDetails,Mode=OneWay}" OriginalOptions="{x:Bind ViewModel.GalaxyOriginalOptions,Mode=OneWay}" QueryChoices="{x:Bind ViewModel.GalaxyQueryChoices,Mode=OneWay}" CurrentTradeChoices="{x:Bind ViewModel.GalaxyCurrentTradeChoices,Mode=OneWay}" CurrentTradeStatus="{x:Bind ViewModel.GalaxyCurrentTradeStatus,Mode=OneWay}" HistoricalTradeChoices="{x:Bind ViewModel.GalaxyHistoricalTradeChoices,Mode=OneWay}" HistoricalTradeStatus="{x:Bind ViewModel.GalaxyHistoricalTradeStatus,Mode=OneWay}" ThargoidCounts="{x:Bind ViewModel.GalaxyThargoidCounts,Mode=OneWay}" ThargoidSignals="{x:Bind ViewModel.GalaxyThargoidSignals,Mode=OneWay}" ThargoidRecommendations="{x:Bind ViewModel.GalaxyThargoidRecommendations,Mode=OneWay}" ThargoidStatus="{x:Bind ViewModel.GalaxyThargoidStatus,Mode=OneWay}" SelectThargoidTargetCommand="{x:Bind ViewModel.SelectGalaxyThargoidTargetCommand}" LocatePowerHeadquartersCommand="{x:Bind ViewModel.LocateGalaxyPowerHeadquartersCommand}" CommunityGoalTargets="{x:Bind ViewModel.GalaxyCommunityGoalTargets,Mode=OneWay}" CommunityGoalStatus="{x:Bind ViewModel.GalaxyCommunityGoalStatus,Mode=OneWay}" SelectCommunityGoalCommand="{x:Bind ViewModel.SelectGalaxyCommunityGoalCommand}" FleetTargets="{x:Bind ViewModel.GalaxyFleetTargets,Mode=OneWay}" FleetStatus="{x:Bind ViewModel.GalaxyFleetStatus,Mode=OneWay}" SelectFleetCommand="{x:Bind ViewModel.SelectGalaxyFleetCommand}" MissionTargets="{x:Bind ViewModel.GalaxyMissionTargets,Mode=OneWay}" MissionsStatus="{x:Bind ViewModel.GalaxyMissionsStatus,Mode=OneWay}" SelectMissionCommand="{x:Bind ViewModel.SelectGalaxyMissionCommand}"/></ScrollViewer></Border></controls:HorizontalPanel.PanelContent></controls:HorizontalPanel></Grid>
  <StackPanel Grid.Row="3" Spacing="10"><Grid ColumnSpacing="24"><Grid.ColumnDefinitions><ColumnDefinition Width="*"/><ColumnDefinition Width="*"/></Grid.ColumnDefinitions><controls:BilingualText Text="{x:Bind ViewModel.GalaxySelection.DisplayName,Mode=OneWay}" Original="{x:Bind ViewModel.GalaxySelection.OriginalName,Mode=OneWay}"/><controls:BilingualText Grid.Column="1" Text="{x:Bind ViewModel.GalaxySelection.StarTypeName,Mode=OneWay}" Original="{x:Bind ViewModel.GalaxySelection.StarClass,Mode=OneWay}"/></Grid><CommandBar Background="Transparent" HorizontalAlignment="Stretch" DefaultLabelPosition="Right"><AppBarButton Icon="Target" Label="当前位置" Command="{x:Bind ViewModel.CentreGalaxyCommand}"/><AppBarButton Icon="ZoomIn" Label="放大" Click="ZoomIn"/><AppBarButton Icon="ZoomOut" Label="缩小" Click="ZoomOut"/><AppBarButton Icon="Refresh" Label="复位视角" Click="ResetCamera"/><AppBarSeparator/><AppBarButton Icon="Download" Label="载入附近星系" controls:AsyncAction.Command="{x:Bind ViewModel.LoadNearbyGalaxyCommand}"/><AppBarButton Icon="Flag" Label="设为导航目的地" Command="{x:Bind ViewModel.UseGalaxyDestinationCommand}"/></CommandBar><Grid ColumnSpacing="12"><Grid.ColumnDefinitions><ColumnDefinition Width="260"/><ColumnDefinition Width="*"/><ColumnDefinition Width="Auto"/></Grid.ColumnDefinitions><Slider Header="载入半径 / ly" Minimum="5" Maximum="100" StepFrequency="5" Value="{x:Bind ViewModel.GalaxyRadius,Mode=TwoWay}"/><TextBlock Grid.Column="1" Text="{x:Bind ViewModel.GalaxyStatus,Mode=OneWay}" Style="{StaticResource MutedText}" VerticalAlignment="Center"/><ProgressRing Grid.Column="2" IsActive="{x:Bind ViewModel.GalaxyBusy,Mode=OneWay}" Width="24" Height="24"/></Grid></StackPanel>
 </Grid>
</Page>