- https://somecollagist.github.io
- [email protected]
- Random product of autonomous energy
somecollagist / spock Goto Github PK
View Code? Open in Web Editor NEWSpock Computer Science NEA
License: GNU Affero General Public License v3.0
Spock Computer Science NEA
License: GNU Affero General Public License v3.0
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.
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).
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.
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.
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.