1 changed files with 72 additions and 77 deletions
@ -1,87 +1,82 @@ |
|||||||
<optionpanels:ProjectOptionPanel x:Class="ICSharpCode.CodeAnalysis.AnalysisProjectOptionsPanel" |
<optionpanels:ProjectOptionPanel x:Class="ICSharpCode.CodeAnalysis.AnalysisProjectOptionsPanel" |
||||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
||||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
||||||
xmlns:gui="clr-namespace:ICSharpCode.SharpDevelop.Gui;assembly=ICSharpCode.SharpDevelop" |
|
||||||
xmlns:optionpanels="clr-namespace:ICSharpCode.SharpDevelop.Gui.OptionPanels;assembly=ICSharpCode.SharpDevelop" |
xmlns:optionpanels="clr-namespace:ICSharpCode.SharpDevelop.Gui.OptionPanels;assembly=ICSharpCode.SharpDevelop" |
||||||
xmlns:project="clr-namespace:ICSharpCode.SharpDevelop.Project;assembly=ICSharpCode.SharpDevelop" |
|
||||||
xmlns:widgets="http://icsharpcode.net/sharpdevelop/widgets" |
|
||||||
xmlns:tv="http://icsharpcode.net/sharpdevelop/treeview" |
xmlns:tv="http://icsharpcode.net/sharpdevelop/treeview" |
||||||
xmlns:local="clr-namespace:ICSharpCode.CodeAnalysis" |
xmlns:local="clr-namespace:ICSharpCode.CodeAnalysis" |
||||||
xmlns:core="http://icsharpcode.net/sharpdevelop/core"> |
xmlns:core="http://icsharpcode.net/sharpdevelop/core"> |
||||||
|
<!-- xmlns:gui="clr-namespace:ICSharpCode.SharpDevelop.Gui;assembly=ICSharpCode.SharpDevelop"--> |
||||||
<ScrollViewer VerticalScrollBarVisibility="Auto"> |
<Grid > |
||||||
<Grid > |
<Grid.RowDefinitions> |
||||||
<Grid.RowDefinitions> |
<RowDefinition Height="Auto"></RowDefinition> |
||||||
<RowDefinition Height="Auto"></RowDefinition> |
<RowDefinition Height="Auto"></RowDefinition> |
||||||
<RowDefinition Height="Auto"></RowDefinition> |
<RowDefinition></RowDefinition> |
||||||
<RowDefinition></RowDefinition> |
</Grid.RowDefinitions> |
||||||
<RowDefinition></RowDefinition> |
<Grid.ColumnDefinitions> |
||||||
</Grid.RowDefinitions> |
<ColumnDefinition Width="Auto"></ColumnDefinition> |
||||||
<Grid.ColumnDefinitions> |
<ColumnDefinition Width="30"></ColumnDefinition> |
||||||
<ColumnDefinition Width="Auto"></ColumnDefinition> |
<ColumnDefinition></ColumnDefinition> |
||||||
<ColumnDefinition Width="30"></ColumnDefinition> |
</Grid.ColumnDefinitions> |
||||||
<ColumnDefinition></ColumnDefinition> |
|
||||||
</Grid.ColumnDefinitions> |
<optionpanels:StorageLocationPicker Location="{Binding RunCodeAnalysis.Location}"></optionpanels:StorageLocationPicker> |
||||||
|
|
||||||
<optionpanels:StorageLocationPicker Location="{Binding RunCodeAnalysis.Location}"></optionpanels:StorageLocationPicker> |
<CheckBox Grid.Column="1" VerticalAlignment="Center" Grid.ColumnSpan="2" |
||||||
|
IsChecked="{Binding RunCodeAnalysis.Value}" |
||||||
<CheckBox Grid.Column="1" VerticalAlignment="Center" Grid.ColumnSpan="2" |
Content="{core:Localize ICSharpCode.CodeAnalysis.ProjectOptions.RunOnBuild}"></CheckBox> |
||||||
IsChecked="{Binding RunCodeAnalysis.Value}" |
|
||||||
Content="{core:Localize ICSharpCode.CodeAnalysis.ProjectOptions.RunOnBuild}"></CheckBox> |
<Button Grid.Row="1" VerticalAlignment="Center" Grid.ColumnSpan="2" Margin="0,10,0,10" |
||||||
|
Style="{x:Static core:GlobalStyles.ButtonStyle}" |
||||||
<Button Grid.Row="1" VerticalAlignment="Center" Grid.ColumnSpan="2" Margin="0,10,0,10" |
Click="ChangeRuleAssembliesButtonClick" |
||||||
Style="{x:Static core:GlobalStyles.ButtonStyle}" |
Content="{core:Localize ICSharpCode.CodeAnalysis.ProjectOptions.AddRemoveRuleAssembly}"></Button> |
||||||
Click="ChangeRuleAssembliesButtonClick" |
|
||||||
Content="{core:Localize ICSharpCode.CodeAnalysis.ProjectOptions.AddRemoveRuleAssembly}"></Button> |
<tv:SharpTreeView x:Name="ruleTreeView" Grid.Row="2" Grid.ColumnSpan="3" |
||||||
|
VerticalAlignment="Stretch" |
||||||
<tv:SharpTreeView x:Name="ruleTreeView" ShowRoot="False" ShowLines="False" IsSynchronizedWithCurrentItem="True" |
ShowRoot="False" ShowLines="False" IsSynchronizedWithCurrentItem="True"> |
||||||
Grid.Row="2" Grid.ColumnSpan="3"> |
<ListView.View> |
||||||
|
<tv:SharpGridView > |
||||||
<ListView.View> |
<tv:SharpGridView.Columns> |
||||||
<tv:SharpGridView > |
<GridViewColumn Width="500" Header="ID"> |
||||||
<tv:SharpGridView.Columns> |
<GridViewColumn.CellTemplate> |
||||||
<GridViewColumn Width="500" Header="ID"> |
<DataTemplate> |
||||||
<GridViewColumn.CellTemplate> |
<tv:SharpTreeNodeView /> |
||||||
<DataTemplate> |
</DataTemplate> |
||||||
<tv:SharpTreeNodeView /> |
</GridViewColumn.CellTemplate> |
||||||
</DataTemplate> |
</GridViewColumn> |
||||||
</GridViewColumn.CellTemplate> |
|
||||||
</GridViewColumn> |
<GridViewColumn Header="Action"> |
||||||
|
<GridViewColumn.CellTemplate> |
||||||
<GridViewColumn Header="Action"> |
<DataTemplate> |
||||||
<GridViewColumn.CellTemplate> |
<StackPanel Orientation="Horizontal"> |
||||||
<DataTemplate> |
<ComboBox Background="Transparent" Width="100" |
||||||
<StackPanel Orientation="Horizontal"> |
HorizontalAlignment="Center" VerticalAlignment="Center" |
||||||
<ComboBox Background="Transparent" Width="100" |
ItemsSource="{Binding Path=RuleState}" |
||||||
HorizontalAlignment="Center" VerticalAlignment="Center" |
IsSynchronizedWithCurrentItem="True" |
||||||
ItemsSource="{Binding Path=RuleState}" |
IsReadOnly="False" |
||||||
IsSynchronizedWithCurrentItem="True" |
SelectedIndex="{Binding Index}"> |
||||||
IsReadOnly="False" |
|
||||||
SelectedIndex="{Binding Index}"> |
<ComboBox.ItemTemplate> |
||||||
|
<DataTemplate> |
||||||
<ComboBox.ItemTemplate> |
<StackPanel Orientation="Horizontal"> |
||||||
<DataTemplate> |
<Image VerticalAlignment="Center" Height="15" Margin="3,0,5,0" |
||||||
<StackPanel Orientation="Horizontal"> |
Source="{Binding Item1}"></Image> |
||||||
<Image VerticalAlignment="Center" Height="15" Margin="3,0,5,0" |
|
||||||
Source="{Binding Item1}"></Image> |
|
||||||
|
|
||||||
<TextBlock VerticalAlignment="Center" Text="{Binding Item2}"></TextBlock> |
|
||||||
|
|
||||||
</StackPanel> |
<TextBlock VerticalAlignment="Center" Text="{Binding Item2}"></TextBlock> |
||||||
|
|
||||||
</DataTemplate> |
</StackPanel> |
||||||
</ComboBox.ItemTemplate> |
|
||||||
</ComboBox> |
</DataTemplate> |
||||||
</StackPanel> |
</ComboBox.ItemTemplate> |
||||||
</DataTemplate> |
</ComboBox> |
||||||
</GridViewColumn.CellTemplate> |
</StackPanel> |
||||||
</GridViewColumn> |
</DataTemplate> |
||||||
</tv:SharpGridView.Columns> |
</GridViewColumn.CellTemplate> |
||||||
|
</GridViewColumn> |
||||||
</tv:SharpGridView> |
</tv:SharpGridView.Columns> |
||||||
</ListView.View> |
|
||||||
</tv:SharpTreeView> |
</tv:SharpGridView> |
||||||
|
</ListView.View> |
||||||
</Grid> |
</tv:SharpTreeView> |
||||||
</ScrollViewer> |
|
||||||
|
</Grid> |
||||||
</optionpanels:ProjectOptionPanel> |
</optionpanels:ProjectOptionPanel> |
Loading…
Reference in new issue