title: Tick marks for X-axis in WPF toolkit chart
body: <pre><code>&lt;Window x:Class="tradtest.chart"
  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  xmlns:toolkit="http://schemas.microsoft.com/wpf/2008/toolkit"
  xmlns:charting="clr-namespace:System.Windows.Controls.DataVisualization.Charting;assembly=System.Windows.Controls.DataVisualization.Toolkit"
  
  Title="chart" Height="300" Width="500"&gt;
  &lt;Window.Resources&gt;
      &lt;Style x:Key="SimpleLineSeriesStyle" TargetType="charting:LineDataPoint"&gt;
          &lt;Setter Property="Width" Value="0"/&gt;
          &lt;Setter Property="Height" Value="0"/&gt;
      &lt;/Style&gt;
  
  
  &lt;/Window.Resources&gt;
  &lt;Grid&gt;
      &lt;charting:Chart x:Name="chart1" &gt;
          &lt;charting:LineSeries ItemsSource="{Binding}"
  
                  DependentValuePath="Value"
  
                  IndependentValuePath="Key"
  
                  Title="Pet Preference" IsSelectionEnabled="True" /&gt;
      &lt;/charting:Chart&gt;
  
  &lt;/Grid&gt;
  </code></pre>
  
  <p></p>
  
  <pre><code>using System;
  using System.Collections.Generic;
  using System.Linq;
  using System.Text;
  using System.Windows;
  using System.Windows.Controls;
  using System.Windows.Data;
  using System.Windows.Documents;
  using System.Windows.Input;
  using System.Windows.Media;
  using System.Windows.Media.Imaging;
  using System.Windows.Shapes;
  using System.Windows.Controls.DataVisualization.Charting;
  
  namespace tradtest
  {
      /// &lt;summary&gt;
      /// Interaction logic for chart.xaml
      /// &lt;/summary&gt;
      public partial class chart : Window
      {
          void AddSeries(string title, KeyValuePair&lt;string, decimal&gt;[] data, SolidColorBrush linecolor)
          {
              LineSeries ls = new LineSeries();
              ls.DependentValuePath = "Value";
              ls.IndependentValuePath = "Key";
              ls.ItemsSource = data;
              ls.Title = title;
              Style dpstyle = ls.DataPointStyle;
              //Style tmp1 = this.Resources["SimpleLineSeriesStyle"] as Style;
              Style tmp1 = new Style();
              tmp1.Setters.Add(new Setter(LineDataPoint.BackgroundProperty, linecolor));
              tmp1.Setters.Add(new Setter(LineDataPoint.WidthProperty, 0.0));
              tmp1.Setters.Add(new Setter(LineDataPoint.HeightProperty, 0.0));
              //wi
              //dpstyle = tmp1;
              ls.DataPointStyle = tmp1;
              //SetterBaseCollection sr = dpstyle.Setters;
              //SetterBase sb = new Setter(Background, (object)Brushes.AliceBlue);
              chart1.Series.Add(ls);
          }
          public chart(KeyValuePair&lt;string, decimal&gt;[] spreadseries,
              KeyValuePair&lt;string, decimal&gt;[] meanspreadseries,
              KeyValuePair&lt;string, decimal&gt;[] enterlongseries,
              KeyValuePair&lt;string, decimal&gt;[] entershortseries,
              KeyValuePair&lt;string, decimal&gt;[] exitlongseries,
              KeyValuePair&lt;string, decimal&gt;[] exitshortseries)
          {
              InitializeComponent();
              chart1.Series.Clear();
              AddSeries("Current Spread", spreadseries, Brushes.MediumPurple);
              AddSeries("Mean Spread", meanspreadseries, Brushes.Black);
              AddSeries("Enter Long Spread", enterlongseries, Brushes.Red);
              AddSeries("Enter Short  Spread", entershortseries, Brushes.Red);
              AddSeries("Exit Long Spread", exitlongseries, Brushes.Orange);
              AddSeries("Exit Short Spread", exitshortseries, Brushes.Orange);
  
          }
      }
  }
  </code></pre>
  
  <p>I have attached my code above.
  I am not able to remove X-axis tick marks. can someone please advice?</p>