Positioning and event handling inside Silverlight

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
mrbazzik
Newbie
Newbie
Posts: 5
Joined: Tue May 17, 2011 12:00 am

Positioning and event handling inside Silverlight

Post by mrbazzik » Wed Aug 03, 2011 4:45 am

Hello! Earlier I used Teechart ActiveX version and now I have to use Silverlight, but I've got a problem with it. I create new SL application in VS 2010, add reference to Teechart.Silverlight.dll (demo version) and place TChart control on the form. So this is how my xaml looks like:

<UserControl x:Class="SilverlightApplication14.MainPage"
xmlns="http://schemas.microsoft.com/winfx/2006 ... esentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/marku ... ility/2006"
mc:Ignorable="d"
d:DesignHeight="300" d:DesignWidth="400" xmlns:my="clr-namespace:Steema.TeeChart.Silverlight;assembly=TeeChart.Silverlight">

<Grid x:Name="LayoutRoot" Background="White">
<my:TChart Height="300" HorizontalAlignment="Left" Margin="0,0,0,0" Name="tChart1" VerticalAlignment="Top" Width="400" />
</Grid>
</UserControl>

Then in xaml.cs I add Clickseries event handler:

tChart1.ClickSeries += new Steema.TeeChart.Silverlight.TChart.SeriesEventHandler(SeriesClick);

But when I click on series, event doesn't occur, it occurs when I click slightly above series. It's like something wrong with positioning of mouse pointer or series itself. Help me please, what should I do?

wdl
Newbie
Newbie
Posts: 12
Joined: Wed Apr 20, 2011 12:00 am

Re: Positioning and event handling inside Silverlight

Post by wdl » Wed Aug 03, 2011 9:22 am

I've also seen this with the PointClick event, event only triggers when one clicks above a point in a silverlight application
didn't investigated this further, not using this yet.

seems like a bug in the silverlight dll to me

mrbazzik
Newbie
Newbie
Posts: 5
Joined: Tue May 17, 2011 12:00 am

Re: Positioning and event handling inside Silverlight

Post by mrbazzik » Wed Aug 03, 2011 11:40 am

bad thing. so waiting for comments from admins. i wanted to purchase TeeChart .Net but if there is really such a bug in silverlight dll, it makes no sense to me

wdl
Newbie
Newbie
Posts: 12
Joined: Wed Apr 20, 2011 12:00 am

Re: Positioning and event handling inside Silverlight

Post by wdl » Wed Aug 03, 2011 11:59 am

I ment a bug in the Teechart.Silverlight dll. I think this can be fixed, also waiting for comments from Admins

mrbazzik
Newbie
Newbie
Posts: 5
Joined: Tue May 17, 2011 12:00 am

Re: Positioning and event handling inside Silverlight

Post by mrbazzik » Thu Aug 04, 2011 4:35 am

I've just tried new .Net release (from july, 28) and it seems this bug is fixed.
In fixed bugs list:
4) [TF02015624]
Clicked method out by a few pixels in some Series
types in 2D Charts. Fixed.

wdl
Newbie
Newbie
Posts: 12
Joined: Wed Apr 20, 2011 12:00 am

Re: Positioning and event handling inside Silverlight

Post by wdl » Thu Aug 04, 2011 7:20 am

Thanks for the reply!!,
I will download the new version when i continue work on the pointer click.

Post Reply