Skip to content

Commit 07ff5b8

Browse files
committed
adjust formatting to fit the CI tests
1 parent 71c5b35 commit 07ff5b8

File tree

12 files changed

+1410
-1410
lines changed

12 files changed

+1410
-1410
lines changed

ICSharpCode.AvalonEdit.Sample/Window1.xaml

Lines changed: 70 additions & 70 deletions
Original file line numberDiff line numberDiff line change
@@ -24,82 +24,82 @@
2424
xmlns:forms="clr-namespace:System.Windows.Forms;assembly=System.Windows.Forms"
2525
Title="AvalonEdit.Sample" Height="500" Width="700"
2626
>
27-
<DockPanel>
28-
<ToolBar DockPanel.Dock="Top">
29-
<ToolBar.Resources>
30-
<Style TargetType="{x:Type Image}">
31-
<Style.Triggers>
32-
<DataTrigger Binding="{Binding RelativeSource={RelativeSource AncestorType={x:Type ButtonBase}, AncestorLevel=1}, Path=IsEnabled}" Value="False">
33-
<Setter Property="Opacity" Value="0.30" />
34-
</DataTrigger>
35-
</Style.Triggers>
36-
</Style>
37-
</ToolBar.Resources>
38-
<Button Click="openFileClick">
39-
<Image Source="Images/Open.png" Height="16"/>
40-
</Button>
41-
<Button Click="saveFileClick">
42-
<Image Source="Images/Save.png" Height="16"/>
43-
</Button>
44-
<Separator/>
45-
<Button Command="Cut">
46-
<Image Source="Images/Cut.png" Height="16"/>
47-
</Button>
48-
<Button Command="Copy">
49-
<Image Source="Images/Copy.png" Height="16"/>
50-
</Button>
51-
<Button Command="Paste">
52-
<Image Source="Images/Paste.png" Height="16"/>
53-
</Button>
54-
<Button Command="Delete">
55-
<Image Source="Images/Delete.png" Height="16"/>
56-
</Button>
57-
<Separator/>
58-
<Button Command="Undo">
59-
<Image Source="Images/Undo.png" Height="16"/>
60-
</Button>
61-
<Button Command="Redo">
62-
<Image Source="Images/Redo.png" Height="16"/>
63-
</Button>
64-
<Separator/>
65-
<CheckBox IsChecked="{Binding ElementName=textEditor,Path=WordWrap}">
66-
<Image Source="Images/WordWrap.png" Height="16"/>
67-
</CheckBox>
68-
<CheckBox IsChecked="{Binding ElementName=textEditor,Path=ShowLineNumbers}">
69-
<TextBlock Width="16" TextAlignment="Center">#</TextBlock>
70-
</CheckBox>
71-
<CheckBox IsChecked="{Binding ElementName=textEditor,Path=Options.ShowEndOfLine}">
72-
<TextBlock Width="16" TextAlignment="Center">¶</TextBlock>
73-
</CheckBox>
74-
<ComboBox Name="highlightingComboBox"
27+
<DockPanel>
28+
<ToolBar DockPanel.Dock="Top">
29+
<ToolBar.Resources>
30+
<Style TargetType="{x:Type Image}">
31+
<Style.Triggers>
32+
<DataTrigger Binding="{Binding RelativeSource={RelativeSource AncestorType={x:Type ButtonBase}, AncestorLevel=1}, Path=IsEnabled}" Value="False">
33+
<Setter Property="Opacity" Value="0.30" />
34+
</DataTrigger>
35+
</Style.Triggers>
36+
</Style>
37+
</ToolBar.Resources>
38+
<Button Click="openFileClick">
39+
<Image Source="Images/Open.png" Height="16"/>
40+
</Button>
41+
<Button Click="saveFileClick">
42+
<Image Source="Images/Save.png" Height="16"/>
43+
</Button>
44+
<Separator/>
45+
<Button Command="Cut">
46+
<Image Source="Images/Cut.png" Height="16"/>
47+
</Button>
48+
<Button Command="Copy">
49+
<Image Source="Images/Copy.png" Height="16"/>
50+
</Button>
51+
<Button Command="Paste">
52+
<Image Source="Images/Paste.png" Height="16"/>
53+
</Button>
54+
<Button Command="Delete">
55+
<Image Source="Images/Delete.png" Height="16"/>
56+
</Button>
57+
<Separator/>
58+
<Button Command="Undo">
59+
<Image Source="Images/Undo.png" Height="16"/>
60+
</Button>
61+
<Button Command="Redo">
62+
<Image Source="Images/Redo.png" Height="16"/>
63+
</Button>
64+
<Separator/>
65+
<CheckBox IsChecked="{Binding ElementName=textEditor,Path=WordWrap}">
66+
<Image Source="Images/WordWrap.png" Height="16"/>
67+
</CheckBox>
68+
<CheckBox IsChecked="{Binding ElementName=textEditor,Path=ShowLineNumbers}">
69+
<TextBlock Width="16" TextAlignment="Center">#</TextBlock>
70+
</CheckBox>
71+
<CheckBox IsChecked="{Binding ElementName=textEditor,Path=Options.ShowEndOfLine}">
72+
<TextBlock Width="16" TextAlignment="Center">¶</TextBlock>
73+
</CheckBox>
74+
<ComboBox Name="highlightingComboBox"
7575
SelectedItem="{Binding SyntaxHighlighting, ElementName=textEditor}"
7676
ItemsSource="{Binding Source={x:Static avalonEdit:HighlightingManager.Instance}, Path=HighlightingDefinitions}"
7777
SelectionChanged="HighlightingComboBox_SelectionChanged"/>
78-
</ToolBar>
79-
<Grid>
80-
<Grid.ColumnDefinitions>
81-
<ColumnDefinition Width="1*"/>
82-
<ColumnDefinition Width="100"/>
83-
</Grid.ColumnDefinitions>
84-
<avalonEdit:TextEditor
78+
</ToolBar>
79+
<Grid>
80+
<Grid.ColumnDefinitions>
81+
<ColumnDefinition Width="1*"/>
82+
<ColumnDefinition Width="100"/>
83+
</Grid.ColumnDefinitions>
84+
<avalonEdit:TextEditor
8585
Name="textEditor"
8686
FontFamily="Consolas"
8787
FontSize="10pt"
8888
SyntaxHighlighting="C#"
8989
>Welcome to AvalonEdit!
90-
</avalonEdit:TextEditor>
91-
<GridSplitter Grid.Column="1" Width="4" HorizontalAlignment="Left"/>
92-
<DockPanel Grid.Column="1" Margin="4 0 0 0">
93-
<ComboBox Name="propertyGridComboBox" DockPanel.Dock="Top"
94-
SelectedIndex="0" SelectionChanged="propertyGridComboBoxSelectionChanged">
95-
<ComboBoxItem>TextEditor</ComboBoxItem>
96-
<ComboBoxItem>TextArea</ComboBoxItem>
97-
<ComboBoxItem>Options</ComboBoxItem>
98-
</ComboBox>
99-
<WindowsFormsHost DockPanel.Dock="Right" Name="propertyGridHost">
100-
<forms:PropertyGrid x:Name="propertyGrid"/>
101-
</WindowsFormsHost>
102-
</DockPanel>
103-
</Grid>
104-
</DockPanel>
90+
</avalonEdit:TextEditor>
91+
<GridSplitter Grid.Column="1" Width="4" HorizontalAlignment="Left"/>
92+
<DockPanel Grid.Column="1" Margin="4 0 0 0">
93+
<ComboBox Name="propertyGridComboBox" DockPanel.Dock="Top"
94+
SelectedIndex="0" SelectionChanged="propertyGridComboBoxSelectionChanged">
95+
<ComboBoxItem>TextEditor</ComboBoxItem>
96+
<ComboBoxItem>TextArea</ComboBoxItem>
97+
<ComboBoxItem>Options</ComboBoxItem>
98+
</ComboBox>
99+
<WindowsFormsHost DockPanel.Dock="Right" Name="propertyGridHost">
100+
<forms:PropertyGrid x:Name="propertyGrid"/>
101+
</WindowsFormsHost>
102+
</DockPanel>
103+
</Grid>
104+
</DockPanel>
105105
</Window>

0 commit comments

Comments
 (0)