Hello,
I try to use XamDateTimeEditor in xaml, but I see that there is no way to set the border of this control.
Near a WPF TextBox, I put a XamDateTimeEditor. The result is an ugly UI because of different border color of these 2 controls.
The XamDateTimeEditor can be used nicely outside of a XamDataGrid ? ( the question is for all Xam...Editors)
Regards, Liviu
Hi Liviu,
You can set the border of the XamDateTimeEditor and other editors just like any other WPF Control by setting its BorderBrush property. For example, the following code snippet sets the border of first date time editor to be like the text box and the second to red:
<dge:XamDateTimeEditor Grid.Row="1" Width="100" Height="20" BorderBrush="{Binding ElementName=textBox,Path=BorderBrush}" />
<dge:XamDateTimeEditor Grid.Row="2" Width="100" Height="20" BorderBrush="Red" />
Sandip