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
2 answers

Pass listbox selected item information through to usercontrol (WPF)

I have a listbox, and each listbox item is a custom usercontrol I made. I have used styles to remove all of the default highlighting for a listbox item (ie. removing the blue background highlight for a selected item). What I want is to be able to do…
theqs1000
  • 357
  • 3
  • 7
  • 18
3
votes
1 answer

Problems binding value to a usercontrol

I'm having some issues with a usercontrol. I have been at it for many hours, so have to ask for help now. If I call the user control from the mark-up page like this:
Darkmage
  • 1,583
  • 9
  • 24
  • 42
3
votes
1 answer

Loop Items in WPF ItemsControl or ScrollViewer via Animation?

When moving through items in an ItemsControl or ScrollViewer, can I loop the contents so that the first item comes "after" the last item (as perceived by the user)? I have a custom ScrollViewer that will animate between selections, which currently…
Nicholas Pappas
  • 10,439
  • 12
  • 54
  • 87
3
votes
1 answer
3
votes
1 answer

ASP.NET User Controls - Problem adding multiple instances programmatically?

I have created a user control which basically consists of 3 text boxes. I want to allow the user to click a hyperlink which will add a new instance of the user control onto a PlaceHolder. This seems to be working as I populate one of the text box…
James
  • 80,725
  • 18
  • 167
  • 237
3
votes
2 answers

Error when passing friend class as type from public class to friend base class

Disclaimer: I am fairly new to working with generics so I am not entirely sure if what I am trying to do even makes sense or is possible. I have a bunch of user controls in a project. All of these user controls share a similar property so I want to…
jbabey
  • 45,965
  • 12
  • 71
  • 94
3
votes
1 answer

ASP.NET MVC: Passing a user control a list of 'something'

I'm wanting to have a strongly typed user control that accepts the class PaginatedList What will my signature for this user control look like and how do I render it? At the moment I have this as my signature for the user control: <%@ Control…
ajbeaven
  • 9,265
  • 13
  • 76
  • 121
3
votes
1 answer

VB6, ActiveX: Cannot create reference to OCX

I have a little problem with the creation of a user control. Though I have made a control I want to use in another control. As soon as I want to add the reference (would like to use it as compiled OCX) in the Component's list, the message…
Atmocreations
  • 9,923
  • 15
  • 67
  • 102
3
votes
1 answer

WPF: Error getting UserControl into ToolBox

I can remember that some time ago when I created a UserControl in Visual Studio 2008 the USerControls automatically appeared in the ToolBox. Now they don't. If use "Choose Items.." on the ToolBox I get the error message "The given assembly name or…
codymanix
  • 28,510
  • 21
  • 92
  • 151
3
votes
3 answers

how to validate composite controls

Alright, this is a little bit complicated. I have a composite control that contains textbox, required field validator and a button. It is exposing a property called ValidationGroup. It applies the ValidationGroup property to textbox , required field…
Bilal Fazlani
  • 6,727
  • 9
  • 44
  • 90
3
votes
3 answers

Loading UserControl to ItemsControl with MVVM

I have a UserControl which I would like to load multiple times on my MainWindow. For this I use an ItemsControl:
PitAttack76
  • 2,120
  • 5
  • 31
  • 44
3
votes
1 answer

How to make a UserControl remove itself at runtime (in WPF)?

I have made a userControl consisting a few labels and checkboxes and an "x" button for removing itself when clicked. Considering that in my WPF application, the user can dynamically put as many of this userControl at runtime as he wants, AND that…
Ali
  • 1,152
  • 2
  • 14
  • 33
3
votes
3 answers

Referencing DataItem of parent Repeater control inside a User Control

I need to place a user control into the template of a repeater control and reference data items from the repeater's datasource. I tried (ignore the second cast which is specific to the CMS platform I'm using): <%#…
Niluse
  • 31
  • 1
  • 2
3
votes
1 answer

How bind DependencyProperty of User Control in HeaderTemplate WinRT XAML?

I have a gridView, and binding my ObservableCollection different class items for my hub page. Binding different class items to gridView and showing different item Data Templates, Header Templates. I using User Control in Header Template in gridview.…
3
votes
2 answers

Sessions not persisting?

I'm at my wits end. My code isn't keeping track of sessions in C# I'm using a user control which should pick up the session data, but it doesn't. Here's the user control: [Serializable] public partial class studentComments :…
Moe45673
  • 854
  • 10
  • 20
1 2 3
99
100