Top "Datatemplate" questions

Data templating is a feature of WPF and Xamarin.

How to display search results in a WPF items control with highlighted query terms

I'd like to display search results within a WPF ItemsControl with the query terms highlighted. The search engine I use, …

wpf xaml datatemplate itemscontrol
'Cannot find governing FrameworkElement...' warning when binding inside DataTemplates

I'm getting this warning in Visual Studio output window when binding on a SolidColorBrush property inside a DataTemplate: System.Windows.…

wpf warnings datatemplate
sorting a bound ItemsControl in a DataTemplate (XAML only)

Is there a XAML only way to automatically sort the bound items (list of ViewModel object) ItemsControl based on one …

wpf sorting datatemplate itemscontrol collectionviewsource
How to bind DataTemplate datatype to interface?

I am writing a composite loosely coupled MVVM WPF application and child VMs in a parent VM are interfaces rather …

wpf types interface bind datatemplate
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
How-to define Empty DataTemplate for the ItemsControl based controls like ListView or DataGrid

ASP.NET controls like ListView allows providing a custom template by setting the ListView.EmptyDataTemplate property, this template will be …

.net wpf xaml datatemplate itemscontrol
GridViewColumn CellTemplate Code Behind

I have a listView that I construct at run-time, i.e. the columns are not known at compile-time. I would …

wpf listview datatemplate code-behind gridviewcolumn
Design time data for datatemplate in xaml

This may be a stupid question, but is it possible to define some sample data as DataContext in order to …

wpf xaml datatemplate designview
ContentTemplateSelector is only called one time showing always the same datatemplate

I have made a sample demo VS 2010 RC sample project, because in my production project I have the same error …

wpf datatemplate contenttemplateselector
WPF TextBox.SelectAll () doesn't work

I have used the following template in my project: <DataTemplate x:Key="textBoxDataTemplate"> <TextBox Name="textBox" ToolTip="{…

textbox wpf-controls datatemplate selectall