网站首页
编程语言
数据库
系统相关
其他分享
编程问答
OnAttached
2024-11-26
WPF Datagrid AutoScroll via behavior
publicclassDataGridAutoScrollBehavior:Behavior<DataGrid>{protectedoverridevoidOnAttached(){base.OnAttached();AssociatedObject.SelectionChanged+=AssociatedObject_SelectionChanged;}privatevoidAssociated