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
3
votes
3 answers

Bind SelectedValue of UserControl to ViewModel

In my solution; I have two projects: One is a WPF UserControl Library, and the other is a WPF Application. The usercontrol is pretty straightforward; it's a label and a combo box that will show the installed printers. In the WPF application; I want…
Jim B
  • 8,344
  • 10
  • 49
  • 77
3
votes
2 answers

what is ew:CalendarPopup control in aspx

I took a code from my friend. this code contains this element in the aspx page:
Marco Dinatsoli
  • 10,322
  • 37
  • 139
  • 253
3
votes
1 answer

c# usercontrol setting list of options for custom property

I am trying to create a custom collapsible panel for use in one of my projects. I have it set up to display which sides should be able to collapse, and it takes a string input {"None", "Up", "Right", "Down", "Left", "All"};. Here is what I have so…
3
votes
1 answer

ASP.Net User Control Event Bubbling (C#)

Many thanks in advance. I've done my due diligence and researched for 2 days, but can't seem to wrap my mind around what online tutorials describe. The situation: Lead Programmer ups and quits. Owner of firm knows I've done some (novice) VB.NET on…
Daniel
  • 75
  • 3
3
votes
2 answers

How can I make a draggable/adjustable ROI in OpenCV/Python?

Prior to performing my processing algorithm on an image, I need the user to click-draw a circle to create a clipping mask using the mouse. This mask will be used to remove areas of the image that will cause my algorithm to fail. How can I allow the…
user391339
  • 8,355
  • 13
  • 58
  • 71
3
votes
1 answer

Binding two UserControls to the same DataContext, or ViewModel?

I am working on a UserControl, which is composed of a Chart panel and another area which manipulates some of the chart data i.e. the chart controls (change color of graph, enable or disable stuff on the chart, etc.). I use a ViewModel to manage the…
Nicros
  • 5,031
  • 12
  • 57
  • 101
3
votes
1 answer

windows phone 8 map not displaying in user control

I want to implement an 'attach location' feature in my application. I've decided to create a user control and put my map in it, then upon a certain button click I show this control in a full screen popup/custom message box. The problem is that…
NadaNK
  • 782
  • 2
  • 10
  • 26
3
votes
2 answers

How to disable resizing of user control in WPF

I have Usercontrol.I want to disable its resizing. The usercontrol is:
UserK
  • 33
  • 1
  • 3
3
votes
2 answers

Error adding usercontrol to winform

I am trying to add a usercontrol to my winform. When I try to do this I get an error: I have tried to recreate both the form and usercontrol, but the error keeps showing up. Really bothered with this because I can not continue my project this…
Matthijs
  • 3,162
  • 4
  • 25
  • 46
3
votes
2 answers

IsVisibleChanged is not triggered when TabItem visibility is programatically updated

I have a tab control with three tabs, two of which are have Visibility set to collapsed when the program starts, becomes visible under certain conditions, and can later become collapsed again. If the TabItem being collapsed is the currently selected…
BobbyA
  • 2,090
  • 23
  • 41
3
votes
1 answer

UserControl exposing multiple content properties! How exciting that would be!

I am trying to create a UserControl that will hopefully be able to expose multiple content properties. However, I am ridden with failure! The idea would be to create this great user control (we'll call it MultiContent) that exposes two content…
Andrew Garrison
  • 6,977
  • 11
  • 50
  • 77
3
votes
1 answer

Styling a UserControl in WPF from another assembly

I have a WPF user control defined in an application assembly. I'm trying to style the user control based on styles in another (skin or theme) assembly. I don't want the theme/skin assembly which contains the resourcedictionary with all the styles…
devdigital
  • 34,151
  • 9
  • 98
  • 120
3
votes
1 answer

Draw ListView column headers separators?

I'm trying to draw the column headers of a Listview in details mode. This code: Public Sub Me_DrawColumnHeader(ByVal sender As Object, ByVal e As DrawListViewColumnHeaderEventArgs) _ Handles Me.DrawColumnHeader e.DrawDefault = False ' Set…
ElektroStudios
  • 19,105
  • 33
  • 200
  • 417
3
votes
2 answers

Custom ListViewItem in ListView

possible ways to show item in ListViewItem WPF Update: that's the control i need to add to the ListView, in here i only need to display the Computer Name, still the item should hold the Computer Address later, i will need ListView with Items that…
Murhaf Sousli
  • 12,622
  • 20
  • 119
  • 185
3
votes
4 answers

Programmatically adding a user control in ASP.NET

I have a user control that needs to load a child control when a button is clicked. The trouble is that it has to request the control from another class. So in the button click event, I call the function to get me my control, and add it to the page,…
Fiona - myaccessible.website
  • 14,481
  • 16
  • 82
  • 117