Top "User-controls" questions

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

Is there any way to detect a mouseclick outside a user control?

I'm creating a custom dropdown box, and I want to register when the mouse is clicked outside the dropdown box, …

c# winforms user-controls mouseevent
Can values or parameters be passed into user control?

I haven't used these in awhile. I was just wondering is it possible to pass values or parameters to a …

asp.net user-controls
Binding on DependencyProperty of custom User Control not updating on change

I'm having difficulties with databinding on my custom user control (s). I created an example project to highlight my problem. …

c# wpf data-binding user-controls dependency-properties
Adjusting spacing between usercontrols in a FlowLayoutPanel

I'm building a WinForms application Window (form), inside that I'm using a FlowLayoutPanel, with usercontrols added to this. Now I've …

c# winforms user-controls flowlayoutpanel
Adding children to UserControl

My task Create a UserControl which should be able to contain any visual child which is available in WPF, the …

c# wpf user-controls wpf-controls
Wpf UserControl and MVVM

I am thinking about writing a WPF User Control for my application. I am using MVVM in my application. User …

.net wpf mvvm user-controls dependency-properties
How programmatically dock new element to DockPanel

How programmatically create an element based on UserControl and dock it to the DockPanel?

wpf user-controls dockpanel
DoEvents, Waiting, and Editing

I have a set of code that contains: Application.Wait (Now + TimeValue("4:00:00")) This is essentially pausing the macro for a …

vba user-controls wait doevents
How to create user define (new) event for user control in WPF ?one small example

I have one UserControl in which I am using a Canvas, and in that Canvas one Rectangle. I want to …

wpf events user-controls
Custom attribute in UserControl (*.ascx)?

Supposing I have a user control like this <MyTag:MyWidget runat="server" /> I am wondering if I can …

c# asp.net user-controls