Top "Controltemplate" questions

The ControlTemplate allows you to specify the visual structure of a control.

ResourceDictionary in a separate assembly

I have resource dictionary files (MenuTemplate.xaml, ButtonTemplate.xaml, etc) that I want to use in multiple separate applications. I …

.net wpf xaml controltemplate resourcedictionary
How to create a WPF Window without a border that can be resized via a grip only?

If you set ResizeMode="CanResizeWithGrip" on a WPF Window then a resize grip is shown in the lower right corner, …

.net wpf window controltemplate resizegrip
Difference between Control Template and DataTemplate in WPF

What is difference between a ControlTemplate and a DataTemplate in WPF?

wpf datatemplate controltemplate
How can I use an ElementName binding within a ControlTemplate?

I have multiple TextBlocks which reference different elements in my application. My code works fine when used directly in the …

wpf xaml binding controltemplate
Template Binding in Control template

I have the following control template. I wish to set the source property for the image control in the control …

wpf xaml data-binding controltemplate templatebinding
WPF - Bind UserControl visibility to a property

I have a ListView bound to ObservableCollection. Data are loaded from the internet and then added to collection. The download …

c# wpf xaml binding controltemplate
Specify ControlTemplate for ItemsControl.ItemContainerStyle

The following is similar to what I'm trying to accomplish. However, I get the error Invalid PropertyDescriptor value. on the …

wpf itemscontrol controltemplate itemcontainerstyle
Silverlight 3: ListBox DataTemplate HorizontalAlignment

I have a ListBox with it's ItemTemplate bound to a DataTemplate. My problem is I cannot get the elements in …

silverlight listbox datatemplate controltemplate
How to access a WPF control located in a ControlTemplate?

Usually, the WPF controls are declared in the .xaml files and not in the code behind (.xaml.cs files). However, …

wpf controls controltemplate
Creating a ControlTemplate for a DataGridRow in WPF

What I am trying to accomplish is customize the DataGrid control so that each row has rounded corners, no gridlines (…

c# wpf xaml controltemplate