Top "Contentcontrol" questions

Represents a WPF control which can contain a single piece of content that can be of any type.

What's the difference between ContentControl and ContentPresenter?

I'm not sure when I should use ContentPresenter instead of ContentControl (and vice-versa). At the moment, I'm using ContentControl pretty …

.net wpf contentcontrol contentpresenter
Binding ContentControl Content for dynamic content

I'm currently trying to achieve the functionality of a tabcontrol with hidden tabs by using a ListView (as tabs) and …

c# wpf xaml binding contentcontrol
How to set Control Template in code?

I have this in XAML <ControlTemplate TargetType="{x:Type Button}"> <Image ...> </ControlTemplate> I want …

c# wpf xaml contentcontrol
How to Bind To Data within a Datatemplate of a ContentControl

I have the following simplified Example: <Window x:Class="TemplateBinding.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" …

wpf data-binding datatemplate resourcedictionary contentcontrol
Whats the difference between ContentControl.Template and ContentControl.ContentTemplate

What's the difference between ContentControl.Template and ContentControl.ContentTemplate? And when do I use which? For example I could write …

c# .net wpf xaml contentcontrol
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
Explicitly refresh DataTemplate from a DataTemplateSelector?

I set up a ContentControl.DataTemplateSelector to my desired one. I want that according to a command or whatever, call …

wpf xaml datatemplate contentcontrol datatemplateselector
Binding a ContentControl to UserControl, and reuse same instance

I'm trying to bind a ContentControl's Content to a UserControl I have instantiated in my ViewModel. I cannot use the …

c# wpf xaml binding contentcontrol
WPF - Border template with content

Let's assume I have the following control template: <ControlTemplate x:Key="Test"> <Grid> <Border BorderBrush="{…

xml wpf xaml border contentcontrol
Content control contents sizing to fill in Silverlight 4

I have a style for a ContentControl which I want to use in places where I currently have a Border. …

silverlight contentcontrol