range ticks settings -> Live Label possible?

Nov 9, 2011 at 1:47 PM
I really can not undestand how can select only that ticks which I need from my axis and then apply to them my labelprovider. 
I saw the DevSamles/ AxesApp and others and really not understand how to create own ticksprovider. 
If it is not diffucult could u please help me with the sample code or link to discussions/
Nov 11, 2011 at 12:29 PM
Edited Nov 11, 2011 at 12:32 PM

I have a solution

 

let ar is our int array or collection etc

((NumericAxis)_pl1.MainHorizontalAxis).LabelProvider.SetCustomView((info, ui) =>
                {
                    TextBlock text = (TextBlock)ui;
                    
 
                    foreach (int el in kp)
                    {
                        if (el == info.Tick)
                        {
                            text.Text = "";
                            text.Inlines.Add(new Button()
                            {
                                Width = 40,
                                Height = 40,
                            });
                    }
                  }
});


the next problem is that I cannot use theese Buttons)))
Is it possible to make LabelTikcs alive?