示例#1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="DateFieldViewModel"/> class.
        /// </summary>
        /// <param name="label">The field label.</param>
        /// <param name="metadata">Information about the field.</param>
        public DateFieldViewModel(string label, DateTimeFieldMetadata metadata)
        {
            Label = label;

            SetBinding(DateTimeProperty, new ModelBinding(this, DateProperty, new DateToDateTimeConverter()));
        }
示例#2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DateColumnDefinition"/> class.
 /// </summary>
 /// <param name="header">The column header text.</param>
 /// <param name="sourceProperty">The property bound to the column.</param>
 /// <param name="metadata">Information about the data for the column.</param>
 public DateColumnDefinition(string header, ModelProperty sourceProperty, DateTimeFieldMetadata metadata)
     : base(header, sourceProperty)
 {
     _metadata = metadata;
 }