This is a migrated thread and some comments may be shown as answers.

alignment magic sauce

2 Answers 73 Views
DateTimePicker
This is a migrated thread and some comments may be shown as answers.
Randy Hompesch
Top achievements
Rank 1
Randy Hompesch asked on 10 May 2017, 03:38 PM

Hi,

All I want to do is have the text of the chosen date right aligned in the textbox. I've tried all the different alignment and content alignment options I can think of and nothing works. Can someone please share the magic sauce?

Thanks .... Ed

 

 

<telerik:RadDateTimePicker x:Name="txtOpenDate" Width="175" Grid.Row="4" Grid.Column="1" HorizontalAlignment="Left"
 
                       CalendarStyle="{StaticResource calendarStyle}"                                   
                       InputMode="DatePicker" SelectedValue="{Binding OpenedDate, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged }"/>

2 Answers, 1 is accepted

Sort by
0
Accepted
Dilyan Traykov
Telerik team
answered on 12 May 2017, 10:15 AM
Hello Ed,

I believe setting the TextAlignment property of the control to Right should provide the desired result. Please let me know if this is the case.

Regards,
Dilyan Traykov
Telerik by Progress
Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which you to write beautiful native mobile apps using a single shared C# codebase.
0
Randy Hompesch
Top achievements
Rank 1
answered on 16 May 2017, 11:14 AM

Doh! Missed that.

Thanks .... Ed

 

Tags
DateTimePicker
Asked by
Randy Hompesch
Top achievements
Rank 1
Answers by
Dilyan Traykov
Telerik team
Randy Hompesch
Top achievements
Rank 1
Share this question
or