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

RadCalculatorPicker right alignment

2 Answers 70 Views
Calculator
This is a migrated thread and some comments may be shown as answers.
Hans
Top achievements
Rank 1
Veteran
Hans asked on 30 Jul 2019, 07:32 AM

Hi,

I can't seem to right align the value of the RadCalculatorPicker.  I've tried using the HorizontalContentAlignment property, without succes.  Any ideas ?

Regards,
Hans

2 Answers, 1 is accepted

Sort by
0
Accepted
Dimitar Dinev
Telerik team
answered on 31 Jul 2019, 08:36 AM
Hello Hans,

The style for the HorizontalContentAlignment property of the â€‹RadCalculatorPicker is set to Stretch. You can either Edit the Control Template, customize the TextBox element of the RadCalculatorPicker on its Loaded event or create an attached property using the same Loaded event approach.

Attached, you can find a sample project in which I've demonstrated the attached behavior approach. Please, review it and let me know if it delivered the desired result. 

Regards,
Dimitar Dinev
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Hans
Top achievements
Rank 1
Veteran
answered on 02 Aug 2019, 12:56 PM

Hi Dimitar,

thanks for the sample project.

Too bad the alignment is set to Stretch by default as numbers are always right aligned (as far as I know).

Regards,
Hans

Tags
Calculator
Asked by
Hans
Top achievements
Rank 1
Veteran
Answers by
Dimitar Dinev
Telerik team
Hans
Top achievements
Rank 1
Veteran
Share this question
or