Windows 11 Theme fontsize problem
Hi Zechary,
We are unable to reproduce the reported issue based on the given information. Please refer to the sample and screenshot provided for your reference.
Could you please share the following information so that we can better analyze the issue and provide a solution?
- Modified sample that replicates the issue.
- The screen resolution and DPI scaling settings.
Regards,
K Sai Sivani
Attachment: SfTreeNavigator_Sample_44b616dd.zip
set fontsize greater than 16
<navigation:SfTreeNavigator Header="Enterprise Toolkit" Width="300" Height="300" FontSize="16">
set fontsize greater than 16
<navigation:SfTreeNavigator Header="Enterprise Toolkit" Width="300" Height="300" FontSize="16">
Hi Zechary,
We have confirmed that the reported scenario is a defect and have logged a report for the reported scenario "TreeNavigatorItem content cropped when applying Windows 11 Theme for SfTreeNavigator control." We will fix this issue and include it in our NuGet release, which is scheduled for 30th September 2025.
You can track the status of this defect using the following feedback link: TreeNavigatorItem content cropped when applying Windows 11 Theme for SfTreeNavigator control in WPF | Feedback Portal
Please let us know if you need any further assistance.
Note: The provided feedback link is private, and you need to log in to view this feedback.
Disclaimer: "Inclusion of this solution in the weekly release may change due to other factors, including but not limited to QA checks and work reprioritization."
Regards,
K Sai Sivani
Apologies for the inconvenience.
After further analysis, we found that in the current control structure, the default height of SfTreeNavigatorItem is determined by the default font size. When the font size is significantly increased, the item's content may get cropped.
To address this, we recommend the following workaround:
- Set the ItemHeight property of SfTreeNavigatorItem to NaN This enables dynamic sizing of the item based on its content.
- Set the ApplyThemeAsDefaultStyle property to true This applies theme-based styles to each control’s default style, allowing you to override the default theme styles with custom modifications for greater control over the visual appearance of your application.
Please refer to the provided sample to implement this workaround.
Let us know if you have any questions or need further assistance.
Regards,
K Sai Sivani
Attachment: TreeNavigator_Sample_49bbccc0.zip
- 5 Replies
- 2 Participants
-
ZE Zechary
- Aug 30, 2025 08:54 AM UTC
- Oct 1, 2025 01:10 PM UTC