Top "Contentpresenter" questions

How to use a ContentPresenter inside a UserControl

I'd like to create a UserControl (in this case a square-Button with defined Backgroundcolors) which can host it's own content. …

c# wpf xaml user-controls contentpresenter
Display image in content presenter in button

I have a button with a style that displays an image inside it. I would like to be able to …

wpf button contentpresenter
Simple popup dialog in WPF (overlay inside Window)

I'm working on a modal dialog popup (I'm not sure about the exact UX term) that is displayed inline, inside …

c# .net wpf xaml contentpresenter
WPF 4 ContentPresenter TextWrapping style is not applied to implicitedly generated TextBlock

If I assign a piece of text to the Content property of a ContentPresenter, a TextBlock control is generated by …

wpf styles contentpresenter
How to customize and reuse a DataGridColumnHeader style?

I'm trying to customize the column headers of a DataGrid to show sub-column headers as in the following screenshot: I've …

c# silverlight datagridtemplatecolumn contentpresenter
WPF DataGridCell Template with TextBlock - Binding?

i replace the ContentPresenter in the DataGridCell's Template with a TextBlock an now i search for the correct Binding to …

wpf replace textblock contentpresenter datagridcell
How do I load a UserControl into a ContentPresenter within a (WPF) Window?

I have a window that contains a Viewbox. In that Viewbox, I would like to have one of several views …

wpf mvvm user-controls contentpresenter
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
Does anyone have a simple example of a UserControl with a single ContentPresenter?

So far, I have this: <UserControl x:Class="MyConcept.ExpanderPanel" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:…

wpf xaml user-controls contentpresenter