Questions tagged [user-controls]

A UserControl is a separate, reusable input control that allows a user to interact with an application. User controls can be buttons, checkboxes, input text boxes, mice, keyboards, etc.

A UserControl is a separate, reusable input control that allows a user to interact with an application. User controls can be buttons, checkboxes, input text boxes, mice, keyboards, etc.

User controls only exist on graphical systems or applications. For example, a HTTP service application does not contain user controls; its input is usually by means of a configuration file or a separate application providing it input.

10278 questions
20
votes
3 answers

How to fire Unload event of Usercontrol in a WPF window

I have an UserControl in WPF:
davymartu
  • 1,393
  • 3
  • 15
  • 34
20
votes
3 answers

C# UserControl Visible Property Not Changing

Debug.WriteLine(ucFollow.Visible); ucFollow.Visible = true; Debug.WriteLine(ucFollow.Visible); ucFollow is a custom UserControl, nothing fancy. The above code prints out: False False Worst part is, this does toggle the actual visibility of the…
sichinumi
  • 1,835
  • 3
  • 21
  • 40
19
votes
2 answers

Override a property defined in base class

I have case where the class hierarchy is something like this, +---------------+ | UIElement | |---------------| +----------------------+ | ... | | My Windows…
Ajai
  • 3,440
  • 5
  • 28
  • 41
19
votes
3 answers

Image Button only responds when clicking on the image and not the area around inside the button

I'm using the following button style which takes away the borders and makes a transparent background to make my image buttons: