Files
Common.Wpf/TextListControl/TextList.xaml
2014-04-30 17:33:21 -04:00

30 lines
1.3 KiB
XML

<ListBox x:Class="Common.Wpf.TextListControl.TextList"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
mc:Ignorable="d"
d:DesignHeight="300"
d:DesignWidth="300"
ScrollViewer.HorizontalScrollBarVisibility="Disabled">
<ListBox.ItemTemplate>
<DataTemplate>
<TextBlock Text="{Binding}"
TextWrapping="Wrap"
Margin="0,1" />
</DataTemplate>
</ListBox.ItemTemplate>
<ListBox.ItemContainerStyle>
<Style TargetType="{x:Type ListBoxItem}">
<EventSetter Event="MouseEnter"
Handler="handleListItemMouseEnter" />
<EventSetter Event="MouseLeave"
Handler="handleListItemMouseLeave" />
<EventSetter Event="MouseUp"
Handler="handleListItemMouseUp" />
<EventSetter Event="MouseDoubleClick"
Handler="handleListItemMouseDoubleClick" />
</Style>
</ListBox.ItemContainerStyle>
</ListBox>