Found Exactly what i need in this link The concept called Implicit Styles.
How to style Stackpanel's children?
-
03-12-2021 - |
Question
Here is my scenario. I have a stackpanel i want to style the children inside it. so i want to write a style for my stackpanel in which i mention the default style of all its chidrens.?
Solution
OTHER TIPS
I suggest you use ItemsControl (it internaly uses StackPanel
) class and define your ItemTemplate.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow