Commit Graph

24 Commits

Author SHA1 Message Date
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
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
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
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
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
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
fc80e1bda1 feat: replace pure rectangle in several places. use pure rectangle in public repo. 2024-02-26 02:01:52 +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
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