I'm currently creating a user interface using WPF and would like to display a pie-chart on my window. As far as I can see, this will involve creating a custom control - it is not a scenario in which applying styling or templating to an existing control will be sufficient. I've read several articles on custom controls and all of those whi...
Currently, I'm in the process of making a custom solution for invoicing. I have created multiple ways for customers to create their template (HTML, Word, LaTex) and get invoices according to their template. However, these invoices are party manually generated.
So, the process is:
Request to create a new invoice
An preliminary invoice ...
Hi there
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 have created a class called DataDefinitionContent which extends ControlBase. Now, from what I can garner from the metadata, Contro...
I have a custom MFC control, subclassing CWnd. Other than providing OnPaint and PreSubclassWindow implementations, it overrides no default functionality and does nothing weird in construction except registering a window class in the constructor.
The control is added to the dialog using the dialog editor to add a custom control.
The dia...
As I understand it, a Panel isn't meant to have any visible "chrome." The StackPanel, Grid and Canvas don't have any visible elements (with the exception of the gridlines, which they say are only for debugging layout.)
In my example, I am going to create a Custom Panel that uses Attached Properties to lay out its children controls. Ho...
I seem to be having problems with custom controls in WPF. I want to have a simple validating textbox where I can only put doubles. In Forms it was easy, just create a custom control, inherit from TextBox and handle the appropriate events. Is this the way to go in WPF? I can make a custom control, inherit from TextBox, it compiles, but it...
I am working on an ASP.net Ajax custom control, I have tried to derive from ScriptControl and a I also modified my code to implement the IScriptControl interface and do the nessecary wiring in the PreRender and Render methods.
The frameworks spits out a call to $create:
Sys.Application.add_init(function() {
$create(MyContr...
I didn't follow my own best practices (use only derived controls), and I dragged a regular Windows Forms control to my form, wired it up and used it on my form ;-(
Now I need to change the control to a derived control (derived from the same control), preserving all the settings from the designer. Is there a reliable/easy way to do this...
I'm working with a CMS which allows you to develop your own custom controls which get dynamically included at runtime. So I have a custom control which alters a datasource (NHibernate cache) and as I'm at a point in the process where the CMS has already read this data from the cache, I need to restart the processing of the page somehow s...
Hi, I have a class that extends from ButtonField :
class BitmapButtonField extends ButtonField
{
private Bitmap _bitmap;
private int _buttonWidth;
private int _buttonHeight;
BitmapButtonField(Bitmap bitmap, int buttonWidth, int buttonHeight, long style)
{
super(style);
_buttonWidth = buttonWidth...
I have a database that stores an arbitrary number of phone numbers. There are a few pages that (should) allow admins to change these numbers and add them.
I plan to create a custom control that will:
Show all existing numbers
Provide an edit button
In Edit mode, will show an add button
Have an add button that adds the requisite fields...
In C# I have custom form of None border style which override onPaint event and draw custom background with transparency key. I want to set my own client rectangle value (so content would be placed inside my custom border), but unfortunally Form's ClientRectangle property is read-only. I found advice over net to override WndProc method (w...
I have built a Custom Control Class that makes it much easier to build a side bar element in my html.
The problem I am running into is that when I set the "Text" property, the last time I set it gets used for every instance of the control on my page. This is my first time doing this, so I'm assuming I'm missing something basic.
Namesp...
This is similar to my last post but with a different purpose.
I have built a custom control, but when I set the properties for it... ALL instances of that control on my page grab the exact same property. I need to be able to set the property to "abc" for one instance of the control on my page, and then set the exact same proprty to "xy...
I want to create a control which is basically a ListBox, but each ListItem is a collection of controls. So each item of that list box is a combination of a Label, a CheckBox, a Timer and a TextBox.
Can this be done with the .NET framework?
If so, do you have any recommendations on how to get started, any links to samples or discussion,...
Our team decided that we need our own custom Rich text box control for Silverlight app we are developing. We looked at existing controls mentioned at http://stackoverflow.com/questions/1372038/a-good-rich-text-control-for-silverlight
but decided to build our own,due to varios reasons. We are planning to build it in stages, with elementar...
public sealed class IntegerBox : TextBox
{
#region constants
private const string RangeConstraintValidatorID = "rangeConstraintValidator";
#endregion
#region child controls
private readonly CustomValidator _rangeConstraintValidator = new CustomValidator
{
EnableClientScript = false,
Enabled = true,
...
Hello.
I trying to make a Control that inherits from System.Windows.Form.Label that can resize to fit its text.
I'm trying to override OnTextChanged method to use System.Drawing.Graphics.MeasureString to know the new size of the control, but I don't know how to obtain Graphics on OnTextChanged method?
Any advice?
Thank you!
...
I was looking for it all night, but it seems that the project type is not on vs 2010.
But the main problem is, I want to make a custom control (or a user control compiled to a dll, if vs 2010 does not have the custom control library feature).
Unluckily, I was not able to find any article for 2010 but only for 2008, which is pretty much ...
i want to create a button that allows the user to tap on it and thereby set a beats per minute. i will also have touches moved up and down on it to adjust faster and slower. (i have already worked out this bit).
what are some appropriate ways to get the times that the user has clicked on the button to get an average time between presses...