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.

UI Error when I come back to page with SetProperty refresh elements

See original GitHub issue

Hi! I have an error when I use Binding icons in carrousel, when I go back to this page and binding values call to SetProperty to refresh data I see something like this. Battery is the last item in carousel.

sc idal bug ok

My code is:

<cards:CarouselView
                IsAutoInteractionRunning="False"
                IsAutoNavigatingAimationEnabled="False"
                IsCyclical="False"
                ItemsSource="{Binding CountersList}"
                SelectedIndex="0">
                <cards:CarouselView.ItemTemplate>
                    <DataTemplate>
                        <ContentView>
                            <Frame
                                Padding="0"
                                CornerRadius="10"
                                HasShadow="False"
                                HeightRequest="130"
                                HorizontalOptions="Center"
                                IsClippedToBounds="true"
                                VerticalOptions="CenterAndExpand">
                                <StackLayout HorizontalOptions="CenterAndExpand" Orientation="Vertical">
                                    <Label
                                        FontSize="16"
                                        HorizontalOptions="CenterAndExpand"
                                        Text="{Binding Title}"
                                        TextColor="#4c4c4c" />
                                    <StackLayout HorizontalOptions="CenterAndExpand" Orientation="Horizontal">
                                        <Label
                                            FontSize="40"
                                            HorizontalTextAlignment="Center"
                                            Text="{Binding Value1}"
                                            TextColor="#01877E" />
                                        <iconize:IconImage
                                            Icon="{Binding Icon}"
                                            IconColor="#01877E"
                                            IconSize="40" />
                                    </StackLayout>
                                </StackLayout>
                            </Frame>
                        </ContentView>
                    </DataTemplate>
                </cards:CarouselView.ItemTemplate>

                <controls1:IndicatorsControl
                    IsVisible="True"
                    SelectedIndex="0"
                    SelectedIndicatorStyle="{StaticResource ActiveIndicator}"
                    UnselectedIndicatorStyle="{StaticResource InactiveIndicator}" />
            </cards:CarouselView>

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
Jululucommented, Apr 15, 2019

Sorry, it’s something related with my code. Thank you very much!

0reactions
AndreiMisiukevichcommented, Apr 15, 2019

@Jululu thanks for feedback

Read more comments on GitHub >

github_iconTop Results From Across the Web

Force DOM redraw/refresh on Chrome/Mac
Hiding an element and then showing it again within a setTimeout of 0 will force a redraw. $('#page').hide(); setTimeout(function() { $(' ...
Read more >
How to deal with StaleElementReferenceException in Selenium
Reason #1: The HTML element is no longer present on the web page ... This generally happens due to a JavaScript operation that...
Read more >
This page has an error. You might just need to refresh it
I've been dealing with a very similar issue all day, trying to expose a lightning runtime flow embedded in VF through a public...
Read more >
setProperty
setProperty () lets your app change any property listed in Design mode for a given UI element. Possible Properties. Property, Value, Works on....
Read more >
Error on reload when an element has been added to the UI ...
So I have created an FPS counter: using System; using UnityEngine; using UnityEngine.UIElements; public class FPSCounter : MonoBehaviour {.
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