-2

I'm planning to create a desktop application That has moveable UI. How can attain it and save the specific settings of user? Within a local computer.

  • 3
    Write it to a file or settings within the project. Have you done any research of how to save data? You could just save the `.Location` property – EpicKip Nov 24 '17 at 09:16
  • You can use mouse events to create moveable UI. – CanFil Nov 24 '17 at 09:26

1 Answers1

1

You could use a Canvas and add your controls to that. With adorners you can make the controls dragable.

On UIElement moved or on shutdown you save the positions e.g. to a xml file like described here:

How do I write an XML string to a file?

An example for an adorner:

https://denisvuyka.wordpress.com/2007/10/15/wpf-simple-adorner-usage-with-drag-and-resize-operations/

horotab
  • 675
  • 3
  • 20