question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Indicator IsVisible Property Nonfunctional

See original GitHub issue

Setting the IsVisible property in the indicator XAML does not have effect, as the IsVisible property is set automatically regardless.

The issue occurs in IndicatorsControl.cs : 217 - ResetVisibility()

Suggestion: Make a private property that respects the XAML state and view models property change notification that ResetVisibility() respects.

Example of Intended Implementation:

                <cards:CarouselView ItemsSource="{Binding ConnectedDevices}" SelectedIndex="{Binding SelectedIndex}" SlideShowDuration="0" IsCyclical="False" VerticalOptions="Start">

                    <cards:CarouselView.ItemTemplate>
                        <DataTemplate>
                            <ContentView>
                                <StackLayout HorizontalOptions="Center" VerticalOptions="Start" Margin="0,0,0,40">
                                    
                                    <!-- Stuff -->
                                </StackLayout>
                            </ContentView>
                        </DataTemplate>

                    </cards:CarouselView.ItemTemplate>

                    <cardcontrols:IndicatorsControl ToFadeDuration="0" Margin="0" VerticalOptions="End" IsVisible="{Binding IndicatorVisible}" />
                    
                </cards:CarouselView>

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:12 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
InnerScriptcommented, Jun 2, 2019

@AndreiMisiukevich

I just got a chance to test the MinimumVisibleIndicatorsCount just now. It is verified.

  • When not set, works as previous (regression)
  • When set to 2, works as I hoped when opening this issue
  • When a second is added to the list at runtime, the indicator appears
  • When a second item is removed from the list at runtime, the indicator disappears

Thank you very much for implementing this change so quickly! 👍 👍

0reactions
AndreiMisiukevichcommented, Jun 2, 2019

@InnerScript thanks 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Activity Indicator is not visible on xaml page in xamarin. ...
I have an activity indicator on xaml page. Initially its IsVisible property is false. I have a button on page. When user click...
Read more >
IsVisible doesn't work anymore · Issue #8044 · dotnet/maui
The native property of the control, Visibility , sets the ViewStates correctly (Visible, Gone etc). In fact, this is validated by tests added ......
Read more >
Bindable Property is not working in Content View .net Maui
I have created a content view ,added Boolean property and button to it. ... Source={x:Reference CustomView}}" /> <Button IsVisible="{Binding ...
Read more >
How to show busy indicator on each item until data loaded ...
Bind the bool values for the IsVisible properties to switch between indicator and button while loading the description. XAML. <ContentPage> <ContentPage.
Read more >
Binding not working xamarin forms. but when I scroll, several ...
1 Property not updating Xamarin Forms Binding. The application should function like the debug screenshot where the filename is visible at the top...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found