Hi, we are evaluating DevCraft - the most critical portion that will affect our decision is the 3D charts functionality in WPF for our software. I used the WPF sample code in this https://github.com/telerik/xaml-sdk/tree/master/ChartView3D/WPF and successfully created a Surface Plot with colorizer.
Yet no matter what I do I cannot get the Tooltips to work - Tooltips are critical for our functionality and we need to show the datapoint that is closest in the surface plot in order to satisfy our need.
I followed the directions in http://docs.telerik.com/devtools/wpf/controls/radchartview3d/features/behaviors/tooltipbehavior3d with no success.
The code below is my modified version of the code in the github to add tooltips.
https://github.com/telerik/xaml-sdk/blob/master/ChartView3D/WPF/ValueGradientColorizer/SurfaceGradients.xaml
I am using this project in Windows 10 professional with Telerik UI for WPF version 2017.2.629.0
A quick response would be appreciated since I will have to present a report tomorrow comparing Telerik with alternative 3D visualization libraries.
Kind regards
<
UserControl
x:Class
=
"ValKueGradientColorizer.SurfaceGradients"
xmlns:telerik
=
"http://schemas.telerik.com/2008/xaml/presentation"
mc:Ignorable
=
"d"
d:DesignHeight
=
"300"
d:DesignWidth
=
"300"
>
<
Grid
>
<
telerik:RadCartesianChart3D
>
<
telerik:RadCartesianChart3D.TooltipTemplate
>
<
DataTemplate
>
<
StackPanel
Background
=
"Fuchsia"
MinHeight
=
"100"
MinWidth
=
"100"
>
<
StackPanel
Orientation
=
"Horizontal"
Background
=
"Yellow"
>
<
TextBlock
Text
=
"X - "
FontWeight
=
"Bold"
Foreground
=
"Blue"
/>
<
TextBlock
Text
=
"{Binding XValue}"
/>
</
StackPanel
>
<
StackPanel
Orientation
=
"Horizontal"
Background
=
"Yellow"
>
<
TextBlock
Text
=
"Y - "
FontWeight
=
"Bold"
/>
<
TextBlock
Text
=
"{Binding YValue}"
Foreground
=
"Blue"
/>
</
StackPanel
>
<
StackPanel
Orientation
=
"Horizontal"
Background
=
"Yellow"
>
<
TextBlock
Text
=
"Z - "
FontWeight
=
"Bold"
/>
<
TextBlock
Text
=
"{Binding ZValue}"
Foreground
=
"Blue"
/>
</
StackPanel
>
</
StackPanel
>
</
DataTemplate
>
</
telerik:RadCartesianChart3D.TooltipTemplate
>
<
telerik:RadCartesianChart3D.XAxis
>
<
telerik:LinearAxis3D
/>
</
telerik:RadCartesianChart3D.XAxis
>
<
telerik:RadCartesianChart3D.YAxis
>
<
telerik:LinearAxis3D
/>
</
telerik:RadCartesianChart3D.YAxis
>
<
telerik:RadCartesianChart3D.ZAxis
>
<
telerik:LinearAxis3D
/>
</
telerik:RadCartesianChart3D.ZAxis
>
<
telerik:RadCartesianChart3D.Grid
>
<
telerik:CartesianChart3DGrid
/>
</
telerik:RadCartesianChart3D.Grid
>
<
telerik:RadCartesianChart3D.Behaviors
>
<
telerik:Chart3DTooltipBehavior
InitialShowDelay
=
"200"
ShowDuration
=
"200000"
>
</
telerik:Chart3DTooltipBehavior
>
<
telerik:Chart3DCameraBehavior
/>
</
telerik:RadCartesianChart3D.Behaviors
>
<
telerik:RadCartesianChart3D.Series
>
<
telerik:SurfaceSeries3D
XValueBinding
=
"X"
YValueBinding
=
"Y"
ZValueBinding
=
"Z"
ItemsSource
=
"{Binding}"
ToolTipService.ShowOnDisabled
=
"True"
>
<
telerik:SurfaceSeries3D.Colorizer
>
<
telerik:SurfaceSeries3DValueGradientColorizer
IsAbsolute
=
"True"
>
<
telerik:SurfaceSeries3DValueGradientColorizer.GradientStops
>
<
GradientStopCollection
>
<
GradientStop
Offset
=
"-100"
Color
=
"Blue"
/>
<
GradientStop
Offset
=
"50"
Color
=
"Green"
/>
<
GradientStop
Offset
=
"100"
Color
=
"Red"
/>
</
GradientStopCollection
>
</
telerik:SurfaceSeries3DValueGradientColorizer.GradientStops
>
</
telerik:SurfaceSeries3DValueGradientColorizer
>
</
telerik:SurfaceSeries3D.Colorizer
>
<
telerik:SurfaceSeries3D.ToolTip
>
<
StackPanel
MinWidth
=
"200"
MinHeight
=
"200"
Background
=
"Fuchsia"
><
TextBlock
Background
=
"Aqua"
Foreground
=
"Black"
>100000</
TextBlock
></
StackPanel
>
</
telerik:SurfaceSeries3D.ToolTip
>
<
telerik:SurfaceSeries3D.TooltipTemplate
>
<
DataTemplate
>
<
StackPanel
Background
=
"Fuchsia"
MinHeight
=
"100"
MinWidth
=
"100"
>
<
StackPanel
Orientation
=
"Horizontal"
Background
=
"Yellow"
>
<
TextBlock
Text
=
"X - "
FontWeight
=
"Bold"
Foreground
=
"Blue"
/>
<
TextBlock
Text
=
"{Binding XValue}"
/>
</
StackPanel
>
<
StackPanel
Orientation
=
"Horizontal"
Background
=
"Yellow"
>
<
TextBlock
Text
=
"Y - "
FontWeight
=
"Bold"
/>
<
TextBlock
Text
=
"{Binding YValue}"
Foreground
=
"Blue"
/>
</
StackPanel
>
<
StackPanel
Orientation
=
"Horizontal"
Background
=
"Yellow"
>
<
TextBlock
Text
=
"Z - "
FontWeight
=
"Bold"
/>
<
TextBlock
Text
=
"{Binding ZValue}"
Foreground
=
"Blue"
/>
</
StackPanel
>
</
StackPanel
>
</
DataTemplate
>
</
telerik:SurfaceSeries3D.TooltipTemplate
>
</
telerik:SurfaceSeries3D
>
</
telerik:RadCartesianChart3D.Series
>
</
telerik:RadCartesianChart3D
>
</
Grid
>
</
UserControl
>