Coder Social home page Coder Social logo

spock's Introduction

spock's People

Contributors

somecollagist avatar

Watchers

 avatar

spock's Issues

Some Tips/Recommendations

Thought I might leave some tips and recommendations for this project, as I ended up doing something (sort of) similar in implementation for my EPQ.

Framework

I think your using WPF? If you're still just learning, I'd recommend learning Avalonia. It's generally a lot nicer, and, it's cross platform! That said, WPF is mostly fine unless you want to get fancy with the styles (or if you want chains of synced DependencyProperty values).

Having logic in the UI

What you're doing with having the logic for each component in the UI class does work alright - it's what I ended up doing for exposing properties for blocks in a flowchart - if you want to have two-way real-time coupling between the values in the UI and code behind it can get messy (the mentioned chaining of DependencyProperty above). That said, it looks like your UI might not be dynamically generated per component, whereas mine was, so you will likely have more success with this approach than I had. Either way, I'd generally recommend INotifyPropertyChanged instead of DependencyProperties for anything apart from directly on the UI components.

MVVM Toolkit

The Microsoft.Toolkit.Mvvm package on nuget is great. Would recommend, as it saves a lot of boilerplate code for DependencyProperties. The ObservableObject class and Command classes are particularly nice to have.

Seperating Projects

This is a small thing, mainly preference, but ideally your Core folder would be a separate project to the UI, and the UI would import the Core project, but not vice versa (anything in the other direction should be done via Dependency Injection). Not a big deal, but I often find it can help make clear what belongs in Core and what doesn't.

In case you're wondering what I did, for reference, here's my EPQ project: Dynamo

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.