Conditional ScreenTip

Nov 11, 2010 at 12:55 AM

I have a comboBox using item DataTemplate. I'd like to show tooltips for comboBox items only when tooltips are specified in the itemCollection. But I couldn't get the conditional tooltip. Anything wrong in the screentip's style that I set?

Any help is very appreciated!

 

<DataTemplate x:Key="ComboBoxDataItemTemplate">

<Border

>

<StackPanel Orientation

="Horizontal">

<Image Source="{Binding Icon}" Stretch

="UniformToFill"/>

<TextBlock Text="{Binding Path=Text, Mode=TwoWay}" VerticalAlignment="Center" Margin

="3, 3, 3, 3"/>

</StackPanel

>

<Border.ToolTip

>

<Fluent:ScreenTip Title="{Binding Text}"

Text="{Binding Tooltip}"

HelpTopic

="Help for ScreenTip"

<Fluent:ScreenTip.Style

>

<Style

>

<Setter Property="Fluent:ScreenTip.Visibility" Value

="Visible"/>

<Style.Triggers

>

<Trigger Property="Fluent:ScreenTip.Text" Value

="">

<Setter Property="Fluent:ScreenTip.Visibility" Value

="Hidden"/>

</Trigger

>

</Style.Triggers

>

</Style

>

</Fluent:ScreenTip.Style

>

</Fluent:ScreenTip

>

</Border.ToolTip

>

</Border

>

</DataTemplate

>

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

<