Is it possible in XAML to
- Define a style for panel that creates a border for each panel?
- Change the style of an ancestor item (i.e. the border background) when an item or it's child is selected?
i.e.
<StackPanel Style="{StaticResource WidgetStyle}">
<Label />
<Button />
<StackPanel>
<ListView />
</StackPanel>
</StackPanel>
I would like to have WidgetStyle define a (rounded) border and change the border color, e.g. if the ListView or Button is selected.
Thanks!