Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
210
Can you create a BitmapEffect for a marker?
posted

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

Parents
  • 28496
    Offline posted

    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>

Reply Children