<Style x:Key="GlowContainer" TargetType="{x:Type ListBoxItem}"> <Setter Property="Template"> <Setter.Value> <ControlTemplate TargetType="{x:Type ListBoxItem}"> <Border removed="WhiteSmoke" CornerRadius="5" BorderThickness="2" x:Name="ItemBorder" Margin="6,3,6,3" > <ContentPresenter /> </Border> <ControlTemplate.Triggers> <Trigger Property="IsSelected" Value="true"> <Setter Property="Height" Value="100" /> <Setter TargetName="ItemBorder" Property="Background" Value="Green" /> </Trigger> </ControlTemplate.Triggers> </ControlTemplate> </Setter.Value> </Setter> </Style>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)