@@ -59,13 +59,12 @@ public class DataGrid : System.Windows.Controls.DataGrid
59
59
) ;
60
60
61
61
/// <summary>Identifies the <see cref="TextColumnElementStyle"/> dependency property.</summary>
62
- public static readonly DependencyProperty TextColumnElementStyleProperty =
63
- DependencyProperty . Register (
64
- nameof ( TextColumnElementStyle ) ,
65
- typeof ( Style ) ,
66
- typeof ( DataGrid ) ,
67
- new FrameworkPropertyMetadata ( null )
68
- ) ;
62
+ public static readonly DependencyProperty TextColumnElementStyleProperty = DependencyProperty . Register (
63
+ nameof ( TextColumnElementStyle ) ,
64
+ typeof ( Style ) ,
65
+ typeof ( DataGrid ) ,
66
+ new FrameworkPropertyMetadata ( null )
67
+ ) ;
69
68
70
69
/// <summary>Identifies the <see cref="TextColumnEditingElementStyle"/> dependency property.</summary>
71
70
public static readonly DependencyProperty TextColumnEditingElementStyleProperty =
@@ -165,7 +164,11 @@ private void UpdateSingleColumn(DataGridColumn dataGridColumn)
165
164
_ = BindingOperations . SetBinding (
166
165
checkBoxColumn ,
167
166
DataGridBoundColumn . ElementStyleProperty ,
168
- new Binding { Path = new PropertyPath ( CheckBoxColumnElementStyleProperty ) , Source = this }
167
+ new Binding
168
+ {
169
+ Path = new PropertyPath ( CheckBoxColumnElementStyleProperty ) ,
170
+ Source = this ,
171
+ }
169
172
) ;
170
173
}
171
174
@@ -179,7 +182,8 @@ private void UpdateSingleColumn(DataGridColumn dataGridColumn)
179
182
DataGridBoundColumn . EditingElementStyleProperty ,
180
183
new Binding
181
184
{
182
- Path = new PropertyPath ( CheckBoxColumnEditingElementStyleProperty ) , Source = this
185
+ Path = new PropertyPath ( CheckBoxColumnEditingElementStyleProperty ) ,
186
+ Source = this ,
183
187
}
184
188
) ;
185
189
}
@@ -195,7 +199,11 @@ private void UpdateSingleColumn(DataGridColumn dataGridColumn)
195
199
_ = BindingOperations . SetBinding (
196
200
comboBoxColumn ,
197
201
DataGridBoundColumn . ElementStyleProperty ,
198
- new Binding { Path = new PropertyPath ( ComboBoxColumnElementStyleProperty ) , Source = this }
202
+ new Binding
203
+ {
204
+ Path = new PropertyPath ( ComboBoxColumnElementStyleProperty ) ,
205
+ Source = this ,
206
+ }
199
207
) ;
200
208
}
201
209
@@ -209,7 +217,8 @@ private void UpdateSingleColumn(DataGridColumn dataGridColumn)
209
217
DataGridBoundColumn . EditingElementStyleProperty ,
210
218
new Binding
211
219
{
212
- Path = new PropertyPath ( ComboBoxColumnEditingElementStyleProperty ) , Source = this
220
+ Path = new PropertyPath ( ComboBoxColumnEditingElementStyleProperty ) ,
221
+ Source = this ,
213
222
}
214
223
) ;
215
224
}
@@ -224,7 +233,8 @@ private void UpdateSingleColumn(DataGridColumn dataGridColumn)
224
233
DataGridBoundColumn . EditingElementStyleProperty ,
225
234
new Binding
226
235
{
227
- Path = new PropertyPath ( ComboBoxColumnEditingElementStyleProperty ) , Source = this
236
+ Path = new PropertyPath ( ComboBoxColumnEditingElementStyleProperty ) ,
237
+ Source = this ,
228
238
}
229
239
) ;
230
240
}
@@ -252,7 +262,11 @@ private void UpdateSingleColumn(DataGridColumn dataGridColumn)
252
262
_ = BindingOperations . SetBinding (
253
263
textBoxColumn ,
254
264
DataGridBoundColumn . EditingElementStyleProperty ,
255
- new Binding { Path = new PropertyPath ( TextColumnEditingElementStyleProperty ) , Source = this }
265
+ new Binding
266
+ {
267
+ Path = new PropertyPath ( TextColumnEditingElementStyleProperty ) ,
268
+ Source = this ,
269
+ }
256
270
) ;
257
271
}
258
272
0 commit comments