WPF: Reset data scatter position?

I have a scattered image with some elements in it that I post in Orientation und Center. Now I want to be able to reset reset the scatter points after scaling, rotating and moving them while the program is running.

At the moment, I am doing this:

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 this?

+3
source share
1 answer

, .:) - , ( , 20% SV IIRC). - , .

, , , . VM reset , . , .

0

Source: https://habr.com/ru/post/1746347/


All Articles