Stack Empty Exception when Shadow Effect is applied TChart
Posted: Wed Sep 11, 2013 12:36 pm
I want to show shadow effect on every pointers in teechart Series (Trace lines).
I do following thing in Steema.TeeChart.WPF.Styles.CustomPoint object to achieve it. Below is the code snippet for your reference.
customPoint.Pointer.Visible = plotDataSeries.ShowMarker; // if this is true then it will display pointers (Markers)
if (plotDataSeries.ShowMarkerShadow) // if this is true then it will display shadow for pointers (Markers)
{
customPoint.Pointer.BitmapEffects.Children.Add(new System.Windows.Media.Effects.DropShadowBitmapEffect() {ShadowDepth=5, Softness=2,Color=Colors.Black});
}
With this I am able to see shadow effect in the traces. But in designer applications canvas if I move mouse over the edges of the component containing TeeChart throwing exception.(Screen shot attached).
I do following thing in Steema.TeeChart.WPF.Styles.CustomPoint object to achieve it. Below is the code snippet for your reference.
customPoint.Pointer.Visible = plotDataSeries.ShowMarker; // if this is true then it will display pointers (Markers)
if (plotDataSeries.ShowMarkerShadow) // if this is true then it will display shadow for pointers (Markers)
{
customPoint.Pointer.BitmapEffects.Children.Add(new System.Windows.Media.Effects.DropShadowBitmapEffect() {ShadowDepth=5, Softness=2,Color=Colors.Black});
}
With this I am able to see shadow effect in the traces. But in designer applications canvas if I move mouse over the edges of the component containing TeeChart throwing exception.(Screen shot attached).