Dong Bin
ee13b09214
feat: set max size on container size change.
2025-02-21 22:49:41 +08:00
Dong Bin
4893e6efb4
fix: fix drawer measure
2025-02-08 02:11:21 +08:00
望尘空忧
93fe82c100
Fixed: The propagation issue of OverlayFeedbackElement.ClosedEvent.
2025-01-16 01:10:33 +08:00
rabbitism
27a3e5fb41
feat: revert mask animation for dialog.
2024-11-13 00:34:21 +08:00
rabbitism
9b3be2d44e
feat: add DialogFocusHint attached property.
2024-11-13 00:31:15 +08:00
rabbitism
c57bf10511
feat: support multiple classes, improve unit tests.
2024-11-06 23:22:17 +08:00
望尘空忧
93a19e73e6
Fixed: Closing a dialog returns TView to the user instead of occupying its parent.
2024-10-31 09:01:59 +08:00
rabbitism
c712a9faa5
fix: fix northwest resizing.
2024-09-18 11:53:28 +08:00
rabbitism
dccb3c029c
Refactor and optimize overlay dialog handling and resizing logic
...
- Remove unused `_moveDragging` variable in `OverlayFeedbackElement.cs`
- Rename private static animations to follow PascalCase in `OverlayDialogHost.Shared.cs`
- Simplify and streamline `ClickMaskToCloseDialog`, `OnPointerMoved`, `OnPointerPressed`, and `OnPointerReleased` methods in `OverlayDialogHost.Dialog.cs`
- Remove redundant null checks and streamline method calls in various files
- Optimize `_moveDragging` logic and pointer event handling in `DialogControlBase.cs`
This commit enhances readability, maintains consistency in naming conventions, and optimizes the code for better performance and clarity.
2024-09-18 02:37:17 +08:00
rabbitism
5799646488
Refactor and enhance overlay feedback handling
...
- Promote `_containerPanel` to a protected property for better accessibility
- Extract `CoerceDelta` method to centralize constraint logic
- Implement `AnchorAndUpdatePositionInfo` across dialog controls for consistent positioning behavior
- Adjust margin binding for `DialogResizer` to include parent border margin
- Simplify pointer movement calculations and conditional checks
2024-09-18 02:08:58 +08:00
rabbitism
c512cb6e13
Add resize functionality and improve dialog controls
...
This commit introduces the ability to resize dialogs by adding `CanResize` properties to dialog options and control classes. It also refines dialog controls' behavior and layout, ensuring consistent resizing capabilities across different dialog types. Additionally, it enhances the overlay feedback element's positioning logic and updates the resizer's appearance and visibility handling.
2024-09-17 22:44:35 +08:00
rabbitism
a70f7205e9
feat: support dialog resize.
2024-09-17 21:10:54 +08:00
rabbitism
a81fe88eb6
feat: add IsTopLevel property to OverlayDialogHost. only marked Host can trigger window movement.
2024-09-12 15:41:12 +08:00
rabbitism
e90189bbca
feat: 1. make full-screen dialog draggable to trigger window moving
...
2. Make sure full-screen is always full-screen when resizing window.
2024-09-11 22:49:37 +08:00
rabbitism
abe42fc189
fix: fix navigation issue for messagebox and drawer.
2024-09-03 17:05:33 +08:00
rabbitism
36aa3b9dec
feat: try to focus on dialog and make tab navigation cycled.
2024-09-01 16:26:43 +08:00
rabbitism
fb0816b2c5
feat: focus dialog after showing modal
2024-09-01 16:06:19 +08:00
rabbitism
7728e00b83
feat: make mask draggable when it's modal and cannot light dismiss.
2024-08-10 22:23:13 +08:00
rabbitism
15fb5a2d1b
feat: clean up warnings.
2024-07-30 18:33:30 +08:00
rabbitism
c4f0c1143b
fix: 1. Fix modal status leak through issue
...
2. Fix the issue that dialog host cannot be unregistered properly.
2024-07-23 23:34:49 +08:00
rabbitism
9cbefe6307
feat: OverlayDialogHost remake: support host with same id in different toplevel. support modal status propagation.
2024-07-08 15:39:48 +08:00
rabbitism
899d818ba7
fix: fix #243
2024-06-03 15:43:26 +08:00
rabbitism
f453801f59
feat: fix oversize dialog.
2024-05-17 13:48:24 +08:00
rabbitism
77f4a5e051
feat: add option to disable animation.
2024-03-27 21:54:44 +08:00
rabbitism
4c1befb7dd
fix: fix fullscreen resizing issue.
2024-03-27 21:27:14 +08:00
rabbitism
002d851070
feat: also works for non-modal.
2024-03-27 18:32:25 +08:00
rabbitism
13e5629b21
feat: support full screen.
2024-03-27 18:29:54 +08:00
rabbitism
6e897b63fe
feat: make drawer impact modal count. simplify demo view model.
2024-03-27 17:37:46 +08:00
rabbitism
51d7c3c870
feat: add recall as internal function to overlay dialog.
2024-03-09 18:52:26 +08:00
rabbitism
fc80e1bda1
feat: replace pure rectangle in several places. use pure rectangle in public repo.
2024-02-26 02:01:52 +08:00
rabbitism
fbef065a5c
feat: close existing dialogs when host is unregistered.
2024-02-25 22:12:49 +08:00
rabbitism
f6f216f409
feat: make drawer api similar to dialog.
2024-02-10 01:29:06 +08:00
rabbitism
7a9bdf231d
feat: simplify dialog option.
2024-02-10 00:42:44 +08:00
rabbitism
896d22dcce
fix: make disappear animation only work on modal mask.
2024-02-08 23:47:01 +08:00
rabbitism
9a34ce2620
feat: add a property to show if there is modal dialog available in a host.
2024-02-08 23:44:02 +08:00
rabbitism
508c362509
feat: replace IDialogContext by shared library.
2024-02-07 21:25:47 +08:00
rabbitism
7e57a0c0ef
feat: refactor to simplify null control property and event initialization.
2024-02-07 19:04:51 +08:00
rabbitism
662cbc3403
feat: further simplify pure rectangle.
2024-02-06 11:34:37 +08:00
rabbitism
32ed8ad78a
fix: update demo.
2024-02-06 01:09:12 +08:00
rabbitism
36c63b6326
feat: implement resizing logic.
2024-02-05 22:06:17 +08:00
rabbitism
fd85efd895
feat: basic position.
2024-02-05 19:40:11 +08:00
rabbitism
8e085bc264
feat: refactor layer storage and index reset rule.
2024-02-05 17:56:36 +08:00
rabbitism
35b3a2f659
feat: replace mask with pure rectangle to reduce layout calculation
2024-02-05 13:54:58 +08:00
rabbitism
2ac5dfa170
feat: WIP.
2024-02-05 01:22:55 +08:00
rabbitism
dbbf6b62b6
feat: refactor dialog host to accept drawer.
2024-02-04 17:13:01 +08:00