<Window x:Class="Control_DB_Railway.Views.DataGrid_Station"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:local="clr-namespace:Control_DB_Railway.Views"
        mc:Ignorable="d"
        Title="Таблица 'Станции'" 
        Height="500" 
        Width="600">
    
    <Grid>

        <DataGrid x:Name="dataGrid_Stations">
            <DataGrid.Columns>
                
                
                <DataGridTextColumn Binding="{Binding stationID}"
                                    ClipboardContentBinding="{x:Null}"
                                    Header="Код"/>

                <DataGridTextColumn Binding="{Binding nameStation}"
                                    ClipboardContentBinding="{x:Null}"
                                    Header="Название станции"/>

                <DataGridTextColumn Binding="{Binding location}"
                                    ClipboardContentBinding="{x:Null}"
                                    Header="Местоположение"/>
                
                <DataGridTextColumn Binding="{Binding overheadTransition}"
                                    ClipboardContentBinding="{x:Null}"
                                    Header="Присутствие надземного переход"/>

                <DataGridTemplateColumn Header="Изображение" Width="150">
                    <DataGridTemplateColumn.CellTemplate>
                        <DataTemplate>
                            <Image Margin="0" Source="{Binding Path=image}"/>
                        </DataTemplate>
                    </DataGridTemplateColumn.CellTemplate>
                </DataGridTemplateColumn>
                
            </DataGrid.Columns>
        </DataGrid>
        
    </Grid>
    
</Window>
