You are browsing as a guest. Sign up (or log in) to start making projects!

The Space Calculator

  • 6 Devlogs
  • 19 Total hours

A Space-Themed Calculator!

Ship #1 Pending review

The Space Calculator is a Calculator created in C# and XAML using the Avalonia UI Framework. It has all of the features of a basic calculator, as well has having support for negative numbers, parentheses, answer storage, and calculation history. This app is the first time I’ve ever made a program with a GUI, and I’m really happy with how it turned out!

  • 6 devlogs
  • 19h
Try project → See source code →
Open comments for this post

3h 52m 42s logged

The Space Calculator is finally ready to ship! Since the last devlog, I added buttons to remove a calculation in the history, and copy an expression’s value to the display. I also replaced the (+/-) button with an advanced mode menu, and moved it inside of it, along with parentheses and a button to add the last answer to the display. After that, I mainly just worked on presentation, updating the buttons to look nicer, creating a logo for the app, and finally adding the outer space theming! Although it might not look like much, I’m really happy with how this turned out, especially since it’s my first time making an app with a GUI.

0
0
4
Open comments for this post

2h 41m 24s logged

I finally implemented history saving into the calculator and added a new font for the display! This time, it was really easy to implement the history! I made some notes on what I had left for the implementation, and using those, I got it done pretty easily! The only thing that took some time was styling and formatting, but overall it wasn’t that bad.

0
0
1
Open comments for this post

3h 3m 5s logged

I finally added proper text formatting! I was originally trying to fix a bug where the text on-screen wasn’t syncing with the text in the backend, and by fixing that I got the formatting to work properly! What happend was that the textbox control that held the on-screen text wasn’t syncing properly, so I replaced it with hotkeys that trigger the buttons instead, which made all the button input logic apply to the keyboard! After doing that, I quickly implemented basic negative number support as well. My code was also getting pretty messy, so I moved the calculator engine into another file to keep things clean. Overall, I’ve gotten past a huge roadblock! Now, it’s time to finish that history menu.

0
0
1
Open comments for this post

6h 17m 30s logged

These past 2 sessions were very unfruitful. First, I was trying to implement the history menu, but I was only able the get the menu working, no data. The other thing I was trying to do was intercept the textbox’s text to have proper formatting (ex. / -> ÷) and make the proper calculator functions work when typing directly, but that didn’t work. My goal for next session will probably be to make the history menu and then work on the theming.

0
0
1
Open comments for this post

1h 37m 24s logged

I added the calculation part of the calculator, and made all of the buttons work. I also started working on multiple operand support, and added in the buttons for negative numbers and history.

0
0
1
Open comments for this post

1h 56m 35s logged

Today, I started making my calculator, and implemented the basic visuals. I was originally going to write the backend logic first, and then make the frontend, but since this is my first time making an app with C# and XAML, I got stuck on implementing Commands and using the source generators and so decided to do the frontend first.

0
0
1

Delete project?

Are you sure you want to permanently delete this project? This action cannot be undone.

All devlogs, followers, and associated data will be removed.

Followers

Loading…