ImageGear for .NET User Guide > Using ImageGear for .NET > Using ImageGear.WPF Namespace > XAML GUI Controls and Templates > Thumbnail > ThumbnailListBoxItemStyle |
The following template is used to cancel default selection drawing, because there is a special selection/highlighting logic in the Thumbnail control.
XAML |
Copy Code |
---|---|
<Style TargetType="{x:Type ListBoxItem}" x:Key="ThumbnailListBoxItemStyle <Setter Property="Template <Setter.Value> <ControlTemplate TargetType="{x:Type ListBoxItem}" > <ContentPresenter VerticalAlignment="Top" HorizontalAlignment="Left"/> </ControlTemplate> </Setter.Value> </Setter> </Style> |