using RealTimeGraphEx.Components.ComponentsItems;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
namespace RealTimeGraphEx.Components
{
public class YAxisTicks : ComponentBase
{
private Grid innerGrid;
#region Constructors
public YAxisTicks()
{
Width = 4;
Location = ComponentLocationEnum.Left;
this.SizeChanged += (x, y) => { Render(Graph); };
}
#endregion
#region Properties
public int SmallTicks
{
get { return (int)GetValue(SmallTicksProperty); }
set { SetValue(SmallTicksProperty, value); }
}
public static readonly DependencyProperty SmallTicksProperty =
DependencyProperty.Register("SmallTicks", typeof(int), typeof(YAxisTicks), new PropertyMetadata(20));
public int BigTicks
{
get { return (int)GetValue(BigTicksProperty); }
set { SetValue(BigTicksProperty, value); }
}
public static readonly DependencyProperty BigTicksProperty =
DependencyProperty.Register("BigTicks", typeof(int), typeof(YAxisTicks), new PropertyMetadata(2));
public DataTemplate SmallTickTemplate
{
get