Skip to content

OrientationStateTriggers are broken with iOS 27 #39693

Closed

Description

@AlleSchonWeg

Description

Hi,
i updated my mac to Xcode 27 and created a iPhone 18 with IOS 27 to test my app. In my app i have a OrientationStateTrigger to change some values depending on orientation. It works well on iOS 26 but breaks on iOS 27.

Steps to Reproduce

Run this piece of xaml on an iOS 27 simulator and look at the grids backgroundcolor. Then rotate the device to landscape. The color should be black, but it stays green.

<Grid RowSpacing="15"
  x:Name="controlsGrid"
  BackgroundColor="Orange">
    <Button  Text="Button 1"
        Grid.Row="0"
        Grid.Column="0"/>
    <Button  Text="Button 2"
        Grid.Row="1"
        Grid.Column="0"/>
    <VisualStateManager.VisualStateGroups>
        <VisualStateGroup x:Name="OrientationStates">
            <VisualState x:Name="Portrait">
                <VisualState.StateTriggers>
                    <OrientationStateTrigger Orientation="Portrait" />
                </VisualState.StateTriggers>
                <VisualState.Setters>
                    <Setter Property="BackgroundColor"
					Value="Green" />
                    <Setter Property="RowDefinitions"
					Value="40,120,*" />
                    <Setter Property="ColumnDefinitions"
					Value="*" />
                </VisualState.Setters>
            </VisualState>
            <VisualState x:Name="Landscape">
                <VisualState.StateTriggers>
                    <OrientationStateTrigger Orientation="Landscape" />
                </VisualState.StateTriggers>
                <VisualState.Setters>
                    <Setter Property="BackgroundColor"
					Value="Black" />
                    <Setter Property="RowDefinitions"
					Value="40,*" />
                    <Setter Property="ColumnDefinitions"
					Value="*,50" />
                </VisualState.Setters>
            </VisualState>
        </VisualStateGroup>
    </VisualStateManager.VisualStateGroups>
</Grid>

In this sample i use a grid but other layout controls are also effected.

Link to public reproduction project repository

No response

Version with bug

10.0.120

Is this a regression from previous behavior?

No, this is something new

Last version that worked well

Unknown/Other

Affected platforms

iOS

Affected platform versions

iOS 27

Did you find any workaround?

No response

Relevant log output

Activity

  1. added
    t/bug
    on Oct 27, 2026
  2. changed the title [-]OrientationStateTrigger are broken with iOS 27[/-] [+]OrientationStateTriggers are broken with iOS 27[/+] on Oct 27, 2026
  3. added
    s/triaged
    partner/syncfusion
    area-essentials
    on Oct 27, 2026
  4. added a commit that references this issue on Oct 27, 2026
    24ee12d
  5. added this to the .NET 10 SR13 milestone on Oct 27, 2026
  6. added a commit that references this issue on Oct 28, 2026
    18ca243
  7. locked and limited conversation to collaborators on Nov 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-essentialspartner/syncfusionplatform/ioss/triagedt/bugversion/ios-27

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions