I have 2 controls: A DatePicker (for the date) and a TextBox (for the time).
Both are linked to the same property MyDate
.
On startup the date is now and the time is now, but when I update the date the time changes to 0:00
.
Is there a way to only change the date on the property and leave the time alone?
I understand why and how it is happening but how would I solve this by not altering the property?
<DatePicker VerticalContentAlignment="Center" FontSize="12" Text="{Binding Path=MyDate, StringFormat='d', UpdateSourceTrigger=PropertyChanged, Mode=TwoWay}">
</DatePicker>
<dxe:DateEdit Height="25" MaskUseAsDisplayFormat="True" AllowDefaultButton="False" EditValue="{Binding Path=MyDate}" Mask="HH:mm">
<dxe:DateEdit.StyleSettings>
<dxe:DateEditPickerStyleSettings/>
</dxe:DateEdit.StyleSettings>
</dxe:DateEdit>