grv_9098
grv_9098

Reputation: 465

How to style Stackpanel's children?

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

Answers (2)

grv_9098
grv_9098

Reputation: 465

Found Exactly what i need in this link The concept called Implicit Styles.

Upvotes: 1

martavoi
martavoi

Reputation: 7092

I suggest you use ItemsControl (it internaly uses StackPanel) class and define your ItemTemplate.

Upvotes: 0

Related Questions