Commit f8fd991
authored
Backport of #13324 to release/9.0
## The cause of this issue
This issue is caused by
[PR10279](#10279)
These are two of all changes make in
[PR10279](#10279)

`BehaviorService`, `DragAssistanceManager` use `SnapLines` to add some
effects during design time.
`ControlDesigner` has a **_virtual_** property `SnapLines`, but most
designers override the property, in other words, _**most designers have
customized `SnapLines`**_
### Code flow before
[PR10279](#10279)
when `BehaviorService` or `DragAssistanceManager` accesses `SnapLines` ,
customized `SnapLines` were returned.
### Code flow after
[PR10279](#10279)
when `BehaviorService` or `DragAssistanceManager` **_accesses
`SnapLinesInternal`_** , **_customized `SnapLines` were skipped._**
## Proposed changes
-
- Use `SnapLines`
-
<!--
## Customer Impact
-
-
## Regression?
- Yes / No
## Risk
-
-->
## Screenshots
### Before

### After

## Test methodology
-
- manually
-
File tree
3 files changed
+57
-2
lines changed- src/System.Windows.Forms.Design
- src/System/Windows/Forms/Design/Behavior
- tests/UnitTests/System/Windows/Forms/Design/Behavior
3 files changed
+57
-2
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
799 | 799 | | |
800 | 800 | | |
801 | 801 | | |
802 | | - | |
| 802 | + | |
803 | 803 | | |
804 | 804 | | |
805 | 805 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
165 | 165 | | |
166 | 166 | | |
167 | 167 | | |
168 | | - | |
| 168 | + | |
169 | 169 | | |
170 | 170 | | |
171 | 171 | | |
| |||
Lines changed: 55 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
236 | 236 | | |
237 | 237 | | |
238 | 238 | | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
239 | 294 | | |
0 commit comments