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

Control box location for crystal dark theme

4 Answers 241 Views
Form
This is a migrated thread and some comments may be shown as answers.
Rostislaw
Top achievements
Rank 1
Rostislaw asked on 05 Sep 2019, 12:42 PM

Hi *,

how is it possible to define the Location of the Forms Control box (Close, max, min) for the form to be right, the form Icon in the left and the title in the middle?

I use Crystal Dark theme and there is by Default the locaiton on the left side of the Dialog as it should be :)

 

Thanks

Rostislaw

 

 

4 Answers, 1 is accepted

Sort by
0
Accepted
Dimitar
Telerik team
answered on 05 Sep 2019, 01:46 PM

Hi Rostislaw,

By default, the Crystal theme is using RightToLeft alignment. It can be disabled with the following property:

this.FormElement.TitleBar.RightToLeft = false;

I hope this helps. Should you have any other questions, do not hesitate to ask.

Regards,
Dimitar
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
Rostislaw
Top achievements
Rank 1
answered on 05 Sep 2019, 02:29 PM
Dimitar! Thanks a lot - solved!
0
Don
Top achievements
Rank 1
answered on 30 Oct 2019, 05:44 PM

Dimitar,

Thanks for that example.  If I want to use other controls that open a dialog (example: radRibbon | File | Print Preview) how do I set the titlebar of the dialogs to left to right?  I'd like all of the windows that are opened in the application to be consistent.

If the answer is to modify the theme, are there any good resources to learn how to do that?

Thank you for any help!

 

 

0
Dimitar
Telerik team
answered on 31 Oct 2019, 06:28 AM

Hello Rostislaw,

Changing this in the theme is better because you will change it in one place and it will affect all forms. Here are the steps you need to take to achieve this:

  1. Extract the predefined themes, which will allow you to edit the crystal theme: Loading Predefined Themes
  2. Change the RigtToLeft property in the theme (see attached).
  3. Save and use the new theme in your application: Using custom themes

Let me know if you have additional questions.

Regards,
Dimitar
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.
Tags
Form
Asked by
Rostislaw
Top achievements
Rank 1
Answers by
Dimitar
Telerik team
Rostislaw
Top achievements
Rank 1
Don
Top achievements
Rank 1
Share this question
or