Just attaching to the DataGrid , this control is created:

 <DataGrid ItemsSource="{Binding RecordVms}" Style="{StaticResource AzureDataGrid}" RowStyle="{DynamicResource DataGridRowStyleStateGreen}"> 

How to write a DataGridComboBox so that it looks exactly the same and can be attached to it? Or you can somehow see what code is generated in xaml ?

enter image description here

    1 answer 1

    one.

     <DataGrid ItemsSource="{Binding }"> <DataGrid.Columns> <DataGridTextColumn Header=" " Binding="{Binding }"/> <DataGridTextColumn Header=" " Binding="{Binding }"/> <DataGridComboBoxColumn Header=" " ItemsSource="{Binding }"/> <DataGridCheckBoxColumn Header=" " Binding="{Binding }"/> <DataGrid.Columns> </DataGrid> 
    1. You can use Snoop to view the generated xaml code.

      Usage example