Top "Controltemplate" questions

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

WPF - MultiTrigger in ControlTemplate, strange behaviour

Okay, I've not done much WPF lately and this is confusing me. I have a Style defined for RadioButton, which …

wpf triggers styles controltemplate multitrigger
wpf error template - red box still visible on collapse of an expander

I'm doing some validation on the DataSource of TextBox that's within an Expander and have found that once a validation …

wpf validation binding controltemplate
WPF Custom Control: TemplateBinding to Image

I am creating a WPF custom control, a Button with an Image and Text. I have added two dependency properties …

wpf image wpf-controls controltemplate templatebinding
WPF - Events on a ControlTemplate?

Does anyone know why I can't set an event on a control template?? For example, the following line of code …

wpf controltemplate routed-events
Default ControlTemplate for Expander

can someone (probably using Blend) provide me a working default ControlTemplate for the WPF Expander? I want to do some …

c# wpf controltemplate expander
RectangleGeometry with relative dimensions... how?

I'm trying to replicate the nowadays so fashionable "reflex" effect on a controltemplate for buttons I'm creating. The basic idea …

wpf controls controltemplate clipping
ContentPresenter.ContentSource vs Content

Basically, I don't understand what the real difference here is: The Microsoft code for TabItem uses: <ContentPresenter ContentSource="Header" ... /&…

wpf xaml controltemplate contentpresenter
WPF: Binding an integer to a TextBlock with TemplateBinding

I have a custom control in WPF. In this I have a DependencyProperty of the type int. In the template …

wpf xaml binding controltemplate
Setting Focus on a Control Within a ControlTemplate (Part 2)

I'm stumped on what must surely be one of the most common WPF requirements. I've read this question but my …

wpf xaml focus controltemplate focusmanager
TabItem header click

I have defined a control template/style for my tab items as follows: <Style x:Key="TabItemStyle" TargetType="{x:…

wpf controltemplate tabitem