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

RadOpenFileDialog address bar font size issue

2 Answers 112 Views
FileDialogs
This is a migrated thread and some comments may be shown as answers.
Edgardo
Top achievements
Rank 1
Edgardo asked on 25 Mar 2020, 04:00 PM
 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 Answers, 1 is accepted

Sort by
0
Accepted
Dinko | Tech Support Engineer
Telerik team
answered on 30 Mar 2020, 11:27 AM

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.
0
Edgardo
Top achievements
Rank 1
answered on 31 Mar 2020, 10:45 AM

Hello Dinko,

that solves the problem.

 

Thank you.

Tags
FileDialogs
Asked by
Edgardo
Top achievements
Rank 1
Answers by
Dinko | Tech Support Engineer
Telerik team
Edgardo
Top achievements
Rank 1
Share this question
or