Top "Wpf-controls" questions

WPF controls include UserControls, which are composite collections of other controls, and CustomControls, which are controls built with WPF styles and templates.

Use a user control as a DataTemplate within a WPF application

I am trying to create a user control within a WPF application that will serve as a DataTemplate for a …

wpf user-controls wpf-controls datatemplate
How to get a list of controls in a groupbox in WPF

In standard WinForms development I would do the following: foreach (Control in groupBox1.Controls) { MessageBox.Show(c.Name); } How does …

c# .net wpf wpf-controls groupbox
How to Inherit a Control Template

I working on a WPF project where I've over-ridden the CheckBox control for some special operations. That is working correctly. …

wpf wpf-controls controltemplate
WPF: How to set background of TabItem?

How to set the background of TabItem? I tried the following code: <TabControl> <TabItem Header="Test" Background="…

wpf wpf-controls tabitem
Include a Button in a TextBox

I want to add a little Button, which removes all the text in the TextBox. Is it possible to put …

wpf xaml wpf-controls controltemplate
WPF dataGrid super Header for multiple columns

I want to do Header for multiple columns in WPF DataGrid. I tried with Header template but it will display …

wpf wpf-controls wpfdatagrid wpf-4.0
Stretching a WPF Canvas Horizontally

How do I make a Canvas stretch fully horizontally with variable width? This is the parent Canvas, so it has …

wpf silverlight canvas wpf-controls stretch
Is it possible to rearrange tab items in tab control in wpf?

Is it possible to rearrange tab items in tab control in run time? For example I have 3 tab items which …

wpf wpf-controls wpftoolkit
Stop WPF ScrollViewer automatically scrolling to perceived content

The Application I am building an application which includes a range selector. This consists of two custom drawn Slider controls …

wpf wpf-controls scrollviewer
In WPF, how to add an EventHandler for a FrameworkElement designed in Template?

I have defined the following DataTemplate for ListBox items in an external resource dictionary: <DataTemplate x:Key="MyListBoxItemTemplate" DataType="{…

wpf events wpf-controls frameworkelement