Hi,
I am adding markers with procedural code. I am able to get the markers to look the way I want, except, I want them to appear to be floating with a shadow effect. I was thinking a bitmap effect for the marker would work, but there doesn't seem to be a way to do this...or is there?
The scene supports it.
Thanks,
Steve
you can change the Template for Markers... try this
<Window x:Class="WpfApplication2.Window1"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:igCA="clr-namespace:Infragistics.Windows.Chart;assembly=Infragistics3.Wpf.Chart.v7.2"
xmlns:local="clr-namespace:WpfApplication2"
Title="Window1" Height="400" Width="400">
<Window.Resources>
<DataTemplate DataType="{x:Type igCA:MarkerTemplate}">
<Ellipse Stroke="{Binding Path=Stroke}" Fill="Red" Width="20" Height="20">
<Ellipse.BitmapEffect>
<DropShadowBitmapEffect />
</Ellipse.BitmapEffect>
</Ellipse>
</DataTemplate>
</Window.Resources>
<igCA:XamChart Height="300" Width="300">
<igCA:XamChart.Series>
<igCA:Series>
<igCA:Series.Marker>
<igCA:Marker UseDataTemplate="True" />
</igCA:Series.Marker>
<igCA:Series.DataPoints>
<igCA:DataPoint Value="1" />
<igCA:DataPoint Value="2" />
<igCA:DataPoint Value="3" />
</igCA:Series.DataPoints>
</igCA:Series>
</igCA:XamChart.Series>
</igCA:XamChart>
</Window>
Can you specify which template to use? I have three different markers...It looks like it will be binding to the data type. If I were not able to assign the datatemplate, could I use data template triggers?
sorry, but you can't specify which template to use, and not much contextual information is available inside the template. so i don't think this will be possible in the current version.