@Nubbin

DataGrid auto height?

Все пример ребята, как в DataGrid можно сделать так: Если я открыл окно во весь экран чтобы высота таблиц тоже менялось вот мой DataGrid

<DataGrid x:Name="orders_all"  DockPanel.Dock="Right" 
                               ItemsSource="{Binding OrdersCollection}" 
                              RowEditEnding="orders_all_RowEditEnding" 
                               PreviewKeyDown="orders_all_PreviewKeyDown" PreviewKeyUp="orders_all_PreviewKeyDown"
                               MouseDown="orders_all_MouseDown" Mouse.MouseUp="orders_all_MouseDown" 
                               Loaded="Orders_Loader" MinHeight="245" Width="auto" 
                               ScrollViewer.CanContentScroll="True" 
                               ScrollViewer.VerticalScrollBarVisibility="Auto"
                                ScrollViewer.HorizontalScrollBarVisibility="Auto" Background="White" SelectionChanged="orders_all_SelectionChanged" Margin="10 0 0 0">
                        <DataGrid.Resources>
                            <Style TargetType="{x:Type DataGridColumnHeader}">
                                <Setter Property="VerticalContentAlignment" Value="Stretch" />
                            </Style>
                        </DataGrid.Resources>
  • Вопрос задан
  • 150 просмотров
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы