Skip to content

Commit

Permalink
Turn off resizing so 0-size bounding rects for resize thumbs in datag…
Browse files Browse the repository at this point in the history
…rid are marked offscreen. (microsoft#282)
  • Loading branch information
rladuca authored Feb 15, 2020
1 parent 5bf3271 commit 37d2149
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
<Grid Grid.Column="0" Grid.ColumnSpan="2" Grid.Row="2" VerticalAlignment="Top" HorizontalAlignment="Left">

<!-- Expense type and Amount table -->
<DataGrid AutomationProperties.Name="Expense report" ItemsSource="{Binding XPath=Expense}" ColumnHeaderStyle="{StaticResource ColumnHeaderStyle}" AutoGenerateColumns="False" RowHeaderWidth="0" >
<DataGrid AutomationProperties.Name="Expense report" ItemsSource="{Binding XPath=Expense}" ColumnHeaderStyle="{StaticResource ColumnHeaderStyle}" AutoGenerateColumns="False" RowHeaderWidth="0" CanUserResizeColumns="False" CanUserResizeRows="False" >
<DataGrid.Resources>
<!--
When using XmlDataProvider, we need to ensure the DataGridRow properly sets the automation name
Expand All @@ -73,7 +73,7 @@
</Style>
</DataGrid.Resources>
<DataGrid.Columns>
<DataGridTextColumn Header="ExpenseType" Binding="{Binding XPath=@ExpenseType}" />
<DataGridTextColumn Header="ExpenseType" Binding="{Binding XPath=@ExpenseType}" />
<DataGridTextColumn Header="Amount" Binding="{Binding XPath=@ExpenseAmount}" />
</DataGrid.Columns>
</DataGrid>
Expand Down

0 comments on commit 37d2149

Please sign in to comment.