Reputation: 465
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.?
Upvotes: 1
Views: 188
Reputation: 465
Found Exactly what i need in this link The concept called Implicit Styles.
Upvotes: 1
Reputation: 7092
I suggest you use ItemsControl (it internaly uses StackPanel
) class and define your ItemTemplate.
Upvotes: 0