custom-controls

Center subitem Icon in ListView

I would like to center the icon in one of my columns. The way I currently add icons is by calling the AddIconToSubitem method after the row has been created. How would I modify my custom control to also center the icon? Thanks Public Class ListViewSubIcons : Inherits System.Windows.Forms.ListView Public Declare Function SendMes...

Is It Possible to Use TemplateBinding in a Storyboard in Silverlight?

I'm building a custom control in Silverlight and I want one of the fields to animate to the value of a DependencyProperty when that property is changed. More specifically, I have particular item in my Control Template that I want to animate to the color of the Background whenever the background changes color. So, what I have is: <Contro...

Creating your own component in vb.net 2008

How do you create your own custom component for vb.net 2008? I want it to simply output to a .dll, not a whole winforms app. So, here is what I have done so far: Made a class library project Added a custom control object Confused myself badly Googled it, to no avail How can I control the component? For example, I want my component t...

Graphical interface buttons in Cocoa

Sitution: Newbie with interface for a music app. I have 2 large images, one the master 'up' or normal view, the other the complete 'down' view. (Buttons all pressed, lit, etc, LED's on, etc). Might have a couple smaller images as well to copy over. In Carbon, and old Mac OS, I would load up 2 GWorlds with each image, then use Copybits t...

custom ASP.NET template control without placeholder tags

Let's say I have a custom template control, that can be used in pages like so: <AR:CustomControl runat="server"> <ViewTemplate> <span>stuff</span> </ViewTemplate> </AR:ModalLink> Since there is only one template field, the element isn't really necessary. Is there a way I can edit my control so it can be used like? <...

Asp.net User Control with underlying control editor functionality

ASP.Net 3.5 I want to create a user control that contains the ListView and DataPager controls along with some custom code in the ItemDataBound that is generic and deals with UI styling. Ideally, when the developer uses this control, I would like to retain editor support so they can select a datasource, add/remove columns, etc... Is ...

WPF - how to best implement a panel with draggable/zoomable children?

I'm trying to modify the default graph viewer of the Graph# library because its user interface is awful (just try dragging a node outside of the boundaries, you'll see!) The basic setup is this: there is a GraphCanvas control (inherited from Panel) which has children of Vertex and Edge control types. What I want to achieve is: GraphCa...

Internal workings of gridview control? how to create custom (databound) controls

I want to know complete life cycle of gridview control (control's life cycle) in context with the page life cycle. What all events are fired. How the data gets bind (i mean which events are internally fired and when are they fired). Actually i am looking to create the repository of complex custom controls (required in day to day life)....

Automated testing of DotNetBar Controls

We have been asked to test a .NET Application developed using DevComponents DotNetBar controls using automated testing tools. This is a WinForms application using Ribbon, TabStrip etc. controls from the DotNetBar suite. I tried automating this application using Microsoft UI Automation Library and the White Framework, but no success. Ha...

How to detect if ASP.NET control properties contain DataBinding expressions?

I have a custom control which inherits from System.Web.UI.Control and some of its properties can be declaratively set using databinding expressions. e.g. <foo:Foo runat="server" MyFoo="<%# this.GetFoo() %>" /> Now, when I do that I need to call .DataBind() on the control (or one of its parents) to evaluate these expressions. What I w...

Create 'Style' property on CompositeControl in ASP.Net

Hi I'm having a problem creating a new CompositeControl. Currently I have a custom control that inherits from TextBox, the control DOES NOT have the Style property defined, but I can set the property in the page Markup and the style will be applied correctly. I'm trying to create a CompositeControl with the same functionality as the c...

Naming container not getting "set" in extenders

I think I might know the cause, but not how to fix it without a lot of code rewriting(which I prefer to avoid). I have public class datecontrol : basecontrol { private ImageButton _ImageButton; private TextBox _EditControl; private CalendarExtender _CalendarExtender; .... public datecontrol{ _ImageButton=new ImageBut...

Creating custom layouts in BlackBerry

I want to create a RichTextField at the bottom half of the screen, while I paint my own custom graphics at the top half of the screen. Is that possible in BlackBerry? It tried defining a LayoutManager and trying to position the RichTextField at the bottom of the screen but the RichTextField, scroll through the entire screen. This is the ...

WPF Portlet like Layout Control

I'd like to design a custom control which can be used as a container like other Layout controls. I want this control to have a dependency property named Header which can display header for this control. Basic intention is to imitate looks of portlet control available in Sharepoint etc. with configurable headers. Any links, suggestions, ...

DataGridViewColumnCollection property in custom control

I am creating a custom control, constisting of DataGridView, a few additional buttons and useful functions. For user of the control to be able editing grid's columns I added Columns property of type DataGridViewColumnCollection. Now it's possible to edit columns through Property Editor (clicking by a small button near Columns prope...

ASP.Net avoid multiple Style and Script blocks in Custom Control

I'm developing a custom control with it's own style and script block inside the ascx-file. All works fine, but if I use my control inside my aspx-page more the once, the script and style blocks are also repeated. How to avoid this? ...

GDI RoundRect on Compact Framework: make rounded rectangle's outside transparent.

Hello! I'm using the RoundRect GDI function to draw a rounded rectangle following this example: .NET CF Custom Control: RoundedGroupBox Because all controls are square, it also draw the corners outside of the rounded rectangle. How can I make this space left outside the rectangle transparent? The OnPaint method is: protected override...

Blackberry User Interface Design - Customizable UI?

I am trying to design a Blackberry Application and I am wondering if there are any resources on how to create custom user interface elements, skin existing ones and what other possibilities are there? I have developed a few iPhone applications with custom UI and stuff, so not sure what BB world offers in terms of UI development. Any ti...

How to create a custom MultiSelector / ItemsControl in WPF / C#

I'm trying to create a diagramming application in C# / WPF. What I going for is somewhat similar to Microsoft Visio although I'm not trying to clone it. I kind of wrote this question as I was coding and just put all the issues I had into it in case someone will find it useful. Maybe I've been thinking too hard but I feel like I could thr...

Using customized line images in Asp.Net Treeview control

When I use my own line images for customizing the look and feel of the treeview control, there appears to be a rendering problem in the table row that creates the "I" line. The Lminus, Lplus, R etc line rows all gets rendered without a problem, but for some reason the "I" line gets rendered inside a div tag as follows: <td> <div style="...