|
|
|
@ -4,7 +4,7 @@
@@ -4,7 +4,7 @@
|
|
|
|
|
x:ClassModifier="public" |
|
|
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:tv="clr-namespace:ICSharpCode.TreeView;assembly=ICSharpCode.TreeView" |
|
|
|
|
xmlns:local="clr-namespace:ICSharpCode.ILSpy" |
|
|
|
|
xmlns:textView="clr-namespace:ICSharpCode.ILSpy.TextView" |
|
|
|
|
xmlns:avalondock="http://schemas.xceed.com/wpf/xaml/avalondock" |
|
|
|
|
xmlns:controls="clr-namespace:ICSharpCode.ILSpy.Controls" |
|
|
|
|
xmlns:properties="clr-namespace:ICSharpCode.ILSpy.Properties" |
|
|
|
|
Title="ILSpy" |
|
|
|
@ -51,7 +51,8 @@
@@ -51,7 +51,8 @@
|
|
|
|
|
<DockPanel> |
|
|
|
|
<!-- Main menu --> |
|
|
|
|
<Menu DockPanel.Dock="Top" Name="mainMenu" Height="23" KeyboardNavigation.TabNavigation="None"> |
|
|
|
|
<MenuItem Header="{x:Static properties:Resources._File}" /> <!-- contents of file menu are added using MEF --> |
|
|
|
|
<MenuItem Header="{x:Static properties:Resources._File}" /> |
|
|
|
|
<!-- contents of file menu are added using MEF --> |
|
|
|
|
<MenuItem Header="{x:Static properties:Resources._View}"> |
|
|
|
|
<MenuItem Header="{x:Static properties:Resources.Show_publiconlyTypesMembers}" IsCheckable="True" IsChecked="{Binding FilterSettings.ApiVisPublicOnly}" /> |
|
|
|
|
<MenuItem Header="{x:Static properties:Resources.Show_internalTypesMembers}" IsCheckable="True" IsChecked="{Binding FilterSettings.ApiVisPublicAndInternal}" /> |
|
|
|
@ -107,99 +108,94 @@
@@ -107,99 +108,94 @@
|
|
|
|
|
</StatusBarItem> |
|
|
|
|
</StatusBar> |
|
|
|
|
<!-- Main grid separating left pane (treeView) from main pane (textEditor) --> |
|
|
|
|
<Grid> |
|
|
|
|
<Grid.ColumnDefinitions> |
|
|
|
|
<ColumnDefinition |
|
|
|
|
Name="leftColumn" |
|
|
|
|
MinWidth="100" |
|
|
|
|
Width="0.4*" /> |
|
|
|
|
<ColumnDefinition |
|
|
|
|
Width="3" /> |
|
|
|
|
<ColumnDefinition |
|
|
|
|
Name="rightColumn" |
|
|
|
|
MinWidth="100" |
|
|
|
|
Width="0.6*" /> |
|
|
|
|
</Grid.ColumnDefinitions> |
|
|
|
|
<Grid.RowDefinitions> |
|
|
|
|
<RowDefinition |
|
|
|
|
Height="*" /> |
|
|
|
|
</Grid.RowDefinitions> |
|
|
|
|
<!-- Left pane: Tree View of assemblies and classes --> |
|
|
|
|
<tv:SharpTreeView |
|
|
|
|
Name="treeView" |
|
|
|
|
AutomationProperties.Name="Assemblies and Classes" |
|
|
|
|
SelectionChanged="TreeView_SelectionChanged" |
|
|
|
|
ShowRoot="False" |
|
|
|
|
AllowDropOrder="True" |
|
|
|
|
AllowDrop="True" |
|
|
|
|
BorderThickness="0,1,1,1" Visibility="Visible" /> |
|
|
|
|
<GridSplitter |
|
|
|
|
Grid.ZIndex="1" |
|
|
|
|
Grid.Column="1" |
|
|
|
|
Margin="-5,0" |
|
|
|
|
BorderThickness="5,0" |
|
|
|
|
HorizontalAlignment="Center" |
|
|
|
|
VerticalAlignment="Stretch" |
|
|
|
|
Focusable="False" |
|
|
|
|
BorderBrush="Transparent" /> |
|
|
|
|
<!-- Right pane: Text Editor --> |
|
|
|
|
<Grid Grid.Column="2"> |
|
|
|
|
<Grid.ColumnDefinitions> |
|
|
|
|
<ColumnDefinition |
|
|
|
|
Width="*" /> |
|
|
|
|
</Grid.ColumnDefinitions> |
|
|
|
|
<Grid.RowDefinitions> |
|
|
|
|
<RowDefinition Height="Auto" /> |
|
|
|
|
<RowDefinition Height="0" Name="topPaneRow" /> |
|
|
|
|
<RowDefinition Height="0" /> |
|
|
|
|
<RowDefinition Height="0.7*" MinHeight="100" Name="textViewRow" /> |
|
|
|
|
<RowDefinition Height="0" /> |
|
|
|
|
<RowDefinition Height="0" Name="bottomPaneRow" /> |
|
|
|
|
</Grid.RowDefinitions> |
|
|
|
|
<Border BorderBrush="Black" BorderThickness="1" Name="updatePanel" Visibility="Collapsed"> |
|
|
|
|
<DockPanel KeyboardNavigation.TabNavigation="Contained"> |
|
|
|
|
<Button DockPanel.Dock="Right" Click="updatePanelCloseButtonClick" MinWidth="0">X</Button> |
|
|
|
|
<StackPanel Orientation="Horizontal"> |
|
|
|
|
<TextBlock Name="updatePanelMessage" Margin="4,0" VerticalAlignment="Center" Text="{x:Static properties:Resources.ILSpyVersionAvailable}" /> |
|
|
|
|
<Button Name="downloadOrCheckUpdateButton" Click="downloadOrCheckUpdateButtonClick" Content="{x:Static properties:Resources.Download}"/> |
|
|
|
|
</StackPanel> |
|
|
|
|
</DockPanel> |
|
|
|
|
</Border> |
|
|
|
|
|
|
|
|
|
<controls:DockedPane x:Name="topPane" Grid.Row="1" Title="Top" Visibility="Collapsed" |
|
|
|
|
AutomationProperties.Name="Close top pane" |
|
|
|
|
CloseButtonClicked="TopPane_CloseButtonClicked" Margin="0,0,0,3" |
|
|
|
|
BorderThickness="1,1,0,1" /> |
|
|
|
|
|
|
|
|
|
<GridSplitter |
|
|
|
|
Grid.ZIndex="1" |
|
|
|
|
Grid.Row="2" |
|
|
|
|
Margin="0,-2,0,-5" |
|
|
|
|
BorderThickness="0,2,0,5" |
|
|
|
|
BorderBrush="Transparent" |
|
|
|
|
HorizontalAlignment="Stretch" |
|
|
|
|
VerticalAlignment="Center" |
|
|
|
|
Focusable="False" |
|
|
|
|
Visibility="{Binding Visibility, ElementName=topPane}" /> |
|
|
|
|
|
|
|
|
|
<!-- decompilerTextView is into the mainPane by code --> |
|
|
|
|
<ContentPresenter Name="mainPane" Grid.Row="3"/> |
|
|
|
|
|
|
|
|
|
<GridSplitter |
|
|
|
|
Grid.ZIndex="1" |
|
|
|
|
Grid.Row="4" |
|
|
|
|
Margin="0,-2,0,-5" |
|
|
|
|
BorderThickness="0,2,0,5" |
|
|
|
|
BorderBrush="Transparent" |
|
|
|
|
HorizontalAlignment="Stretch" |
|
|
|
|
VerticalAlignment="Center" |
|
|
|
|
Focusable="False" |
|
|
|
|
Visibility="{Binding Visibility, ElementName=bottomPane}" /> |
|
|
|
|
|
|
|
|
|
<controls:DockedPane x:Name="bottomPane" Grid.Row="5" Title="Bottom" Visibility="Collapsed" |
|
|
|
|
AutomationProperties.Name="Close" |
|
|
|
|
CloseButtonClicked="BottomPane_CloseButtonClicked" Margin="0,3,0,0" BorderThickness="1,1,0,1"/> |
|
|
|
|
</Grid> |
|
|
|
|
</Grid> |
|
|
|
|
|
|
|
|
|
<avalondock:DockingManager x:Name="DockManager" |
|
|
|
|
AllowMixedOrientation="True" Grid.ColumnSpan="2"> |
|
|
|
|
|
|
|
|
|
<avalondock:LayoutRoot x:Name="LayoutRoot" > |
|
|
|
|
<avalondock:LayoutPanel Orientation="Vertical"> |
|
|
|
|
<avalondock:LayoutPanel Orientation="Horizontal"> |
|
|
|
|
<avalondock:LayoutAnchorablePaneGroup DockWidth="100" Orientation="Vertical"> |
|
|
|
|
<avalondock:LayoutAnchorablePane DockHeight="*"> |
|
|
|
|
<avalondock:LayoutAnchorable x:Name="Tree" Title="Project Explorer"> |
|
|
|
|
<!-- Left pane: Tree View of assemblies and classes --> |
|
|
|
|
<tv:SharpTreeView |
|
|
|
|
Name="treeView" |
|
|
|
|
AutomationProperties.Name="Assemblies and Classes" |
|
|
|
|
SelectionChanged="TreeView_SelectionChanged" |
|
|
|
|
ShowRoot="False" |
|
|
|
|
AllowDropOrder="True" |
|
|
|
|
AllowDrop="True" |
|
|
|
|
BorderThickness="0,1,1,1" Visibility="Visible" /> |
|
|
|
|
</avalondock:LayoutAnchorable> |
|
|
|
|
</avalondock:LayoutAnchorablePane> |
|
|
|
|
</avalondock:LayoutAnchorablePaneGroup> |
|
|
|
|
|
|
|
|
|
<avalondock:LayoutDocumentPaneGroup> |
|
|
|
|
<avalondock:LayoutDocumentPane x:Name="adDocumentPane"> |
|
|
|
|
<avalondock:LayoutDocument> |
|
|
|
|
<Grid> |
|
|
|
|
<Grid.ColumnDefinitions> |
|
|
|
|
<ColumnDefinition Width="*" /> |
|
|
|
|
</Grid.ColumnDefinitions> |
|
|
|
|
<Grid.RowDefinitions> |
|
|
|
|
<RowDefinition Height="Auto" /> |
|
|
|
|
<RowDefinition Height="0" Name="topPaneRow" /> |
|
|
|
|
<RowDefinition Height="0" /> |
|
|
|
|
<RowDefinition Height="0.7*" MinHeight="100" Name="textViewRow" /> |
|
|
|
|
<RowDefinition Height="0" /> |
|
|
|
|
<RowDefinition Height="0" Name="bottomPaneRow" /> |
|
|
|
|
</Grid.RowDefinitions> |
|
|
|
|
<Border BorderBrush="Black" BorderThickness="1" Name="updatePanel" Visibility="Collapsed"> |
|
|
|
|
<DockPanel KeyboardNavigation.TabNavigation="Contained"> |
|
|
|
|
<Button DockPanel.Dock="Right" Click="updatePanelCloseButtonClick" MinWidth="0">X</Button> |
|
|
|
|
<StackPanel Orientation="Horizontal"> |
|
|
|
|
<TextBlock Name="updatePanelMessage" Margin="4,0" VerticalAlignment="Center" Text="{x:Static properties:Resources.ILSpyVersionAvailable}" /> |
|
|
|
|
<Button Name="downloadOrCheckUpdateButton" Click="downloadOrCheckUpdateButtonClick" Content="{x:Static properties:Resources.Download}"/> |
|
|
|
|
</StackPanel> |
|
|
|
|
</DockPanel> |
|
|
|
|
</Border> |
|
|
|
|
|
|
|
|
|
<controls:DockedPane x:Name="topPane" Grid.Row="1" Title="Top" Visibility="Collapsed" |
|
|
|
|
AutomationProperties.Name="Close top pane" |
|
|
|
|
CloseButtonClicked="TopPane_CloseButtonClicked" Margin="0,0,0,3" |
|
|
|
|
BorderThickness="1,1,0,1" /> |
|
|
|
|
|
|
|
|
|
<GridSplitter |
|
|
|
|
Grid.ZIndex="1" |
|
|
|
|
Grid.Row="2" |
|
|
|
|
Margin="0,-2,0,-5" |
|
|
|
|
BorderThickness="0,2,0,5" |
|
|
|
|
BorderBrush="Transparent" |
|
|
|
|
HorizontalAlignment="Stretch" |
|
|
|
|
VerticalAlignment="Center" |
|
|
|
|
Focusable="False" |
|
|
|
|
Visibility="{Binding Visibility, ElementName=topPane}" /> |
|
|
|
|
|
|
|
|
|
<!-- decompilerTextView is into the mainPane by code --> |
|
|
|
|
<ContentPresenter Name="mainPane" Grid.Row="3"/> |
|
|
|
|
|
|
|
|
|
<GridSplitter |
|
|
|
|
Grid.ZIndex="1" |
|
|
|
|
Grid.Row="4" |
|
|
|
|
Margin="0,-2,0,-5" |
|
|
|
|
BorderThickness="0,2,0,5" |
|
|
|
|
BorderBrush="Transparent" |
|
|
|
|
HorizontalAlignment="Stretch" |
|
|
|
|
VerticalAlignment="Center" |
|
|
|
|
Focusable="False" |
|
|
|
|
Visibility="{Binding Visibility, ElementName=bottomPane}" /> |
|
|
|
|
|
|
|
|
|
<controls:DockedPane x:Name="bottomPane" Grid.Row="5" Title="Bottom" Visibility="Collapsed" |
|
|
|
|
AutomationProperties.Name="Close" |
|
|
|
|
CloseButtonClicked="BottomPane_CloseButtonClicked" Margin="0,3,0,0" BorderThickness="1,1,0,1"/> |
|
|
|
|
</Grid> |
|
|
|
|
</avalondock:LayoutDocument> |
|
|
|
|
</avalondock:LayoutDocumentPane> |
|
|
|
|
</avalondock:LayoutDocumentPaneGroup> |
|
|
|
|
</avalondock:LayoutPanel> |
|
|
|
|
</avalondock:LayoutPanel> |
|
|
|
|
</avalondock:LayoutRoot> |
|
|
|
|
</avalondock:DockingManager> |
|
|
|
|
</DockPanel> |
|
|
|
|
</Window> |
|
|
|
|