user-controls Questions
4
Solved
I am using a WPF tab control to present separate repeated instances of a user control. i.e. Tab1 for Item1 settings, Tab2 for Item2 settings, and so on.
It appears that the radio button group name...
Corked asked 20/5, 2010 at 6:22
14
Solved
Has anyone found a useful solution to the DesignMode problem when developing controls?
The issue is that if you nest controls then DesignMode only works for the first level. The second and lower l...
Speiss asked 29/8, 2008 at 16:37
4
Solved
I have a UserControl which publishes an EventAggregator message in its Loaded event. In order to test this (and get the Loaded event raised) I am currently creating a window and adding the control ...
Afield asked 19/8, 2011 at 22:51
8
Solved
I have a Canvas in which user can add UserControl subclasses containing a form. User should be able to drag these UserControl around the Canvas.
What's the best practice to do this with WPF?
Sniggle asked 29/9, 2009 at 23:11
8
I have a Visual Studio 2008 project that is showing the following warning when using User Controls, and I haven’t been able to find a solution anywhere.
Element <element>is not a known ele...
Cydnus asked 29/1, 2009 at 15:22
5
Solved
I'm trying to create a user control that has a Grid with two rows.
the first row for a title and the second one for a content that will be defined outside the user control such as a Button in our e...
Martial asked 3/5, 2012 at 7:41
2
Solved
I have a UserControl hat contains several elements (ListBoxes, Buttons) and a Popup with ComboBoxes and Buttons.
I tried lost focus on the user contorl, but whenever the focus inside the UserContr...
Meticulous asked 17/9, 2015 at 8:50
5
I need to access the container's DataContext from a UserControl (a grid containing textboxes and a listbox: I need to insert items in this list box) that I created in WPF: which is the best way to ...
Orangery asked 4/7, 2011 at 19:0
3
Solved
So I have another noodle-scratcher (for me anyway).
I'm trying to create my own custom control in a CMS I only have partial source code for (i.e. samples the vendor has supplied to me). Basically I...
Clumsy asked 3/11, 2009 at 6:4
6
Solved
Is there any difference between drop down box and combo box [ HTML ]?
Actually the point is, everytime i say something like: "there is some problem with the combo box", my senior says: "that's no...
Interferometer asked 1/2, 2010 at 11:29
4
Solved
To implement a tab-based environment in WPF we need to convert our forms to user controls, however when doing this, the Loaded event of the user control is called two times.
While searching on the...
Disini asked 6/8, 2010 at 5:51
3
I put a DataGridView in a UserControl and create a public property in my usercontrol that exposes datagridview's columns property.Here is the sample code:
public partial class UserControl1 : UserC...
Diplocardiac asked 9/2, 2016 at 6:19
3
Solved
I am just coming up to speed on WPF and would like to create a reusable WPF control.
When I look at the options for creating projects in Visual Studio, I see "WPF User Control Library" and "WPF C...
Meneses asked 30/4, 2009 at 16:5
3
Solved
I must be missing something really obvious. I'm quite new to C# but have been programming in C/C++ for years, so sorry if it IS something blindingly obvious ;)
[See Edit for newer problems]
I'm t...
Falsetto asked 20/3, 2012 at 14:49
18
I am using using VS2010 and if I have a form open in designer mode and run my application the designer tab will no longer show the form designer but instead an error will be displayed (and it is on...
Comfort asked 18/2, 2011 at 1:53
7
Solved
I'm creating a custom dropdown box, and I want to register when the mouse is clicked outside the dropdown box, in order to hide it. Is it possible to detect a click outside a control? or should I m...
Mishear asked 18/4, 2011 at 10:4
10
Solved
I have a DataTable which has 5 columns:
ID
Name
Account Number
Branch
Amount
The DataTable contains 5 rows.
How can I show the sum of the Amount Column in a Label Control as "Total Amount"?
Sumatra asked 5/5, 2011 at 5:18
3
I'm looking to set a UserControl to be the Content of another UserControl in XAML, in the same way you can set a Button's Content to be anything.
Let's say my "outer" UserControl looks like this:
...
Gower asked 16/10, 2010 at 17:36
3
Solved
I have one UserControl in which I am using a Canvas, and in that Canvas one Rectangle. I want to create a click event for that user control (Canvas and Rectangle) which I then want to use in the ma...
Oulman asked 19/11, 2012 at 5:2
2
Solved
I have a wpf user control I created that contains a label. The label's foreground setting changes based on some code that checks a number of conditions. The label in my control is displaying the wr...
Millsap asked 14/12, 2014 at 23:15
11
Solved
I'm in an ASP.NET UserControl. When I type Control-K, Control-D to reformat all the markup, I get a series of messages from VS 2008:
"Could not reformat the document. The original format was resto...
Beltane asked 16/9, 2008 at 18:11
9
Solved
I have a page that contains a user control within an update panel. $(document).ready(function() ) { is called and executes the code correctly when the page firsts loads but if the user clicks a but...
Baneful asked 6/3, 2012 at 15:40
7
From a custom control based on TextBox, I created a property named Items, in this way:
public class NewTextBox : TextBox
{
public ItemCollection Items { get; set; }
}
When using the custom cont...
Barn asked 11/7, 2012 at 15:12
3
Solved
I'm using the form designer in VS.
I placed a label on my form, and then deleted it's text.
Currently, I can not locate the label.
How do I see a list of controls associated with a given class?
Boutonniere asked 30/6, 2010 at 17:57
7
Solved
I have a C++ 'Control Library Project' compiled using /CLR. Inside this project there is a User Control that makes a call to a native DLL. This user control appears in the designer toolbox as it sh...
Least asked 21/1, 2011 at 4:42
© 2022 - 2024 — McMap. All rights reserved.