Hi all,
I am trying to capture scroll-bar events in xamWebGrid control;
I believe that there is a solution for this via ControlTemplate but I'm not sure how to do it
Can you help me out?
Thanks in advance
Hi,
Actually the Grid implements an Interface called IProvideScrollInfo that gives you access to the Vertical and Horizontal Scrollbars.
So you could use that.
-SteveZ
Thanks a lot for the very fast and accurate answer;
Just to ask something additional:
At the time of accessing the properties (VerticalScrollBar), they are null, and can't be assigned through code
(like:
IProvideScrollInfo test = this.newLicensesGrid;
test.VerticalScrollBar = new System.Windows.Controls.Primitives.ScrollBar();
)
Does that mean that I have to set them somewhere else (xaml) ?
You won't be able to access them until the xamGrid has been loaded. As the Scrollbars come from the xamGrid's ControlTemplate.
Exactly !
Thanks again