2026-04-08 16:06:35 +02:00
|
|
|
<Window xmlns="https://github.com/avaloniaui"
|
|
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
|
|
|
xmlns:vm="using:NrxDebugVisualizer.ViewModels"
|
|
|
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
|
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
|
|
|
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
|
|
|
|
|
x:Class="NrxDebugVisualizer.Views.MainWindow"
|
|
|
|
|
x:DataType="vm:MainWindowViewModel"
|
2026-04-15 15:59:42 +02:00
|
|
|
xmlns:viewModels="clr-namespace:NrxDebugVisualizer.ViewModels"
|
|
|
|
|
xmlns:controls="clr-namespace:Controls.Views;assembly=Controls"
|
2026-04-08 16:06:35 +02:00
|
|
|
Icon="/Assets/avalonia-logo.ico"
|
2026-04-15 15:59:42 +02:00
|
|
|
Title="NrxDebugVisualizer"
|
|
|
|
|
Width="1200"
|
|
|
|
|
Height="800"
|
|
|
|
|
MinWidth="800"
|
|
|
|
|
MinHeight="600">
|
2026-04-08 16:06:35 +02:00
|
|
|
|
2026-04-15 15:59:42 +02:00
|
|
|
<Design.DataContext>
|
|
|
|
|
<viewModels:MainWindowViewModel />
|
2026-04-08 16:06:35 +02:00
|
|
|
</Design.DataContext>
|
2026-04-15 15:59:42 +02:00
|
|
|
<DockPanel LastChildFill="True" Background="LightGray" >
|
|
|
|
|
<Menu DockPanel.Dock="Top" FontSize="12">
|
|
|
|
|
<MenuItem Header="_File">
|
|
|
|
|
<MenuItem Header="_Exit" Command="{Binding ExitCommand}" />
|
|
|
|
|
</MenuItem>
|
|
|
|
|
<MenuItem Header="_Options" VerticalAlignment="Center">
|
|
|
|
|
<MenuItem Header="_ShowLogViewer" Command="{Binding ShowLogViewerCommand}" />
|
|
|
|
|
</MenuItem>
|
|
|
|
|
<MenuItem Header="_Camera">
|
|
|
|
|
<MenuItem Header="_Reset" Command="{Binding ResetCameraCommand }" />
|
|
|
|
|
<MenuItem Header="_Fit" Command="{Binding FitToWindowCommand}" />
|
|
|
|
|
<DropDownButton Content="View">
|
|
|
|
|
<Button.Flyout>
|
|
|
|
|
<Flyout Placement="Right">
|
2026-04-08 16:06:35 +02:00
|
|
|
|
2026-04-15 15:59:42 +02:00
|
|
|
<ListBox ItemsSource="{Binding ViewPositions}" SelectedItem="{Binding ViewPosition}" SelectionMode="Single" />
|
|
|
|
|
</Flyout>
|
|
|
|
|
</Button.Flyout>
|
|
|
|
|
</DropDownButton>
|
|
|
|
|
</MenuItem>
|
|
|
|
|
</Menu>
|
|
|
|
|
|
|
|
|
|
<StackPanel DockPanel.Dock="Bottom" Orientation="Horizontal" Background="DarkGray" >
|
|
|
|
|
<Label Content="{Binding ProportionalDockControlViewModel.VulkanSceneControlViewModel.Fps,FallbackValue=Unset}" IsHitTestVisible="False" VerticalContentAlignment="Stretch" VerticalAlignment="Stretch" HorizontalContentAlignment="Stretch" />
|
|
|
|
|
<Label Content="{Binding ProportionalDockControlViewModel.VulkanSceneControlViewModel.ObjectInfo,FallbackValue=Unset}" IsHitTestVisible="False" VerticalContentAlignment="Stretch" VerticalAlignment="Stretch" HorizontalContentAlignment="Stretch" />
|
|
|
|
|
</StackPanel>
|
|
|
|
|
<controls:ProportionalDockControl DataContext="{Binding ProportionalDockControlViewModel}"/>
|
|
|
|
|
</DockPanel>
|
2026-04-08 16:06:35 +02:00
|
|
|
</Window>
|
2026-04-15 15:59:42 +02:00
|
|
|
|