protected void Link(NavigationItem prev, NavigationItem next, NavigationDirection direction) { if (direction == NavigationDirection.Vertical) { prev.Bind(NavigationItemDirection.Down, next.GetSelectable(NavigationItemDirection.Down)); next.Bind(NavigationItemDirection.Up, prev.GetSelectable(NavigationItemDirection.Up)); } else { prev.Bind(NavigationItemDirection.Right, next.GetSelectable(NavigationItemDirection.Right)); next.Bind(NavigationItemDirection.Left, prev.GetSelectable(NavigationItemDirection.Left)); } }