wpf - xamdatetimeeditor set default current time and date -


How to set default current time and date in xamdatetimeeditor instead of default spaces?

My code will not show the current date and time won down. This XML

  & lt; In igEditors: XamDateTimeEditor Grid Roll = "12" grid. Column = "2" x: name = "date" visibility = "{budding datetimeVisible, converter = {static resource boolean switchability}}" height = "23" verification. Error = "validation_date" mask = "biting", "yyyy / mm / dd hh: mm: ss" dropdownbuttondisplaylame = "always" displaylame = "include" value = "{binding date, initial update, source trigger = property changes, validanddateter = True, notify validationErr = true} "text =" {binding date selected, update resource reset = asset changed, validanddateterter = true, notifyOnValidationError = true} "& gt; & Lt; igEditors: XamDateTimeEditor.ValueConstraint & gt; & Lt; IgEditors: Value Contrast Maximink = "{x: Static Siss: Datetime, Now}" Validate Type = "DateTime" /> & Lt; / igEditors: XamDateTimeEditor.ValueConstraint & gt; & Lt; / IgEditors: XamDateTimeEditor & gt;   

In the rear code

  public string error {get new notimplementedException (throw); }} Public string this [string columnName] {{string result = zero; If (column name == "date selected") {if (string.IsNullOrEmptE (date selected)) {result = "please select date"; }} Return result; }} Public Date Time Date Initial {Receive {this.dateInitial; } Set {this.dateInitial = value; This.NotifyPropertyChanged ("Date"); Trace.WriteLine ("dateInitial !!!!" + dateInitial); }}    

I found out: & lt; IgEditors: XamDateTimeEditor

  NullText = "{binding source = {x: static system: datetime.Now}, string format = '{} {0: yyyy / MM / dd H: Mm: ss} '} "   

Comments

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -