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

Change theme RadOpenFileDialog

1 Answer 170 Views
FileDialogs
This is a migrated thread and some comments may be shown as answers.
Javier
Top achievements
Rank 1
Javier asked on 28 Apr 2020, 01:59 PM

Hi, good morning

I'm trying to change the theme to a RadOpenFileDialog, but I can't do it,

I've used these directions:

 Telerik.WinControls.UI.RadOpenFileDialog opfDialog = new Telerik.WinControls.UI.RadOpenFileDialog();
 opfDialog.OpenFileDialogForm.StartPosition = FormStartPosition.CenterScreen;
 opfDialog.OpenFileDialogForm.ThemeName = "Fluent";

StartPosition if it works, but ThemeName doesn't.

Could you help me?

 

1 Answer, 1 is accepted

Sort by
0
Nadya | Tech Support Engineer
Telerik team
answered on 29 Apr 2020, 12:26 PM

Hello Javier,

Your question has already been answered in the support ticket that you have opened on the same topic. Please, see our answer there for more information. However, I am posting the solution suggested by my colleague, Dess, here as well in order the community to benefit from it.

In order to apply the Fluent theme to RadOpenFileDialog, it is necessary either to drag the Fluent theme from the toolbox and drop it onto the form or create the theme at run time as follows:

FluentTheme fluentTheme = new FluentTheme();
Telerik.WinControls.UI.RadOpenFileDialog opfDialog = new Telerik.WinControls.UI.RadOpenFileDialog();
opfDialog.OpenFileDialogForm.StartPosition = FormStartPosition.CenterScreen;
opfDialog.OpenFileDialogForm.ThemeName = "Fluent";
opfDialog.ShowDialog();

Additional information about using the default themes is available in the following help article: https://docs.telerik.com/devtools/winforms/styling-and-appearance/using-default-themes

We kindly ask you to use just one thread for a specific problem to contact us. Posting the same questions numerous times slows down our response time because we will need to review and address two or more tickets instead of one. Moreover, threads are handled according to license and time of posting, so if it is an urgent problem, we suggest you use a support ticket, which would be handled before a forum thread.

Thank you for your understanding.

Regards,
Nadya
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
Tags
FileDialogs
Asked by
Javier
Top achievements
Rank 1
Answers by
Nadya | Tech Support Engineer
Telerik team
Share this question
or