SparkDevNetwork / Rock.Mobile-Issues

3 stars 2 forks source link

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

Open trydyingtolive opened 2 months ago

trydyingtolive commented 2 months ago

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

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