+ 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?

11th Dec 2019, 7:19 PM
Rustam Aliev
Rustam Aliev - avatar
1 Réponse
+ 2
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/
11th Dec 2019, 10:19 PM
sneeze
sneeze - avatar