Skip to content

Commit

Permalink
adjust formatting to fit the CI tests
Browse files Browse the repository at this point in the history
  • Loading branch information
OidaTiftla committed Nov 18, 2016
1 parent 71c5b35 commit 07ff5b8
Show file tree
Hide file tree
Showing 12 changed files with 1,410 additions and 1,410 deletions.
140 changes: 70 additions & 70 deletions ICSharpCode.AvalonEdit.Sample/Window1.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,82 +24,82 @@
xmlns:forms="clr-namespace:System.Windows.Forms;assembly=System.Windows.Forms"
Title="AvalonEdit.Sample" Height="500" Width="700"
>
<DockPanel>
<ToolBar DockPanel.Dock="Top">
<ToolBar.Resources>
<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 Click="openFileClick">
<Image Source="Images/Open.png" Height="16"/>
</Button>
<Button Click="saveFileClick">
<Image Source="Images/Save.png" Height="16"/>
</Button>
<Separator/>
<Button Command="Cut">
<Image Source="Images/Cut.png" Height="16"/>
</Button>
<Button Command="Copy">
<Image Source="Images/Copy.png" Height="16"/>
</Button>
<Button Command="Paste">
<Image Source="Images/Paste.png" Height="16"/>
</Button>
<Button Command="Delete">
<Image Source="Images/Delete.png" Height="16"/>
</Button>
<Separator/>
<Button Command="Undo">
<Image Source="Images/Undo.png" Height="16"/>
</Button>
<Button Command="Redo">
<Image Source="Images/Redo.png" Height="16"/>
</Button>
<Separator/>
<CheckBox IsChecked="{Binding ElementName=textEditor,Path=WordWrap}">
<Image Source="Images/WordWrap.png" Height="16"/>
</CheckBox>
<CheckBox IsChecked="{Binding ElementName=textEditor,Path=ShowLineNumbers}">
<TextBlock Width="16" TextAlignment="Center">#</TextBlock>
</CheckBox>
<CheckBox IsChecked="{Binding ElementName=textEditor,Path=Options.ShowEndOfLine}">
<TextBlock Width="16" TextAlignment="Center">¶</TextBlock>
</CheckBox>
<ComboBox Name="highlightingComboBox"
<DockPanel>
<ToolBar DockPanel.Dock="Top">
<ToolBar.Resources>
<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 Click="openFileClick">
<Image Source="Images/Open.png" Height="16"/>
</Button>
<Button Click="saveFileClick">
<Image Source="Images/Save.png" Height="16"/>
</Button>
<Separator/>
<Button Command="Cut">
<Image Source="Images/Cut.png" Height="16"/>
</Button>
<Button Command="Copy">
<Image Source="Images/Copy.png" Height="16"/>
</Button>
<Button Command="Paste">
<Image Source="Images/Paste.png" Height="16"/>
</Button>
<Button Command="Delete">
<Image Source="Images/Delete.png" Height="16"/>
</Button>
<Separator/>
<Button Command="Undo">
<Image Source="Images/Undo.png" Height="16"/>
</Button>
<Button Command="Redo">
<Image Source="Images/Redo.png" Height="16"/>
</Button>
<Separator/>
<CheckBox IsChecked="{Binding ElementName=textEditor,Path=WordWrap}">
<Image Source="Images/WordWrap.png" Height="16"/>
</CheckBox>
<CheckBox IsChecked="{Binding ElementName=textEditor,Path=ShowLineNumbers}">
<TextBlock Width="16" TextAlignment="Center">#</TextBlock>
</CheckBox>
<CheckBox IsChecked="{Binding ElementName=textEditor,Path=Options.ShowEndOfLine}">
<TextBlock Width="16" TextAlignment="Center">¶</TextBlock>
</CheckBox>
<ComboBox Name="highlightingComboBox"
SelectedItem="{Binding SyntaxHighlighting, ElementName=textEditor}"
ItemsSource="{Binding Source={x:Static avalonEdit:HighlightingManager.Instance}, Path=HighlightingDefinitions}"
SelectionChanged="HighlightingComboBox_SelectionChanged"/>
</ToolBar>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="1*"/>
<ColumnDefinition Width="100"/>
</Grid.ColumnDefinitions>
<avalonEdit:TextEditor
</ToolBar>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="1*"/>
<ColumnDefinition Width="100"/>
</Grid.ColumnDefinitions>
<avalonEdit:TextEditor
Name="textEditor"
FontFamily="Consolas"
FontSize="10pt"
SyntaxHighlighting="C#"
>Welcome to AvalonEdit!
</avalonEdit:TextEditor>
<GridSplitter Grid.Column="1" Width="4" HorizontalAlignment="Left"/>
<DockPanel Grid.Column="1" Margin="4 0 0 0">
<ComboBox Name="propertyGridComboBox" DockPanel.Dock="Top"
SelectedIndex="0" SelectionChanged="propertyGridComboBoxSelectionChanged">
<ComboBoxItem>TextEditor</ComboBoxItem>
<ComboBoxItem>TextArea</ComboBoxItem>
<ComboBoxItem>Options</ComboBoxItem>
</ComboBox>
<WindowsFormsHost DockPanel.Dock="Right" Name="propertyGridHost">
<forms:PropertyGrid x:Name="propertyGrid"/>
</WindowsFormsHost>
</DockPanel>
</Grid>
</DockPanel>
</avalonEdit:TextEditor>
<GridSplitter Grid.Column="1" Width="4" HorizontalAlignment="Left"/>
<DockPanel Grid.Column="1" Margin="4 0 0 0">
<ComboBox Name="propertyGridComboBox" DockPanel.Dock="Top"
SelectedIndex="0" SelectionChanged="propertyGridComboBoxSelectionChanged">
<ComboBoxItem>TextEditor</ComboBoxItem>
<ComboBoxItem>TextArea</ComboBoxItem>
<ComboBoxItem>Options</ComboBoxItem>
</ComboBox>
<WindowsFormsHost DockPanel.Dock="Right" Name="propertyGridHost">
<forms:PropertyGrid x:Name="propertyGrid"/>
</WindowsFormsHost>
</DockPanel>
</Grid>
</DockPanel>
</Window>
Loading

0 comments on commit 07ff5b8

Please sign in to comment.