Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
190
border for xamEditors?
posted

 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 

 

 

Parents
No Data
Reply
  • 2070
    posted

    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:

    <TextBox Name="textBox" Grid.Row="0" Width="100" Height="20" />

    <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

Children
No Data