Hi all,
i have applied validation in a text box as follows. note i m using enterprise library for validation purpose:
<TextBox Grid.Row="3" Grid.Column="1" TabIndex="2" Margin="5" MinHeight="40" TextWrapping="Wrap" AcceptsReturn="True" VerticalScrollBarVisibility="Visible" >
<Binding Path="Vehicle.Comments" UpdateSourceTrigger="PropertyChanged" ValidatesOnDataErrors="True" Mode="TwoWay" >
<Binding.ValidationRules>
<y:ValidatorRule SourcePropertyName="Comments" SourceType="{x:Type e:tblVehicle}"/>
</Binding.ValidationRules>
</Binding>
</TextBox>
now i want to apply it at RadDatePicker:
<telerik:RadDatePicker TabIndex="8" ToolTip="Enter due date ..." Name="dtpDueDate" Height="25"
Background="Transparent" BorderBrush="{DynamicResource brushWatermarkBorder}" >
<telerik:RadDatePicker.SelectedDate>
</telerik:RadDatePicker.SelectedDate>
</telerik:RadDatePicker>
it give me nothing under .selectedDate property.
how can i apply the validation rule in a pattern as applied at textbox in the datepicker?
Thanks.