Predefined Dialogs - Implicit Styles - dll

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

    Posted 15 Oct 2014 Link to this post


    how to set theme for predefined dialog when window from which dialog called is within the dll that is called from WinForms?
    Currently the window is not displayed.

                   <ResourceDictionary Source="/Telerik.Windows.Themes.Office2013;component/Themes/System.Windows.xaml"/>
                   <ResourceDictionary Source="/Telerik.Windows.Themes.Office2013;component/Themes/Telerik.Windows.Controls.xaml"/
                   <ResourceDictionary Source="/Telerik.Windows.Themes.Office2013;component/Themes/Telerik.Windows.Controls.Navigation.xaml" />

    bool? dialogResult = null;
                       RadWindow.Confirm(new DialogParameters()
                           Owner = this,
                           Closed = (w, x) =>
                               dialogResult = x.DialogResult;
  2. Kalin
    Kalin avatar
    1192 posts

    Posted 17 Oct 2014 Link to this post

    Hi Michael,

    In order to automatically located the needed Styles, the ResourceDictionaries should be merged in App.xaml. I assume this is not possible in your case, so you can try to manually apply the needed styles as shown below:

    RadWindow.Confirm(new DialogParameters()
        WindowStyle = this.Resources["RadWindowStyle"] as Style,
        ContentStyle = this.Resources["RadConfirmStyle"] as Style

    Please test it and let me know if it helps.


    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

  3. DevCraft banner
Back to Top