Dev2.CustomControls.SimpleGridSplitter.GetScrollViewer C# (CSharp) Method

GetScrollViewer() private method

private GetScrollViewer ( Grid containingGrid, int row ) : ScrollViewer
containingGrid System.Windows.Controls.Grid
row int
return System.Windows.Controls.ScrollViewer
        private ScrollViewer GetScrollViewer(Grid containingGrid, int row)
        {
            List<UIElement> children = containingGrid.Children.Cast<UIElement>()
                .Where(ue => Grid.GetRow(ue) == row)
                .ToList();
            return children.FirstOrDefault(ue => ue.GetType() == typeof (ScrollViewer)) as ScrollViewer;
        }