diff --git a/dev/DevWinUI.Controls/Controls/FlipSide/FlipSide.cs b/dev/DevWinUI.Controls/Controls/FlipSide/FlipSide.cs index cb7a377..07bbb66 100644 --- a/dev/DevWinUI.Controls/Controls/FlipSide/FlipSide.cs +++ b/dev/DevWinUI.Controls/Controls/FlipSide/FlipSide.cs @@ -178,8 +178,14 @@ private void OnIsFlippedChanged() } else { - s1Visual.RotationAngleInDegrees = f1; - s2Visual.RotationAngleInDegrees = f2; + if (s1Visual != null) + { + s1Visual.RotationAngleInDegrees = f1; + } + if (s2Visual != null) + { + s2Visual.RotationAngleInDegrees = f2; + } } }