or
<
telerik:RadTreeView
IsEditable
=
"False"
ItemsSource
=
"{Binding Items}"
SelectedItem
=
"{Binding SelectedItem, Mode=TwoWay}"
IsLineEnabled
=
"True"
IsRootLinesEnabled
=
"False"
Background
=
"White"
telerik:AnimationManager.IsAnimationEnabled
=
"False"
IsVirtualizing
=
"False"
IsLoadOnDemandEnabled
=
"False"
AutoScrollToSelectedItem
=
"True"
/>
private DataTemplate GetToolTipDataTemplate()
{
StringReader markup = new StringReader(
string.Format("{0}{1}{2}{3}{4}{5}{6}{7}{8}{9}",
@"<
DataTemplate
xmlns
=
""
http://schemas.microsoft.com/winfx/2006/xaml/presentation"">",
@"<
Grid
>",
@"<
Border
BorderBrush
=
""
Gray""
BorderThickness
=
""
1""
Background
=
""
#FFF7F7F7"">",
@"<
TextBlock
Text
=
""
{Binding Value, StringFormat='",
LabelFormat,
@"'}""
Margin
=
""
4,4,4,4""
FontFamily
=
""
Segoe UI""
FontSize
=
""
14"" ",
@"
Foreground
=
""
#FF494949""
VerticalAlignment
=
""
Center""/>",
@"</
Border
>",
@"</
Grid
>",
@"</
DataTemplate
>"));
XmlReader xmlReader = XmlReader.Create(markup);
return XamlReader.Load(xmlReader) as DataTemplate;
}
Here is an image of the tooltip ghosting:
![]()
I will note that the data template above is a bit different from what you see in the image. I took out the vector image to see if its generation was causing the issue. But it is still doing it.
Any ideas?
<
local:OrgChartDiagram
x:Name
=
"diagram"
GraphSource
=
"{Binding GraphSource}"
IsBackgroundSurfaceVisible
=
"False"
Margin
=
"10"
ScrollViewer.HorizontalScrollBarVisibility
=
"Auto"
ScrollViewer.VerticalScrollBarVisibility
=
"Auto"
IsRotationEnabled
=
"False"
ShapeStyle
=
"{StaticResource OrgChartShapeStyle}"
/>
<
telerik:RadGeometryDropDownButton
Grid.Column
=
"2"
Content
=
"Export"
DropDownHeight
=
"80"
Style
=
"{StaticResource RadGeometryDropDownButtonStyle}"
DropDownWidth
=
"144"
Margin
=
"15 0 0 0"
HorizontalAlignment
=
"Center"
VerticalAlignment
=
"Center"
Geometry
=
"M11,0L18,7L11,7zM0,0L10,0L10,7L10,8L18,8L18,12L8.88893,12L8.88893,9L3.82715,14L8.88893,19L8.88893,16L18,16L18,21L0,21z"
Height
=
"56"
Width
=
"42"
>
<
telerik:RadGeometryDropDownButton.DropDownContent
>
<
StackPanel
Margin
=
"10"
>
<
telerik:RadGeometryButton
Content
=
"Export To PNG"
Command
=
"telerik:DiagramCommands.Export"
CommandParameter
=
"Png"
CommandTarget
=
"{Binding ElementName=diagram}"
Style
=
"{StaticResource GeometryButtonMenuItemStyle}"
Geometry
=
"M6.7093377,5.0820007 C10.505837,5.0813236 12.205385,8.5835428 13.709369,8.4989958 C15.616847,8.3917685 16.999527,6.8087606 16.999527,6.8087606 L17.000025,13.080002 L3.0000243,13.080002 L3.0000243,7.9753876 C3.0000243,7.9753876 4.842936,5.0823336 6.7093377,5.0820007 z M1.9999999,2.0000048 L1.9999999,13.999995 L18,13.999995 L18,2.0000048 z M1.1920929E-06,0 L20,0 L20,16 L0,16 z"
/>
<
telerik:RadGeometryButton
Content
=
"Export To BMP"
Command
=
"telerik:DiagramCommands.Export"
CommandParameter
=
"Bmp"
CommandTarget
=
"{Binding ElementName=diagram}"
Style
=
"{StaticResource GeometryButtonMenuItemStyle}"
Geometry
=
"M6.7093377,5.0820007 C10.505837,5.0813236 12.205385,8.5835428 13.709369,8.4989958 C15.616847,8.3917685 16.999527,6.8087606 16.999527,6.8087606 L17.000025,13.080002 L3.0000243,13.080002 L3.0000243,7.9753876 C3.0000243,7.9753876 4.842936,5.0823336 6.7093377,5.0820007 z M1.9999999,2.0000048 L1.9999999,13.999995 L18,13.999995 L18,2.0000048 z M1.1920929E-06,0 L20,0 L20,16 L0,16 z"
/>
</
StackPanel
>
</
telerik:RadGeometryDropDownButton.DropDownContent
>
</
telerik:RadGeometryDropDownButton
>
<
Style
x:Key
=
"GeometryButtonMenuItemStyle"
TargetType
=
"telerik:RadGeometryButton"
>
<
Setter
Property
=
"FontFamily"
Value
=
"Segoe UI"
/>
<
Setter
Property
=
"Width"
Value
=
"224"
/>
<
Setter
Property
=
"Height"
Value
=
"30"
/>
<
Setter
Property
=
"FontSize"
Value
=
"12"
/>
<
Setter
Property
=
"IsTabStop"
Value
=
"False"
/>
<
Setter
Property
=
"Background"
Value
=
"Transparent"
/>
<
Setter
Property
=
"Margin"
Value
=
"0"
/>
<
Setter
Property
=
"Padding"
Value
=
"6 0"
/>
<
Setter
Property
=
"BorderThickness"
Value
=
"0"
/>
<
Setter
Property
=
"VerticalContentAlignment"
Value
=
"Center"
/>
<
Setter
Property
=
"HorizontalContentAlignment"
Value
=
"Left"
/>
<
Setter
Property
=
"Template"
>
<
Setter.Value
>
<
ControlTemplate
TargetType
=
"telerik:RadGeometryButton"
>
<
Border
x:Name
=
"RootBorder"
Background
=
"{TemplateBinding Background}"
BorderBrush
=
"{TemplateBinding BorderBrush}"
BorderThickness
=
"{TemplateBinding BorderThickness}"
>
<
VisualStateManager.VisualStateGroups
>
<
VisualStateGroup
x:Name
=
"CommonStates"
>
<
VisualState
x:Name
=
"Normal"
/>
<
VisualState
x:Name
=
"MouseOver"
>
<
Storyboard
>
<
ObjectAnimationUsingKeyFrames
Duration
=
"0:0:0"
Storyboard.TargetName
=
"RootBorder"
Storyboard.TargetProperty
=
"Background"
>
<
DiscreteObjectKeyFrame
KeyTime
=
"0:0:0"
Value
=
"{StaticResource MetroGray}"
/>
</
ObjectAnimationUsingKeyFrames
>
</
Storyboard
>
</
VisualState
>
</
VisualStateGroup
>
</
VisualStateManager.VisualStateGroups
>
<
StackPanel
Orientation
=
"Horizontal"
Margin
=
"6"
VerticalAlignment
=
"{TemplateBinding VerticalContentAlignment}"
HorizontalAlignment
=
"{TemplateBinding HorizontalContentAlignment}"
>
<
Grid
Visibility
=
"{TemplateBinding GeometryVisibility}"
Width
=
"20"
Height
=
"20"
>
<
Viewbox
Stretch
=
"Uniform"
>
<
Path
x:Name
=
"Path"
Stretch
=
"None"
HorizontalAlignment
=
"Center"
VerticalAlignment
=
"Center"
Data
=
"{TemplateBinding Geometry}"
Fill
=
"{StaticResource PathFill}"
/>
</
Viewbox
>
</
Grid
>
<
ContentControl
x:Name
=
"Content"
Grid.Column
=
"1"
IsTabStop
=
"False"
Content
=
"{TemplateBinding Content}"
VerticalAlignment
=
"{TemplateBinding VerticalContentAlignment}"
Margin
=
"{TemplateBinding Padding}"
ContentTemplate
=
"{TemplateBinding ContentTemplate}"
HorizontalAlignment
=
"{TemplateBinding HorizontalContentAlignment}"
/>
</
StackPanel
>
</
Border
>
</
ControlTemplate
>
</
Setter.Value
>
</
Setter
>
</
Style
>