Exemple #1
0
        public PanelLayoutControl()
        {
            InitializeComponent();
            Layout  = new PanelLayout();
            UndoLog = new PanelCtrlLog();
            UndoLog.Add(Layout.Panels);
            UndoLog.StartSnapshot();
            RedoLog = new PanelCtrlLog();

            Layout.LayoutSetup.PropertyChanged += layout_PropertyChanged;
            Layout.PropertyChanged             += layout_PropertyChanged;

            PreviewMouseDown += OnPreviewMouseDown;
            PreviewMouseMove += OnPreviewMouseMove;
            PreviewMouseUp   += OnPreviewMouseUp;

            Layout.Scale        = 1;
            Layout.WindowHeight = 400;
            Layout.WindowWidth  = 600;
        }
        public PanelLayoutControl()
        {
            InitializeComponent();
            Layout        = new PanelLayout();
            Layout.Panels = new List <Panel>();

            Layout.LayoutSetup.PropertyChanged += layout_PropertyChanged;
            Layout.PropertyChanged             += layout_PropertyChanged;

            MouseWheel       += OnMouseWheel;
            PreviewMouseDown += OnPreviewMouseDown;
            PreviewMouseMove += OnPreviewMouseMove;
            PreviewMouseUp   += OnPreviewMouseUp;

            Layout.SheetHeight  = 48;
            Layout.SheetWidth   = 96;
            Layout.SheetsHigh   = 1;
            Layout.SheetsWide   = 1;
            Layout.Scale        = 1;
            Layout.WindowHeight = 400;
            Layout.WindowWidth  = 600;
        }