Advice with custom WPF control
Dear .NET wizards,
I'm new here, thus my most sincere apologies if this content doesn't belong here.
I have a question about WPF, but r/wpf seems rather... unliving and I saw some post about it being merged with this sub, so I jumped right here so maybe here would be a better place to ask.
I'm learning WPF and making some minor projects within to improve. Now I'm making a little program for a friend (nothing paid, just a little software that might help her). I've finished it a few months ago but it's a bit wonky and unpolished, no usage of any architecture... it's just a mess.
However, I've wanted to remake it with some better GUI and better architecture in general. Here comes my problem. I've had a pretty specific idea in my mind about a crucial component in the software, but for that, I need custom user control that I'm not really able to come up with. I couldn't find any tutorials or questions already asked on the topic, so if you'd be able to give me an advice or some link for a tutorial, I'd be deeply grateful.
Here it is:
I'm thinking about a custom calendar of sorts. Let's say rows would be different rooms in a hotel, columns would be calendar days. Afterward, any guest signed in a specific room would be indicated by colored blocks in the corresponding room row and day columns (preferably with some general info like name, contact....).
For reference, here I made something of the sorts in Excel.
I asked on stack overflow some time ago, but I didn't get any answer except that I should find a designer (?)... anyways, if you'd be able to help me in any way, I'd be very thankful. Also if anything's unclear, please ask.
I don't really even know where to start looking for tutorials and such, so I'm on a dead end without your help.
Thanks for reading and even more for any help.
blackWardie.out();
PS: The custom calendar should be generated from some kind of observable collection with all the guests and have some simple logic, like adding, removing and editing customers, which shouldn't be so much of a problem once I have the control itself up and running (at least I hope so). My biggest problem is how to create a thing that generates a whole table which then edits cells based off of collection binding. I know this is a really big piece I've come up with, but I don't even know how to get to it step by step from simpler tutorials. I tried tutorialspoint on custom user controls, but creating user control with a button and textfield that announces the button has been clicked isn't all that much connected to my problem.
0 comments:
Post a Comment