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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T03:32:11+00:00 2026-05-26T03:32:11+00:00

Is there a simple way to disable UI virtualization on a ListBox control? I’m

  • 0

Is there a simple way to disable UI virtualization on a ListBox control?
I’m attempting to find a control within a ListBox control using the “FindName()” method, but in the case that the control is visibly off of the Web Browser window, it’s not finding the control. I’m almost certain the culprit is UI virtualization.
As the control is scrolled off the page, it is no longer retrieved successfully via “FindName()”.

The second I scroll it back onto the screen, it returns the control successfully.

This is an extension of this question:

Silverlight: FrameworkElement.FindName() not finding the control when it's not "visible" in the browser window

Update with coding example

This is the code behind where I attempt to retrieve the control.
“DynamicTagFormFields” is the ListBox control.

textField tf = DynamicTagFormFields.FindName(s.KeyValue) as textField;

This returns a valid “textField” object if the actual textField control that I’m attempting to retrieve is viewable on the screen to the end user.
However, if I scroll the textField control out of view using the ListBox’s vertical scroll bar, then force the process again, the aforementioned code will return null.

This is the XAML of the ListBox:

 <ListBox x:Name="DynamicTagFormFields" Margin="0" Style="{StaticResource ListBoxStyle1}" ItemContainerStyle="{StaticResource ListBoxItemStyle4}" d:LayoutOverrides="Height" Grid.Row="2" IsTabStop="False" TabNavigation="Local" ScrollViewer.HorizontalScrollBarVisibility="Disabled"/>

The textField object is dynamically added to the ListBox programmatically with the following code:

DynamicTagFormFields.Items.Add(textFieldControl);
  • 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-26T03:32:12+00:00Added an answer on May 26, 2026 at 3:32 am

    Have you tried this:-

    <ListBox x:Name="DynamicTagFormFields" Margin="0" Style="{StaticResource ListBoxStyle1}"
        ItemContainerStyle="{StaticResource ListBoxItemStyle4}" d:LayoutOverrides="Height"
        Grid.Row="2" IsTabStop="False" TabNavigation="Local"
        ScrollViewer.HorizontalScrollBarVisibility="Disabled">
        <ListBox.ItemsPanel>
           <ItemsPanelTemplate>
               <StackPanel />
           </ItemsPanelTemplate>
        </ListBox.ItemsPanel>
    </ListBox>
    

    The default panel is the VirtualisingStackPanel which may be the cause of your problem.

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

Sidebar

Related Questions

Is there a way using JavaScript to disable the ability to paste text into
Is there a simple way to disable the auto-expand/collapse of a TreeView node when
My question is simple. Is there a way to disable or remove the Live
Is there a simple way of getting a HTML textarea and an input type=text
Is there a simple way to cache MySQL queries in PHP or failing that,
Is there a simple way in .NET to quickly get the current protocol, host,
Is there any simple way to programatically colorize images in .NET? Basically we have
I there a simple way to append a new field to an existing open
Is there any simple way to generate a default crud (given an entity) with
Is there a simple way to support wildcards (*) when searching strings - without

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.