|
22 | 22 | materialDesign:DataGridAssist.CellPadding="13 8 8 8" materialDesign:DataGridAssist.ColumnHeaderPadding="8">
|
23 | 23 | <DataGrid.Columns>
|
24 | 24 | <DataGridCheckBoxColumn Binding="{Binding IsSelected}"
|
25 |
| - ElementStyle="{StaticResource MaterialDesignDataGridCheckBoxColumnStyle}" |
26 |
| - EditingElementStyle="{StaticResource MaterialDesignDataGridCheckBoxColumnEditingStyle}"> |
| 25 | + ElementStyle="{StaticResource MaterialDesignDataGridCheckBoxColumnStyle}" |
| 26 | + EditingElementStyle="{StaticResource MaterialDesignDataGridCheckBoxColumnEditingStyle}"> |
27 | 27 | <DataGridCheckBoxColumn.Header>
|
28 | 28 | <!--padding to allow hit test to pass thru for sorting -->
|
29 | 29 | <Border Background="Transparent" Padding="6 0 6 0" HorizontalAlignment="Center">
|
30 | 30 | <CheckBox HorizontalAlignment="Center"
|
31 |
| - DataContext="{Binding RelativeSource={RelativeSource AncestorType={x:Type DataGrid}}, Path=DataContext}" |
32 |
| - IsChecked="{Binding IsAllItems3Selected}" /> |
| 31 | + DataContext="{Binding RelativeSource={RelativeSource AncestorType={x:Type DataGrid}}, Path=DataContext}" |
| 32 | + IsChecked="{Binding IsAllItems3Selected}" /> |
33 | 33 | </Border>
|
34 | 34 | </DataGridCheckBoxColumn.Header>
|
35 | 35 | </DataGridCheckBoxColumn>
|
36 | 36 | <DataGridTextColumn Binding="{Binding Code}"
|
37 | 37 | Header="Code"
|
38 | 38 | EditingElementStyle="{StaticResource MaterialDesignDataGridTextColumnEditingStyle}" />
|
39 | 39 | <!-- if you want to use the pop up style (MaterialDesignDataGridTextColumnPopupEditingStyle), you must use MaterialDataGridTextColumn -->
|
40 |
| - <materialDesign:MaterialDataGridTextColumn Binding="{Binding Name}" |
41 |
| - Header="Name" |
42 |
| - EditingElementStyle="{StaticResource MaterialDesignDataGridTextColumnPopupEditingStyle}" |
43 |
| - /> |
| 40 | + <materialDesign:DataGridTextColumn Binding="{Binding Name}" |
| 41 | + Header="Name" |
| 42 | + EditingElementStyle="{StaticResource MaterialDesignDataGridTextColumnPopupEditingStyle}" |
| 43 | + /> |
44 | 44 | <!-- set a max length to get an indicator in the editor -->
|
45 |
| - <materialDesign:MaterialDataGridTextColumn Binding="{Binding Description}" |
46 |
| - Header="Description" |
47 |
| - MaxLength="255" |
48 |
| - EditingElementStyle="{StaticResource MaterialDesignDataGridTextColumnPopupEditingStyle}" /> |
49 |
| - <materialDesign:MaterialDataGridTextColumn Binding="{Binding Numeric}" |
| 45 | + <materialDesign:DataGridTextColumn Binding="{Binding Description}" |
| 46 | + Header="Description" |
| 47 | + MaxLength="255" |
| 48 | + EditingElementStyle="{StaticResource MaterialDesignDataGridTextColumnPopupEditingStyle}" /> |
| 49 | + <materialDesign:DataGridTextColumn Binding="{Binding Numeric}" |
50 | 50 | Header="Number with long header"
|
51 | 51 | Width="120"
|
52 | 52 | EditingElementStyle="{StaticResource MaterialDesignDataGridTextColumnPopupEditingStyle}">
|
|
67 | 67 | <Setter Property="HorizontalAlignment" Value="Right" />
|
68 | 68 | </Style>
|
69 | 69 | </DataGridTextColumn.ElementStyle>
|
70 |
| - </materialDesign:MaterialDataGridTextColumn> |
| 70 | + </materialDesign:DataGridTextColumn> |
71 | 71 |
|
72 | 72 | <!-- use custom combo box column to get better combos. Use ItemsSourceBinding as your binding template to be applied to each combo -->
|
73 | 73 | <materialDesign:DataGridComboBoxColumn Header="Food" IsEditable="True"
|
|
0 commit comments