52 lines
2.3 KiB
XML
52 lines
2.3 KiB
XML
<Application x:Class="AmebaPro3_ControlPanel.App"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:pages="clr-namespace:AmebaPro3_ControlPanel.Views.Pages"
|
|
xmlns:controls="clr-namespace:AmebaPro3_ControlPanel.Views.Controls"
|
|
xmlns:vm="clr-namespace:AmebaPro3_ControlPanel.ViewModels"
|
|
StartupUri="Views/MainWindow.xaml">
|
|
<Application.Resources>
|
|
<ResourceDictionary>
|
|
<ResourceDictionary.MergedDictionaries>
|
|
<ResourceDictionary Source="Themes/Colors.Light.xaml"/>
|
|
<ResourceDictionary Source="Themes/Controls.xaml"/>
|
|
</ResourceDictionary.MergedDictionaries>
|
|
|
|
<DataTemplate DataType="{x:Type vm:MainPageViewModel}">
|
|
<pages:MainPage/>
|
|
</DataTemplate>
|
|
<DataTemplate DataType="{x:Type vm:JLinkPageViewModel}">
|
|
<pages:JLinkPage/>
|
|
</DataTemplate>
|
|
<DataTemplate DataType="{x:Type vm:JLinkApSessionViewModel}">
|
|
<controls:ConsolePanel>
|
|
<controls:ConsolePanel.CommandButtonsContent>
|
|
<UniformGrid Columns="5" HorizontalAlignment="Stretch">
|
|
<Button Content="Halt"
|
|
Command="{Binding HaltCommand}"
|
|
Style="{StaticResource BaseButtonStyle}"
|
|
Margin="0,0,4,0"/>
|
|
<Button Content="Continue"
|
|
Command="{Binding ContinueCommand}"
|
|
Style="{StaticResource BaseButtonStyle}"
|
|
Margin="4,0,4,0"/>
|
|
<Button Content="Step In"
|
|
Command="{Binding StepInCommand}"
|
|
Style="{StaticResource BaseButtonStyle}"
|
|
Margin="4,0,4,0"/>
|
|
<Button Content="Step Over"
|
|
Command="{Binding StepOverCommand}"
|
|
Style="{StaticResource BaseButtonStyle}"
|
|
Margin="4,0,4,0"/>
|
|
<Button Content="Step Out"
|
|
Command="{Binding StepOutCommand}"
|
|
Style="{StaticResource BaseButtonStyle}"
|
|
Margin="4,0,0,0"/>
|
|
</UniformGrid>
|
|
</controls:ConsolePanel.CommandButtonsContent>
|
|
</controls:ConsolePanel>
|
|
</DataTemplate>
|
|
</ResourceDictionary>
|
|
</Application.Resources>
|
|
</Application>
|