Browse Source

Fit and finish: improved layout and styling

pull/301/head
Ed Harvey 14 years ago
parent
commit
0418f77ea5
  1. 24
      ILSpy/MainWindow.xaml

24
ILSpy/MainWindow.xaml

@ -11,7 +11,9 @@
UseLayoutRounding="True" UseLayoutRounding="True"
TextOptions.TextFormattingMode="Display" TextOptions.TextFormattingMode="Display"
FocusManager.FocusedElement="{Binding ElementName=treeView}" FocusManager.FocusedElement="{Binding ElementName=treeView}"
> xmlns:d="http://schemas.microsoft.com/expression/blend/2008" d:DesignHeight="500" d:DesignWidth="500"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d"
>
<Window.Resources> <Window.Resources>
<BooleanToVisibilityConverter x:Key="BooleanToVisibilityConverter" /> <BooleanToVisibilityConverter x:Key="BooleanToVisibilityConverter" />
</Window.Resources> </Window.Resources>
@ -52,7 +54,7 @@
<!-- ToolBar --> <!-- ToolBar -->
<ToolBar <ToolBar
Name="toolBar" Name="toolBar"
DockPanel.Dock="Top"> DockPanel.Dock="Top" ToolBarTray.IsLocked="True">
<ToolBar.Resources> <ToolBar.Resources>
<!-- Make images transparent if menu command is disabled --> <!-- Make images transparent if menu command is disabled -->
<Style TargetType="{x:Type Image}"> <Style TargetType="{x:Type Image}">
@ -111,7 +113,8 @@
SelectionChanged="TreeView_SelectionChanged" SelectionChanged="TreeView_SelectionChanged"
ShowRoot="False" ShowRoot="False"
AllowDropOrder="True" AllowDropOrder="True"
AllowDrop="True" /> AllowDrop="True"
BorderThickness="0,1,1,1" Visibility="Visible" />
<GridSplitter <GridSplitter
Grid.ZIndex="1" Grid.ZIndex="1"
Grid.Column="1" Grid.Column="1"
@ -129,9 +132,9 @@
<Grid.RowDefinitions> <Grid.RowDefinitions>
<RowDefinition Height="Auto" /> <RowDefinition Height="Auto" />
<RowDefinition Height="0" Name="topPaneRow" /> <RowDefinition Height="0" Name="topPaneRow" />
<RowDefinition Height="1" /> <RowDefinition Height="0" />
<RowDefinition Height="0.7*" MinHeight="100" Name="textViewRow" /> <RowDefinition Height="0.7*" MinHeight="100" Name="textViewRow" />
<RowDefinition Height="1" /> <RowDefinition Height="0" />
<RowDefinition Height="0" Name="bottomPaneRow" /> <RowDefinition Height="0" Name="bottomPaneRow" />
</Grid.RowDefinitions> </Grid.RowDefinitions>
<Border BorderBrush="Black" BorderThickness="1" Name="updateAvailablePanel" Visibility="Collapsed"> <Border BorderBrush="Black" BorderThickness="1" Name="updateAvailablePanel" Visibility="Collapsed">
@ -143,8 +146,10 @@
</StackPanel> </StackPanel>
</DockPanel> </DockPanel>
</Border> </Border>
<controls:DockedPane x:Name="topPane" Grid.Row="1" Title="Top" Visibility="Collapsed" CloseButtonClicked="TopPane_CloseButtonClicked" /> <controls:DockedPane x:Name="topPane" Grid.Row="1" Title="Top" Visibility="Collapsed"
CloseButtonClicked="TopPane_CloseButtonClicked" Margin="0,0,0,3"
BorderThickness="1,1,0,1" />
<GridSplitter <GridSplitter
Grid.ZIndex="1" Grid.ZIndex="1"
@ -168,8 +173,9 @@
HorizontalAlignment="Stretch" HorizontalAlignment="Stretch"
VerticalAlignment="Center" VerticalAlignment="Center"
Visibility="{Binding Visibility, ElementName=bottomPane}" /> Visibility="{Binding Visibility, ElementName=bottomPane}" />
<controls:DockedPane x:Name="bottomPane" Grid.Row="5" Title="Bottom" Visibility="Collapsed" CloseButtonClicked="BottomPane_CloseButtonClicked" /> <controls:DockedPane x:Name="bottomPane" Grid.Row="5" Title="Bottom" Visibility="Collapsed"
CloseButtonClicked="BottomPane_CloseButtonClicked" Margin="0,3,0,0" BorderThickness="1,1,0,1"/>
</Grid> </Grid>
</Grid> </Grid>
</DockPanel> </DockPanel>

Loading…
Cancel
Save