+1

Icons in WPF

In which format is it better to store icons for use in a WPF window: png images? XAML-generated list in <Application.Resources>? public class in source code?

12/11/2019 7:19:17 PM

Rustam Aliev

1 Answer

New Answer

+3

Have a look at this link https://social.msdn.microsoft.com/Forums/vstudio/en-US/bb7e2ae5-2046-4fb7-a27d-119197be8683/wpf-and-icons-best-practices?forum=wpf I would say <Application.Resources> is the best place. Also think about not using icons but pictures. You can add a stackpanel in your button-control. And put as many pictures in the stackpanel as you like. https://www.wpf-tutorial.com/basic-controls/the-button-control/