3 types derived from DataTemplateSelector
PresentationFramework (2)
MS\Internal\Data\DisplayMemberTemplateSelector.cs (1)
17
internal sealed class DisplayMemberTemplateSelector :
DataTemplateSelector
System\Windows\Controls\ContentPresenter.cs (1)
1142
private class DefaultSelector :
DataTemplateSelector
System.Windows.Controls.Ribbon (1)
Microsoft\Windows\Controls\Ribbon\RibbonGallery.cs (1)
2075
private class RibbonGalleryDefaultFilterItemTemplateSelector :
DataTemplateSelector
116 references to DataTemplateSelector
PresentationFramework (96)
MS\Internal\Helper.cs (1)
374
(templateSelector is System.Windows.Controls.
DataTemplateSelector
||
System\Windows\Controls\ContentControl.cs (9)
121
DataTemplateSelector
itemTemplateSelector,
381
typeof(
DataTemplateSelector
),
384
(
DataTemplateSelector
) null,
396
public
DataTemplateSelector
ContentTemplateSelector
398
get { return (
DataTemplateSelector
) GetValue(ContentTemplateSelectorProperty); }
408
ctrl.OnContentTemplateSelectorChanged((
DataTemplateSelector
) e.NewValue, (
DataTemplateSelector
) e.NewValue);
416
protected virtual void OnContentTemplateSelectorChanged(
DataTemplateSelector
oldContentTemplateSelector,
DataTemplateSelector
newContentTemplateSelector)
System\Windows\Controls\ContentPresenter.cs (8)
299
(
DataTemplateSelector
)null,
310
public
DataTemplateSelector
ContentTemplateSelector
312
get { return (
DataTemplateSelector
) GetValue(ContentControl.ContentTemplateSelectorProperty); }
333
ctrl.OnContentTemplateSelectorChanged((
DataTemplateSelector
) e.OldValue, (
DataTemplateSelector
) e.NewValue);
341
protected virtual void OnContentTemplateSelectorChanged(
DataTemplateSelector
oldContentTemplateSelector,
DataTemplateSelector
newContentTemplateSelector)
589
DataTemplateSelector
itemTemplateSelector,
System\Windows\Controls\DataGrid.cs (6)
1441
public
DataTemplateSelector
RowHeaderTemplateSelector
1443
get { return (
DataTemplateSelector
)GetValue(RowHeaderTemplateSelectorProperty); }
1451
DependencyProperty.Register("RowHeaderTemplateSelector", typeof(
DataTemplateSelector
), typeof(DataGrid), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnNotifyRowAndRowHeaderPropertyChanged)));
3932
public
DataTemplateSelector
RowDetailsTemplateSelector
3934
get { return (
DataTemplateSelector
)GetValue(RowDetailsTemplateSelectorProperty); }
3942
DependencyProperty.Register("RowDetailsTemplateSelector", typeof(
DataTemplateSelector
), typeof(DataGrid), new FrameworkPropertyMetadata(null, OnNotifyRowAndDetailsPropertyChanged));
System\Windows\Controls\DataGridColumn.cs (3)
95
public
DataTemplateSelector
HeaderTemplateSelector
97
get { return (
DataTemplateSelector
)GetValue(HeaderTemplateSelectorProperty); }
105
DependencyProperty.Register("HeaderTemplateSelector", typeof(
DataTemplateSelector
), typeof(DataGridColumn), new FrameworkPropertyMetadata(null, OnNotifyColumnHeaderPropertyChanged));
System\Windows\Controls\DataGridRow.cs (6)
321
public
DataTemplateSelector
HeaderTemplateSelector
323
get { return (
DataTemplateSelector
)GetValue(HeaderTemplateSelectorProperty); }
331
DependencyProperty.Register("HeaderTemplateSelector", typeof(
DataTemplateSelector
), typeof(DataGridRow), new FrameworkPropertyMetadata(null, OnNotifyRowAndRowHeaderPropertyChanged, OnCoerceHeaderTemplateSelector));
370
public
DataTemplateSelector
DetailsTemplateSelector
372
get { return (
DataTemplateSelector
)GetValue(DetailsTemplateSelectorProperty); }
380
DependencyProperty.Register("DetailsTemplateSelector", typeof(
DataTemplateSelector
), typeof(DataGridRow), new FrameworkPropertyMetadata(null, OnNotifyDetailsTemplatePropertyChanged, OnCoerceDetailsTemplateSelector));
System\Windows\Controls\DataGridTemplateColumn.cs (8)
74
public
DataTemplateSelector
CellTemplateSelector
76
get { return (
DataTemplateSelector
)GetValue(CellTemplateSelectorProperty); }
85
typeof(
DataTemplateSelector
),
112
public
DataTemplateSelector
CellEditingTemplateSelector
114
get { return (
DataTemplateSelector
)GetValue(CellEditingTemplateSelectorProperty); }
123
typeof(
DataTemplateSelector
),
132
private void ChooseCellTemplateAndSelector(bool isEditing, out DataTemplate template, out
DataTemplateSelector
templateSelector)
163
DataTemplateSelector
templateSelector;
System\Windows\Controls\GridView.cs (3)
305
typeof(
DataTemplateSelector
),
319
public
DataTemplateSelector
ColumnHeaderTemplateSelector
321
get { return (
DataTemplateSelector
)GetValue(ColumnHeaderTemplateSelectorProperty); }
System\Windows\Controls\GridViewColumn.cs (6)
199
typeof(
DataTemplateSelector
),
213
public
DataTemplateSelector
HeaderTemplateSelector
215
get { return (
DataTemplateSelector
)GetValue(HeaderTemplateSelectorProperty); }
348
typeof(
DataTemplateSelector
),
358
public
DataTemplateSelector
CellTemplateSelector
360
get { return (
DataTemplateSelector
)GetValue(CellTemplateSelectorProperty); }
System\Windows\Controls\GridViewHeaderRowPresenter.cs (2)
110
public
DataTemplateSelector
ColumnHeaderTemplateSelector
112
get { return (
DataTemplateSelector
)GetValue(ColumnHeaderTemplateSelectorProperty); }
System\Windows\Controls\GridViewRowPresenter.cs (2)
342
DataTemplateSelector
dts;
598
DataTemplateSelector
dts;
System\Windows\Controls\GroupStyle.cs (2)
147
public
DataTemplateSelector
HeaderTemplateSelector
227
DataTemplateSelector
_headerTemplateSelector;
System\Windows\Controls\HeaderedContentControl.cs (9)
178
typeof(
DataTemplateSelector
),
181
(
DataTemplateSelector
) null,
192
public
DataTemplateSelector
HeaderTemplateSelector
194
get { return (
DataTemplateSelector
) GetValue(HeaderTemplateSelectorProperty); }
205
ctrl.OnHeaderTemplateSelectorChanged((
DataTemplateSelector
) e.OldValue, (
DataTemplateSelector
) e.NewValue);
213
protected virtual void OnHeaderTemplateSelectorChanged(
DataTemplateSelector
oldHeaderTemplateSelector,
DataTemplateSelector
newHeaderTemplateSelector)
322
DataTemplateSelector
itemTemplateSelector,
System\Windows\Controls\HeaderedItemsControl.cs (9)
172
(
DataTemplateSelector
) null,
183
public
DataTemplateSelector
HeaderTemplateSelector
185
get { return (
DataTemplateSelector
) GetValue(HeaderTemplateSelectorProperty); }
195
ctrl.OnHeaderTemplateSelectorChanged((
DataTemplateSelector
) e.OldValue, (
DataTemplateSelector
) e.NewValue);
203
protected virtual void OnHeaderTemplateSelectorChanged(
DataTemplateSelector
oldHeaderTemplateSelector,
DataTemplateSelector
newHeaderTemplateSelector)
278
DataTemplateSelector
itemTemplateSelector = parentItemsControl.ItemTemplateSelector;
407
DataTemplateSelector
selector = HeaderTemplateSelector;
System\Windows\Controls\ItemsControl.cs (10)
404
DataTemplateSelector
itemTemplateSelector = ItemTemplateSelector;
500
typeof(
DataTemplateSelector
),
503
(
DataTemplateSelector
) null,
515
public
DataTemplateSelector
ItemTemplateSelector
517
get { return (
DataTemplateSelector
) GetValue(ItemTemplateSelectorProperty); }
528
((ItemsControl)d).OnItemTemplateSelectorChanged((
DataTemplateSelector
) e.OldValue, (
DataTemplateSelector
) e.NewValue);
536
protected virtual void OnItemTemplateSelectorChanged(
DataTemplateSelector
oldItemTemplateSelector,
DataTemplateSelector
newItemTemplateSelector)
1747
DataTemplateSelector
itemTemplateSelector = parentItemsControl.ItemTemplateSelector;
System\Windows\Controls\TabControl.cs (8)
161
private static readonly DependencyPropertyKey SelectedContentTemplateSelectorPropertyKey = DependencyProperty.RegisterReadOnly("SelectedContentTemplateSelector", typeof(
DataTemplateSelector
), typeof(TabControl), new FrameworkPropertyMetadata((
DataTemplateSelector
)null));
174
public
DataTemplateSelector
SelectedContentTemplateSelector
178
return (
DataTemplateSelector
)GetValue(SelectedContentTemplateSelectorProperty);
243
public static readonly DependencyProperty ContentTemplateSelectorProperty = DependencyProperty.Register("ContentTemplateSelector", typeof(
DataTemplateSelector
), typeof(TabControl), new FrameworkPropertyMetadata((
DataTemplateSelector
)null));
248
public
DataTemplateSelector
ContentTemplateSelector
252
return (
DataTemplateSelector
)GetValue(ContentTemplateSelectorProperty);
System\Windows\Controls\TabItem.cs (2)
432
protected override void OnContentTemplateSelectorChanged(
DataTemplateSelector
oldContentTemplateSelector,
DataTemplateSelector
newContentTemplateSelector)
System\Windows\HierarchicalDataTemplate.cs (2)
93
public
DataTemplateSelector
ItemTemplateSelector
238
private
DataTemplateSelector
_itemTemplateSelector;
System.Windows.Controls.Ribbon (20)
Microsoft\Windows\Controls\Ribbon\RibbonApplicationMenu.cs (6)
134
public
DataTemplateSelector
FooterPaneContentTemplateSelector
136
get { return (
DataTemplateSelector
)GetValue(FooterPaneContentTemplateSelectorProperty); }
146
typeof(
DataTemplateSelector
),
191
public
DataTemplateSelector
AuxiliaryPaneContentTemplateSelector
193
get { return (
DataTemplateSelector
)GetValue(AuxiliaryPaneContentTemplateSelectorProperty); }
203
typeof(
DataTemplateSelector
),
Microsoft\Windows\Controls\Ribbon\RibbonComboBox.cs (5)
280
DependencyProperty.RegisterReadOnly("SelectionBoxItemTemplateSelector", typeof(
DataTemplateSelector
), typeof(RibbonComboBox),
281
new FrameworkPropertyMetadata((
DataTemplateSelector
)null));
291
public
DataTemplateSelector
SelectionBoxItemTemplateSelector
293
get { return (
DataTemplateSelector
)GetValue(SelectionBoxItemTemplateSelectorProperty); }
505
DataTemplateSelector
itemTemplateSelector = null;
Microsoft\Windows\Controls\Ribbon\RibbonContextualTabGroup.cs (5)
139
typeof(
DataTemplateSelector
),
142
(
DataTemplateSelector
) null));
151
public
DataTemplateSelector
HeaderTemplateSelector
153
get { return (
DataTemplateSelector
) GetValue(HeaderTemplateSelectorProperty); }
410
DataTemplateSelector
itemTemplateSelector,
Microsoft\Windows\Controls\Ribbon\RibbonGallery.cs (4)
319
DataTemplateSelector
filterItemTemplateSelector = gallery.FilterItemTemplateSelector;
2034
public
DataTemplateSelector
FilterItemTemplateSelector
2036
get { return (
DataTemplateSelector
)GetValue(FilterItemTemplateSelectorProperty); }
2045
typeof(
DataTemplateSelector
),