This question is locked. New answers and comments are not allowed.
I am using Silverlight 5 Demo and Telerik Silverlight Q1 2012. I have a simple app where I am trying to create a new tooltip template.
I probably am missing something really simple but I can seem to make it work. Any help or example would be appreciated. Below is my xaml and cs.
Thanks!
namespace SimpleSpApp1{ using System.Windows.Controls; using System.Windows.Navigation; /// <summary> /// Home page for the application. /// </summary> public partial class Home : Page { /// <summary> /// Creates a new <see cref="Home"/> instance. /// </summary> public Home() { InitializeComponent(); this.Title = ApplicationStrings.HomePageTitle; } /// <summary> /// Executes when the user navigates to this page. /// </summary> protected override void OnNavigatedTo(NavigationEventArgs e) { } }}<navigation:Page xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:navigation="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Navigation" xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" x:Class="SimpleSpApp1.Home" mc:Ignorable="d" d:DesignWidth="640" d:DesignHeight="480" Style="{StaticResource PageStyle}"> <navigation:Page.Resources> <DataTemplate x:Key="MyNewToolTipTemplate"> <Grid Background="#FFD41919"> <TextBlock Name="ToolTip" Height="137" Margin="-353,-172,-61,0" TextWrapping="Wrap" VerticalAlignment="Top" Foreground="#FF180505" Text="This is a brand new tool tip."/> </Grid> </DataTemplate> </navigation:Page.Resources> <Grid x:Name="LayoutRoot"> <ScrollViewer x:Name="PageScrollViewer" Style="{StaticResource PageScrollViewerStyle}" Margin="0,8,287,211"> <StackPanel x:Name="ContentStackPanel" Style="{StaticResource ContentStackPanelStyle}"> <TextBlock x:Name="HeaderText" Style="{StaticResource HeaderTextStyle}" Text="{Binding Strings.HomePageTitle, Source={StaticResource ApplicationResources}}"/> <telerik:RadPieChart x:Name="radPieChart" Height="184" Cursor="Hand" ToolTipService.ToolTip="{StaticResource MyNewToolTipTemplate}" TooltipTemplate="{StaticResource MyNewToolTipTemplate}"> <telerik:PieSeries> <telerik:PieDataPoint IsSelected="False" Label="60 %" OffsetFromCenter="0" Value="9"/> <telerik:PieDataPoint IsSelected="False" Label="20 %" OffsetFromCenter="0" Value="3"/> <telerik:PieDataPoint IsSelected="False" Label="20 %" OffsetFromCenter="0" Value="3"/> </telerik:PieSeries> </telerik:RadPieChart> </StackPanel> </ScrollViewer> </Grid></navigation:Page>