How can I help you?
UI Customization in .NET MAUI PDF Viewer (SfPdfViewer)
23 May 20261 minute to read
This section walks you through the UI customization options supported in the SfPdfViewer.
NOTE
The PDF Viewer currently does not support system text auto scaling. Changing the device or accessibility font size settings will not automatically scale the built-in toolbar, other built-in text elements, or the PDF document content. Use the built-in zoom features to adjust document readability.
Customize the loading indicator
You can customize the loading indicator’s properties by applying a style with the TargetType property to ActivityIndicator. You may also need to set the ApplyToDerivedTypes property to True to get the style applied to the derived classes. See the following code example to customize the color of the loading indicator.
<syncfusion:SfPdfViewer>
<syncfusion:SfPdfViewer.Resources>
<Style TargetType="ActivityIndicator"
ApplyToDerivedTypes="True">
<Setter Property="Color" Value="Red" />
</Style>
</syncfusion:SfPdfViewer.Resources>
</syncfusion:SfPdfViewer>NOTE
For complete customization of the PDF Viewer, themes can be applied. Refer to the theme user guide for detailed instructions. You can also explore the sample project, which demonstrates the custom theme implementation for the PDF Viewer in .NET MAUI applications.