Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8240521
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T20:31:01+00:00 2026-06-07T20:31:01+00:00

My doubt is, is there any way to stop the looping selector from looping

  • 0

My doubt is, is there any way to stop the looping selector from looping when it reaches the end of the list. Suppose the List has 10 items may be 1,2,3,4…10, so when after scrolling once u reach the end of the list i.e, 10 then it shouldn’t let u loop.. it should change the direction of flow of the looping selector. Is it possible?..

  public void DisplayCatalog(string[] ServiceDisplayName, string[] WheelDisplayName, BitmapImage[] ServiceIcons, WidgetBean[] ServiceBeanList, WidgetBean[] WheelBeanList)
    {
        updateUI();
        DisplayNames.Clear();
        int idIndex = 0;

                for (int j = 0; j < WheelDisplayName.Length; j++)
                {
                    string disp1 = WheelDisplayName[j];
                    if (!Utils.isNullString(disp1))
                    {
                        DisplayNames.Add(new ItemList() { WidgetName = disp1, ID = (idIndex + 1) });
                        idIndex += 1;
                    }
                }
this.selectorLeft.DataSource = new ListLoopingDataSource<ItemList>() { Items = DisplayNames, selectedItem = DisplayNames[Index] };

corresponding xaml:(am using a horizontal looping selector)

 <loop:LoopingSelector
            x:Name="selectorLeft" VerticalAlignment="Center"  ItemSize="200,68" Height="63"
                              d:LayoutOverrides="Height" Width="450">
            <loop:LoopingSelector.ItemTemplate>
                <DataTemplate>
                    <StackPanel Background="#FF48BA1C" Height="75">
                        <TextBlock Margin="2,12,2,2" Width="Auto" TextTrimming="WordEllipsis" TextAlignment="Center" x:Name="scrollingTextBlock" 
                                   Text="{Binding WidgetName}" FontSize="26" Foreground="White" VerticalAlignment="Bottom" HorizontalAlignment="Stretch"/>
                    </StackPanel>
                </DataTemplate>
            </loop:LoopingSelector.ItemTemplate>
        </loop:LoopingSelector>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T20:31:02+00:00Added an answer on June 7, 2026 at 8:31 pm

    I was struggling to find a solution for this problem since a year. Today I found this. I had to just make one change. and that is…

    this.selectorLeft.DataSource = new ListLoopingDataSource<ItemList>(WheelDisplayName.Length+1) { Items = DisplayNames, selectedItem = DisplayNames[Index] };
    

    The looping selector will loop only if the total number of items are greater than WheelDisplayName+1 if not it will stop looping at the end of the last item.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there any way I can abstract away what thread a particular delegate may
Quick one; I doubt it's possible, but is there any way to take advantage
I doubt there is a way to get the element which has a particular
i'm new at Android world, and i have a doubt, is there any method
I haven't browsed through the spec, though I doubt any info is in there.
I have a general doubt .. Is there a way we limit the scope
I have a doubt regarding unions. Suppose there is a union defined as union
Is there any way to get the path of documents currently open in Microsoft
I ask though I doubt there is any such system. Basically I need to
I have a doubt regarding downloading data from a web service. One way is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.