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

Passing parameters to a User Control

We are trying here to localize our user control basically we want to be able to do something like this : The way we do this is by page level and send it to master that then send it to the…
Erick
  • 5,969
  • 10
  • 42
  • 61
3
votes
2 answers

TabControls containing different user controls using MVVM

I am making a WPF application following MVVM. What I want in my application is that there is a View which contains some common buttons and text boxes and a TabControl. TabControl will basically host different UserControls. So for each UserControl I…
fhnaseer
  • 7,159
  • 16
  • 60
  • 112
3
votes
2 answers

WPF Passing data object from Main application UI to user control

I have user controls defined to represent the contents of tab items so as to split up a large XAML file into smaller files. I would like to pass reference to a data object from the main UI class to the user controls. I understand that…
user1400716
  • 1,126
  • 5
  • 13
  • 32
3
votes
2 answers

Eclipse - General usage of hopping between multiple files

I have 3 projects in my eclipse and all are related. So I need to work on all files from all 3 projects. What is the best way to switch between files? I keep opening files with Ctrl+Shift+R, search and open the files. But too many files pile up in…
Kevin Rave
  • 13,876
  • 35
  • 109
  • 173
3
votes
2 answers

Data-bound UserControl in ListBox.ItemTemplate

I have a simple class Product and a UserControl named ProductSummaryControl. ProductSummaryControl displays the details for a Product class that is passed in to its DataContext. I have verified that this works when I set up the control and its…
Dan Bryant
  • 27,329
  • 4
  • 56
  • 102
3
votes
4 answers

How to move the cursor between textboxes using arrow keys?

I have several TextBoxes and I want the cursor to move from one TextBox to another using arrow keys. How can I do that? It looks like this, also the tap moves vertically which is weird. Thanks.
Liban
  • 641
  • 5
  • 19
  • 32
3
votes
2 answers

What are the advantages/disadvantages of the different ways of binding content in a WPF UserControl to its properties?

When starting to work with WPF UserControls, I stumbled upon several ways to bind content of a UserControl to one of its properties. Here's example C# code for my control: public sealed partial class MyUserControl : UserControl { public…
Hauke P.
  • 2,695
  • 1
  • 20
  • 43
3
votes
1 answer

c# UserControl base class inheritance

I have a base class call PopupWindow which inherits from UserControl. PopupWindow has no associated xaml page, its just a regular class which inherits from UserControl I then have another UserControl which inherits from PopupWindow. Now this is a…
There is no spoon
  • 1,775
  • 2
  • 22
  • 53
3
votes
3 answers

How to stop the flickering of Panels containing multiple controls

I have some questions regarding flickering and the general flow of UI updates when multiple objects are involved. Background: We use a C# assembly inside a Progress ABL application to drive the UI. Additionally we use Infragistics controls, as they…
JGR
  • 83
  • 1
  • 9
3
votes
1 answer

ASP.NET - Server control output cache

Is it possible to change the output cache and it's duration for specific control, from code-behind? I mean, let's say I have control News.ascx that has: <%@ OutputCache Duration="60" VaryByCustom="language" %> Now I want to write somewhere some…
Alex Dn
  • 5,465
  • 7
  • 41
  • 79
3
votes
1 answer

StaticMenuItemStyle vs. StaticSelectedStyle - Does one overwrite the other?

I am building a custom asp:menu control in ASP.NET using C# code behind. It is based on the sitemap to my website. Here's the basics of the menu: <%@ Control language="C#" autoeventwireup="true" codefile="Control.ascs.cs" inherits="menuClass"…
TahoeWolverine
  • 1,749
  • 2
  • 23
  • 31
3
votes
4 answers

Winform not rendering control alterations

I've created a winform in c#, I have 3 controls on the pages and another control and is created programmatically on one of the original controls. It's not rendering, so I Changed the background colours of the other controls (they are all bright…
Sara
  • 612
  • 5
  • 21
3
votes
2 answers

Display a busy indicator while waiting for an initialization of a usercontrol

My app needs to load a usercontrol in the MainWindow on startup. However the initialization of the usercontrol is slow. (not because of loading business data, I already separate the UI from business layer) What I want to do is while waiting for the…
user2127480
  • 4,623
  • 5
  • 19
  • 17
3
votes
5 answers

Why is my DependencyProperty not accessible?

I have a user control called AlarmSettings, the user control's resource dictionary contains an instance of my custom class "AlarmClock", the AlarmClock has a dependency property called AlarmName, why do I get the error Error "The member "AlarmName"…
3
votes
1 answer

Custom Controls within Panels within aspx pages. ASP.NET

Long time listener, first time caller! I have an ASXP page that has a panel. When I click a button on the master ASPX page some code is run that loads a custom ascx control into the panel. When the master page initially loads a "home" control is…