Skip to content

Porting SplitContainerDesigner/SplitterPanelDesigner/SplitterDesigner.#9320

Merged
dreddy-work merged 3 commits intomainfrom
dev/dreddy/PortSplitContainerDesigner
Jun 21, 2023
Merged

Porting SplitContainerDesigner/SplitterPanelDesigner/SplitterDesigner.#9320
dreddy-work merged 3 commits intomainfrom
dev/dreddy/PortSplitContainerDesigner

Conversation

@dreddy-work
Copy link
Member

@dreddy-work dreddy-work commented Jun 20, 2023

Port missing designers. Ported from Framework. Comments and descriptions were directly taken from Framework.

SplitContainerDesigner
SplitterPanelDesigner
SplitterDesigner.

Related to #4908
Fixes ##8749

Microsoft Reviewers: Open in CodeFlow

SplitContainerDesigner
SplitterPanelDesigner
SplitterDesigner.

Related to #4908
Fixes ##8749
@dreddy-work dreddy-work requested a review from a team as a code owner June 20, 2023 18:25
@ghost ghost assigned dreddy-work Jun 20, 2023
@dreddy-work dreddy-work enabled auto-merge (squash) June 20, 2023 20:09
Comment on lines +162 to +165
_splitContainer.MouseDown -= new MouseEventHandler(OnSplitContainer);
_splitContainer.SplitterMoved -= new SplitterEventHandler(OnSplitterMoved);
_splitContainer.SplitterMoving -= new SplitterCancelEventHandler(OnSplitterMoving);
_splitContainer.DoubleClick -= new EventHandler(OnSplitContainerDoubleClick);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
_splitContainer.MouseDown -= new MouseEventHandler(OnSplitContainer);
_splitContainer.SplitterMoved -= new SplitterEventHandler(OnSplitterMoved);
_splitContainer.SplitterMoving -= new SplitterCancelEventHandler(OnSplitterMoving);
_splitContainer.DoubleClick -= new EventHandler(OnSplitContainerDoubleClick);
_splitContainer.MouseDown -= OnSplitContainer;
_splitContainer.SplitterMoved -= OnSplitterMoved;
_splitContainer.SplitterMoving -= OnSplitterMoving;
_splitContainer.DoubleClick -= OnSplitContainerDoubleClick;

{
BehaviorService.EnableAllAdorners(true);

var selMgr = (SelectionManager)GetService(typeof(SelectionManager));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggestion: selMan -> manager
This is applicable to this whole file

@dreddy-work dreddy-work merged commit c3e437c into main Jun 21, 2023
@dreddy-work dreddy-work deleted the dev/dreddy/PortSplitContainerDesigner branch June 21, 2023 03:16
@ghost ghost added this to the 8.0 Preview6 milestone Jun 21, 2023
@dreddy-work
Copy link
Member Author

oops. it was on auto merge. These suggestions need to go in separate PR. I will see but @Tanya-Solyanik, if CTI is adding the unit tests, can you refer them to made these changes as well?

@ghost ghost locked as resolved and limited conversation to collaborators Jul 21, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants