.NET Decompiler with support for PDB generation, ReadyToRun, Metadata (&more) - cross-platform!
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

55 lines
2.7 KiB

<Window xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:vm="using:ICSharpCode.ILSpy.ViewModels"
xmlns:local="using:ICSharpCode.ILSpy"
xmlns:views="using:ICSharpCode.ILSpy.Views"
xmlns:tree="using:ICSharpCode.ILSpy.AssemblyTree"
xmlns:dock="using:Dock.Avalonia.Controls"
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="500"
x:Class="ICSharpCode.ILSpy.Views.MainWindow"
x:DataType="vm:MainWindowViewModel"
Icon="/Assets/ILSpy.ico"
MinWidth="250" MinHeight="200"
UseLayoutRounding="True"
Title="{Binding Title}">
<Design.DataContext>
<vm:MainWindowViewModel />
</Design.DataContext>
<Window.KeyBindings>
<!-- Browser-style keyboard navigation. The mouse back/forward buttons drive the same
commands from code-behind (KeyBindings cannot express pointer buttons). -->
<KeyBinding Gesture="Alt+Left" Command="{Binding DockWorkspace.NavigateBackCommand}" />
<KeyBinding Gesture="Alt+Right" Command="{Binding DockWorkspace.NavigateForwardCommand}" />
<!-- Search pane shortcuts. Ctrl+Shift+F is the WPF default; Ctrl+E mirrors the
"search box" gesture VS uses. Both bring the bottom search pane to focus. -->
<KeyBinding Gesture="Ctrl+Shift+F" Command="{Binding DockWorkspace.ShowSearchCommand}" />
<KeyBinding Gesture="Ctrl+E" Command="{Binding DockWorkspace.ShowSearchCommand}" />
<!-- Close the active document tab (documents only; tool panes are unaffected). -->
<KeyBinding Gesture="Ctrl+W" Command="{Binding DockWorkspace.CloseActiveDocumentCommand}" />
</Window.KeyBindings>
<DockPanel>
<!-- Main menu. NativeMenu.Menu is set from code (ICSharpCode.ILSpy.MainMenu.Attach); on macOS
Avalonia projects it into the system menu bar and NativeMenuBar renders empty,
on Windows / Linux NativeMenuBar paints the menu inline at the top of the window. -->
<NativeMenuBar DockPanel.Dock="Top" />
<!-- Toolbar -->
<local:MainToolBar DockPanel.Dock="Top" />
<!-- Update banner: docks under the toolbar, IsVisible-bound to the panel viewmodel. -->
<views:UpdatePanel DockPanel.Dock="Top" DataContext="{Binding UpdatePanel}" />
<!-- Status bar (hidden by default, like WPF) -->
<Border DockPanel.Dock="Bottom" Height="26" IsVisible="False" Name="statusBar">
<TextBlock VerticalAlignment="Center" HorizontalAlignment="Right"
Margin="8,0" Name="statusLabel" Text="Stand by..." />
</Border>
<dock:DockControl Layout="{Binding DockLayout}" />
</DockPanel>
</Window>