Hi guys. I am trying to make a VERY simple nuclear reactor simulator that reacts in real time to changes the user makes via sliders and other options on a UI.


What is the best way to go about making a UI? Up to this point I have been testing the ‘physics’ behind the simulator in console code which I am comfortable with. However, I don’t know where to start with making a UI and it seems to be a lot of new coding I have zero experience in.
I’m currently using Visual Studio and looked at the WPF app template but it doesn’t seem suitable. Can anyone help please? Many thanks.
WPF is simple and it should be ok for your needs. Why WPF doesn’t seem suitable for you?
Whilst looking at tutorials and guides it looked like it was only used for creating forms or web pages. My bad if I misjudged it, just very new to this and it’s a lot to take in.
Do you know anything that could help me get started?
Wpf hands down. The data binding will take care of updating the UI to match any changes to your view model automatically.
WPF is the preferred UI framework for Windows right now. However, Windows Forms is also still popular and some people consider it easier to use.
I wouldn’t pay much attention to templates. I don’t think I’ve ever used one aside from whatever counts as the blank WPF template. The problem is if you pick a fancy template, someone else has made a lot of decisions about how your app is put together and there’s not really enough consensus in the WPF/WinForms community about how to do things to let someone else make your decisions.
C# devs
null reference exceptions

source