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
1 answer

Open User Control in a grid in main Window - WPF

I'm writing now an app with WPF and trying to remember things I did long time ago. I'm trying to have a window with 4 buttons that I will navigate with them through the app. My code:
SigmaOmega
  • 839
  • 1
  • 10
  • 13
3
votes
1 answer

WPF: Binding to my custom control doesn't update

I've created an user control to "Browse" for file, it is basically composed of one textbox and one button. It has several properties, allowing me to select either a directory, an existing(open file dialog) or an inexisting file(save file dialog),…
J4N
  • 19,480
  • 39
  • 187
  • 340
3
votes
2 answers

user controls and asp.net mvc

Here is one trivial question, that I am not sure how to handle. I need to display list of categories on every page, and to be able to choose items from a specific category to be displayed. I use asp.net MVC, and have chosen to create a user control…
Dragan Panjkov
  • 4,302
  • 4
  • 28
  • 26
3
votes
3 answers

how can i use javascript pageLoad() event with each user control at one aspx page?

I've got one aspx page with multiple usercontrols. Page is like this,
tessa
  • 45
  • 1
  • 6
3
votes
1 answer

forward DependencyProperty to control contained in User Control

I'm trying to make a user control that has a few DependencyProperties which are forward to child controls in the user control. After a few trys I got this to work. For testing a made a small example. In the example I have a user control named Ctrl…
Andreas Wallner
  • 255
  • 2
  • 15
3
votes
1 answer

License for components in ASP.NET

I want to create a license system for some components (in DLL format) for ASP.NET , and I have not any ideea of about how to do this thing. I can use the unique series of car (such as HDD's series), so it would be a pretty difficult task.
Alin Popa
  • 211
  • 2
  • 4
  • 14
3
votes
3 answers

WPF & C#: Create an override for a datagrid within a user control?

I have a large WPF application where I have a datagrid within a user control and I need to create an override for OnCreateAutomationPeer. I am having trouble doing that and the event never seems to fire. In my code-behind I have something similar…
Unknown Coder
  • 6,625
  • 20
  • 79
  • 129
3
votes
1 answer

Binding a List to a UserControl Property

I'm having a bit of trouble getting my User Control to bind to a List<>. It works great when I attempt to do something like: public string Map { get { return (string)GetValue(MapProperty); } set { SetValue(MapProperty, value); …
Runewake2
  • 471
  • 1
  • 7
  • 16
3
votes
1 answer

How do I get the selected value of a dropdownlist usercontrol located inside of the insertitemtemplate of my formview?

I'm a .NET newbie, but here is my question: I have an application that makes use of Master Pages. I have a page that has a formview on it used to input address information. In the insertitemtemplate is a usercontrol that I am referencing. This…
3
votes
1 answer

Dependency Properties' PropertyChangedCallback not getting called

If have an own user control with a DependencyProperty and the corresponding callback method like below: public partial class PieChart : UserControl { public static readonly DependencyProperty RatesProperty = DependencyProperty.Register("Rates",…
schoola
  • 704
  • 6
  • 12
3
votes
1 answer

How do I scale path geometry to fit a viewbox without scaling the line width?

I want to draw a user control with content displayed. Essentially I want a custom box around whatever the content is. I want that box to scale, so I am using a viewbox. Unfortunately, the viewbox transforms the entire displayed control, not just…
Jeremy White
  • 901
  • 2
  • 9
  • 21
3
votes
3 answers

How do I set a default value for a ASPX UserControl property?

I have a user control defined on an page as follows: I am wanting to reuse the same control on a different page with a custom property as follows:
mezoid
  • 28,090
  • 37
  • 107
  • 148
3
votes
1 answer

ASP.NET Custom control with content templates

I creating the "clone" of LoginView ASP.NET control in ASP.NET 3.5, for our company needs and I'm trying to understand how it achieved the ability to set controls with same ID in different templates. For example this is ASPX markup with LoginView…
Alex Dn
  • 5,465
  • 7
  • 41
  • 79
3
votes
3 answers

Select UserControl from FlowLayoutPanel

I have set up UserControls in a FlowPanelLayout with the help in this question: For Each DataTable Add UserControl to FlowLayoutPanel I am now trying to implement a click event which allows me to put a border around the UserControl that has been…
hshah
  • 842
  • 4
  • 14
  • 35
3
votes
1 answer

How to add designer support for Point property on custom control?

I have a custom control with a property called Offset that is type PointF. I want to be able to edit the property from the Form Designer (it is currently disabled). I read that I must add the EditorAttribute which points to a class derived from…
craigrs84
  • 3,048
  • 1
  • 27
  • 34
1 2 3
99
100