Change theme RadOpenFileDialog

2 posts, 0 answers
  1. Javier
    Javier avatar
    21 posts
    Member since:
    Oct 2014

    Posted 28 Apr Link to this post

    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?

     

  2. Nadya
    Admin
    Nadya avatar
    389 posts

    Posted 29 Apr Link to this post

    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.
Back to Top