WPF: Reset the positions of scatterviewitems?

Posted by sofri on Stack Overflow See other posts from Stack Overflow or by sofri
Published on 2010-05-20T09:38:52Z Indexed on 2010/05/20 9:40 UTC
Read the original article Hit count: 207

Hi,

I have a scatterview with some items in it which I place with Orientation und Center. Now I want to have the possibility to reset the positions of the scatterviewitems after scaling, rotating and moving them, while the program is running.

At the moment I do it this way:

private void Reset_ContactTapGesture(object sender, Microsoft.Surface.Presentation.ContactEventArgs e)

{

       item1.Center = new Point(150,150);
        item1.Orientation = 15;
        item1.Width = 100;
        item1.Height = 150;

}

Is there a better way to do it?

© Stack Overflow or respective owner

Related posts about wpf

Related posts about microsoft-surface