We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

Rearranging Tiles programmatically

Thread ID:

Created:

Updated:

Platform:

Replies:

126975 Oct 19,2016 07:53 AM Oct 20,2016 09:50 AM WPF 2
loading
Tags: TileViewControl
David L. Majors
Asked On October 19, 2016 07:53 AM

I am adding tiles to a tile view grid via a background worker and finding that the tiles are not being added in the order I am expecting them to.

The first adds to the left:   
Result:     1
The second adds to the right of the first:   
Result:    1-2
The third adds to the right of the first, but left of the second:
Result:   1-3-2

I would like it to add directly to the last sequential spot if possible.

I am desiring that the order of the tiles appear initially in the order that I add them to the view control.  The user should still be able to re-organize these tiles "after" I have added them, but I want all "added" tiles to appear at the end of the list.

How can I get this to happen either by adding them directly to the end or being able to programmatically sort them to the right locations.

Thanks

- David

David L. Majors
Replied On October 19, 2016 07:56 AM

Just to clarify, I would like tile 3 to be added to the right of 2 and then tile 4 to be added to the right of 3, etc.  Multiple lines will shift the perspective, but I would still want them to be organized top left to bottom right.

Additionally, how can I determine the actual order if the user rearranges?

Ashok Kumar Murugesan [Syncfusion]
Replied On October 20, 2016 09:50 AM

Hi David,

Thank you for contacting Syncfusion Support.

We have prepared a sample using TileViewControl to insert items at specific index. In the sample, we have inserted items at the first, second and last positions of the collection and you can download it from the following link:

Sample:TileView

When an item is added to the collection using Add method, new TileViewItem will be added at the end of the list. You can use Insert method to add items at specific index. Similarly, items can be rearranged by removing and inserting them at specific index. TileViewItems order is similar to the items order in ViewModel collection, so you can use it to determine actual order if the user rearranges.

Please let us know more details about your requirement if we have misunderstood your query.

Regards,
Ashok Kumar M.


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;