Hi,
i'm using the Listbox Drag & Drop example as base of my ListBox. I use also a ItemTEmplate + DataTemplate. But how do i add my own TooltipTemplate to the ListboxItems?
i found an example for a tooltip template:
But how bin this Template to my DataItems?
thanks
regards
rene
i'm using the Listbox Drag & Drop example as base of my ListBox. I use also a ItemTEmplate + DataTemplate. But how do i add my own TooltipTemplate to the ListboxItems?
i found an example for a tooltip template:
<Style x:Key="{x:Type ToolTip}" TargetType="ToolTip"> <Setter Property="OverridesDefaultStyle" Value="true"/> <Setter Property="HasDropShadow" Value="True"/> <Setter Property="Template"> <Setter.Value> <ControlTemplate TargetType="ToolTip"> <Border CornerRadius="7" HorizontalAlignment="Center" VerticalAlignment="Top" Padding="5" BorderThickness="3,3,3,3"> <Border.Background> <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0"> <GradientStop Color="#CF181818" Offset="0"/> <GradientStop Color="#BE1C1C1C" Offset="1"/> </LinearGradientBrush> </Border.Background> <Border.BorderBrush> <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0"> <GradientStop Color="#80FFFFFF" Offset="0"/> <GradientStop Color="#7FFFFFFF" Offset="1"/> <GradientStop Color="#FFFFF18D" Offset="0.344"/> <GradientStop Color="#FFFFF4AB" Offset="0.647"/> </LinearGradientBrush> </Border.BorderBrush> <StackPanel> <TextBlock FontFamily="Tahoma" FontSize="11" Text="{Binding Name}" Foreground="#FFFFFFFF" /> </StackPanel> </Border> </ControlTemplate> </Setter.Value> </Setter> </Style>But how bin this Template to my DataItems?
thanks
regards
rene