UI Customization in .NET MAUI PDF Viewer (SfPdfViewer)
This section walks you through the UI customization options supported in the SfPdfViewer.
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.