Hi all,
I'm using the TimeBar with custom content.
Rectangles are being added at certain positions.
The problem is that I can't get the ToolTips for the Rectangles to show up.
Thanks in advance,
Ben
I'm using the TimeBar with custom content.
Rectangles are being added at certain positions.
The problem is that I can't get the ToolTips for the Rectangles to show up.
<Grid x:Name=
"TimeBarGrid"
>
<ItemsControl ItemsSource=
"{Binding timeBarSource}"
>
<ItemsControl.ItemsPanel>
<ItemsPanelTemplate>
<Canvas Width=
"{Binding ElementName=TimeBarGrid, Path=Width}"
Height=
"{Binding ElementName=TimeBarGrid, Path=Height}"
/>
</ItemsPanelTemplate>
</ItemsControl.ItemsPanel>
<ItemsControl.ItemTemplate>
<DataTemplate>
<Rectangle Width=
"{Binding Path=Width}"
Height=
"{Binding Path=Height}"
Fill=
"{Binding Path=Fill}"
>
<ToolTipService.ToolTip>
<ToolTip MaxWidth=
"300"
>
<TextBlock>testing</TextBlock>
</ToolTip>
</ToolTipService.ToolTip>
</Rectangle>
</DataTemplate>
</ItemsControl.ItemTemplate>
</ItemsControl>
</Grid>Thanks in advance,
Ben