Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Issue]: Inverse Boolean Converter not converting. #36

Open
2 tasks
trydyingtolive opened this issue Sep 10, 2024 · 0 comments
Open
2 tasks

[Issue]: Inverse Boolean Converter not converting. #36

trydyingtolive opened this issue Sep 10, 2024 · 0 comments
Labels
bug Something isn't working unverified This issue has not been verified yet

Comments

@trydyingtolive
Copy link

Describe the Issue in Detail

We had an expander that would change based on if it was expanded or not. This was working on the Xamarin app, but upgrading to MAUI caused it to no longer work. After breaking down the work into smaller parts I found that the Inverse Boolean Converter isn't working as expected.

Can reproduce in

  • Orange App
  • Blue App

Steps to Reproduce

Copy the XAML below into a content block and check the box.

Expected Behavior

The label "NOT CHECKED" should be visible until the box is checked. Then is should disappear and the label "I AM CHECKED" should appear.

Actual Behavior

Both labels are missing until the box is checked.

Screenshots or Videos

IMG_0011

Reproduction XAML

<StackLayout
    Margin="20"
    Spacing="10">
    <Rock:FieldContainer>
        <Rock:CheckBox
            IsChecked="false"
            x:Name="cbChecked" />
    </Rock:FieldContainer>

    <Label IsVisible="{Binding IsChecked, Source={x:Reference cbChecked}}" Text="I AM CHECKED" />
    <Label IsVisible="{Binding IsChecked, Source={x:Reference cbChecked}}, Converter={Rock:InverseBooleanConverter}}" Text="NOT CHECKED" />

</StackLayout>

Mobile Shell Version

6.0.0.0

Last Known Working Version

5.0

iOS Device Type(s) and iOS Version(s)

iPhone 14

Android Device Type(s) and Android Version(s)

Pixel 6, Pixel 8

@trydyingtolive trydyingtolive added bug Something isn't working unverified This issue has not been verified yet labels Sep 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working unverified This issue has not been verified yet
Projects
None yet
Development

No branches or pull requests

1 participant