mirror of https://github.com/icsharpcode/ILSpy.git
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.
116 lines
3.8 KiB
116 lines
3.8 KiB
<?xml version="1.0" encoding="utf-8"?> |
|
<Window |
|
x:Class="ICSharpCode.ILSpy.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:tv="http://icsharpcode.net/sharpdevelop/treeview" xmlns:ae="http://icsharpcode.net/sharpdevelop/avalonedit" |
|
xmlns:local="clr-namespace:ICSharpCode.ILSpy" |
|
Title="ILSpy" |
|
Width="790" |
|
Height="500" |
|
MinWidth="250" |
|
MinHeight="200" |
|
UseLayoutRounding="True" |
|
TextOptions.TextFormattingMode="Display" |
|
FocusManager.FocusedElement="{Binding ElementName=treeView}" |
|
> |
|
<Window.CommandBindings> |
|
<CommandBinding |
|
Command="Open" |
|
Executed="OpenCommandExecuted" /> |
|
</Window.CommandBindings> |
|
<DockPanel> |
|
<!-- Main menu --> |
|
<Menu DockPanel.Dock="Top"> |
|
<MenuItem Header="_File"> |
|
<MenuItem Command="Open"> |
|
<MenuItem.Icon> |
|
<Image Width="16" Height="16" Source="Images/Open.png" /> |
|
</MenuItem.Icon> |
|
</MenuItem> |
|
<MenuItem Header="Open from _GAC" Click="OpenFromGac_Click" /> |
|
<Separator /> |
|
<MenuItem Header="E_xit" Click="ExitClick" /> |
|
</MenuItem> |
|
<MenuItem Header="_View"> |
|
<MenuItem Header="Show _internal types and members" IsCheckable="True" IsChecked="{Binding ShowInternalApi}"> |
|
<MenuItem.Icon> |
|
<Image Width="16" Height="16" Source="Images/PrivateInternal.png" /> |
|
</MenuItem.Icon> |
|
</MenuItem> |
|
</MenuItem> |
|
<MenuItem Header="_Help"> |
|
<MenuItem Header="_About" Click="AboutClick" /> |
|
</MenuItem> |
|
</Menu> |
|
<!-- ToolBar --> |
|
<ToolBar |
|
Name="toolBar" |
|
DockPanel.Dock="Top"> |
|
<ToolBar.Resources> |
|
<!-- Make images transparent if menu command is disabled --> |
|
<Style TargetType="{x:Type Image}"> |
|
<Style.Triggers> |
|
<DataTrigger |
|
Binding="{Binding RelativeSource={RelativeSource AncestorType={x:Type ButtonBase}, AncestorLevel=1}, Path=IsEnabled}" |
|
Value="False"> |
|
<Setter Property="Opacity" Value="0.30" /> |
|
</DataTrigger> |
|
</Style.Triggers> |
|
</Style> |
|
</ToolBar.Resources> |
|
<Button Command="Open"> |
|
<Image Width="16" Height="16" Source="Images/Open.png" /> |
|
</Button> |
|
<Separator /> |
|
<CheckBox IsChecked="{Binding ShowInternalApi}" ToolTip="Show internal types and members"> |
|
<Image Width="16" Height="16" Source="Images/PrivateInternal.png" /> |
|
</CheckBox> |
|
<Separator /> |
|
<ComboBox Name="languageComboBox" DisplayMemberPath="Name" Width="50" SelectionChanged="LanguageComboBox_SelectionChanged" /> |
|
</ToolBar> |
|
<!-- Main grid separating left pane (treeView) from main pane (textEditor) --> |
|
<Grid> |
|
<Grid.ColumnDefinitions> |
|
<ColumnDefinition |
|
MinWidth="100" |
|
Width="0.4*" /> |
|
<ColumnDefinition |
|
Width="3" /> |
|
<ColumnDefinition |
|
MinWidth="100" |
|
Width="0.6*" /> |
|
</Grid.ColumnDefinitions> |
|
<Grid.RowDefinitions> |
|
<RowDefinition |
|
Height="*" /> |
|
</Grid.RowDefinitions> |
|
<!-- Left pane: Search bar + Tree View --> |
|
<DockPanel> |
|
<TextBox DockPanel.Dock="Top" local:CueBannerService.CueBanner=" Search" Text="{Binding SearchTerm, UpdateSourceTrigger=PropertyChanged}" /> |
|
<!-- Tree View of assemblies and classes --> |
|
<tv:SharpTreeView |
|
Name="treeView" |
|
SelectionChanged="TreeView_SelectionChanged" |
|
ShowRoot="False" |
|
AllowDropOrder="True" |
|
AllowDrop="True" /> |
|
</DockPanel> |
|
<GridSplitter |
|
Grid.ZIndex="1" |
|
Grid.Column="1" |
|
Margin="-2,0" |
|
BorderThickness="2,0" |
|
BorderBrush="Transparent" |
|
HorizontalAlignment="Stretch" /> |
|
<!-- Right pane: Text Editor --> |
|
<DockPanel |
|
Grid.Column="2"> |
|
<ae:TextEditor |
|
Name="textEditor" |
|
FontFamily="Consolas" |
|
FontSize="10pt" |
|
IsReadOnly="True" |
|
Background="{DynamicResource {x:Static SystemColors.InfoBrushKey}}" |
|
Foreground="{DynamicResource {x:Static SystemColors.InfoTextBrushKey}}" /> |
|
</DockPanel> |
|
</Grid> |
|
</DockPanel> |
|
</Window> |