LayoutControlExtension.cs 788 B

123456789101112131415161718192021222324252627
  1. using DevExpress.XtraEditors;
  2. using DevExpress.XtraLayout;
  3. using System;
  4. using System.Collections.Generic;
  5. using System.Drawing;
  6. using System.IO;
  7. using System.Linq;
  8. using System.Text;
  9. using System.Threading.Tasks;
  10. namespace ExtensionsDev
  11. {
  12. public static class LayoutControlExtension
  13. {
  14. public static void UseDefault(this LayoutControl ctrl)
  15. {
  16. ctrl.AllowTouchGestures = DevExpress.Utils.DefaultBoolean.False;
  17. ctrl.AllowDrop = false;
  18. ctrl.AllowCustomization= false;
  19. ctrl.OptionsFocus.AllowFocusGroups = false;
  20. ctrl.OptionsFocus.AllowFocusTabbedGroups = false;
  21. ctrl.OptionsFocus.AllowFocusControlOnLabelClick = true;
  22. ctrl.Root.GroupBordersVisible= false;
  23. }
  24. }
  25. }