Top "User-controls" questions

A UserControl is a separate, reusable input control that allows a user to interact with an application.

Inheriting from a UserControl in WPF

I am fairly new to WPF and I am having a problem with inheriting from a user control. I created …

wpf inheritance user-controls
What is the difference between a User Control Library and a Custom Control Library?

I am just coming up to speed on WPF and would like to create a reusable WPF control. When I …

wpf user-controls custom-controls
How to add an event to a UserControl in C#?

I have a UserControl which contains 3 labels. I want to add an event for it, which occurs when the text …

c# winforms events user-controls
How do I access an element of a control template from within code-behind

I'm trying to access a user control which is inside the control template of a content control. Specifically: <ContentControl …

wpf syntax user-controls code-behind
'UserControl' constructor with parameters in C#

Call me crazy, but I'm the type of guy that likes constructors with parameters (if needed), as opposed to a …

c# winforms parameters constructor user-controls
How do I add Dispose functionality to a C# UserControl?

I have a class which implements UserControl. In .NET 2005, a Dispose method is automatically created in the MyClass.Designer.cs …

c# user-controls dispose
Strange Error - CS0012: The type x is defined in an assembly that is not referenced

The type 'x' is defined in an assembly that is not referenced. You must add a reference to assembly 'abc123…

wpf user-controls .net-2.0 assemblies repeater
Can't set focus to a child of UserControl

I have a UserControl which contains a TextBox. When my main window loads I want to set the focus to …

wpf focus user-controls focusmanager
Provide value on 'System.Windows.Markup.StaticResourceHolder' threw an exception

I am using http://blogs.microsoft.co.il/blogs/justguy/archive/2009/01/19/wpf-combobox-with-checkboxes-as-items-it-will-even-update-on-the-fly.aspx?CommentPosted=true#commentmessage example to show selected …

wpf user-controls
Loaded event of a WPF user control fires more than once

To implement a tab-based environment in WPF we need to convert our forms to user controls, however when doing this, …

c# wpf user-controls