RadOpenFileDialog address bar font size issue

3 posts, 1 answers
  1. Andrea
    Andrea avatar
    2 posts
    Member since:
    Oct 2019

    Posted 25 Mar Link to this post

     Hello everyone,

    i'm working with RadOpenFileDialog  in a WPF Desktop application with Fluent Theme, due to project needs i had to set the font size for the whole application a bit bigger with this code : 

                                                          FluentPalette.Palette.FontSizeS = 18;

                                                          FluentPalette.Palette.FontSize = 20;
                                                          FluentPalette.Palette.FontSizeL = 22;
                                                          FluentPalette.Palette.FontSizeXL = 24;

    All work well but when i open a RadOpenFileDialog  window i have the line of address bar partially hided as showed in the screenshot in attachment.

    What could be the cause of the problem ?

    Thanks in advance.
  2. Answer
    Dinko
    Admin
    Dinko avatar
    1187 posts

    Posted 30 Mar Link to this post

    Hello Andrea,

    Thank you for the provided image.

    This behavior comes from the custom element (FileDialogsBreadcrumb) which derives from RadBreadcrumb control. This custom breadcrumb control was created for the needs of RadFileDialogs. The clipping comes from the fact that the FileDialogsBreadcrumb has Height property set. To increase the size you can create a custom Style which targets FileDialogsBreadcrumb and set the Height property to 35 for example. Check the following code snippet which will better demonstrate this.

     xmlns:fileDialogs="clr-namespace:Telerik.Windows.Controls.FileDialogs;assembly=Telerik.Windows.Controls.FileDialogs"

    <Application.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="/Telerik.Windows.Themes.Fluent;component/Themes/System.Windows.xaml"/>
                <ResourceDictionary Source="/Telerik.Windows.Themes.Fluent;component/Themes/Telerik.Windows.Controls.xaml"/>
                <ResourceDictionary Source="/Telerik.Windows.Themes.Fluent;component/Themes/Telerik.Windows.Controls.Input.xaml"/>
                <ResourceDictionary Source="/Telerik.Windows.Themes.Fluent;component/Themes/Telerik.Windows.Controls.FileDialogs.xaml"/>
                <ResourceDictionary Source="/Telerik.Windows.Themes.Fluent;component/Themes/Telerik.Windows.Controls.Navigation.xaml"/>
            </ResourceDictionary.MergedDictionaries>
    
            <Style TargetType="fileDialogs:FileDialogsBreadcrumb" BasedOn="{StaticResource FileDialogsBreadcrumbStyle}">
                <Setter Property="Height"  Value="40"/>
            </Style>
        </ResourceDictionary>
    </Application.Resources>

    As a side note, custom styles targeting our controls in NoXAML scenario, need to have their BasedOn property set to the default style of the control. Otherwise, the custom style will override the default one.

    Regards,
    Dinko
    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.
  3. Andrea
    Andrea avatar
    2 posts
    Member since:
    Oct 2019

    Posted 31 Mar in reply to Dinko Link to this post

    Hello Dinko,

    that solves the problem.

     

    Thank you.

Back to Top