using System; using System.Windows.Forms; using DevExpress.XtraEditors; namespace WindowsFormsApplication1 { public class ScrollHelper { readonly XtraScrollableControl _scrollableControl; public ScrollHelper(XtraScrollableControl scrollableControl) {
代码如下 // using System; using System.Windows.Forms; using DevExpress.XtraEditors; namespace WindowsFormsApplication1 { public class ScrollHelper { readonly XtraScrollableControl _scrollableControl; public ScrollHelper(XtraScrollableControl scrollableCo
效果预览,选择左边标签,右边内容会自动滚动到适当位置 public class AnchorPanel { List<PanelMenu> lst = new List<PanelMenu>(); Control MenuPan { get; set; } XtraScrollableControl XSControl; public AnchorPanel(Panel PanMenu, XtraScrollableControl xtraScrollableControl) {