New Posts New Posts RSS Feed: Can you bind to a custom control in the same way that other controls bind?
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

Can you bind to a custom control in the same way that other controls bind?

 Post Reply Post Reply
Author
Customer View Drop Down
Senior Member
Senior Member
Avatar
User Submitted Questions to Support

Joined: 30-May-2007
Location: United States
Posts: 260
Post Options Post Options   Quote Customer Quote  Post ReplyReply Direct Link To This Post Topic: Can you bind to a custom control in the same way that other controls bind?
    Posted: 12-Jul-2007 at 10:33am
We have a lot of controls that wrap Infragistics controls. We do this so we can apply custom formatting in one place and it can apply it to every where else in the system. I noticed in the control binding manager it only allows for windows, devexpress and Infragistics controls. Can you bind to a custom control in the same way that other controls bind?
Back to Top
IdeaBlade View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 30-May-2007
Location: United States
Posts: 353
Post Options Post Options   Quote IdeaBlade Quote  Post ReplyReply Direct Link To This Post Posted: 12-Jul-2007 at 10:34am
To get a custom control to display in the ConfigureBindings menu, you need to write a custom binder.  I've attached an example solution that shows how to bind to a "BlueTextBox" control.  The BlueTextBox control is a TextBox control that has been wrapped in such a way that the back color of the TextBox is blue.
 
Here is the documennt:
 
 
Here is the solution:
 


Edited by IdeaBlade - 13-Jul-2007 at 9:39am
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down