Top "Controltemplate" questions

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

Access ResourceDictionary items programmatically

I have a Silverlight controls assembly, called "MySilverlightControls". Several folders down into that assembly I have a class which extends …

silverlight silverlight-3.0 resources controltemplate resourcedictionary
WPF TextBox.Text with MultiBinding

I've got Custom Control with a TextBox in the default Template. The Custom Control has these 2 dependency properties (among others): …

wpf textbox triggers controltemplate multitrigger
Elegantly override style of ComboBox's ToggleButton in WPF

I have a question regarding how to elegantly override an arbitrary element deep inside a control's visual tree. I also …

wpf templates combobox styles controltemplate
WPF ControlTemplate vs UserControl

I've recently made an UserControl, which took quite a long time, because I had to work with custom Dependency Properties …

wpf mvvm user-controls controltemplate
VisualStateManager -- showing mouseover state when control is focused

I am creating a WPF button using Windows 8 styling (formerly metro). I would like the focused state of the button …

wpf styling controltemplate visualstatemanager
Custom Listbox Scrollbar style Issue

I have the following xaml for WPF ListBox control. I have customized it so suit my UI requirements. However, the …

wpf listbox styles scrollbar controltemplate
How to create a WPF combobox flat style?

I want to create a flat style template for WPF combobox which looks like a combobox in Visual Studio 2010. Also …

wpf combobox styles controltemplate
Binding custom dependency property to custom WPF style

I have an issue when designing a inherited Expander. My intention is to have a progress bar behind the toggle …

c# wpf xaml styles controltemplate
In WPF, why doesn't TemplateBinding work where Binding does?

Ok... this is leaving me scratching my head. I have two WPF controls--one's a user control and the other's a …

wpf binding controltemplate propertychanged templatebinding
Create ControlTemplate programmatically in WPF

How can I programmatically set a button's template? Polygon buttonPolygon = new Polygon(); buttonPolygon.Points = buttonPointCollection; buttonPolygon.Stroke = Brushes.Yellow; buttonPolygon.…

wpf code-behind controltemplate