Rotation in .NET MAUI Interactive Viewer
18 Nov 20181 minute to read
The Rotate method enables rotating the content hosted in the Interactive Viewer control. Each invocation rotates the content by 90 degrees clockwise and cycles through the available orientations.
<Grid RowDefinitions="0.9*, 0.1*">
<interactiveViewer:SfInteractiveViewer x:Name="interactiveViewer">
<Image Source="interactiveviewerimage.png" Aspect="AspectFit" />
</interactiveViewer:SfInteractiveViewer>
<Button Text="Rotate" Grid.Row="1" Clicked="OnRotateImageClicked"/>
</Grid>using Syncfusion.Maui.InteractiveViewer;
private void OnRotateImageClicked(object sender, EventArgs e)
{
this.interactiveViewer.Rotate();
}The
Rotatemethod supports only 90-degree clockwise rotations. Custom rotation angles are not supported.
