Top "Datatemplate" questions

Data templating is a feature of WPF and Xamarin.

WPF DataTemplate - x:Key vs DataType="{x:Type XXXX")

I have a DataTemplate that I want to find using the FrameworkElement.FindResource(). To do that I need to have …

wpf xaml datatemplate
Always show FooterTemplate, even no data

Is there a short way to make a FooterTemplate (in a GridView) always visible, even when DataSource is empty?

asp.net gridview datatemplate visible data-controls
Selecting DataTemplate based on sub-object type

I want to databind an ItemsCollection, but instead of rendering the collection items, I want to render sub-objects reached via …

wpf datatemplate itemscontrol
Binding DataGrid Column DataTemplate to Attached Property

I am trying to customize a DataGridColumnHeader to show multiple text fields instead of showing only the header text provided …

wpf datatemplate datagridcolumn datagridcolumnheader
Binding to viewmodel from inside a datatemplate

I have multiple videos displayed they are bound with a videocollection in Mainviewmodel. Everything works fine untill I try to …

wpf binding viewmodel datatemplate itemtemplate
How to use template binding inside data template in custom control (Silverlight)

I am trying to create control which will take ItemsSource and InnerTemplate and will show all the items wrapped in …

silverlight datatemplate templatebinding
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
Style within DataTemplate is only being applied to the last item in ItemsControl?

In the XAML below, I have an ItemsControl that has three DataObjects. I use a DataTemplate to display DataObjects as …

wpf xaml styles datatemplate itemscontrol
Focus on a TextBox in a DataTemplate

I have DataTemplate containing a TextBox. I'm setting this template to a listbox item on a selection. I'm unable to …

wpf textbox focus datatemplate
TextBlock text wrapping in GridViewColumn.CellTemplate not working

I am having problems getting the TextWrapping to work in this example. Can anyone see what I am duing wrong …

wpf datatemplate textblock word-wrap gridviewcolumn