So, this is the issue:
I have a Windows Forms User Control that I placed in main Window of my WPF application. I override paint method of User Control. It paints ok in "ideal" case. But, after showing the control in main window, I added MessageBox. This is the code snippet:
board = new BoggleBoard(Boggle.CurrentGame.Size);
board...
I have a WPF usercontrol which contains a number of textboxes and buttons. Currently these textboxes and buttons are all created and loaded dynamically into an ItemsControl through the code behind, whenever an instance of the control is created. The only hard-coded XAML is the declaration of the ItemsControl.
This can be a bit sluggish ...
Why I get the following error in the Visual Studio (2010) designer if a try to load the Form1 that hosts my custom control at design-time?
Could not find type 'myCustomControl'. Please make sure that the assembly that contains this type is referenced. If this type is a part of your development project, make sure that the project h...
I want to initiate a bound command, but I don't want to use a Button on my UserControl. In effect the UserControl is itself a Button. When it is clicked anywhere on its surface I want to initiate a bound command. Is there a way to give a UserControl a command?
In a side note: one command for one control and only a few certain out-of-th...
How do I create server control that will be single instance on client side for any user controls, nested masterpages etc.
Also this class should be visible by intellisense in any place where it included, so i can write javascript code in any control:
Manager.getInstance().add(someObj1);
in other user control:
Manager.getInstance().ad...
I have a Page, containing an UpdatePanel and a Usercontrol which loads another usercontrol, containing a textbox.
So it's Page->UpdatePanel->UserControl->UserControl (B)->Textbox
The ValidationGroup for the button and textbox is the same. I call .validate("answer") in the codebehind, I'd rather not use the JS validation. If the button...
Hi-
I'm new to Silverlight 4 and having a tough time googling this one since I'm not terribly familiar with the terminology involved. Can someone point me in the right direction?
I have an observable collection that I want to represent in an ItemsControl list. The type of the collection is a class that- for simplicity's sake- let's cal...
Here's my issue. I have a usercontrol that I want to allow users to add as many instances of as necessary using a button click (each time a button is clicked, I want to add another instance of my user control to a Panel). It works fine the first time, but each additional post back removes all of the added controls. I have no problem k...
Ok So I'm creating a "Windows Forms Application" for some guy using C# and I want to make the UI a bit more interesting for him.
The main form looks like a big dial with custom buttons arranged on it. (I'm saying custom buttons since they are actually simple user controls I've created that have a PictureBox and a Label that enlarges whe...
Using WinForms I am coding a Component user control where I would like it to be able to display a designer editor form where I could see the list of all the controls names on the form where the component is located.
I got the basic mechanics of the component user control and the support of the designer editor. My question is not about t...
It didn't work and i think it won't but i wanted to ask you(last chance).
I have a simple ascx file. It has one select element which retrieves sub categories when it is selected (over web service).
I want to write my web method in ascx.cs file instead of to write in other asmx file.
ASCX.CS file
protected void public Page_Load(....){...
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:
<MyUserControl>
<Grid>
<Border FancyPantsStyling="True">
<-- I want to insert other controls here -->
</Border>
...
Hello,
I have bound at top the Width of the UserControl to the Width of the ButtonGrid at top.
It does not work. I want my UserControl always that wide as the width of the ButtonGrid. The problem is loading documents with a long name > Sum(Width of 3 buttons) makes the UserControl as wide as the document name. Now imagine having docume...
I created a custom UserControl named EditUserInfo, that includes a DataForm control.
In the UserControl I created a Dependency Property of type UserInformation class named CurrentItem.
The MainPage contains this user control, and in it's Loaded event I set UserControl's CurrentItem property to a newly created UserInformation object.
Th...
See screenshot. The bounding cyan-bordered box is the button, while the blue fill is the rectangle. I cannot for the life of me figure out how to get rid of the padding in the button. Is there a way to position the rectangle to the top left so it touches the cyan border?
Thanks.
...
Hello,
I have three usercontrols aligned side by side inside a DIV. It displays well in all browsers except for IE8, where the third usercontrol wraps down. This can be seen at:
http://dealtown.com/UserTownPage.aspx?tid=153554
Widths seem to be right everywhere and there is enough space for the usercontrol to be displayed. I am missin...
I'm working on a website that will allow instructors to report on the academic progress of students in their classes. I've got the website set up two primary pages: one with a user control that displays the classes (a GridView of basic class info with a child GridView in a template field that displays student names and checkboxes to sele...
I develop user control Date of Birth, which contains 3 DropDownList.
I need to make data binding, but I dunno how.
public partial class DofControl : System.Web.UI.UserControl {
public const int YearsCount = 100;
int _year;
Months _month;
protected void Page_Load(object sender, EventArgs e) {
...
Hello,
We just ported our WinForms application to WPF.
However, performance decreased dramatically.
We have a User Interface which consists of about 200 UserControl.
Each UserControl is defined by a DataGrid (= 10 columns and 3-15 rows) as well as a Panel which hosts about 10 Buttons.
They are all hosted in a ScrollViewer.
(Please do...
If I pass the derived class testA a PlaceHolder that contains a Hyperlink, with a url that starts with
a tilde, it resolves it correctly.
However, when I pass testB
(identical apart from it inherits from
System.Web.UI.UserControl) the same PlaceHolder It
renders it literally (doesn't
transform / resolve the '~')
Any ideas?
publi...