Top "Datatemplateselector" questions

How to properly reference a class from XAML

OK, this is a super super noob question, one that I'm almost embarrassed to ask... I want to reference a …

c# wpf xaml class datatemplateselector
Change Data template dynamically

I have a item control which is bound to Tasks. Each task has task state. I have defined different data …

wpf triggers datatemplateselector datatemplate
How to trigger DataTemplateSelector when property changes?

I have ContentPresenter with DataTemplateSelector: ... public override DataTemplate SelectTemplate(object item, DependencyObject container) { var model = item as ItemControlViewModel; if (model.…

c# wpf datatemplateselector
WPF: Reapply DataTemplateSelector when a certain value changes

So here is the XAML that I have: <ItemsControl ItemsSource="{Binding Path=Groups}" ItemTemplateSelector="{Binding RelativeSource={RelativeSource AncestorType=Window}, …

c# wpf binding datatemplateselector
Dynamic in xaml Data Template selector

Ok I found this wonderful idea on code project. link The idea is great add all your data templates to …

wpf datatemplateselector
ContentControl with DataTemplateSelector - help needed

I got an enoying problem... Maybe someone can (please!) help. I am using a model that has and enumeration of …

wpf datatemplate contentcontrol datatemplateselector
Explicitly refresh DataTemplate from a DataTemplateSelector?

I set up a ContentControl.DataTemplateSelector to my desired one. I want that according to a command or whatever, call …

wpf xaml datatemplate contentcontrol datatemplateselector
How do I use a ItemTemplateSelector together with a HeaderTemplate in a WPF ListView?

Suppose the following XAML defined window: <Window x:Class="LayoutTests.Window1" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" …

wpf listview datatemplate datatemplateselector
ControlTemplate with DataTrigger Vs. DataTemplate with DataTemplateSelector

I have a generic control which displays an editor based on the type property inside a ViewModel. Currently it's implemented …

wpf datatemplate controltemplate datatrigger datatemplateselector
WPF: Find Resources from UserControl within DataTemplateSelector class

I know there is this thread: How to find a resource in a UserControl from a DataTemplateSelector class in WPF? …

wpf user-controls resources datatemplateselector