MainHorizontalAxis LabelProvider

Oct 26, 2011 at 10:31 AM
Edited Nov 9, 2011 at 10:11 AM

Is it possible to set icons or objects instead if usual label text?

I watched LabelProvider class and did not find something I could use for my problem.

 

// I found the solution of this

 

Let CPelement is our UIelement(Button etc.)

In accordance with different ddd-samples we have

 
((NumericAxis)_pl1.MainHorizontalAxis).LabelProvider.SetCustomView((info, ui) =>
                {
 
                    TextBlock text = (TextBlock)ui;
                    InlineUIContainer uic = new InlineUIContainer(new CpElement());
                    text.Inlines.Add(new CpElement()
                    {
                       Width = 10,
                       Height = 10,
                    
                   });
                    
                });
But the main troudle now is that I need to get the specific range of ticks . Any Ideas?