Image List
How can I make something like this? I am currently making an app which I want to give info on certain cosmetics in the game "Fortnite" and instead of people clicking on the name of the cosmetic, id like to display the icon. My current code just puts the items from the API into a list and once it's clicked it displays the icon + information about it. But I'd like to make it so people can view the icon then once clicked give info.
Here is the API I am using https://fortnite-api.com/v2/cosmetics/br, it returns a JSON of every cosmetic in the game and it also provides the links to photos of the items, I've created a deserializtion system so I can grab speftic data from the reponse, so I can get every image, but now the question is how do I make it so I can put each icon like the photo I provided?
18 Replies
This depends on the GUI library, whether it's Winforms, WPF or Avalonia
I tagged winforms.
it's build in winforms
Sorry didn't notice the tag, I'm not really an expert in Winforms, but if you're starting a new project I would highly recommend Avalonia or at least WPF
Winforms is pretty outdated and getting making a modern GUI in it is quite hard.
I'm not planning on making a modern GUI, it's just a project for fun, although i've been wanting to do this typa thing for awhile lol
I would assume in winforms you'd use DataGridView to get a grid-like UI, but I'm not really sure so I would leave it to the experts to chime in š
Is Avalonia hard?
to use
i never really used anything besides winforms..
š
It might seem harder a bit at first, but it's way easier to use after you've tried it a bit
avalonia/WPF is way better when it comes to styling and responsiveness
Don't I have to learn XAML at first?
winforms is easy to get started with but gets a lot more annoying when the app gets complicated
this is true
very very much
it's laggy af too :/
Yeah, you'd have to learn XAML, but it's much easier to build a UI in XAML than Winforms designer š
^
drag and drop editing is the enemy of proper responsive layouts
man.
ill try it
i created this 2008 looking ass ui, looks super bad. I will def try XAML
Yeah, there are many libraries for Avalonia as well that makes it even easier to style your UI š
what is Avalonia ?
It's a UI framework
https://avaloniaui.net/
Avalonia UI
Avalonia UI - Cross-Platform UI Framework for .NET
Pixel-Perfect Cross-Platform .NET Applications with C# for Windows, macOS, Linux, iOS, Android and Browser.