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 905595
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T16:14:49+00:00 2026-05-15T16:14:49+00:00

1-Is it possible to move the listbox items instead of the selector bar. In

  • 0

1-Is it possible to move the listbox items instead of the “selector bar”.
In that way, the selector bar has a static position but the items will move.

what Im trying to achieve is something like the scrollbar at the bottom of this image:
http://i.afterdawn.com/storage/pictures/plex_netflix_addon_3.png

2-is Listbox with horizontal orientation the appropriate tool to implement a thumbnail viewer like the one in the example?

3-I want it to be animated in the future updates? possible?

  • 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-05-15T16:14:50+00:00Added an answer on May 15, 2026 at 4:14 pm

    Below code implements 1 and 2. The item in the middle of the horizontal listbox is always selected. The listbox need some styling to look good, like using Opacity to show which items are displayed and not.

    XAML:

    <Window x:Class="FlowListTest.Window1"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Height="300" Width="300">
        <ListBox  
            ItemsSource="{Binding Path=Items}"
            ScrollViewer.HorizontalScrollBarVisibility="Auto"
            ScrollViewer.ScrollChanged="OnScrollChanged"
            SelectionChanged="OnSelectionChanged">
            <ListBox.ItemsPanel>
                <ItemsPanelTemplate>
                    <StackPanel Orientation="Horizontal" />
                </ItemsPanelTemplate>
            </ListBox.ItemsPanel>
            <ListBox.ItemTemplate>
                <DataTemplate>
                    <Border CornerRadius="10" BorderBrush="Red" BorderThickness="2">
                        <TextBlock Text="{Binding}" Margin="5" Width="20" Height="100"/>
                    </Border>
                </DataTemplate>
            </ListBox.ItemTemplate>
        </ListBox>
    </Window>
    

    Code behind:

    using System;
    using System.Collections.Generic;
    using System.Windows;
    using System.Windows.Controls;
    
    namespace FlowListTest
    {
        public partial class Window1 : Window
        {
            public Window1()
            {
                InitializeComponent();
    
                DataContext = this;
            }
    
            public IEnumerable<string> Items
            {
                get
                {
                    for (int i = 0; i < 100; i++)
                    {
                        yield return i.ToString();
                    }
                }
            }
    
            private void OnSelectionChanged(object sender, SelectionChangedEventArgs e)
            {
                (sender as ListBox).SelectedIndex = _selectedIndex;
            }
    
            private void OnScrollChanged(object sender, ScrollChangedEventArgs e)
            {
                _selectedIndex = (int)(e.HorizontalOffset + Math.Truncate(e.ViewportWidth / 2));
                (sender as ListBox).SelectedIndex = _selectedIndex;
            }
    
            private int _selectedIndex;
        } 
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is it possible to move the position of a scrollbar to diffrent part of
Does any one know how it possible to move/draw dashed line at specific position
Is it possible to move a Tooltip or something like that with cursor when
Is possible to move only the toggle button in Fancybox in an other position?
Is it possible to move to the next panorama item page when a Listbox
Is it not possible to move between pages in the canvas on facebook? I'm
Is it possible to move quickly from one place in code to another where
I'm curious if it is possible to move the written and fully working project
I was wondering if it is possible to move all rows of data from
I would like to ask if it is possible to copy/move all the objects

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.