Hi,
I'm currently trying to remember the order of the TilePanes that a user has moved around. Currently I've been checking the order of the tiles by checking the xamTileView.Items property. I loop through the TilePanes and save their order in an XML file. This seems to work great. The problem I'm having is when a user moves a tile to another location, I want to save immediately the order of the tiles.
I've hooked up to the TileDragCompleted event of the xamTileView. However, when I check the xamTileView.Items property, this hasn't updated yet with the new order. Is there another place I should be checking the order of the tiles? Or, is there another event I can attach to that occurs after the tiles have animated and reordered themselves?
Thanks,Kevin
Hi Marin,
Your sample does work. The differences though between yours and mine is my tiles are added programmically directly to the .Items property. I don't even use the ItemsSource as I'm not really using the tile view the way it was originally intended. I'll see if there is a work around.
I noticed there was a OnItemsChanged method that I can override on the XamWebTileView. I think I might be able to work with this.
Hi Kevin,This sample (tileView.ItemsSource="123456") works, could you refine your scenario?private void tileView1_TileDragCompleted(object sender, TileDragCompletedEventArgs e){XamWebTileView tv = sender as XamWebTileView;for (int i = 0; i < tv.Items.Count; i++){System.Diagnostics.Debug.WriteLine(tv.Items[i].Data);}}Regards,Marin