Home Forums WPF controls Xceed DataGrid for WPF DatePicker with "/"

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • User (Old forums)
    Member
    Post count: 23064
    #24619 |

    Hi,

    I just tried to use DatePicker in the grid. However, the picker doesn’t work naturally. It seems not to accept “/” when you typing it. I would like to type “1/” and then it will skip to the date part. Is it possible to achieve something like that?

    Thanks!

    Imported from legacy forums. Posted by nat (had 453 views)

    Xceed Support
    Member
    Post count: 5658

    Inputing the “separator” character is not possible at the moment with the default DatePicker`s ControlTemplate.

    That being said, you can redo the template to accommodate your need.

    Originally, we did not publish the DatePicker styles and templates (as we did with the Xceed.Wpf.DataGrid assembly ), so you will need to use a tool such as “Style Snooper” or Reflector (with the BAML disassembler add-on) to reverse engineer the template.

    Note: I can give you the hint that what you would need to replace is the “DateInputScope” and what is nested below it.

    Imported from legacy forums. Posted by Marcus [Xceed] (had 200 views)

    User (Old forums)
    Member
    Post count: 23064

    Marcus,

    It’s just a suggestion so that you guys can improve DatePicker in the next version. I don’t intend to change the template since it’s too difficult to achieve what i really want

    Imported from legacy forums. Posted by nat (had 3123 views)

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.