Skip to content

Commit 302122d

Browse files
committed
More XAML formatting
1 parent bd72d5e commit 302122d

File tree

1 file changed

+3
-41
lines changed

1 file changed

+3
-41
lines changed

Rubberduck.Core/UI/Inspections/InspectionResultsControl.xaml

Lines changed: 3 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,9 @@
202202
SelectionUnit="FullRow"
203203
ItemsSource="{Binding Results, NotifyOnSourceUpdated=True}"
204204
VirtualizingPanel.IsVirtualizingWhenGrouping="True"
205-
RequestBringIntoView="InspectionResultsGrid_RequestBringIntoView">
205+
ScrollViewer.CanContentScroll="True"
206+
ScrollViewer.VerticalScrollBarVisibility="Auto"
207+
ScrollViewer.HorizontalScrollBarVisibility="Auto">
206208
<DataGrid.RowDetailsTemplate>
207209
<DataTemplate>
208210
<Grid>
@@ -243,46 +245,6 @@
243245
<controls:GroupItemExpandedBehavior ExpandedState="{Binding ExpandedState, Mode=TwoWay}" />
244246
</i:Interaction.Behaviors>
245247
</controls:GroupingGrid>
246-
<DataGrid.RowDetailsTemplate>
247-
<DataTemplate>
248-
<Grid>
249-
<Rectangle Fill="Transparent" />
250-
<GridViewRowPresenter/>
251-
</Grid>
252-
</DataTemplate>
253-
</DataGrid.RowDetailsTemplate>
254-
<DataGrid.Columns>
255-
<DataGridTemplateColumn Header="{Resx ResxName=Rubberduck.Resources.RubberduckUI, Key=CodeInspectionResults_Type}">
256-
<DataGridTemplateColumn.CellTemplate>
257-
<DataTemplate DataType="abstract1:IInspectionResult">
258-
<Image Source="{Binding Inspection, Converter={StaticResource InspectionIconConverter}, Mode=OneTime}" Width="16" Height="16" />
259-
</DataTemplate>
260-
</DataGridTemplateColumn.CellTemplate>
261-
</DataGridTemplateColumn>
262-
<DataGridTextColumn Header="{Resx ResxName=Rubberduck.Resources.RubberduckUI, Key=CodeInspectionResults_Issue}" Binding="{Binding Description, Mode=OneTime}" />
263-
<DataGridTextColumn Header="{Resx ResxName=Rubberduck.Resources.RubberduckUI, Key=CodeInspectionResults_Location}" Binding="{Binding QualifiedSelection.QualifiedName, Mode=OneTime}" />
264-
</DataGrid.Columns>
265-
<DataGrid.ContextMenu>
266-
<ContextMenu ItemsSource="{Binding PlacementTarget.DataContext.QuickFixes, RelativeSource={RelativeSource Self}}">
267-
<ContextMenu.Resources>
268-
<Style TargetType="{x:Type MenuItem}">
269-
<Setter Property="Icon">
270-
<Setter.Value>
271-
<Image Source="{Binding Fix, Converter={StaticResource QuickFixIconConverter}}" />
272-
</Setter.Value>
273-
</Setter>
274-
<Setter Property="Command" Value="{Binding Command}" />
275-
<Setter Property="CommandParameter" Value="{Binding Fix}" />
276-
<Setter Property="Header" Value="{Binding Description}" />
277-
<Setter Property="Background" Value="Transparent"></Setter>
278-
</Style>
279-
</ContextMenu.Resources>
280-
</ContextMenu>
281-
</DataGrid.ContextMenu>
282-
<i:Interaction.Behaviors>
283-
<controls:GroupItemExpandedBehavior ExpandedState="{Binding ExpandedState, Mode=TwoWay}" />
284-
</i:Interaction.Behaviors>
285-
</controls:GroupingGrid>
286248

287249
<controls:EmptyUIRefresh Grid.Row="1" Visibility="{Binding Unparsed, Converter={StaticResource BoolToVisibility}}" />
288250
<controls:BusyIndicator Grid.Row="1" Width="120" Height="120" Visibility="{Binding IsBusy, Converter={StaticResource BoolToVisibility}}" />

0 commit comments

Comments
 (0)