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