Page 1 of 1

Positioning and event handling inside Silverlight

Posted: Wed Aug 03, 2011 4:45 am
by 16659362
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?

Re: Positioning and event handling inside Silverlight

Posted: Wed Aug 03, 2011 9:22 am
by 15659134
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

Re: Positioning and event handling inside Silverlight

Posted: Wed Aug 03, 2011 11:40 am
by 16659362
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

Re: Positioning and event handling inside Silverlight

Posted: Wed Aug 03, 2011 11:59 am
by 15659134
I ment a bug in the Teechart.Silverlight dll. I think this can be fixed, also waiting for comments from Admins

Re: Positioning and event handling inside Silverlight

Posted: Thu Aug 04, 2011 4:35 am
by 16659362
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.

Re: Positioning and event handling inside Silverlight

Posted: Thu Aug 04, 2011 7:20 am
by 15659134
Thanks for the reply!!,
I will download the new version when i continue work on the pointer click.