Tuesday 15 June 2010

c# - Using a DatePicker without TextBox (Silverlight Toolkit) WP7 -


I am developing an app for Windows Phone 7.8 (probably WP8 at a later date) whose date the user entered need to. I am currently using DatePicker control from Silverlight Toolkit because I like its visual style

The date picture control, when placed on the page, is shown as a text box, when click The DatePicker opens.

Is there any way the text box is not included in it as I do not need and it is closing my form that there is no way to open DatePicker via code instead of the OnClick event?

Any help is appreciated :)

the way you It looks like you can edit DatePicker's control templates only to replace it.

VS 2012 can do this by default (right click and edit template), otherwise the template needs to be edited using the expression blend.

Specifically, the control template has a button (among other things):

  & lt; Button x: name = "DateTimeButton" Content = "{TemplateBinding ValueString}" ...   

The button content is bound to Value Value if you remove this binding (for example ) Then you will be left with the blank button. You can also add anything to the content of the button ...


These links should help you to use Blend:

< / P>

Guides are also good.

No comments:

Post a Comment