views:

708

answers:

3

Hi Guys

I'd like to build an own control, but therefore I need to know if its possible to combine a Textbox event with a Popup more or less like the Datepicker Control. Or is there a better way to do this than with a Popup?

Greets

Patrick

+1  A: 

Sure you could do this. In fact look at the DatePicker as an example of how you might do that. I'd imagine your control would be a composite of TextBox, Button and Popup controls.

Tim Heuer
A: 

But how can i combine these two elements (textbox and popoup) in a control. Or where can I find the Sourcecode of the DatepickerControl?

A: 

You can download the complete source to the Silverlight Toolkit from the CodePlex Silverlight Toolkit project site.

And you can get the source and unit tests for the Beta 2 Release 1 controls at Shawn Burke's blog.

Neither of these may be exactly what you're looking for, but they might get you on the right track.

Matt Casto