Data templating is a feature of WPF and Xamarin.
I have this requirement, that I have a collection of items (ObservableCollection), but I only want to display the first …
wpf xaml data-binding datatemplateI have a very simple WPF application which displays a ComboBox which binds to a list of classes which represent …
c# wpf combobox datatemplate stylingHow do i add controls to datatemplates programmatically? For Example. Below I've created TextBlock and DataTemplate. TextBlock text = new TextBlock(); …
c# dynamic datatemplate code-behindI have a data-template <Window.Resources> <DataTemplate x:Key="BarChartItemsTemplate"> <Border Width="385" Height="50"> <…
c# wpf xaml datatemplate bar-chartI have the following simplified Example: <Window x:Class="TemplateBinding.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" …
wpf data-binding datatemplate resourcedictionary contentcontrolI have a DataTemplate that represents AppBar buttons that I declare through a collection of custom AppBarCommand objects. public AppBarCommand(…
c# wpf binding datatemplate commandparameterI have a ListBox with it's ItemTemplate bound to a DataTemplate. My problem is I cannot get the elements in …
silverlight listbox datatemplate controltemplateI'm fairly new to XAML but enjoying learning it. The thing I'm really struggling with is binding a property to …
wpf xaml properties binding datatemplateI want to do the following at runtime in code: <DataTemplate x:Key="lightGreenRectangle"> <Rectangle Fill="LightGreen"/&…
wpf telerik datatemplateI'm adding TreeViewItems manually in code behind and would like to use a DataTemplate to display them but can't figure …
wpf xaml treeview datatemplate itemtemplate