Incomplete share list on windows explorer - automation

I try to use below code to find all list view items included, it works well if there are no items out of view in Detail View Mode, but if there are lots of list view items, some of them are invisible, namely there is veritical scroll bar showing up in the right, it only can find the visible items, but it works well in other View Mode, such as List.
is there anything wrong here?
AutomationElementCollection items = list.FindAll(TreeScope.Children,
new PropertyCondition(AutomationElement.ControlTypeProperty, ControlType.ListItem));
Logger.WriteWarning("the items totally:"+items.Count); //for exmaple 39/55, not full list items.
here is the screen shot for your reference http://social.msdn.microsoft.com/Forums/en-US/windowsaccessibilityandautomation/thread/d6e58ae1-0eb9-43cf-af51-04102a4dd627.

Related

UWP ListView - How to update BringIntoView to show part of next item, in both directions

I am working on a listview of items and I need to allow user to scroll up/down but I need the bring into view handling to bring the item into view as well as a small part of the next item (in scrollviewer extent). This will indicate to user that there is an item above or below in the list.
I have made a simplified sandbox app to work on this and here are screenshots of what I am trying to do. Arrow indicates scroll direction and the red parens indicate the part I cannot get to show up, meaning the partial amount of the next item.
Please ask if you need anything clarified, I understand this is a complex explanation.
What I have tried:
margin (+/-) on ItemsPresenter/ScrollViewer/ListView
handling ListView.SelectionChanged and using math and various logic to determine direction of scroll and then use ScrollViewer.ChangeView call with calculated vertical offset value.
handling ListView.BringIntoViewRequested and set args.Handled = true and issue new request with various BringIntoViewOptions values, including VerticalOffset, VerticalAlignmentRatio, and new TargetRect with adjusted Y value.
I have read several helpful existing questions here on SO that led me to the BringIntoViewOptions attempt. But nothing so far has worked.
None of these have worked. If I could describe what I want it would be to utilize the existing BringIntoView functionality but bring the item far enough into view that the next item shows a little.

Show Single Item at a time in Recycler view

I'm showing list of items in WearableRecyclerView. As of now I am getting like this
But I need to show Single Row(Single Item) in a Page,Scroll down,then show next Item.
Any Help to do this in android app?
You can do it by two way.
option 1: putting recycler view item width and height both to match_parent.which will cover the screen with with one item at a time and need to scroll for see the next item.
option 2: use this library which will do the exact thing that you are looking for.
The code snippet below is used to show one item at a time. After configuration of your recyclerview add the code snippet.
PagerSnapHelper().attachToRecyclerView(nameOfYourRecylerView)

single item is showing in recycler view even though the entire screen is empty error?

Even though the entire screen is empty only one element is visible in recycle(r) view list. I have used wrap_content for height but still it is showing single element.But when I scroll that single element second element comes in first's place.Why is it happening ?
Check the item layout of recyclerview,the height of your item maybe is match_parent.It's different from the listview item.

How does the Reeder Mac app animate lists when switching folders?

Initially I was under the impression that it uses the table row slideup/down animations while inserting/deleting new rows but I doubt if it's doing that as it does it so fluidly even with thousands of items in the list (otherwise it would take a lot of time for the deletions/insertions to work).
Am I right in my assumption that it's simply attaching a new instance of the News list at the bottom of the screen, shrinking the above one while the one at the bottom expands to fill up space?
UPDATE:
Please see this video of what I mean: http://dl.dropbox.com/u/4960327/ReederAnim.mov
I can not tell you exactly how Silvio Rizzi made this, but as you see in the playback, a list view is added behind the shown list view, and the front list view fades out (.alpha = 0.0;) while the list view behind it expands its height per row.
When you desicate it frame by frame it becomes quite clear what he does, and it is really not that advanced. But I have to admit, with the white "milky" polished interface, it looks quite neat.
In addition, you can see that while animating, the background list view only renders the top 7 entries (hopefully calculated by dividing the view height with the average height of the cells shown) making the list view quick to load. Then afterwards, he can load an extended array of cells once you start scrolling, or in a background thread starting once the animation is complete.

WP7 Get visible items in listbox

I have a listbox in a WP7 application and I would like to retrieve a list of visible items in the listbox. Actually, I am trying to retrieve the object that is visible so that when my application is tombstoned, I can resume it and write listbox.ScrollIntoView(lastVisibleItem);
If it matters, listbox is bound to a collection of custom objects with a datatemplate for customizing the way it looks.
Thanks in advance.
It's possible to work out how far the list has been scrolled using the technique detailed in this answer.
You could then calculate which item(s) are displayed based on the size of the list and the height of the items displayed.
If different items can be diffferent sizes then this becomes more difficult as you need to consider the height of each individual item.
You also need to remember that only part of an item may be displayed.