Optimize Grid with multiple Item

Deepseek 1 Reputation point
2022-05-20T16:06:45.403+00:00

204149-image.png

Hello, im currently making a simple calculator application to begin with WPF.

Here is my ask, how can i optimize my grid of buttons ?

I think that having 25 StackPanel (these will be changed by custom image) is a bit overkill... am i right ?

Afterwards, I'd create another app which will need a grid of hundreds of items so it will help me a lot.

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,669 questions
XAML
XAML
A language based on Extensible Markup Language (XML) that enables developers to specify a hierarchy of objects with a set of properties and logic.
762 questions
{count} votes