Viet Phan X

[⚠️ JOURNEY] Building MP3 AI Manager for Music Hoarders (Day 15)

Author AvatarViet Phan
0
Jan 5, 2025
2 min read

Day 15

Hours worked/Total: 0.5/22.5

Avaloniasidebar

Day Recap

Began expanding the app by learning how to compose views. Successfully added a sidebar view with a draggable GridSplitter for resizing. Faced minor challenges with layout adjustments but ultimately achieved the desired functionality.

What I Did

  • Decided to learn how to compose views and added a Sidebar View.
    • Created a new AXAML view file for the sidebar and ensured the namespace was named correctly.
    • Manually loaded the sidebar using the InitializeComponent method in the associated class.
  • Explored layout options for combining views:
    • Used a GridSplitter, which provides built-in resizing and dragging functionality between grid columns.
    • Experimented with SplitView as an alternative: While it’s simpler to set up, it doesn’t support dragging, which made GridSplitter the better choice for flexibility.
  • Adjusted column definitions in the grid layout:
    • Initially, the grid dragged all the way to the edge of the window.
    • Adding proper ColumnDefinitions fixed this, limiting the splitter’s range and improving usability:

Remarks

Learning to compose views and experimenting with layouts made the app feel more polished. The GridSplitter is a powerful tool for creating resizable UI elements, and adding ColumnDefinitions helped control its behavior. The SplitView is simpler but lacks the interactivity I wanted. This step has given me more confidence in creating modular and interactive UIs.

Next Goals

Learn how to finally play MP3 files.

πŸ‘¨β€πŸ’» Software DevelopmentπŸš€ Journey

Got an Idea?

Let's Build It!

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

from 17+ consultations
?
Usually responds within 24h

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-2025Privacy Policy