Viet Phan X

[⚠️ JOURNEY] Building MP3 AI Manager for Data Hoarders (Day 6)

Author AvatarViet Phan
78
Jul 13, 2024
2 min read

Day 6

Hours Total: 11.5

Mp3 Organizer in Avalonia

Day Recap

Outcome: Decided to try Avalonia, motivated by Reddit posts suggesting that it's a more future-proof option compared to WinUI3. Successfully set up the environment and learned the basics of the MVVM pattern. Made good progress with the initial project setup.

What I Did

  • Committed to Avalonia based on positive feedback from Reddit—seems like a better bet for long-term project stability.
    • One downside: Avalonia has fewer tutorials and resources compared to WinUI3, but it should be faster.
  • Downloaded and installed .NET 8.0 for Windows.
  • Installed the Avalonia template:
    bash
    dotnet new install Avalonia.Templates
  • Installed the Avalonia Visual Studio Extensions.
  • Created a new project using the CLI:
    bash
    dotnet new avalonia.mvvm -o MyProject 

What I Learned

  • MVVM Pattern: Explored the Model-View-ViewModel pattern, which is core to Avalonia.
    • Learned how text binding works in XAML: connected a text variable to a TextBlock in the view.
  • Followed a tutorial to add a button that:
    • Prints a debug message on click.
    • Accepts input from a textbox and performs some calculation based on that input.

Remarks

Avalonia feels promising. While it’s true that there aren’t as many tutorials or guides, the structure it provides with the MVVM pattern makes building UI apps logical and scalable. The binding system is intuitive, but the learning curve for more complex components might be steep.

Next Goals

  • Continue learning more about Avalonia and the MVVM architecture.
  • Add more interactive components to the project and explore more complex data bindings.
  • Experiment with styling in Avalonia to see how customizable the UI can get.
πŸ‘¨β€πŸ’» Software DevelopmentπŸš€ Journey

You need to Build a

Micro Startup

I can bring your ideas to life - free of charge.

Book a free consultation and let’s identify opportunities to turn your vision into a successful business.

15 min call

Get idea feedback


If You Like what I do
You can buy me a coffee πŸ‘‡
Send β˜• via PayPalSend β˜• with Bitcoin

πŸ€™ Let's connect

Made by Viet Phan Β© 2018-2024Privacy Policy